addTest method

void addTest(
  1. AFStateTestID id, {
  2. required AFStateTestID? extendTest,
  3. required AFStateTestDefinitionDelegate body,
  4. String? description,
  5. String? disabled,
})

Define a state test.

The state test should define one or more query results, and then execute a query. Note that state tests are usually built in a kind of tree, with a cumulative state being build from a series of query/response cycles across multiple tests.

Implementation

void addTest(AFStateTestID id, {
  required AFStateTestID? extendTest,
  required AFStateTestDefinitionDelegate body,
  String? description,
  String? disabled,
}) {
  tests.addTest(
    id: id,
    extendTest: extendTest,
    definitions: this,
    body: body,
    description: description,
    disabled: disabled);
}