Execute testes NUnit a partir do PowerShell

$ProjectDir = "."
$PackagesDir
= "$ProjectDirpackages"
$OutDir
= "$ProjectDirbinDebug"

# Install NUnit Test Runner
$nuget
= "$ProjectDir.nugetnuget.exe"
& $nuget install NUnit.Runners -Version 2.6.2 -o $PackagesDir

# Set nunit path test runner
$nunit
= "$ProjectDirpackagesNUnit.Runners.2.6.2toolsnunit-console.exe"

#Find tests in OutDir
$tests
= (Get-ChildItem $OutDir -Recurse -Include *Tests.dll)

# Run tests
& $nunit /noshadow /framework:"net-4.0" /xml:"$OutDirTests.nunit.xml" $tests