Arrange-Act-Assert (AAA) é um padrão para estruturar testes de forma clara em três fases: Arrange (preparar), Act (executar a ação), Assert (verificar o resultado). Isso torna os testes legíveis, organizados e fáceis de entender.
As três fases
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.
