blockchainethereumblockchain-walleterc20erc721walletxdaidappdecentralizederc1155erc875iosswifttokens
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.
32 lines
689 B
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)
|
|
}
|
|
}
|
|
|
|
|