Last active
January 26, 2021 14:22
-
-
Save Kdan/1c54c85fa3c91080176864a4dd91383d to your computer and use it in GitHub Desktop.
This file contains 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
class BMock: Mock<BMock.Functions>, B { | |
enum Functions: FunctionName { | |
/// The `FunctionName` corresponding to the `validateAnswer()` function. | |
case validateAnswer = "validateAnswer()" | |
} | |
/// The mocked response being returned by the `validateAnswer()` function. | |
var validateAnswerResponse = true | |
func validateAnswer() -> Bool { log(return: validateAnswerResponse) } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment