Class StepInfo
- Namespace
- TinyBDD
- Assembly
- TinyBDD.dll
Metadata about a step that is about to execute or has executed.
public record StepInfo : IEquatable<StepInfo>
- Inheritance
-
StepInfo
- Implements
- Inherited Members
Remarks
This class provides information about a step's phase, connective keyword, and title to observers before and after execution. It complements StepResult which captures timing and error information after execution.
Constructors
StepInfo(string, string, StepPhase, StepWord)
Metadata about a step that is about to execute or has executed.
public StepInfo(string Kind, string Title, StepPhase Phase, StepWord Word)
Parameters
KindstringThe display keyword for the step (e.g., "Given", "When", "Then", "And", "But").
TitlestringThe human-readable step title.
PhaseStepPhaseThe BDD phase this step belongs to (Given, When, or Then).
WordStepWordThe connective keyword used (Primary, And, or But).
Remarks
This class provides information about a step's phase, connective keyword, and title to observers before and after execution. It complements StepResult which captures timing and error information after execution.
- See Also
Properties
Kind
The display keyword for the step (e.g., "Given", "When", "Then", "And", "But").
public string Kind { get; init; }
Property Value
Phase
The BDD phase this step belongs to (Given, When, or Then).
public StepPhase Phase { get; init; }
Property Value
Title
The human-readable step title.
public string Title { get; init; }
Property Value
Word
The connective keyword used (Primary, And, or But).
public StepWord Word { get; init; }