
A commonly applied structure for test cases has
- Setup: Arrange the state of the unit under test in order to run the test.
- Execution: Act on the unit under test so that it performs the expected behavior and receive output if needed.
- Validation: Assert/Verify the outcome of execution.
- Cleanup: Restore unit under test to a pre-test state.