NUnit Class

MSBuild

Run NUnit on a group of assemblies.


Namespace: MSBuild.Community.Tasks
Assembly: MSBuild.Community.Tasks (in MSBuild.Community.Tasks.dll)

Syntax

Visual Basic (Declaration)
Public Class NUnit
    Inherits ToolTask
C#
public class NUnit : ToolTask
C++
ref class NUnit : ToolTask
J#
public class NUnit extends ToolTask
JScript
public class NUnit extends ToolTask

Example

Run NUnit tests.

 Copy Code
            <ItemGroup>
                <TestAssembly Include="C:\Program Files\NUnit 2.2.7\bin\*.tests.dll" />
            </ItemGroup>
            <Target Name="NUnit">
                <NUnit Assemblies="@(TestAssembly)" />
            </Target>
            

Inheritance Hierarchy

System.Object
   Microsoft.Build.Utilities.Task
      Microsoft.Build.Utilities.ToolTask
         MSBuild.Community.Tasks.NUnit

Thread Safety

Public static (Shared in Visual Basic)staticShared members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

See Also

Syntax based on .NET Framework version 2.0.
Documentation version 1.0.0.0.