Goal: Learn the basic patterns for designing tests.
If you have been testing software, you might know that each test has a similar overall structure. Before you can perform the action under test, for example, the posting of a document, first, the data needs to be set up. Then, the action will be exercised. And finally, the result of the action has to be verified. In some cases, a fourth phase applies, a so-called teardown, which is used to revert the system under test to its previous state.
The four phases of a test case design pattern are listed as follows:
- Set up
- Exercise
- Verify
- Teardown
For a short and clear description of the four-phase design pattern, please refer to the following link:
http://robots.thoughtbot.com/four-phase-test
http://robots.thoughtbot.com/four-phase-test
This design pattern was typically the pattern used by Microsoft in the early years of C/SIDE test coding...