About This Title

Pages: 176
Published: August 2007
ISBN: 9780977616671
Edition: 2
In Print

Skill Level Meter

Pragmatic Unit Testing in C# with NUnit (2nd edition)

by Andy Hunt and Dave Thomas with Matt Hargett

Pragmatic programmers use feedback to drive their development and personal processes. The most valuable feedback you can get while coding comes from unit testing. Now in it’s second edition, Pragmatic Unit Testing in C# with NUnit, 2nd Ed. will show you how to do software unit testing, of course, but more importantly will show you what to test.

eBook Formats:

  • PDF for desktop/tablets

Get all eBook formats here for $20.00

Add to Cart


Paperback Formats:

Please support indie bookstores!
Find a U.S. bookstore. Find an EU bookstore.


New for the Second Edition:

  • Updated for NUnit 2.4 (C#, .NET 2.0, Visual Studio 2005, and Mono)
  • More NUnit assert methods
  • New String and Collection assertion support
  • Better support for multiple-platform development (Mono and .NET)
  • Higher-level setup and teardown fixtures
  • …and more!

Without good tests in place, coding can become a frustrating game of “whack-a-mole.” That’s the carnival game where the player strikes at a mechanical mole; it retreats and another mole pops up on the opposite side of the field. The moles pop up and down so fast that you end up flailing your mallet helplessly as the moles continue to pop up where you least expect them. You need automated testing and regression testing to keep the moles from popping up.

You don’t test a bridge by driving a single car over it right down the middle lane on a clear, calm day. Yet many programmers approach testing that same way—one pass right down the middle and they call it “tested.” Pragmatic programmers can do better than that!

With this book, you will:

  • Write better code, faster
  • Discover the best hiding places where C# bugs breed
  • Learn how to think of all the things that could go wrong
  • Test pieces of code without using the whole .NET project
  • Use NUnit to simplify your C# test code
  • Test effectively with the whole team

Real software unit testing will make your life easier. It will make your software design and architecture better and drastically reduce the amount of time you spend debugging you .NET code.

What You Need

Resources

Releases:

  • P2.0 2010/01/01
  • P1.1 2007/10/10
  • P1.0 2007/09/09
  • B2.0 2007/05/05

Contents & Extracts

I've read all the .NET unit testing books out there, and this is definitely the best. I would recommend it for both professional testers and developers.

Reid Maker, Software Design Engineer, Microsoft

- Table of Contents - Introduction - Using Mock Objects (excerpt) - Summary Card

Author

Andy Hunt and Dave Thomas are coauthors of the original Pragmatic Programmer, several books since, and founded the Pragmatic Bookshelf.

eBook Formats:

  • PDF for desktop/tablets

Get all eBook formats here for $20.00

Add to Cart


Paperback Formats:

Please support indie bookstores!
Find a U.S. bookstore. Find an EU bookstore.

Related Titles:

Skill Level Meter

About This Title

Pages: 176
Published: August 2007
ISBN: 9780977616671
Edition: 2
In Print