After writing several related workflow tests, we see an underlying pattern. Rather than repeatedly copying a test and making small variations, it pays to clarify the essential elements of the test. We end up collapsing a large number of workflow tests into a few tables of calculation tests. We do this by cutting to the essential nature of the underlying business rules. As we'll see, it's not necessarily obvious from the start where we'll end up. Programmers The fixture code for the tests in this chapter is given in Chapter 35. |