Effectively replacing component servers for testing purposes is a common — but often misunderstood — issue for developers. Most people call these replacements stubs or mocks, but these are only two of the "test double" types you can employ in unit testing.

In the September issue of MSDN Magazine, Mark Seeman walks you through this continuum of test doubles to explain how mocks, dummies, stubs, spies, and fakes are constructed and used to make your testing easier, more accurate, and more reliable.

While you're at it, take a look at the other testing coverage in the MSDN Magazine archives.

Terrence Dorsey