Table of Contents

Enum PerformancePhase

Namespace
CSF.Screenplay.Actors
Assembly
CSF.Screenplay.Abstractions.dll

Enumerates the phases of a performance

public enum PerformancePhase

Fields

Given = 1

The 'Given' phase of a performance is for set-up and fulfilling preconditions

Then = 3

The 'Then' phase of a performance is where the results of the When phase are as expected; is it a pass or a fail?

Unspecified = 0

Indicates that no phase has been specified

When = 2

The 'When' phase of a performance describes the activity which is under test

Remarks

It is common for a IPerformance to occur in phases. This is especially true when Screenplay is being used as a testing tool. This type enumerates the possible phases.

If phases are irrelevant to your usage of Screenplay then feel free to use Unspecified, which is the default phase when no phase has been specified.