WhenScenario class

Represents the Action or Trigger phase of an acceptance scenario.

Captures the specific behavior being executed during the test case.

Inheritance

Constructors

WhenScenario(StoryContext context)

Properties

asStory Story
no setterinherited
context StoryContext
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

and(StepInput step) AndScenario
Appends an additional test condition to the current setup block.
execute() → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
then(StepInput step) ThenScenario
Defines the expected outcome or postcondition of the scenario.
toString() String
A string representation of this object.
inherited
withScenario(String value) Scenario
Concludes the current scenario and begins a brand new scenario block.

Operators

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