Product DescriptionThe NIST estimates that poor testing costs the US economy $60 billion annually. This book gives teams straightforward and proven ways to introduce unit testing into their process, resulting in higher quality and fewer bugs.
All over the world, software teams are using unit testing both to verify their code and as a way of helping them design better code. This book is unique in the way it covers two aspects: showing developers both how to test and helping them determine what to test.
New in the second edition:
Updated for NUnit 2.4 (.NET 2.0 and Visual Studio 2005)
More assert methods
New String and Collection assertion support
Better support for multiple-platform development
Higher-level setup and teardown fixtures
Whole new chapter on extending NUnit
and more!
Customer Reviews
Average Rating:
Rating: - Good, but missing critical elements
This is a decent getting started book, but it doesn't give good coverage of things such as NUnit projects or using app.config files with NUnit.
Unfortunately, this book isn't good as a stand-alone. I'll admit that it did help me get started, but it lacks so much that I can't give it more stars. A second volume that covers more advanced topics is suggested, or the next edition can add the missing parts.
Rating: - Over-extended and over-rated.
I have to respectfully disagree with all the fawning reviews. It's a chatty, drawn out, tedious read, something of an accomplishment given the fact that it's only ~200 pages long. Frankly, anything more then something like the O'Reilly Pocket Reference is overkill on this subject. NUnit is a snap to use and the freely available documentation and tutorials are more than adequate and not nearly so time-consuming to digest.
The first passage that discusses actual test coding (~20 pages ... Read More
Rating: - A Book Full of Practical Advice on Unit Testing
The book is packed with practical advice on unit testing. Why should you do unit testing, what do you need to know to write good tests, how do you know if you're writing good tests, how can unit tests not only improve your code, but also your design, can unit tests doom a project (if not done right) --- you'll find answers to all of these questions and more. The authors also give numerous short code examples that help solidify the concepts. You'll also find extensive references and links to web-sites ... Read More
Rating: - Great introduction to writing unit test in C#
This is a great introduction to writing unit tests in C# with NUnit. The authors do a good job of explaining why unit tests should be created, how having unit tests are better than not having unit tests, and what exactly should be coded for in a unit test. The book is well-written, easy to follow, and includes helpful guidelines for things that might be confusing to developers.
The real strength of this book is not the author's approach to writing unit tests, but rather they clearly illustrate ... Read More
Rating: - The time is NOW
You keep hearing about it.
"Unit Testing, Unit Testing, Unit Testing"
The time is now. Stop talking about and start becoming a more responsible developer.
This book takes you through the scenarios. Well written, and easy to get going.
This book has been the key ingrediant to get other developers at my company involved with NUnit testing.
NUnit is freely available. If you have VS2005Pro, then plugging in NUnit make the most sense.