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/DepositCoordinatorTests.swift

41 lines
1.1 KiB

// Copyright SIX DAY LLC. All rights reserved.
import XCTest
@testable import Trust
import SafariServices
class DepositCoordinatorTests: XCTestCase {
func testStart() {
let coordinator = DepositCoordinator(
navigationController: FakeNavigationController(),
account: .make()
)
coordinator.start()
XCTAssertTrue(coordinator.navigationController.presentedViewController is UIAlertController)
}
func testDepositCoinbase() {
let coordinator = DepositCoordinator(
navigationController: FakeNavigationController(),
account: .make()
)
coordinator.showCoinbase()
XCTAssertTrue(coordinator.navigationController.presentedViewController is SFSafariViewController)
}
func testDepositShapeShift() {
let coordinator = DepositCoordinator(
navigationController: FakeNavigationController(),
account: .make()
)
coordinator.showShapeShift()
XCTAssertTrue(coordinator.navigationController.presentedViewController is SFSafariViewController)
}
}