All Posts assertfail

View the Blog on GitHub wallymathieu

When to use mocks?

16 Apr 2011

You use mocks when you want to test how the code interacts with the mocked objekts.

If you care mostly about the end result, the final state, then it's easier and less brittle to use fakes.


  • unit-test
  • Comments or errors? Fork post and do a pull request on github