public PythonFixtureExtension(PythonFixture fixture, int assemblyKey)
            : base(fixture.Name, assemblyKey)
        {
            _fixture = fixture;

            testFramework = TestFramework.FromAssembly(GetType().Assembly);

            foreach (PythonTestCase testCase in _fixture)
            {
                Add(new PythonTestMethod(fixture.Name, testCase.Name, fixture, testCase));
            }
        }
Exemplo n.º 2
0
        public PythonTestMethod(string path, string name, PythonFixture fixture, PythonTestCase testCase)
            : base(path, name)
        {
            if (fixture == null)
            {
                throw new ArgumentNullException("fixture");
            }
            if (testCase == null)
            {
                throw new ArgumentNullException("testCase");
            }

            _fixture  = fixture;
            _testCase = testCase;

            testFramework = TestFramework.FromAssembly(GetType().Assembly);
        }