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/Coordinators/WalletCoordinatorTests.swift

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)
}
}