Book Review: Pragmatic Unit Testing in C# With NUnit by Andrew Hunt and David Thomas with Matt Hargett - Page 2

Part of: The RAM Review

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

Page 1 — Page 2

Article tags

Spread the word
Bookmark and Share
Profile image for t-michael-testi

Article Author: T. Michael Testi

T. Michael Testi is software developer, a writer, and a photographer. He also blogs at PhotographyTodayNet and at All This and Everything Else.

Visit T. Michael Testi's author pageT. Michael Testi's Blog

Read comments on this article, and add some feedback of your own

Article comments

Add your comment, speak your mind

Personal attacks are NOT allowed.
Please read our comment policy.
Please preview your comment.

blogcritics lists for Nov 11, 2009

fresh articles Most recent articles site-wide

fresh comments Most recent comments site-wide

most comments Most comments in 24hrs

top writers Most prolific Blogcritics for October

top commenters Most prolific Commenters in 24 hrs