doctornuke home page

 Location:  Home » books » The Art of Unit Testing: With Examples in .Net  
safe buy by amazon
Categories
books
ipod
hdtv
musical inst.
speakers
dvd
mobile phone
imac
macbook
notebook
circuit kits
cameras
software
kindle
Subcategories
Paperback
Mass Market
Trade
dn shop

The Art of Unit Testing: With Examples in .Net

The Art of Unit Testing: With Examples in .Net

enlarge enlarge 
Author: Roy Osherove
Publisher: Manning Publications
Category: Book

List Price: $39.99
Buy New: $23.35
You Save: $16.64 (42%)



New (26) Used (12) from $20.39

Rating: 4.5 out of 5 stars 23 reviews
Sales Rank: 9383

Media: Paperback
Edition: 1
Pages: 320
Number Of Items: 1
Shipping Weight (lbs): 1.2
Dimensions (in): 9.2 x 7.3 x 0.8

ISBN: 1933988274
Dewey Decimal Number: 005
EAN: 9781933988276
ASIN: 1933988274

Publication Date: June 3, 2009
Availability: Usually ships in 1-2 business days

Features:
  • ISBN13: 9781933988276
  • Condition: NEW
  • Notes: Brand New from Publisher. No Remainder Mark.

Similar Items:

Working Effectively with Legacy Code
Working Effectively with Legacy Code
Clean Code: A Handbook of Agile Software Craftsmanship
Clean Code: A Handbook of Agile Software Craftsmanship
Agile Principles, Patterns, and Practices in C#
Agile Principles, Patterns, and Practices in C#
NHibernate in Action
NHibernate in Action
Ultra-Fast ASP.NET: Build Ultra-Fast and Ultra-Scalable web sites using ASP.NET and SQL Server
Ultra-Fast ASP.NET: Build Ultra-Fast and Ultra-Scalable web sites using ASP.NET and SQL Server

Editorial Reviews:

Product Description

Unit testing, done right, can mean the diff erence between a failed project and a successful one, between a maintainable code base and a code base that no one dares touch, and between getting home at 2 AM or getting home in time for dinner, even before a release deadline.

The Art of Unit Testing builds on top of what's already been written about this important topic. It guides you step by step from simple tests to tests that are maintainable, readable, and trustworthy. It covers advanced subjects like mocks, stubs, and frameworks such as Typemock Isolator and Rhino Mocks. And you'll learn about advanced test patterns and organization, working with legacy code and even untestable code. The book discusses tools you need when testing databases and other technologies. It's written for .NET developers but others will also benefit from this book.

Table of Contents:

  1. The basics of unit testing
  2. A first unit test
  3. Using stubs to break dependencies
  4. Interaction testing using mock objects
  5. Isolation (mock object) frameworks
  6. Test hierarchies and organization
  7. The pillars of good tests
  8. Integrating unit testing into the organization
  9. Working with legacy code




Customer Reviews:
Showing reviews 1-5 of 23



