Migrating a project to NUnit would require some of the following (and more)….
- Add reference to nunit.framework.dll
- Replace “using Microsoft.VisualStudio.TestTools.UnitTesting;” with “using NUnit.Framework;”
- Search-Replace the following:
- [TestClass] -> [TestFixture]
- [TestMethod] -> [Test]
- [TestInitialize] -> [SetUp]
- [TestCleanup] -> [TearDown]
- [TestClassInitialize] -> [TestFixtureSetUp]
- [TestClassCleanup] -> [TestFixtureTearDown]