17. Unit Testing and TDD

The bitterness of poor quality remains long after the sweetness of meeting the schedule has been forgotten.

Anonymous

This chapter provides you with an overview of unit testing and the concepts behind test-driven development (TDD). In the previous chapter we started looking at what it takes to begin moving away from the world of simple demonstration applications and create production-ready, high-quality, complex applications.

In this chapter we’ll take the next step. Now that we’ve started writing code in a way that separates concerns, we’re going to take it one step further and write code that is testable. As you’ll see throughout this chapter, we’ll do this by writing unit tests and exploring TDD concepts. You’ll see ...

Get Windows Phone 7 for iPhone Developers 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.