Last active
October 26, 2019 20:14
-
-
Save victorpanitz/2856f7a9192cd68707de53d966497a09 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func test_Validation_Case_1() { | |
given("valueA is false, valueB is true and valueC is false") { | |
let a = false | |
let b = true | |
let c = false | |
when("validation is called") { | |
sut.validation(valueA: a, valueB: b, valueC: c) | |
then("should call setup method passing a, b and c."){ | |
XCTAssertEqual(view.setupCalled, true) | |
XCTAssertEqual(view.setupValueAPassed, false) | |
XCTAssertEqual(view.setupValueBPassed, true) | |
XCTAssertEqual(view.setupValueCPassed, false) | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment