There is a good set of articles about Unit Test Patterns in the TypeMock™ site:
- Unit-Test Patterns for .NET - Part I
This article looks at patterns in unit testing and describes the main patterns found in tested .NET code. It also describes the problems with each pattern.
- Unit Test Patterns for .NET - Part II - TypeMocks
Programmers who have incorporated unit testing into their development process already know its advantages: cleaner code, courage to refactor, and higher speed. But even the most die-hard unit testers can falter when faced with testing a class that relies on system state for its behavior. This article looks at the TypeMock pattern that can help you solve these problems.
- Unit-Test Patterns for .NET - Part III - Natural TypeMocks™
In this series, unit-test patterns and the advantages that it brings have been discussed. Although there is great power in using TypeMocks, there are times when the reflective API can falter when refactoring code. This article will look at how to test the interaction between classes using Natural Type Mocks to solve these problems.
Filed under: .NET, Community, SoftDev, C#, Microsoft, MSDN, MVP, Tools, Testing, UnitTests, TypeMock