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/AlphaWalletTests/Coordinators/TransactionCoordinatorTests...

41 lines
1.5 KiB

// Copyright SIX DAY LLC. All rights reserved.
import XCTest
@testable import AlphaWallet
class TransactionCoordinatorTests: XCTestCase {
/*
func testShowSendFlow() {
let coordinator = TransactionsCoordinator(
session: .make(),
navigationController: FakeNavigationController(),
storage: FakeTransactionsStorage(),
keystore: FakeEtherKeystore(),
tokensStorage: FakeTokensDataStore()
)
coordinator.showPaymentFlow(for: .send(type: .ether(destination: .none)))
let controller = (coordinator.navigationController.presentedViewController as? UINavigationController)?.viewControllers[0]
XCTAssertTrue(coordinator.coordinators.first is PaymentCoordinator)
XCTAssertTrue(controller is SendViewController)
}
func testShowRequstFlow() {
let coordinator = TransactionsCoordinator(
session: .make(),
navigationController: FakeNavigationController(),
storage: FakeTransactionsStorage(),
keystore: FakeEtherKeystore(),
tokensStorage: FakeTokensDataStore()
)
coordinator.showPaymentFlow(for: .request)
let controller = (coordinator.navigationController.presentedViewController as? UINavigationController)?.viewControllers[0]
XCTAssertTrue(coordinator.coordinators.first is PaymentCoordinator)
XCTAssertTrue(controller is RequestViewController)
}
*/
}