/// <summary> /// Adds a then step /// </summary> /// <param name="thenStep">The then step</param> /// <param name="description">Description of the assertion</param> public IThenDefinition Then( ThenHandler thenStep, string description) { thenStep.NotNull(nameof(thenStep)); _thenSteps.Add(new ThenStep(thenStep, description)); return this; }
/// <summary> /// Adds another then step /// </summary> /// <param name="thenStep">The then step</param> /// <param name="description">Description of the assertion</param> public IThenDefinition And( ThenHandler thenStep, string description) { Then(thenStep, description); return this; }
public ThenStep( ThenHandler predicate, string description) { predicate.NotNull(nameof(predicate)); description.NotNullOrEmpty(nameof(description)); _predicate = predicate; Description = description; }