I just finished reading The art of unit testing by Roy Osherove and I find this book a must have or at least a must read book for everyone interested or involved in unit testing. The author, Roy Osherove, is the chief architect at Typemock and he is by many considered to be one of the lead resources in the world when it comes to unit testing.
This book is suitable for both unit testing “first timers” and persons that are more experienced within the field of unit testing.
Part 1 (chapter 1 and 2) of the book introduces you to the world of unit testing and how to get started.
Part 2 (chapter 3, 4 and 5) focuses on stubs, mock objects and isolation frameworks.
Part 3 (chapter 6 and 7) learns you how to write maintainable, trustworthy and readable test code.
Part 4 (chapter 8 and 9) focuses on how to succeed in your organization with unit testing and how to start adding unit tests to legacy code.
The book is written in a way that makes it easy to read and understand. It is also filled with good code examples in .NET. Personally I learned a lot by reading this book and hopefully I will be able to apply the newly learned theory into practical use.











