Arrange-Act-Assert (AAA) to wzorzec do strukturyzowania testów na trzy jasne fazy: Arrange (przygotowanie), Act (wykonanie akcji), Assert (weryfikacja wyniku). Czyni testy czytelnym, zorganizowanymi i łatwymi do zrozumienia.
Trzy fazy
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.
