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.
