protected void SimulateFailedScenario() { var failureScenario = new Scenario(); Listener.Handle(new ScenarioStarting { Scenario = failureScenario }); Listener.Handle(new LineFailed { SuccessPart = "success part", FailedPart = "failed part", ExceptionInfo = "failure message" }); }
public void SetupContext() { Listener = new TestGatheringResultListener(); SimulateRunner(); Listener.Handle(new SessionFinished()); }