4 out of 5 stars Something for every level   March 14, 2010
wiredweird (Earth, or somewhere nearby)
Osherove covers new ground in this brief, dense book: unit testing. Although unit testing has become something of an article of faith among the Xtremists and in many industrial settings, the only way to learn it has been under the guidance of an experienced tester. (I recently had a shocking experience with an undergraduate class. Apparently, testing had never come up in their four years, and some didn't even know that a test should distinguish correct from incorrect behavior.) This isn't really a formal program of study, but it's the best how-to I've seen to date.

The author covers the topic at many levels. For the beginner, he presents the fundamentals like what a unit test is and even why unit testing is a good thing - which, believe it or not, some people still argue against. He shows how unit testing interacts with other parts of the design cycle, such as refactoring. Among other things, testing a module in isolation requires that the code be isolated, that its dependencies be clearly identified and be amenable to replacement by test fixtures. I didn't see Osherove state this outright, but one benefit of the unit test lifestyle is that test-friendly code has fewer dependencies and more explicit ones - something that makes maintenance enormously easier, or even possible in some cases.

Large parts of this book refer to specifics of the .NET environment or of specific tools, of which dozens seem to exist. Even if you don't use those tools or that environment, there are still important lessons in these sections, since concepts are often transferable even if particulars aren't. He adds new meaning to common knowledge, too. For example, he defends some cases of redundant tests written by different people, on the grounds that they're likely to test different things. This puts new words to the "N-version programming" concept familiar in the fault-tolerance world. There, the hope is that different implementations will contain different defects; here, the observation is that different implementations often detect different defects.

Of course, I found a few things to disagree with. Osherove makes little mention of randomized testing, something that I often find useful - directed tests cover the cases I was thinking about, but randomized testing often reveals cases I wasn't thinking about. And, although I generally agree with his premise that tests themselves shouldn't contribute to the debug burden, I find that looping over data elements that specify test cases can decrease global test complexity at some cost in local complexity.

Beginners shouldn't expect to understand everything that Osherove presents. Likewise, experienced testers should be patient with the introductory material that leads up to the advanced discussion. All of this book will have value to one reader or another, but any one reader might not find all of it useful. Also, unit test tools are still maturing, so discussing the many tools available makes parts of this book seem scattered. Still, if you don't have a test guru to study with (or even if you do), I strongly recommend this book.

-- wiredweird



4 out of 5 stars Great introduction to unit testing   March 12, 2010
Nelson H. Ferrari (Alpharetta, GA United States)
I bought this book because I had to start writing some serious unit tests and I didn't have a good idea of what to do.

Of course, if you are at the point you have to write unit tests, you have a job programming, so this book is certainly not for beginners (at least not in computing). The examples are in C# but the language is not very important for this book

He uses a different set of programs as the base of his examples, but this doesn't matter much, because the techniques he presents are very useful. The very first unit test I wrote after reading only a couple of chapters was way better, and easier to write and understand than the one I wrote just before it. And the one after I finished the book was even better.

As he mentions somewhere in the book, any type of testing is viewed as a waste of time, but the quality of the code improves a lot. He presents not only how and why to start writing unit tests but how to convince your company how to do it.

The book paid for itself a couple of times already, even though I only had it for about a month.



4 out of 5 stars Must read for NUnit Testing   February 11, 2010
Steven Koh (Singapore)
0 out of 1 found this review helpful

This is a good book for the intermediate developer.
For beginner to NUnit, I would recommend the Pragmatic Series.




5 out of 5 stars Great book to start unit testing and improve your style   February 5, 2010
Alan Mendelevic (Vilnius, Lithuania)
This is a great book for unit testing beginners and those who want to write better unit tests. There are a couple drawbacks mostly related to formatting/presentation but the content is top quality. Highly recommended.


5 out of 5 stars The ultimate book on unit testing.   February 4, 2010
Alvin Ashcraft (West Grove, PA)
As a developer who started working in Visual Basic 15 years ago and only began to explore unit testing and Test-Driven Development (TDD) in the last four to five years, I was blown away by The Art of Unit Testing. I wish this book had been written many years earlier. The code samples in the book are written in C# and the tools referenced target .NET, but the concepts apply to any language or platform.

Showing reviews 1-5 of 23


product search
nunit  software testing  tdd  typemock  unit testing  
amazon store
Save money with InstrumentPro special promotions. Buy Tascam from Our affiliate store , safe up to 30%!


seo by doctornuke at TH

about us | privacy policy | terms and conditions

Doctornuke store , tech , php books , softwares , ipod , iphone , circuit , mobile phone , computer
notebooks , imac , accessories and apparels
credit card
amazon astore affiliates
sponsored links
Safely Backup & Protect Your PC - Sponsored Link
Ad - www.pctooldepot.com Mar 15 2010 9:43PM GMT
Review of Motorola's unique BACKFLIP Android smartphone for AT
MobileBurn Mar 15 2010 9:43PM GMT
Press Release: MasterCard Introduces 'ATM Hunter' for BlackBerry Smartphones
MobileBurn Mar 15 2010 9:43PM GMT
40 percent of BlackBerry owners would swap to iPhone, 33 percent to Android smartphones
MobileBurn Mar 15 2010 9:43PM GMT
AT&T adds smartphone touch to feature phones
MobileBurn Mar 15 2010 9:42PM GMT
Mog streaming music app set to launch on Android, iPhone
MobileBurn Mar 15 2010 9:42PM GMT
Look At All The Companies Starting-Up Just To Build iPhone Apps
Forbes.com Mar 15 2010 9:42PM GMT
Microsoft Staff & iPhones
TechSpot Mar 15 2010 9:38PM GMT
SHKP Lime Stardom exhibition showcases architectural model and first iPhone application for a residential development
Sun Hung Kai Properties Mar 15 2010 9:36PM GMT
S&P Credit Research and Analytics Available Through New App for iPhone and iPod
Pittsburgh Business Times Mar 15 2010 9:33PM GMT
Google Android Gaining Ground On iPhone
Small Business Computing Mar 15 2010 9:26PM GMT
BlackBerry Storm2 debuts in Australia and New Zealand
Mobile88.com Mar 15 2010 9:22PM GMT
Opera browser ready for iPhone
CNN Mar 15 2010 9:17PM GMT
One-in-Five Workers Admit to Checking Their Smartphones while Driving
RIS Media Mar 15 2010 9:12PM GMT
Novell to unveil technology to bring Xbox 360 games to the iPhone
Geek.com Mar 15 2010 9:09PM GMT
S&P Credit Research and Analytics Available Through New App for iPhone and iPod
Business Review Albany Mar 15 2010 9:08PM GMT
Sneak Peek: Rhapsody?s Upcoming iPhone App
Wired News Mar 15 2010 9:06PM GMT
Weekend Dream Team on iPhone 18:6
Scottish Sun Mar 15 2010 9:05PM GMT
Online music vet launches song service for smartphones
Sydney Morning Herald Mar 15 2010 9:04PM GMT
Is MySpace really winning the smartphone wars?
SmartBrief Mar 15 2010 9:03PM GMT
Review: Street Fighter IV for iPhone
Macworld Mar 15 2010 9:02PM GMT
Online music vet launches song service for smartphones (AFP)
Yahoo! News Mar 15 2010 9:01PM GMT
SXSW Sneak Peek: Rhapsody's Upcoming iPhone App Will Cache Music
Wired News Mar 15 2010 8:56PM GMT
DHS S&T is working on a chem-danger-alert app for your smartphone
Government Security News Mar 15 2010 8:54PM GMT
Creepy Lady Mercifully Absent From New Palm Commercials, Redux [Digital Daily]
All Things Digital Mar 15 2010 8:50PM GMT
40% of Blackberry users willing to trade in for an iPhone
ArsTechnica Mar 15 2010 8:48PM GMT
Online music vet launches song service for smartphones
AFP via Yahoo! Mar 15 2010 8:46PM GMT
Rumor: Multitasking Coming to iPhone OS 4.0
Mac Life Mar 15 2010 8:43PM GMT
iPhone OS app starts surge 185% since Apple?s Steve Jobs unveiled iPad
Mac Daily News Mar 15 2010 8:35PM GMT
Smartphone lawsuits come into vogue
Nasdaq Mar 15 2010 8:33PM GMT
Android vs. iPhone: Google Hires Tim Bray
LinuxPlanet Mar 15 2010 8:29PM GMT
stat