An advanced Ethereum/EVM mobile wallet
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
alpha-wallet-ios/TrustTests/Settings/ConfigTests.swift

33 lines
713 B

// Copyright SIX DAY LLC. All rights reserved.
import XCTest
@testable import Trust
class ConfigTests: XCTestCase {
func testChainIDDefault() {
let config = Config(defaults: .test)
XCTAssertEqual(1, config.chainID)
XCTAssertEqual(.main, config.server)
}
func testChangeChainID() {
var config = Config(defaults: .test)
XCTAssertEqual(1, config.chainID)
config.chainID = 42
XCTAssertEqual(42, config.chainID)
XCTAssertEqual(.kovan, config.server)
}
func testTestDefaultisCryptoPrimaryCurrency() {
let config = Config(defaults: .test)
XCTAssertEqual(false, config.isCryptoPrimaryCurrency)
}
}