public void StepFinishedEventAfterStepFailureEventTest()
 {
     _lifecycle = Allure.DefaultLifecycle;
     var tsevt = new TestSuiteStartedEvent(SuiteUid, "suite42");
     _lifecycle.Fire(tsevt);
     var tcsevt = new TestCaseStartedEvent(SuiteUid, "test name");
     _lifecycle.Fire(tcsevt);
     var ssevt = new StepStartedEvent("step1");
     _lifecycle.Fire(ssevt);
     var sfevt = new StepFailureEvent
     {
         Throwable = new NullReferenceException("other exception")
     };
     _lifecycle.Fire(sfevt);
     var evt = new StepFinishedEvent();
     _lifecycle.Fire(evt);
     Assert.AreEqual(1, _lifecycle.StepStorage.Get().Last.Value.steps.Length);
     Assert.AreEqual("step1", _lifecycle.StepStorage.Get().Last.Value.steps[0].name);
     Assert.AreEqual(status.broken, _lifecycle.StepStorage.Get().Last.Value.steps[0].status);
     Assert.AreNotEqual(0, _lifecycle.StepStorage.Get().Last.Value.steps[0].stop);
 }
 public void StepFinishedEventTest()
 {
     _lifecycle = Allure.DefaultLifecycle;
     var tsevt = new TestSuiteStartedEvent(SuiteUid, "suite42");
     _lifecycle.Fire(tsevt);
     var tcsevt = new TestCaseStartedEvent(SuiteUid, "test name");
     _lifecycle.Fire(tcsevt);
     var ssevt = new StepStartedEvent("step1");
     _lifecycle.Fire(ssevt);
     var evt = new StepFinishedEvent();
     _lifecycle.Fire(evt);
     Assert.AreEqual(1, _lifecycle.StepStorage.Get().Last.Value.steps.Length);
     Assert.AreEqual("step1", _lifecycle.StepStorage.Get().Last.Value.steps[0].name);
     Assert.AreEqual(status.passed, _lifecycle.StepStorage.Get().Last.Value.steps[0].status);
     Assert.AreNotEqual(0, _lifecycle.StepStorage.Get().Last.Value.steps[0].stop);
 }