Skip to content

Instantly share code, notes, and snippets.

@udawtr
Created March 12, 2012 13:07
Show Gist options
  • Save udawtr/2021758 to your computer and use it in GitHub Desktop.
Save udawtr/2021758 to your computer and use it in GitHub Desktop.
NUnit MSTest Compatibility import statements
// Unit Testing Imports
#if !NUNIT
using Microsoft.VisualStudio.TestTools.UnitTesting;
#else
using NUnit.Framework;
using ClassInitialize = NUnit.Framework.TestFixtureSetUpAttribute;
using ClassCleanup = NUnit.Framework.TestFixtureTearDownAttribute;
using TestClass = NUnit.Framework.TestFixtureAttribute;
using TestMethod = NUnit.Framework.TestAttribute;
using TestInitialize = NUnit.Framework.SetUpAttribute;
using TestCleanup = NUnit.Framework.TearDownAttribute;
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment