O'Reilly logo

Professional Test-Driven Development with C#: Developing Real World Applications with TDD by Jeff McWherter, James Bender

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

WHAT THIS BOOK COVERS

This book starts by covering the conditions that brought the software industry to the point where test-driven development could flourish. It's important to understand this history and the conditions that brought software development to its current state. Avoiding the mistakes of the past is important. But identifying these antipatterns in your current development practice is even more important.

To support your practice of test-driven development, this book also includes extensive coverage of object-oriented programming, agile methodologies, and the SOLID software design and coding principles.

Of course, this book covers the concepts inherent in and necessary to test-driven development. The first tests you will be exposed to are simple and easy to understand. You'll see how the NUnit unit-testing framework can be used to write unit tests in Visual Studio.

Later, the dependency injection pattern is introduced. You will see how this pattern is implemented and how dependency injection frameworks such as Ninject can help manage the dependencies in your application. The practice of mocking and mocking frameworks also are covered, including an introduction to the mocking framework Moq.

The basics of behavior-driven development are covered, but a deep discussion of this topic is not included. This book explains the idea behind behavior-driven development and showcases the business-driven development style of naming tests. This book also introduces the NBehave testing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required