Arrange-Act-Assert (AAA) — это паттерн для структурирования тестов, явно разделённый на три фазы: Arrange (подготовка), Act (выполнение действия), Assert (проверка результата). Он делает тесты читаемыми, организованными и лёгкими для понимания.
Три фазы
ARRANGE → set up the test: create objects, prepare inputs, configure mocks, set state
ACT → perform the ACTION being tested (call the function/method under test)
ASSERT → verify the OUTCOME: check the result/behavior matches what's expected
→ A clear three-part structure for every test.
