Guest User

Untitled

a guest
Nov 12th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. import XCTest
  2. @testable import Account
  3.  
  4. class AccountModelTest: XCTestCase {
  5.  
  6. var model: AccountModel?
  7.  
  8. override func setUp() {
  9. // Put setup code here. This method is called before the invocation of each test method in the class.
  10. model = AccountModel()
  11. }
  12.  
  13. override func tearDown() {
  14. // Put teardown code here. This method is called after the invocation of each test method in the class.
  15. }
  16.  
  17. func testTransact() {
  18. let result = model?.transact(deposit: 10, withdraw: 4)
  19. XCTAssertEqual(6, result)
  20. }
  21.  
  22. }
Add Comment
Please, Sign In to add comment