Arrange-Act-Assert (AAA) ni muundo wa kuandaa majaribio kwa wazi katika awamu tatu: Arrange (andaa), Act (tekeleza kitendo), Assert (thibitisha matokeo). Inafanya majaribio kuwa na usomekaji nzuri, iliyoandaliwa vizuri, na rahisi kuelewa.
Awamu tatu
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.
