Book Review: Pragmatic Unit Testing in C# With NUnit by Andrew Hunt and David Thomas with Matt Hargett
Published October 25, 2007
Chapter 6, "Using Mock Objects," is about using stand-in's when you cannot quite use a real world object to test with; something like a network error, database failure, or a failed internet request are hard to create. Here you will learn about stubs, fakes, and mock objects. Chapter 7, "Properties of Good Tests," explains that good tests are automatic, thorough, repeatable, independent, and professional. Unit tests should not waste your time. It is supposed to make your life easier, not to have production suffer.
Chapter 8, "Testing on a Project," expands the scope of testing from an individual on a project, to a team on a project. Here you will examine how to make unit testing in a group environment work, how to use it with legacy code, and how to use unit tests within the scope of code reviews. Chapter 9, "Design Issues," covers how to design for testability, refactoring, test-driven design, and how to test for invalid parameters. Chapter 10, "UI Testing," shows you how to do unit testing on WinForms, Web UIs, Programmer UIs and Command-line UIs.
The four Appendixes are "Gotchas" which covers the usual suspects such as "It works on My Machine" and "The tests take too long." Additionally, there are sections on resources, summaries, and answers to exercises that are provided in the book.
If you want to get up to speed with NUnit and up to speed fast, then Pragmatic Unit Testing in C# with NUnit is the way to go. You will be using the framework within hours of reading this book. It doesn't waste your time mulling around in long-winded expose'. Rather it gets straight to the point and explains things in familiar, pragmatic ways. You will find out how easy it is to unit test your .NET applications. This is highly recommended for learning and using NUnit to unit test your C# programs
- Book Review: Pragmatic Unit Testing in C# With NUnit by Andrew Hunt and David Thomas with Matt Hargett
- Published: October 25, 2007
- Type: Review
- Section: Books
- Filed Under: Books: Computers and Internet, Review, Sci/Tech: Computers, Sci/Tech: Internet, Sci/Tech: Programming, Sci/Tech: Software
- Part of a feature: The RAM Review
- Writer: T. Michael Testi
- T. Michael Testi's BC Writer page
- T. Michael Testi's personal site
- Spread the Word
- Like this article?
- Email this
Save to del.icio.us









