2

when I try to execute the test or testmethod templates respectively in visual studio 2010 using t and tm respectively it is giving me ...

using Microsoft.VisualStudio.TestTools.UnitTesting;    
    [TestMethod]
    public void Test()
    {

    }

I want it to give me the nunit decorator instead and stop adding the using reference to the microsoft tooling.

I can't figure it out.

Thanks.

Seth Spearman
  • 6,710
  • 16
  • 60
  • 105

1 Answers1

6

This is likely being caused by your test project having a reference to "Microsoft.VisualStudio.TestTools.UnitTesting.dll"

Remove this reference and replace it with one to "nUnit.Framework.dll", and the templates should detect and use that instead.

Rory Becker
  • 15,551
  • 16
  • 69
  • 94
  • Rory, As usual you were correct. Of course, I DID have a reference to nunit as well but the MS reference was also referenced and it was earlier in the list. Who'd a thunk it? I kept looking for a cr configuration option. That fixed it. Thanks again for your help. – Seth Spearman Aug 06 '10 at 10:09