Пример #1
0
        public void RunSetupAndTeardowns()
        {
            MyPythonSuite suite = new MyPythonSuite();

            suite.Setup();

            PythonFixtureBuilder builder = new PythonFixtureBuilder(suite.Engine);
            PythonFixture        fixture = builder.BuildFixtures()[0];

            fixture.FixtureSetup();
            fixture.Setup();
            fixture.Teardown();
            fixture.FixtureTeardown();
        }
Пример #2
0
        private void doTearDown(TestCaseResult testResult)
        {
            try
            {
                _fixture.Teardown();
            }
            catch (Exception ex)
            {
                if (ex is NunitException)
                {
                    ex = ex.InnerException;
                }

                RecordTearDownException(ex, testResult);
            }
        }