Table of Contents

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

Kind string

The display keyword for the step (e.g., "Given", "When", "Then", "And", "But").

Title string

The human-readable step title.

Phase StepPhase

The BDD phase this step belongs to (Given, When, or Then).

Word StepWord

The 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

string

Phase

The BDD phase this step belongs to (Given, When, or Then).

public StepPhase Phase { get; init; }

Property Value

StepPhase

Title

The human-readable step title.

public string Title { get; init; }

Property Value

string

Word

The connective keyword used (Primary, And, or But).

public StepWord Word { get; init; }

Property Value

StepWord

See Also