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: cf6091319d3dcdfc29bc51d059ebd3ff35b931e6 (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
31
32
33
34
35
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);
			}
		}
	}
}