** Changed in: nunit-3.0 Status: Fix Committed => Fix Released -- TestFixtureTearDown in static class not executed https://bugs.launchpad.net/bugs/523335 You received this bug notification because you are a member of NUnit Developers, which is subscribed to NUnit V2.
Status in NUnit Test Framework: Fix Released Status in NUnit V2 Test Framework: Fix Released Bug description: Here's an example: [TestFixture] public static partial class Tests { [TestFixtureSetUp] public static void Init() { Console.WriteLine("INIT"); } [TestFixtureTearDown] public static void Cleanup() { Console.WriteLine("CLEANUP"); } } Init() gets executed but Cleanup() does not. Could it be that this code, in NUnitCore\core\TestSuite.cs: protected virtual void DoOneTimeTearDown(TestResult suiteResult) { if ( this.Fixture != null) should actually look like this: protected virtual void DoOneTimeTearDown(TestResult suiteResult) { if ( this.FixtureType != null) which would make it the same as DoOneTimeSetUp? _______________________________________________ Mailing list: https://launchpad.net/~nunit-core Post to : nunit-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~nunit-core More help : https://help.launchpad.net/ListHelp