예제 #1
0
        public void ShouldRecordInProgressEvent()
        {
            var item = new Scenario("Title");
            item.SetInProgress();

            Assert.AreEqual(ScenarioStatus.InProgress, item.Events[1].Status);
        }
예제 #2
0
        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);
        }
예제 #3
0
 void SetItemInProgress(Scenario Scenario)
 {
     Scenario.SetInProgress();
     RefreshScenarios();
 }