addTest method
void
addTest(
- AFStateTestID id, {
- required AFStateTestID? extendTest,
- required AFStateTestDefinitionDelegate body,
- String? description,
- 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);
}