Class ExpectedOutcomes
This class contains collection of ExpectedOutcome that represent the different outcomes of invoking an operation.
public class ExpectedOutcomes
- Inheritance
-
ExpectedOutcomes
- Inherited Members
Constructors
ExpectedOutcomes(params ExpectedOutcome[])
public ExpectedOutcomes(params ExpectedOutcome[] possibleOutcomes)
Parameters
possibleOutcomesExpectedOutcome[]
Properties
PossibleOutcomes
List of possible outcomes of invoking an operation.
public IList<ExpectedOutcome> PossibleOutcomes { get; }
Property Value
Methods
Matches(object, IState)
This method matches the observed response against the list of possible outcomes, returning the next state and step function of all the results that match.
public (bool, StateProfile) Matches(object observedResponse, IState currentState)
Parameters
Returns
- (bool, StateProfile)
A tuple of (isValid, stateProfile).