A version of TextUI that outputs to the console. If you use it on a device without a console like PocketPC or SmartPhone you won't see anything! Call it from your Main like this: new ConsoleUI().Execute(args);
Inheritance: TextUI
 static void Main(string[] args)
 {
     ConsoleUI testRunner = new ConsoleUI();
     testRunner.Execute(new string[] { "PureMVC.DotNET.Tests, Version=0.1.0.0" });
     
     Console.WriteLine("\nPress ENTER to continue...");
     Console.Read();
 }
Beispiel #2
0
 public static int Main()
 {
     CommandLineOptions options = new CommandLineOptions();
     ConsoleUI runner = new ConsoleUI(options, Console.Out);
     try
     {
         TestResult result = runner.Run(Assembly.GetExecutingAssembly());
         if (result.IsFailure || result.IsError)
             return 1;
         else
             return 0;
     }
     catch (Exception ex)
     {
         Console.Error.WriteLine(ex.ToString());
         return 1;
     }
 }