public void Should_be_able_to_add_test_results() { var result = new TestReport("test"); result.AddResult(TestCaseResultFactory.CreatePassed()); result.AddResult(TestCaseResultFactory.CreateFailed()); result.TotalResults.ShouldEqual(2); }
public void when_only_passing_tests_are_added_the_FinalResult_should_be_successful() { var result = new TestReport("test"); result .AddResult(TestCaseResultFactory.CreatePassed()) .AddResult(TestCaseResultFactory.CreatePassed()); result.FinalResult.ShouldEqual(RunCompletedState.Successful); }
protected override void Before_all_tests() { base.Before_all_tests(); _result = new TestReport("test"); _result .AddResult(TestCaseResultFactory.CreateIgnored()) .AddResult(TestCaseResultFactory.CreateFailed()) .AddResult(TestCaseResultFactory.CreateFailed()) .AddResult(TestCaseResultFactory.CreatePassed()) .AddResult(TestCaseResultFactory.CreatePassed()) .AddResult(TestCaseResultFactory.CreatePassed()) ; }