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