I am trying to get into unit testing with C #. Various people have told me to go with NUnit, since it is better than MSTest (apparently I have no idea), and it also has very good support in the ReSharper that I use.
Now I have never written unit test in my life (carry me, I am a university student). ReSharper has this nice CreateUnitTests context menu menu that I've seen when others (casually looking over their shoulders) use for great success. You right-click in the method, select CreateUnitTests, and there you go, a test skeleton is created. You just fill in the important bits.
Now when I try to do the same, ReSharper wants me to create a new test project ... and when I enable it, it creates (what I suppose) an MSTest project with an explicit MSTest test template. But I already have a libarary project class that references "nunit.framework" and has several NUnit tests that ReSharper is more than ready to run. However, he only ever creates MSTest test patterns and only ever in special Project Projects.
What am I doing wrong? Am I doing something wrong or creating NUnit test templates that cannot be used with ReSharper? I searched the net and read the documentation of ReSharper and NUnit, and I still cannot figure out if this is possible or what.
I would be grateful if anyone could provide me with guidance on using ReSharper + NUnit.
EDIT: I am using ReSharper 4.5 and NUnit 2.5.3
EDIT2: Apparently, I'm an idiot. CreateUnitTests is not part of ReSharper, but it is part of Visual Studio and therefore only works with MSTest.
c # unit-testing nunit resharper
Lucas
source share