17 lines
506 B
Swift
17 lines
506 B
Swift
import XCTest
|
|||
|
|
@testable import MyPassCore
|
||
|
|
|
||
|
|
final class KeePassIconMapperTests: XCTestCase {
|
||
|
|
func test_knownIndex_returnsMappedSymbol() {
|
||
|
|
XCTAssertEqual(KeePassIconMapper.symbolName(forIconIndex: 14), "envelope.fill")
|
||
|
|
}
|
||
|
|
|
||
|
|
func test_indexZero_isKeyFill() {
|
||
|
|
XCTAssertEqual(KeePassIconMapper.symbolName(forIconIndex: 0), "key.fill")
|
||
|
|
}
|
||
|
|
|
||
|
|
func test_unmappedIndex_fallsBackToKeyFill() {
|
||
|
|
XCTAssertEqual(KeePassIconMapper.symbolName(forIconIndex: 999), "key.fill")
|
||
|
|
}
|
||
|
|
}
|