A pattern of structuring code test cases.

  • Given/Arrange: set up the test case.
  • When/Act: call the production code.
  • Then/Assert: assert the expected outcomes.