Tutorial :Declare preprocesor symbol (like DEBUG) globally for whole project



Question:

I would like to switch between NUnit and VS Tests like this:

#if !NUNIT  using Microsoft.VisualStudio.TestTools.UnitTesting;  #else    using NUnit.Framework;    using TestClass = NUnit.Framework.TestFixtureAttribute;    using TestMethod = NUnit.Framework.TestAttribute;    using TestInitialize = NUnit.Framework.SetUpAttribute;    using TestCleanup = NUnit.Framework.TearDownAttribute;    using TestContext = System.String;    using DeploymentItem = NUnit.Framework.DescriptionAttribute;  





        
Previous
Next Post »