background

Telerik JustMock

Utilize Arrange, Act, Assert (AAA) Pattern

  • Part of the fastest, most flexible and complete mocking tool for crafting unit tests.
  • Our award-winning support team is available to assist you with any issues.
r2-2018-short-banner
  • As Simple as AAA

    This simple pattern, Arrange, Act, Assert (AAA) makes it easy to quickly and intuitively mock objects in unit tests.

    • Arrange: Initializes objects, creates mocks with arguments that are passed to the method under test and adds expectations.
    • Act: Invokes the method or property under test with the arranged parameters.
    • Assert: Verifies that the action of the method under test behaves as expected.

    With AAA, there is always a single starting point and options are contextually valid. The AAA pattern helps you keep your unit tests well structured, clean and readable. This pattern stays the same, regardless of what you are mocking.

    ArrangeActAssert (AAA)
Next Steps