InvestorDictionary.com
HomeDictionaryCategoriesBooks
Search for Terms:  
Browse by Category:  
Browse:  A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z  # 
  Search:       

Pragmatic Unit Testing in C# with NUnit, 2nd Edition

by Andy Hunt, Dave Thomas, Matt Hargett

List Price:$29.95
Amazon Price:$19.77 & eligible for FREE Super Saver Shipping on orders over $25.
You Save:$10.18 (34%)
Average Rating:4.5 out of 5 stars
Lowest New Price:$17.45
Availablitiy:Usually ships in 24 hours

Buy Now!


Editorial Reviews
Product Description
The 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!




All Customer Reviews
Average Customer Review:4.5 out of 5 stars
1 of 1 people found the following review helpful:

3 out of 5 starsGood, but missing critical elements, 2008-06-27
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.



14 of 18 people found the following review helpful:

1 out of 5 starsOver-extended and over-rated., 2008-03-23
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 or so into the book) presents a simple case where a method should accept an integer array as a parameter and return the largest element. The book then explains how this function, if it behaves properly, should perform. A series of simple test cases are discussed before we get to the real toughie for all you computer scientists out there - a data set consisting of negative integers. A test vector consisting of the array [-9,-8,-7] is passed to the method and -7 is returned. The book explains 'It might look odd, but indeed -7 is larger than -9. We're glad we straightened that out now, rather than in the debugger or in production code where it might not be so obvious.'

ARE YOU KIDDING ME?!? Just what audience was this thing written for? One would have thought that that little gem wouldn't have been necessary... but in fact that is the tone of the entire book. Expect to have your hand held in this manner throughout. If that's the sort of thing that appeals to you, you'll love this one. If, on the other hand, you're trying to learn to incorporate NUnit testing into C# development in an efficient, professional manner, save your money and time and read the NUnit docs.




1 of 2 people found the following review helpful:

5 out of 5 starsA Book Full of Practical Advice on Unit Testing, 2007-11-20
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 where appropriate. The authors' writing style is fluid. If you enjoy reading good technical books, you'll read this like a novel!


0 of 0 people found the following review helpful:

5 out of 5 starsGreat introduction to writing unit test in C#, 2007-09-30
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 what exactly should be tested in a unit test. The authors show how adhering to the guidelines they set forth results in unit tests that are well-written and fail at appropriate times. The authors then generalize this to some extent and provide an excellent discussion on the properties of a good unit test.

My favorite section of the book was actually one of the appendices. In the first appendix, the authors go through a list of gotchas--both in writing unit tests in general and specific to unit tests in C#. This is a very short discussion (only 6 pages), but they identify some issues I've seen with poorly written unit tests.

This is a great book as an introduction to writing unit tests. The authors clearly explain why unit tests should be written, they show clearly what should be tested in a unit test, and they describe some of the problems that have been avoided by writing intelligent unit tests.



1 of 3 people found the following review helpful:

5 out of 5 starsThe time is NOW, 2007-09-24
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.




Price is accurate as of the date/time indicated. Prices and product availability are subject to change. Any price displayed on the Amazon website at the time of purchase will govern the sale of this product.
Store Categories
Accounting
Bonds
Commodities
Economics
Finance & Investing
Financial Store
Futures
Insurance
Mutual Funds
Options
Real Estate
Retirement Planning
Stock Market
Taxes
Technical Analysis
Trading

Related Products



Browse:  A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z  # 
The Financial Ad Trader
Copyright © 2008 InvestorDictionary.com - All rights reserved.