private static void ProcessSucessfullBuild(CompilationResult result) { Console.WriteLine("SUCCESS"); tempDllName = string.Format("{0}{1}", TempPath, "tmp.dll"); File.Copy(result.AssemblyLocation, string.Format(tempDllName, TempPath)); Console.ForegroundColor = ConsoleColor.White; Console.WriteLine("\nRunning Tests"); Console.WriteLine("-------------------------------"); IRunUnitTests testRunner = new NUnitConsoleRunner(tempDllName); Console.WriteLine(testRunner.RunAllTests()); }
public void ShouldRunTestsFromAssembly() { var testRunner = new NUnitConsoleRunner("TestData/test-assembly.dll"); var output = testRunner.RunAllTests(); Assert.That(output.ToLower(), Contains.Substring("failed on purpose")); }