public void ShouldRecordInProgressEvent() { var item = new Scenario("Title"); item.SetInProgress(); Assert.AreEqual(ScenarioStatus.InProgress, item.Events[1].Status); }
public void ShouldRecordAllEvents() { var item = new Scenario("Title"); item.SetInProgress(); item.SetCompleted(); Assert.AreEqual(ScenarioStatus.Created, item.Events[0].Status); Assert.AreEqual(ScenarioStatus.InProgress, item.Events[1].Status); Assert.AreEqual(ScenarioStatus.Completed, item.Events[2].Status); }
void SetItemInProgress(Scenario Scenario) { Scenario.SetInProgress(); RefreshScenarios(); }