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.
