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.



Do you want to send a comment or give me a hint about any issues with a blog post: Open up an issue on GitHub.

Do you want to fix an error or add a comment published on the blog? You can do a fork of this post and do a pull request on github.