<nunit2>Runs tests using the NUnit V2.0 framework.
| Attribute | Description | Required |
|---|
| haltonfailure | Stop the build process if a test fails. | False |
| failonerror | Determines whether task failure stops the build or is just reported. Default is "true." | False |
| verbose | Task reports detailed build log messages. Default is "false." | False |
| if | If true then the task will be executed; otherwise skipped. Default is "true." | False |
| unless | Opposite of if. If false then the task will be executed; otherwise skipped. Default is "false." | False |
Example
<nunit2>
<test assemblyname="MyProject.Tests.dll" outfile="results.xml"/>
</nunit2>