Simple Acceptance Test for Payroll
First we add a few employees.
|1||Jeff Languid||10 Adamant St; Laurel, MD 20707||1005.00|
|2||Kelp Holland||12B Baker St; Cottonmouth, IL 60066||2000.00|
Next we pay them.
|pay date||check number|
We make sure their paychecks are correct. The blank cells will be filled in by the PaycheckInspector[?] fixture. The cells with data in them already will be checked.
Finally we make sure that the output contained two, and only two paychecks, and that they had the right check numbers.
Then we delete the test database so that other tests won't be confused by our test data. (This table is in the .FitNesse.PayrollTests.TearDown so that it happens after every test.)
Add Child Page to AddAndPayTest