When writing unit-tests, always follow the three-A’s: Arrange, Act, Assert. Every test divides into three distinct phases, where each phase has a well-defined role:
Arrange: set up the test-case, including any inputs, test doubles, and expectations.
Act: perform the one action under test.
Assert: check the outcome of the action, including any return values and expected side effects.