Wednesday, October 10, 2012
How does mocking benefit me? That’s a question I hear a lot as I travel around the world giving talks. So before we dive into how to use a mocking tool like JustMock, let’s discuss why this is important and the benefit that mocking provides over other techniques like Fakes.
In my post on Why SOLID Matters, we refactored a small piece of code to be more SOLID. Granted, it was a simplistic example, but good for illustrating several key points on SOLID. We will continue using the same code to discuss the benefits of Mocking.
As a refresher, we ended...