public void Runs_class_setup_and_teardown() { var fixture = GetRunnerFor <MSTestFixtureWithClassSetupAndTearDown>("class_init_teardown_test1"); MSTestTestRunner.RunClassSetup(typeof(MSTestFixtureWithClassSetupAndTearDown)); var result = fixture.Run(); MSTestTestRunner.RunClassTeardown(typeof(MSTestFixtureWithClassSetupAndTearDown)); Assert.That(result.Exception, Is.Null); Assert.That(result.Passed, Is.True); Assert.That(result.WasRun, Is.True); Assert.That(result.Test.Name, Is.EqualTo("class_init_teardown_test1")); }
private void classSetup() { MSTestTestRunner.RunClassSetup(_type); }