Example #1
0
        public INativeTest ForSuite(FixtureContext fixtureContext, TestContext testContext)
        {
            var result = new GenericNativeTest(testContext.Name);

            RecordTestAt(fixtureContext.FixtureFactory, testContext.Position, result);
            return(result);
        }
        private void RecordTestAt(Func<SpecificationFixture> fixtureFactory, TestPosition testPosition, GenericNativeTest result)
        {
            if (!TestAt.ContainsKey(fixtureFactory))
                TestAt[fixtureFactory] = new Dictionary<TestPosition, GenericNativeTest>();

            TestAt[fixtureFactory][testPosition] = result;
        }
 public INativeTest ForTest(FixtureContext fixtureContext, TestContext testContext)
 {
     Contexts[testContext.Name.FullName] = testContext;
     var result = new GenericNativeTest(testContext.Name);
     RecordTestAt(fixtureContext.FixtureFactory, testContext.Position, result);
     return result;
 }
Example #4
0
        public INativeTest ForTest(FixtureContext fixtureContext, TestContext testContext)
        {
            Contexts[testContext.Name.FullName] = testContext;
            var result = new GenericNativeTest(testContext.Name);

            RecordTestAt(fixtureContext.FixtureFactory, testContext.Position, result);
            return(result);
        }
Example #5
0
        private void RecordTestAt(Func <SpecificationFixture> fixtureFactory, TestPosition testPosition, GenericNativeTest result)
        {
            if (!TestAt.ContainsKey(fixtureFactory))
            {
                TestAt[fixtureFactory] = new Dictionary <TestPosition, GenericNativeTest>();
            }

            TestAt[fixtureFactory][testPosition] = result;
        }
 public INativeTest ForSuite(FixtureContext fixtureContext, TestContext testContext)
 {
     var result = new GenericNativeTest(testContext.Name);
     RecordTestAt(fixtureContext.FixtureFactory, testContext.Position, result);
     return result;
 }