public void OnScenarioEnd() { lock (Lock) { _engine.OnScenarioEnd(); } }
public void OnScenarioEnd() { _engine.OnScenarioEnd(); var te = ScenarioContext.Current?.TestError; _currentTestRun.Output = OutputHelper.GetOutput(); _currentTestRun.Result = te == null ? "Passed" : (te is AssertionException ? "Failed" : "Error"); _currentTestRun.TestMessage = te?.Message ?? ""; _currentTestRun.TestStackTrace = te?.StackTrace ?? ""; _reporter.TestFinished(_currentTestRun); OutputHelper.Flush(); }