The bitterness of poor quality remains long after the sweetness of meeting the schedule has been forgotten.
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 ...