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.
41 lines
1.1 KiB
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)
|
|
}
|
|
}
|
|
|