开发者

Is there a Visual Studio Test Project template for NUnit?

开发者 https://www.devze.com 2022-12-23 09:35 出处:网络
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 as

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消