Mocking and Unit Testing and Test-Driven Development
Mocking is essential to unit testing.
However.
It's also annoyingly difficult to get right.
If we aren't 100% perfectly clear on what we're mocking, we will merely canonize any dumb assumptions into mock objects that don't really work. They work in the sense that they don't crash, but they don't …
more ...