Arrange-Act-Assert (AAA) shine tsari don tsarawa tests a hanya mai kyau zuwa hannaye uku: Arrange (shirya), Act (aiwata aiki), Assert (tabbatar da sakamakon). Yana sa tests su zama mai kyau gida, tsari, kuma sauƙa a fahimta.
Hannaye uku
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.
