Information Technology Reference
In-Depth Information
To see what happens when a build fails, open the MathMachine.m file and change
self.sumAB = inA + inB;
to
self.sumAB = inA - inB;
Clearly, this won't add two numbers correctly. Build the test again, and you should see the output shown in Fig-
ure 17.11. The test case for the sum operation reports that the sum is incorrect. The error message uses the text
and parameters you added to the test code.
FIGURE 17.11
This time the test failed. The unit testing code generated an error message to tell you which test raised an error.
Search WWH ::




Custom Search