public StringStep(string step, string source, int sourceLine) { Step = step; Source = source; SourceLine = sourceLine; StepResult = new StepResult(this, new Passed()); }
public override void AddActionStepResult(StepResult stepResult) { MergeResult(stepResult); var step = StepResults.FirstOrDefault(s => s.StringStep == stepResult.StringStep); if (step == null) base.AddActionStepResult(stepResult); else MergeStepResult(stepResult, step); }
public void PendNotImplemented(string pendReason) { StepResult = new StepResult(this, new PendingNotImplemented(pendReason)); }
public void Pend(string reason) { StepResult = new StepResult(this, new Pending(reason)); }
public void PendNotImplemented(string pendReason) { StepResult = new StepResult(this, new PendingNotImplemented(pendReason)); }
public void PendBecauseOfPreviousFailedStep() { StepResult = new StepResult(this, new Skipped("Previous step has failed")); }
public void Pend(string reason) { StepResult = new StepResult(this, new Pending(reason)); }
public BackgroundStepResult(string backgroundTitle, StepResult result) : base(result.StringStep, result.Result) { BackgroundTitle = backgroundTitle; }
private static void MergeStepResult(StepResult stepResult, StepResult steptoMergeInto) { steptoMergeInto.MergeResult(stepResult.Result); }
public virtual void AddActionStepResult(StepResult actionStepResult) { _actionStepResults.Add(actionStepResult); MergeResult(actionStepResult); }
protected void MergeResult(StepResult actionStepResult) { var newResult = actionStepResult.Result; if (newResult is Failed) { _result = newResult; Fail(((Failed)newResult).Exception); } if (newResult is Pending && (_result is Failed == false)) { _result = newResult; Pend(newResult.Message); } }
public virtual void AddActionStepResult(StepResult actionStepResult) { _actionStepResults.Add(actionStepResult); MergeResult(actionStepResult); }
public BackgroundStepResult(string backgroundTitle, StepResult result) : base(result.StringStep, result.Result) { BackgroundTitle = backgroundTitle; }
public void PendBecauseOfPreviousFailedStep() { StepResult = new StepResult(this, new Skipped("Previous step has failed")); }
public void Fail(Exception exception) { StepResult = new StepResult(this, new Failed(exception)); }
public void Fail(Exception exception) { StepResult = new StepResult(this, new Failed(exception)); }
private static void MergeStepResult(StepResult stepResult, StepResult steptoMergeInto) { steptoMergeInto.MergeResult(stepResult.Result); }