Skip to content

Instantly share code, notes, and snippets.

@Kdan
Last active July 5, 2020 15:36
Show Gist options
  • Select an option

  • Save Kdan/e8dd412154db385aac12df59cf5a9107 to your computer and use it in GitHub Desktop.

Select an option

Save Kdan/e8dd412154db385aac12df59cf5a9107 to your computer and use it in GitHub Desktop.
class BMock: B {
/// The mocked response being returned by the `validateAnswer()` function.
var validateAnswerResponse = true
func validateAnswer() -> Bool { validateAnswerResponse }
}
class CMock: C {
/// Mutable variable can be changed during the test.
var number = 42
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment