3. Exemplars

Exemplars allow you to declare example execution scenarios for your methods and assert how they should respond. They can be used to both bolster the contracts of your methods and, together with the Sureassert UC Engine, enforce them in real-time (as you save your code). This section covers the basics of how to write Exemplars and the notation used – Sureassert Simple Invocation Notation (SIN).

For information on configuring method and source level stubs, and test double classes, within your Exemplars, see the Test Isolation section.

For information on performing behaviour verification from within Exemplars, see the Behaviour Verification section.


Previous Page
  |   Next Page   |   Table of Contents

Comments are closed.