AFStateTestDefinitionContext class

A context wrapper for defining a state test.

This class is intended to provide a quick start for the most common methods in defining state tests, and to enable extensions later without changing the test definition function profile.

Inheritance

Constructors

AFStateTestDefinitionContext({required AFStateTests tests, required AFDefineTestDataContext testData})

Properties

hashCode int
The hash code for this object.
no setterinherited
log → Logger?
no setterinherited
registry AFDefineTestDataContext
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tests AFStateTests
final

Methods

addTest(AFStateTestID id, {required AFStateTestID? extendTest, required AFStateTestDefinitionDelegate body, String? description, String? disabled}) → void
Define a state test.
createStateView<TStateView extends AFFlexibleStateView>({required dynamic stateView, required AFCreateStateViewDelegate<TStateView> creator}) → TStateView
inherited
currentTime() AFTimeState
inherited
find<TResult extends Object>(dynamic testDataId) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
td<TData>(dynamic testDataId) → TData
Looks up the test data defined in your test_data.dart file for a particular test data id.
inherited
td2<TResult extends Object>(dynamic testDataId) → TResult
inherited
testData<T extends Object>(dynamic testDataId) → T
Looks up the test data defined in your test_data.dart file for a particular test data id.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited