REVIEW

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

Written by T. Michael Testi
Published October 25, 2007
page 1 | 2

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 | 2
T. Michael Testi is a photographer, writer, software developer and ardent fan of fantasy football and horse race handicapping. He also blogs at PhotographyTodayNet and at All This and Everything Else.
Keep reading for information and comments on this article, and add some feedback of your own!
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
Submit to del.icio.us Save to del.icio.us
RSS Feeds
All RSS Feeds (240+)
Comments on this article
Articles in this series
BC articles by T. Michael Testi
Books: Computers and Internet
Review
Sci/Tech: Computers
Sci/Tech: Internet
Sci/Tech: Programming
Sci/Tech: Software
All Books Articles
All Review articles
All BC articles
All BC Comments

Comments

Want comments emailed to you? No spam, promise! Address:

Add your comment, speak your mind

(Or ping: http://blogcritics.org/mt/tb/70176)

Personal attacks are not allowed. Please read our comment policy.





Remember Name/URL?

Please preview your comment!

Fresh
Articles
Fresh
Comments