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.
37 lines
1.0 KiB
37 lines
1.0 KiB
// Copyright SIX DAY LLC. All rights reserved.
|
|
|
|
import XCTest
|
|
@testable import Trust
|
|
|
|
class WalletCoordinatorTests: XCTestCase {
|
|
|
|
func testStart() {
|
|
let coordinator = WalletCoordinator(
|
|
rootNavigationController: FakeNavigationController()
|
|
)
|
|
|
|
coordinator.start()
|
|
|
|
XCTAssertTrue(coordinator.navigationViewController.viewControllers[0] is CreateWalletViewController)
|
|
}
|
|
|
|
func testShowCreateWallet() {
|
|
let coordinator = WalletCoordinator(
|
|
rootNavigationController: FakeNavigationController()
|
|
)
|
|
|
|
coordinator.showCreateWallet()
|
|
|
|
XCTAssertTrue(coordinator.navigationViewController.viewControllers[0] is CreateWalletViewController)
|
|
}
|
|
|
|
func testShowImportWallet() {
|
|
let coordinator = WalletCoordinator(
|
|
rootNavigationController: FakeNavigationController()
|
|
)
|
|
|
|
coordinator.showImportWallet()
|
|
|
|
XCTAssertTrue(coordinator.navigationViewController.viewControllers[0] is ImportWalletViewController)
|
|
}
|
|
}
|
|
|