SUMMARY

This book has taught you the principles and techniques of TDD. However, there is more to TDD than what can be contained in any book. TDD is a journey, not a destination. This book can prepare you to start the journey to becoming a TDD developer, but it is up to you to make it happen.

You are the primary client of your code. The TDD approach can help you create and define interfaces to services and components that make development easy. As you write your tests, think about how you are using the method or class under test. Does it make sense? Is it intuitive? Does it require a lot of training or explanation to use properly? If you don't like the answers to these questions, consider redesigning the interface to make it better.

Do not try to boil the ocean. Large tasks with lots of moving parts can be difficult to complete. Break these larger tasks into smaller, simpler ones. Completing these smaller tasks makes the work easier. Being able to complete several small tasks quickly will help you build momentum and feel a sense of accomplishment.

Through your practice of TDD, you'll reap many benefits. Your application will have fewer defects, because your code will reflect your business requirements. As a side effect of the principles you'll employ to keep your code testable, you'll enjoy a system of better-defined classes, interfaces, and methods. Your code will represent the business's needs and requirements, creating a happy user base. Finally, your development team will enjoy ...

Get Professional Test-Driven Development with C#: Developing Real World Applications with TDD now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.