Arrange, Act, Assert is a paradigm for writing unit tests. Each test consists of three phases:

  • Arrange your test, set up any mock data, populate any test databases etc
  • Act - exercise the code under test
  • Assert - follow up by checking that the action we took did what we wanted.