示例#1
0
 public void TestCanAccessTestState_IgnoredInSetUp()
 {
     TestStateRecordingFixture fixture = new TestStateRecordingFixture();
     fixture.setUpIgnore = true;
     TestBuilder.RunTestFixture(fixture);
     Assert.That(fixture.stateList, Is.EqualTo("Inconclusive=>=>Ignored"));
     Assert.That(fixture.statusList, Is.EqualTo("Inconclusive=>=>Skipped"));
 }
示例#2
0
 public void TestCanAccessTestState_PassingTest()
 {
     TestStateRecordingFixture fixture = new TestStateRecordingFixture();
     TestBuilder.RunTestFixture(fixture);
     Assert.That(fixture.stateList, Is.EqualTo("Inconclusive=>Inconclusive=>Success"));
     Assert.That(fixture.statusList, Is.EqualTo("Inconclusive=>Inconclusive=>Passed"));
 }
示例#3
0
 public void TestCanAccessTestState_FailingTest()
 {
     TestStateRecordingFixture fixture = new TestStateRecordingFixture();
     fixture.testFailure = true;
     TestBuilder.RunTestFixture(fixture);
     Assert.That(fixture.stateList, Is.EqualTo("Inconclusive=>Inconclusive=>Failure"));
     Assert.That(fixture.statusList, Is.EqualTo("Inconclusive=>Inconclusive=>Failed"));
 }