Reconciling Viewpoints

The first thing to do is to verify that the test and the test data are correct. In this case, the customer verified that both are correct, so the problem is with the software. We need to fix the software to pass the customer tests. One thing that needs to be pointed out is the process that will be used to fix these problems. Because we do not have a failing programmer test, it is clear that the programmers have misinterpreted the requirements in some way. To make sure that the programmer tests are in sync with the customer tests, we need to have at least one failing programmer test before we modify the code.

There are several reasons why we begin with a programmer test in such a case. First of all, the customer tests are ...

Get Test-Driven Development in Microsoft® .NET 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.