Tag Archive for 'moq'

Using Moq to Implement Tests (and Avoid Stubs)

In my previous post on understanding TDD I discussed how to analyze existing code for creating unit tests.  This was somewhat of “reverse TDD”, the idea being to look for what to needs to be tested- the relationship between what one class expects and what another class actually does.  Unfortunately I stopped short of actually implementing those tests- which is the subject of this post.

Read More