Start reading Professional Test Driven Development with C# on the free Kindle Reading App or on your Kindle in under a minute. Don't have a Kindle? Get your Kindle here.
Programming Books C Java PHP Python Learn more Browse Programming Books

Deliver to your Kindle or other device

Enter a promotion code
or gift card

Try it free

Sample the beginning of this book for free

Deliver to your Kindle or other device

Anybody can read Kindle books—even without a Kindle device—with the FREE Kindle app for smartphones, tablets and computers.
Sorry, this item is not available in
Image not available for
Image not available

To view this video download Flash Player


Professional Test Driven Development with C#: Developing Real World Applications with TDD [Kindle Edition]

James Bender , Jeff McWherter
4.6 out of 5 stars  See all reviews (14 customer reviews)

Digital List Price: $44.99 What's this?
Print List Price: $44.99
Kindle Price: $25.99
You Save: $19.00 (42%)


Amazon Price New from Used from
Kindle Edition $25.99  
Paperback $31.65  
Shop the new
New! Introducing the, a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now

Book Description

Hands-on guidance to creating great test-driven development practice

Test-driven development (TDD) practice helps developers recognize a well-designed application, and encourages writing a test before writing the functionality that needs to be implemented. This hands-on guide provides invaluable insight for creating successful test-driven development processes. With source code and examples featured in both C# and .NET, the book walks you through the TDD methodology and shows how it is applied to a real-world application. You’ll witness the application built from scratch and details each step that is involved in the development, as well as any problems that were encountered and the solutions that were applied.

  • Clarifies the motivation behind test-driven development (TDD), what it is, and how it works
  • Reviews the various steps involved in developing an application and the testing that is involved prior to implementing the functionality
  • Discusses unit testing and refactoring

Professional Test-Driven Development with C# shows you how to create great TDD processes right away.

Editorial Reviews

From the Back Cover

Start working with test driven development processes to build better applications

If you want to write robust software that is simple to implement and maintain, you need to use Test Driven Development (TDD). This hands-on guide shows you how, providing invaluable insight for creating effective TDD processes. With the help of source code and examples featured in C#, the authors walk you through the TDD methodology and show you how to apply it to a real-world application. You'll explore the application as it's built from scratch and follow each step involved in development, including problems that arise and the solutions to apply. Within no time, you'll be designing your own successful TDD processes.

Professional Test Driven Development with C#:

  • Describes common software problems and provides refactoring practices that resolve them

  • Shows patterns that can be used to test WPF and Silverlight applications

  • Helps you ensure that when a defect is fixed it stays fixed without causing unexpected side effects

  • Shows how to structure your MVC application for testability

  • Shares the easy steps that can be taken to test WCF services

  • Explains how to run integration tests to ensure that everything works as planned

  • Uncovers best practices for writing good tests that are readable and maintainable

Wrox Professional guides are planned and written by working programmers to meet the real-world needs of programmers, developers, and IT professionals. Focused and relevant, they address the issues technology professionals face every day. They provide examples, practical solutions, and expert education in new technologies, all designed to help programmers do a better job.

Programmer Forums
Join our Programmer to Programmer forums to ask and answer programming questions about this book, join discussions on the hottest topics in the industry, and connect with fellow programmers from around the world.

Code Downloads
Take advantage of free code samples from this book, as well as code samples from hundreds of other books, all ready to use.

Read More
Find articles, ebooks, sample chapters, and tables of contents for hundreds of books, and more reference resources on programming topics that matter to you.

About the Author

James Bender is Vice President of Technology for Improving Enterprises. He is a Microsoft MVP, working on everything from small, single-user applications to Enterprise-scale, multi-user systems.

Jeff McWherter is a Partner and Director of Development at Gravity Works Design and Development. In 2010 Jeff was awarded with the Microsoft MVP for the third consecutive year.

Product Details

  • File Size: 4622 KB
  • Print Length: 360 pages
  • Publisher: Wrox; 1 edition (May 9, 2011)
  • Sold by: Amazon Digital Services, Inc.
  • Language: English
  • ASIN: B004X75OGG
  • Text-to-Speech: Enabled
  • X-Ray:
  • Lending: Enabled
  • Amazon Best Sellers Rank: #230,309 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?

Customer Reviews

4.6 out of 5 stars
4.6 out of 5 stars
Most Helpful Customer Reviews
16 of 18 people found the following review helpful
5.0 out of 5 stars Great book for beginner to mid level Developers June 30, 2011
By Phil
This book may not be helpful for Architect and other highly experienced Developers. However, for others, this books is great. It basically teaches you how to be a good developer and write good code. Its text is clear, concise and practical to the tooth. You see how to shows you step-by-step on how to program the right way and does a great job at it.

