Converting NUnit TestFixtureSetp and Teardown to MS UnitTest framework
When converting some tests I needed to convert TestFixtureSetup and TestFixtureTeardown. Simply replacing TestFixtureSetup/Teardown with ClassInitialize/Cleanup left me with an error when executing tests.
VS2005 complained that the signature of the method for Initialize and Cleanup was not correct.
I found the following signatures to work:
[ClassInitialize]
public static void FixtureSetup(TestContext t)
[ClassCleanup]
public static void FixtureTeardown()
Apparently someone decided that these functions should be static now. As to why that is, I’m still in the dark, but I’m trying to find out the answer on that..