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(); }
private void doTearDown(TestCaseResult testResult) { try { _fixture.Teardown(); } catch (Exception ex) { if (ex is NunitException) { ex = ex.InnerException; } RecordTearDownException(ex, testResult); } }