Last active
May 23, 2020 19:19
-
-
Save MathVasc/da608f1b02af48b7455a58e7a6f2aae6 to your computer and use it in GitHub Desktop.
testForSendAction
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 testTargetSendAction() { | |
| button.sendActions(for: .touchUpInside) | |
| /* | |
| Here you can validate if the button action | |
| did execute with the right behavior | |
| */ | |
| XCTAssert(someCodeExecution) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment