or
Sign in to turn on 1-Click ordering.
Express Checkout with PayPhrase
What's this? | Create PayPhrase
More Buying Choices
Have one to sell? Sell yours here
or
Get a $13.13 Amazon.com Gift Card
The Art of Unit Testing: With Examples in .Net
 
 
Tell the Publisher!
I’d like to read this book on Kindle

Don’t have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

The Art of Unit Testing: With Examples in .Net [Paperback]

Roy Osherove (Author)
4.7 out of 5 stars  See all reviews (25 customer reviews)

List Price: $39.99
Price: $26.39 & this item ships for FREE with Super Saver Shipping. Details
You Save: $13.60 (34%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
Want it delivered Friday, September 10? Choose One-Day Shipping at checkout. Details
21 new from $24.97 13 used from $25.90
Textbook StudentJoin Amazon Student and get FREE Two-Day Shipping for one year with Amazon Prime shipping benefits.

Sell This Book Back for $13.13
Whether you buy it used on Amazon for $25.90 or somewhere else, you can sell it back to our Textbook Buyback Store at the current price of $13.13 through December 31, 2010. Restrictions Apply
Used Price$25.90
Buyback Price$13.13
Price after
Buyback
$12.77

Frequently Bought Together

The Art of Unit Testing: With Examples in .Net + Clean Code: A Handbook of Agile Software Craftsmanship + Working Effectively with Legacy Code
Price For All Three: $113.17

Show availability and shipping details

Buy the selected items together
  • In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Clean Code: A Handbook of Agile Software Craftsmanship$37.43

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Working Effectively with Legacy Code$49.35

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details


Customers Who Bought This Item Also Bought


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

About the Author

The chief architect at Typemock, Roy Osherove is one of the original ALT.NET organizers. He consults and trains teams worldwide on the gentle art of unit testing and test-driven development. He frequently speaks at international conferences such as TechEd and JAOO. Roy's blog is at http://www.ISerializable.comISerializable.com.


Product Details

  • Paperback: 320 pages
  • Publisher: Manning Publications; 1 edition (June 3, 2009)
  • Language: English
  • ISBN-10: 1933988274
  • ISBN-13: 978-1933988276
  • Product Dimensions: 9.2 x 7.3 x 0.8 inches
  • Shipping Weight: 1.2 pounds (View shipping rates and policies)
  • Average Customer Review: 4.7 out of 5 stars  See all reviews (25 customer reviews)
  • Amazon Bestsellers Rank: #17,482 in Books (See Top 100 in Books)
    #31 in  Books > Computers & Internet > Programming > Java
    #5 in  Books > Computers & Internet > Programming > Software Design, Testing & Engineering > Testing
    #17 in  Books > Computers & Internet > Programming > Languages & Tools > C#

More About the Author

Roy Osherove
Discover books, learn about writers, read author blogs, and more.

Visit Amazon's Roy Osherove Page

Inside This Book (learn more)
Browse Sample Pages:
Front Cover | Table of Contents | First Pages | Index | Back Cover | Surprise Me!
Search Inside This Book:

What Do Customers Ultimately Buy After Viewing This Item?

The Art of Unit Testing: With Examples in .Net
91% buy the item featured on this page:
The Art of Unit Testing: With Examples in .Net 4.7 out of 5 stars (25)
$26.39
Clean Code: A Handbook of Agile Software Craftsmanship
3% buy
Clean Code: A Handbook of Agile Software Craftsmanship 4.3 out of 5 stars (73)
$37.43
Head First Design Patterns
2% buy
Head First Design Patterns 4.6 out of 5 stars (299)
$29.67
Microsoft .NET: Architecting Applications for the Enterprise (PRO-Developer)
2% buy
Microsoft .NET: Architecting Applications for the Enterprise (PRO-Developer) 4.7 out of 5 stars (27)
$29.69

Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(11)

Your tags: Add your first tag
 

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

 

Customer Reviews

25 Reviews
5 star:
 (18)
4 star:
 (7)
3 star:    (0)
2 star:    (0)
1 star:    (0)
 
 
 
 
 
Average Customer Review
4.7 out of 5 stars (25 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
13 of 14 people found the following review helpful:
5.0 out of 5 stars Approachable Yet Thorough, June 9, 2009
By Mark Seemann (Copenhagen, Denmark) - See all my reviews
(REAL NAME)   
This review is from: The Art of Unit Testing: With Examples in .Net (Paperback)
This book covers unit testing in .NET from a pragmatic, yet thourough and passionate, perspective. In brief, it covers many important dimensions of unit testing from simple "hello world" tests over the use of Stubs and Mocks to how you write maintainable test code. It also covers organizational topics such as how you introduce unit testing in an organization and how to do code reviews of tests.

Although unit testing has become somewhat synonymous with Agile practices, such as Test-Driven Development (TDD), the book never assumes that you will be using TDD. It is valuable wether you write your tests before or after your code.

Roy Osherove clearly has a lot of experience with unit testing, and he willingly shares so we can learn from his mistakes and successes. As a long-term practitioner of TDD myself, I can vouch for most of the advice imparted by this book: It is based on established patterns and best practices that the unit testing community have arrived at through years of experimentation.

Being the anal-retentive perfectionist that I am, I would have liked to see the book adopt the Pattern Language of xUnit Test Patterns: Refactoring Test Code (Addison-Wesley Signature Series), but at least the guidance of those two books are very much in harmony, even if the terminology differs.

In summary, you can say that this book is a very readable and useful introduction to unit testing. If you are a beginner to intermediate unit test developer, you should definitely read this book - and then, as you become more advanced, you should still read xUnit Test Patterns :)
Help other customers find the most helpful reviews  
Was this review helpful to you? Yes No


 
8 of 8 people found the following review helpful:
5.0 out of 5 stars Best book on Unit Testing - Ever, July 5, 2009
By BOO (Roanoke, VA USA) - See all my reviews
This review is from: The Art of Unit Testing: With Examples in .Net (Paperback)
This book is not an evolutionary book to other unit testing books out there; it's revolutionary.

First of all it's not a thinly disguised book trying to sell you on TDD (as some unit testing books that I've read are), but rather it's a book that truly lives up to it's title - the art of unit testing.

Secondly, the discussions and examples in the book take real world considerations in mind. These are not simple contrite 'Hello World' tests, or 'perfect world' sets of code. It discuss' writing tests on both green and brown field applications.

A third aspect that is truly helpful is that there is an entire section for dealing with implementing unit testing in an organization and the politics you might face while doing so. Because the book isn't biased towards a particular software discipline, tool, or language, but on the 'art' of unit testing, these are tips and tricks you can take with you anywhere.

If you found books like 'The Pragmatic Programmer' or 'The Inmates are Running the Asylum' getting you revved up to write better software, then this book will drive you to a whole new level of unit testing.

I've been doing unit testing for several years now, but it wasn't until after I read this book, that it no longer was a chore that I checked off my 'TODO' list.

Help other customers find the most helpful reviews  
Was this review helpful to you? Yes No


 
5 of 5 people found the following review helpful:
5.0 out of 5 stars Succinct, Pragmatic and Actionable, July 19, 2009
By R. Garibay (Phoenix, Arizona) - See all my reviews
(REAL NAME)   
This review is from: The Art of Unit Testing: With Examples in .Net (Paperback)
The Art of Unit Testing: with Examples in .NET

In short, if you want a tactical book on unit testing that distills the passion and love of an expert practitioner into a very readable yet reference-friendly text on unit testing, this is it.

If you are new to unit testing or TDD, this book will demystify the practices, tools and techniques that would otherwise take years and lots of frustration to get right.

If you are an experienced practitioner of unit testing and TDD, and are already practicing SOLID, TOOD, and BDD not just as a flavor of the week but as a way of life, this book will provide unambiguous insight into different approaches that will help you refine your existing techniques or at a minimum, validate your approach which is always valuable to any developer who has an opportunity to review his/her techniques with a seasoned master. This book will afford you that opportunity.

While the book cites excellent references for TDD and design patterns, if there is one thing that I thought was missing was a narrative- even if by way of an appendix- that ties all of the techniques covered together in an example of building the example Logger component using TDD. I understand that this book is not about TDD, but at the same time, that's like a book on scuba equipment that teaches you precisely how to pressurize your CO2 tank, keep your mask from fogging up and care and maintenance of your scuba suit not being about scuba diving.

That said, knowing Roy, it must have been painful to resist a detailed examination on TDD, but, for this book to be effective, it had to be relatively short, to the point and most of all pragmatic for it to succeed at filling the void on the topic of unit testing techniques and practices. To that end, Roy hits the mark very elegantly without being pretentious, catering to those who test first, test last or don't (yet) test at all. While I would love for everyone to pick this book up and start doing TDD today, even if you aren't yet convinced on TDD, applying these techniques to writing code that is testable, and learning how to test the right things will be an instant asset to your product, your team and your organization.
Help other customers find the most helpful reviews  
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

5.0 out of 5 stars This book introduced me to Typemock Isolator
And Typemock Isolator is the greatest thing ever. Isolate.WhenCalled(() => ProblematicMethodThatInteractsWithTheFileSystemOrInternetOrDatabase()).IgnoreCall()! Thank you Roy! Read more
Published 4 months ago by Neil

4.0 out of 5 stars Best Unit Testing Book i have read to date
Ok yes i didn't rate it at 5 stars but i think its definitely a book everyone should have on their shelf. Read more
Published 5 months ago by ncage

4.0 out of 5 stars Something for every level
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... Read more
Published 5 months ago by wiredweird

4.0 out of 5 stars Great introduction to unit testing
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. Read more
Published 6 months ago by Nelson H. Ferrari

4.0 out of 5 stars Must read for NUnit Testing
This is a good book for the intermediate developer.
For beginner to NUnit, I would recommend the Pragmatic Series.

Published 7 months ago by Steven Koh

5.0 out of 5 stars Great book to start unit testing and improve your style
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... Read more
Published 7 months ago by Alan Mendelevic

5.0 out of 5 stars The ultimate book on unit testing.
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... Read more
Published 7 months ago by Alvin Ashcraft

5.0 out of 5 stars This book ROCKS!!!
This book should be read by anyone doing Unit Testing (especially the beginner). The content is written in a clear/concise manner and the examples are very good. Read more
Published 7 months ago by S. S. Mehaffie

5.0 out of 5 stars Great book!
What more can I say? Wish I'd read this 3 or 4 years ago. A must read for developers using .NET or other modern framework.
Published 7 months ago by Stephan G. Clark

4.0 out of 5 stars Great Read
I love this book, for a intermediate unit tester, this book not only furthered my knowledge of unit testing, but it also showed me alot about rhino mocks which is taking unit... Read more
Published 7 months ago by Mark Ewing

Only search this product's reviews



Customer Discussions

This product's forum
Discussion Replies Latest Post
Must-Have Books for your shelf 2 June 2009
See all discussions...  
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
   





Look for Similar Items by Category


Look for Similar Items by Subject

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Your Recent History

 (What's this?)

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.