Описание тега arrange-act-assert
A pattern for structuring a unit test.
This pattern divides each unit test into three sections, separated by blank lines:
- Arrange all necessary preconditions and inputs.
- Act on the object or method under test.
- Assert that the expected results have occurred.
Organizing tests in this way makes them easier to read and understand.
The pattern was observed and named by Bill Wake in 2001.
"Arrange-Act-Assert syntax" or "AAA syntax" also refers to a Rhino Mocks syntax which supports this pattern.