コード例 #1
0
ファイル: Program.cs プロジェクト: chrisjowen/ResolveIt
        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());
        }
コード例 #2
0
 public void ShouldRunTestsFromAssembly()
 {
     var testRunner = new NUnitConsoleRunner("TestData/test-assembly.dll");
     var output = testRunner.RunAllTests();
     Assert.That(output.ToLower(), Contains.Substring("failed on purpose"));
 }