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

32 lines
689 B

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