Using test stubs instead of mocks

Well, I’ll just come right out and say it. I’m not really a fan of mock libraries for unit test code. I think they’re the wrong kind of lazy.

As a programmer being lazy is good. Keep it in the back of your mind as you’re working. Not line-by-line thinking about how many keys you have to hit – more task-by-task thinking about what approach will become less of burden for you or your team in the long run.
Continue reading