We recommend the following books for guidance on unit testing:
 |
Test Driven Development: By Example
Presents an approach to writing software that emphasizes
automated testing before and during coding. Written for advanced
programmers, the book walks through two example projects--multi-currency
arithmetic and the xUnit testing framework--and provides patterns
for deciding what tests to write and how to write tests using
xUnit. The code is written in Java and Python.
(Note: This is one of the original books on Test Driven Development,
and written by Kent Beck, one of the leading proponents. Although
the code is in Java, we still strongly recommend it) |
 |
Test Driven Development in Microsoft .NET
Learn how to apply the concepts and techniques of Test-Driven
Development (TDD) to writing software for Microsoft .NET.
Two experts in agile software development teach—using
a wealth of pragmatic examples in C# and other .NET development
tools—how to use automated tests to drive lean, efficient
coding and better design. You’ll see real-world examples
of TDD-for .NET projects, including a Microsoft ADO.NET relational
database, a user interface created with Microsoft ASP.NET
and Microsoft Windows® Forms, Web services, and other
useful applications. |
 |
Pragmatic Unit Testing with NUnit
This book shows how to write tests, but more importantly,
it goes where other books fear to tread and gives you concrete
advice and examples of what to test--the common things that
go wrong in all of our programs. Discover the tricky hiding
places where bugs breed, and how to catch them using the freely
available NUnit framework (which will work in Zanebug).
It's easy to learn how to think of all the things in your
code that are likely to break. We'll show you how with helpful
mnemonics, summarized in a handy tip sheet (also available
from our website). |