Arrange-Act-Assert (AAA) is a pattern for structuring tests clearly into three phases: Arrange (set up), Act (perform the action), Assert (verify the result). It makes tests readable, organized, and easy to understand.
An trí chéim
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.
