Top critical review
3 people found this helpful
It is not sufficient for real application
on February 1, 2012
This book gives you a very good introduction for unit testing and the explanation is neat and easy to understand. However, after reading this book you still not able to create a real test simple because the sample given is for you to understand the unit test technique. In real application, you need more than that. I get stuck when I try to apply it with my application mainly because the first thing to fake out is always the database. I have no clue at all how to apply this technique as the entity framework is not mockable and the book doesn't mention how to do it. I can't even start my first real application test in this case. I have spent a couple of weeks to figure out how to create repository and unit of work from other books. In short, this is the book for you to know what unit testing is. You should look for TDD books such as "Professional Test Driven Development with C#" if you are serious about unit testing in .Net. The additional book which might help is "Programming Entity Framework" by Julie Lerman. They both provides a very clear guide and sample on how to create a testable database layer.