Pragmatic Unit Testing in C# with NUnit, Second Edition. The Pragmatic Starter Kit - Volume II. - 220 pages, 2007.
Without good tests in place, coding can become a frustrating game of whack-a-mole. That’s the carnival game where the player strikes at a mechanical mole; it retreats and another mole pops up on the opposite side of the field. The moles pop up and down so fast that you end up flailing your mallet helplessly as the moles continue to pop up where you least expect them. You need automated testing and regression testing to keep the moles from popping up.
You don’t test a bridge by driving a single car over it right down the middle lane on a clear, calm day. Yet many programmers approach testing that same way—one pass right down the middle and they call it tested. Pragmatic programmers can do better than that!
With this book, you willWrite better code, faster
Discover the best hiding places where C# bugs breed
Learn how to think of all the things that could go wrong
Test pieces of code without using the whole .NET project
Use NUnit to simplify your C# test code
Test effectively with the whole team
Real software unit testing will make your life easier. It will make your software design and architecture better and drastically reduce the amount of time you spend debugging you .NET code.