http://www.amazon.com/Test-Driven-Development-Microsoft-NET-Professional/dp/0735619484
The title says it all, this is
a book about TDD in .NET Development. I advise you to read this book and Test Driven Development: By Example (Addison-Wesley Signature
Series) by Kent Beck. Souce code snippets are in C# and the
reference is .NET Development Framework v.1.1.This book is a great reference for
TDD in .NET Development and there are a lot of examples, all examples are
tested with NUnit.
It begins with a simple
example about Stack class. Here the authors illustrate the 2 rules of TDD clearly in details:
1.Never write a single
line of code unless you have a failing automated test
2.Eliminate duplication
The authors talk about
refactoring and they refer to Beck and Fowler (Refactoring: Improving the
Design of Existing Code).
In the next chapters you can find more
interesting examples about ADO.NET and ASP.NET, particularly
regarding Datasets and WebServices.
The most interesting part
of the book from my point of view is about "Customer Tests". There are some
examples with FIT that show how to create
customer functional tests.If you are lucky (I am not...:-((( ) you
can try this technique with your customer IT department (or by yourself...:-)) ) and create complete functional tests for control your
application execution flow.
Last part concerns about
Transactions testing, refactoring Service Layer and an example of
TDD with a Web GUI. All code snippets are really useful and you can
understand how to create more efficient software in practice.
Pro:If you want to develop
with with support of TDD in MS .NET this is the right resource, really good written and
code snippets are from some real contexts. This book should be in your collection...
Contro:This book is based
on .NET Development 1.1 and some pieces of information about ADO.NET, ASP.NET and
Framework are obsolete for .NET Development 2.0, but it is not so important
because the aim of the book is learnig TDD. I think that if you can
apply for informations or better read the
books of Beck and Fowler (I didnt again with Refactoring...:-(( ) which are cited by the authors so you will
appreciate more this work.The Beck book's is the best-seller about TDD
so if you can read it you will find the real book about TDD.