Skip to content

Instantly share code, notes, and snippets.

@ChrisMash
Last active October 16, 2023 19:31
Show Gist options
  • Save ChrisMash/d21d98097be8dcdfa1b45d0b9dd16a9f to your computer and use it in GitHub Desktop.
Save ChrisMash/d21d98097be8dcdfa1b45d0b9dd16a9f to your computer and use it in GitHub Desktop.
A UT that does an improved job of verifying expected values
delegate = ADelegate()
sut = UnitBeingTested(delegate)
sut.aFunctionCall()
verify(delegate)
.callMadeTo(functionOnDelegate)
.withParameter("1234")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment