Problem Statement
What does the AAA in unit-testing best practice stand for?
Explanation
The Arrange-Act-Assert pattern describes the structure of a unit test: Arrange the preconditions and inputs, Act by executing the behaviour under test, Assert the expected outcome. This structure helps clarity and consistency in tests.
Practice Sets
This question appears in the following practice sets: