Welcome to mirror list, hosted at ThFree Co, Russian Federation.

NUnitConsoleMain.cs « NUnitConsole « src « nunit « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 179742eb10b7100a50fd6f15425efde4bd067d2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
namespace NUnit {

  using System;
  using System.Collections;
  
  using NUnit.Framework;
  using NUnit.Runner;
  using NUnit.TextUI;
  /// <summary>
  /// 
  /// </summary>
  public class Top {
	  /// <summary>
	  /// 
	  /// </summary>
	  /// <param name="args"></param>
    public static void Main(string[] args) {
      TestRunner aTestRunner = new NUnit.TextUI.TestRunner();
      try {
        TestResult r = aTestRunner.Start(args);
        if (!r.WasSuccessful) 
          Environment.Exit(1);
        Environment.Exit(0);
      } catch(Exception e) {
        Console.Error.WriteLine(e.Message);
        Environment.Exit(2);
      }
    }
  }
}