public override void Specify() { when("in some context", delegate { NUnitFixtureDriver.IncludeFixture <SomeFixture>(this); then("there is some text", delegate { }); }); NUnitFixtureDriver.IncludeFixture <SomeFixture>(this); }
public override void Specify() { beforeAll(ResetTracing); Trace("test started, before include of a"); var firstA = NUnitFixtureDriver.IncludeFixture <some_Nunit_fixture_a>(this); Trace("after include of a"); arrange(() => Assert.That(firstA is some_Nunit_fixture_a)); describe("a block", () => { Trace("first describe, before include of b"); var firstB = NUnitFixtureDriver.IncludeFixture <some_Nunit_fixture_b>(this); Trace("after include of b"); arrange(() => Assert.That(firstB is some_Nunit_fixture_b)); it("check fixtures", () => { Trace("first test"); }); describe("a sub block", () => { Trace("before include of c"); var secondA = NUnitFixtureDriver.IncludeFixture <some_Nunit_fixture_c>(this); Trace("after include of c"); arrange(() => Assert.That(secondA is some_Nunit_fixture_a)); arrange(() => Assert.That(secondA, Is.Not.SameAs(firstA))); it("check fixtures again", () => { Trace("second test test"); }); }); }); }