As regards to the content, this book shows you how to use Test driven development in a real applications as opposed to showing you just theory or just lingering on principles. It also covers supporting topics like mocks and Object oriented development principles. It is one of the best development books I have read and I highly recommend it. I hope the authors comes out with more books.
Was this review helpful to you?
4 of 4 people found the following review helpful
Format:Kindle Edition|Verified Purchase
This is the kind of book that pays by itself on the first few pages. It's very well written and easy to follow. The Authors really knows how to approach the subject on a step-by-step basis. Highly recommended if you really want to deep dive into Test-Driven-Development, but the readers should be aware that some previous knowledge on C# Development and Design Patterns are required to really enjoy the book, otherwise you will miss most of the important concepts.
Comment | 
Was this review helpful to you?
7 of 9 people found the following review helpful
5.0 out of 5 stars Test before you develop November 5, 2011
I would like to think that I do test driven development, but this book puts a twist on my idea of the subject. While my method is more" test as you go", this book defines it more like test before you develop. It's a concept that those like myself are not use to. In other words, the book helps you write the code to call the methods you need to get your results before you actually write those methods. It helps you keep your mind focused on the goal of your code without getting side tracked. The book is also chopped full of coding best practices that will help you as you better yourself as a programmer. I know we may not always agree with each and every one, but they are helpful to keep in the back of your mind.
Comment | 
Was this review helpful to you?
4 of 5 people found the following review helpful
5.0 out of 5 stars My vote of 6 ( If I could ) September 19, 2012
Before I read this book I did not know the benefits of TDD and how to execute it properly and it sounded to me like the next agile-scrum-XP hype. I am happy that I was not that sloppy to miss TDD and I am happy that I started with this book. These guys really have a sense for teaching. But why you may ask?
The book starts at very very slow pace - for a novice - and the examples looked to me a little bloated, but afterwards I got it right and I do not think they are anymore. The firsts chapter, which is an elaboration on the benefits of TDD is thorough and after reading it every developer should be convinced to use TDD in his developing process. But then the question is "How to do it properly rather then sloppy?". The answer comes with the introduction of the SOLID principles and refactoring in a way that they are very easy to remember and to use in practice which I think are in the core of TDD - "Red, Green, Refactor". Then comes Dependency Injection with ninject which was introduced very brightly for the novice. The next chapters go in faster pace but with the knowledge from the previous the material is easy comprehended.
The examples are near-real, very well thought and useful. This books combines in itself knowledge from a broad spectrum and makes really good foundation for any further study of Refactoring, DI, OOP design and Unit testing. The book make you see where is right place and the right time for every step - a really nice flow.
I rarely find such a useful book. I will say that it has very high text-to-read*quality-of-material/money-to-buy ratio. I recommend this book for novice programmers and for experienced which wants to start TDD the right way. It will be best if novice programmers are thought TDD in the rails of SCRUM from the start the way this book teaches.
Read more ›
Comment | 
Was this review helpful to you?
1 of 1 people found the following review helpful
4.0 out of 5 stars Taught Exactly What I Was Looking For September 15, 2013
By M. Yu
Format:Kindle Edition|Verified Purchase
Overall the book was exactly what I wanted. It was exactly what I was looking for. A book that took you through exercises while explaining the the thought process behind each step. The only issues I ran in to was using the newer 3rd party Frameworks that the book talks about. This is only due to version differences and changes since the book was written.

Some could argue that I learned to work with those 3rd party framework better than if I just followed the book and I think I agree with that. However it can be frustrating if you're not a very experienced programmer.
Was this review helpful to you?
1 of 1 people found the following review helpful
5.0 out of 5 stars there's always something to learn May 8, 2012
Format:Kindle Edition|Verified Purchase
I took something specific for the .net platform (and C# as a language) not just to get a faster understanding of how TDD can technically work...but also because there's always something to learn also in things you've been using for years!
Great book indeed.
Comment | 
Was this review helpful to you?
4.0 out of 5 stars More about TDD then C# June 23, 2014
By Vinay
Format:Kindle Edition|Verified Purchase
I am new to C#, so I bought this book based on the ratings, so far I am finding pages after pages of theory and benefits of TDD, I guess I did not review the reviews properly.
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
2.0 out of 5 stars Too focussed on mocking resources and supporting tools.
I think unit tests are a great idea some of the time. This book reduced my interest in unit tests. It is focused on the tools that allow testing code with mocked resources... Read more
Published 1 month ago by David Lynch
5.0 out of 5 stars Skeptical
I was skeptical for a long time about TDD, I'm still ramping up using it, but when I do use it I feel much more confident about my code. Thanks for a great book.
Published 6 months ago by Scott
5.0 out of 5 stars Very good this book!
This book is very good at learning TDD with C #! The contents are explanatory and helps in cases of day-to-day! I recommend!
Published 8 months ago by Charles Mendes
5.0 out of 5 stars Amazing book for developers
I LOVE THIS BOOK. Very concise and educational. Introduces very accurate the TDD, and also introduces another great principles, like SOLID, DRY.
Published 9 months ago by Kellerman Rivero Suarez
5.0 out of 5 stars Excellent Content
Perfect range of subjects for an enterprise level .Net Developer. Covers the variety required to truly overview and instruct on the topic of TDD in .NET with C#.
Published 14 months ago by bookloveralways
5.0 out of 5 stars Everything you need for testing applications
This book cover all you need to make test in your application and to make it tastable.
Everything is covered unit test(with nUnit and Visual Studio Test) integration... Read more
Published 16 months ago by Elio Ferrero
5.0 out of 5 stars Really good book
I really good book for us devs that unit testing but we'd like to start using TDD as a develop methodology
Published on April 29, 2012 by Luis Rojas Mendez
Search Customer Reviews
Search these reviews only

More About the Authors

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

What Other Items Do Customers Buy After Viewing This Item?


There are no discussions about this product yet.
Be the first to discuss this product with the community.
Start a new discussion
First post:
Prompts for sign-in

Look for Similar Items by Category