Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
Hi,

I add Nuint using nuget package manager
Add class libriary and write test method

in visual studio 2010

Now How I will able to run this test ?
Posted

1 solution

NUnit 3.0 Test Adapter for Visual Studio

The NUnit 3.0 Test Adapter allows you to run NUnit 3.0 tests inside Visual Studio. This is a new adapter, based partly on the code of the original NUnit Test Adapter, but modified to work with NUnit 3.0.

It is not possible to run NUnit 2.x tests using this adapter. Use the original adapter for that purpose. If you need to work with projects using NUnit 2.x and other projects using NUnit 3.0, you may install both versions of the adapter.

NUnitLite Runner

To run tests under NUnitLite, proceed as follows:

1. Create a console application to use as your test assembly. If you have already placed tests in a dll, you can change the project so that it produces a console application and reload it.
2. Make sure your test assembly references both nunit.framework and nunitlite.
3. The Main() for your console application should look something like this...
C#
public static void Main(string[] args)
{
  new AutoRun().Execute(args);
}

4. Execute your test application in order to run the tests.
 
Share this answer
 
v5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900