-2

I'm trying to create an NUnit C# project. For that purpose, I have installed NUnit 3 Test Adapter from menu ToolsExtensions And Updates. I then restarted Visual Studio.

But there is still no NUnit project available when trying to create a new project.

How can I get this to work?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
SiSi
  • 1
  • 2
  • 2
  • 1
    The test adapter just let's you run tests - have you installed the NUnit NuGet packages which actually contain the NUnit assemblies? – Wai Ha Lee Nov 19 '17 at 10:55
  • Do you expect there will be a new NUnit project option in "Add New Project" window? If yes, there is no such option, even with proprietary adapter. For NUnit tests, just create new Class Library. – Dariusz Woźniak Jan 04 '18 at 13:18

2 Answers2

3

To get this to work, please install the following NuGet packages:

After installation, save the solution and then restart Visual Studio.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
1

Please uninstall the test adapter you installed.

https://www.infragistics.com/community/blogs/dhananjay_kumar/archive/2015/07/27/getting-started-with-net-unit-testing-using-nunit.aspx

The proper way now is to install the test adapter NuGet package.

Lex Li
  • 60,503
  • 9
  • 116
  • 147