GivenScenario class

Represents the Precondition phase of an acceptance scenario.

Establishes the starting state for a specific test case.

Inheritance

Constructors

GivenScenario(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
when(StepInput step) WhenScenario
Defines the key action or event that triggers the scenario behavior.
withScenario(String value) Scenario
Concludes the current scenario and begins a brand new scenario block.

Operators

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