public void It_should_delegate_NotifyScenarioFinished_should_print_notification_and_update_stats() { var scenario = new TestResults.TestScenarioResult(); _subject.NotifyScenarioFinished(scenario); foreach (var notifier in _notifiers) { Mock.Get(notifier).Verify(n => n.NotifyScenarioFinished(scenario)); } }
public void It_should_return_all_steps_for_scenario_in_order() { var scenario = new TestResults.TestScenarioResult { Steps = new[] { new TestResults.TestStepResult { StatusDetails = "a" }, new TestResults.TestStepResult { StatusDetails = "b", SubSteps = new [] { new TestResults.TestStepResult { StatusDetails = "b1" } } }, new TestResults.TestStepResult { StatusDetails = "c", SubSteps = new[] { new TestResults.TestStepResult { StatusDetails = "c1", SubSteps = new[] { new TestResults.TestStepResult { StatusDetails = "c11" } } }, new TestResults.TestStepResult { StatusDetails = "c2", SubSteps = new[] { new TestResults.TestStepResult { StatusDetails = "c21" } } } } } } }; Assert.AreEqual(new[] { "a", "b", "b1", "c", "c1", "c11", "c2", "c21" }, scenario.GetAllSteps().Select(x => x.StatusDetails).ToArray()); }