Arrange-Act-Assert (AAA) tests को स्पष्ट रूप से तीन चरणों में संरचित करने का एक पैटर्न है: Arrange (सेट अप करें), Act (क्रिया करें), Assert (परिणाम सत्यापित करें)। यह tests को पठनीय, व्यवस्थित, और समझने में आसान बनाता है।
तीन चरण
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.
