public FixtureDiscoveryContext(INativeTestFactory nativeTestFactory, Func<SpecificationFixture> fixtureFactory, NameGenerator nameGenerator, SpecificationFixture fixtureInstanceForDiscovery) { _nativeTestFactory = nativeTestFactory; _fixtureFactory = fixtureFactory; NameGenator = nameGenerator; _fixtureInstanceForDiscovery = fixtureInstanceForDiscovery; }
public FixtureContext(INativeTestFactory nativeTestFactory, Func<SpecificationFixture> fixtureFactory, NameReservations nameReservations, IGlobalSetupManager globalSetupManager) { NativeTestFactory = nativeTestFactory; FixtureFactory = fixtureFactory; NameReservations = nameReservations; _fixtureInstanceForDiscovery = fixtureFactory(); GlobalSetupManager = globalSetupManager; }
public void RunFixture(SpecificationFixture fixture) { fixture.CurrentPosition = TestPosition.At(0); fixture.Visitor = this; try { fixture.Run(); } catch (Exception e) { ReportError(TestPosition.At(0), e); } }
public AllSuitesBuildContext(Func<SpecificationFixture> fixtureFactory, NameGenerator nameGenerator, SpecificationFixture fixtureInstanceForDiscovery) { _fixtureFactory = fixtureFactory; _nameGenator = nameGenerator; _fixtureInstanceForDiscovery = fixtureInstanceForDiscovery; }