UnitScenario<SUT, Example extends UnitExample?> class
Used to hold and test a list of UnitStep.
Constructors
-
UnitScenario.new({required String description, required List<
UnitStep< steps, SUT systemUnderTest(UnitMocks mocks)?, void setUpMocks(UnitMocks mocks)?, List<SUT, Example> >Example> examples = const [], TestGroupFunction<SUT> ? setUpEach, TestGroupFunction<SUT> ? tearDownEach, TestGroupFunction<SUT> ? setUpOnce, TestGroupFunction<SUT> ? tearDownOnce})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
test(
{String? testDescription, String? featureDescription, int? nrScenario, int? nrFeature, UnitMocks? mocks, SUT? systemUnderTest}) → void -
Runs all tests defined in this UnitScenarios
_steps
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited