Is there an official Visual Studio test project template for NUnit? If not, what might one look like?开发者_JAVA百科
There is no official one. Just start a class library project and import the nUnit assemblies to it.
There are plenty of template how to articles around though - here is one.
We can use this official Template for Unit Testing as well.
Somebody on Github made a template: https://github.com/orangutanboy/NUnitTestFixtureTemplate
When creating a MVC application you have the option for creating a unit test project. Does not give examples but provides a framework.
There is no official template for NUnit exists in visual studio.you have to explaicitly download it. But it has general unit test framework.
you need to download Nunit framework using either nuget package. Select Tool menu -> Library package manager ->manage nuget package for solution or Select Tool menu -> Library package manager ->package manager for console. Add the reference in existing unit test project and remove the existing unit test namespace from it.
精彩评论