While helping mentor a teammate on some unit testing practices, I came across a wrinkle about how the code coverage metric can be misleading when your program flow is structured in a particular way. Caveat: The code and unit tests…
All posts tagged “Unit Testing”
Switching to NSubstitute
This post briefly describes the rationale behind changing my preferred isolation/mocking framework from Rhino Mocks to NSubstitute. I’m also including a kind of quick reference section for describing common testing scenarios involving NSubstitute. Why use an isolation framework? Here are two…