public override void Specify() { describe("thatsInconclusive()", delegate { it("allows results that are inconclusive", delegate { var xmlOutput = FixtureResult.GetSampleXmlResult(aSuiteName: "fooSuite", aSuiteResult: "Inconclusive"); var sut = new FixtureResult("ignored", xmlOutput).hasSuite("fooSuite"); sut.thatsInconclusive(); }); it("gives an error indicating the actual result when not inconclusive", delegate { var xmlOutput = FixtureResult.GetSampleXmlResult(aSuiteName: "fooSuite", aSuiteResult: "OtherResult"); var sut = new FixtureResult("ignored", xmlOutput).hasSuite("fooSuite"); var exception = Assert.Throws(FixtureResultTest.ExpectedAssertionType, delegate { sut.thatsInconclusive(); }); expect(() => exception.Message.Contains("fooSuite")); expect(() => exception.Message.Contains("OtherResult")); }); }); describe("thatHasNoResults()", delegate { it("fails if the suite has results", delegate { var sut = new FixtureResult("ignored", FixtureResult.GetSampleXmlResult(aSuiteName: "someSuiteHello")) .hasSuite("someSuiteHello"); var exception = Assert.Throws(FixtureResultTest.ExpectedAssertionType, delegate { sut.thatHasNoResults(); }); expect(() => exception.Message.Contains("someSuiteHello")); }); }); }