public void FailingThenDoesNotStopThePipelineWithFluentAPI() { var testRun = new ScenarioWithFailingThen() .Given(x => x.PassingGiven()) .When(x => x.PassingWhen()) .Then(x => x.FailingThen()) .And(x => x.PassingAndThen()) .LazyBDDfy(); Verify(testRun); }
public void FailingThenStopsThePipelineWithReflectiveAPI() { Configurator.Processors.TestRunner.StopExecutionOnFailingThen = true; try { var testRun = new ScenarioWithFailingThen().LazyBDDfy(); Verify(testRun); } finally { Configurator.Processors.TestRunner.StopExecutionOnFailingThen = false; } }
public void FailingThenStopsThePipelineWithFluentAPI() { Configurator.Processors.TestRunner.StopExecutionOnFailingThen = true; try { var testRun = new ScenarioWithFailingThen() .Given(x => x.PassingGiven()) .When(x => x.PassingWhen()) .Then(x => x.FailingThen()) .And(x => x.PassingAndThen()) .LazyBDDfy(); Verify(testRun); } finally { Configurator.Processors.TestRunner.StopExecutionOnFailingThen = false; } }
public void FailingThenDoesNotStopThePipelineWithReflectiveAPI() { var testRun = new ScenarioWithFailingThen().LazyBDDfy(); Verify(testRun); }