Beispiel #1
0
		public static void  Main(System.String[] argv)
		{
			System.Runtime.Remoting.RemotingConfiguration.Configure("Lucene.Net.Search.TestSort.config", false);
			System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel(new System.Runtime.Remoting.Channels.Http.HttpChannel(8080), false);
			if (argv == null || argv.Length < 1)
			{
				// NUnit.Core.TestRunner.Run(Suite());    // {{Aroush-1.9}} where is "Run" in NUnit?
			}
			else if ("server".Equals(argv[0]))
			{
				TestSort test = new TestSort();
				try
				{
					test.StartServer();
					System.Threading.Thread.Sleep(new System.TimeSpan((System.Int64) 10000 * 500000));
				}
				catch (System.Exception e)
				{
					System.Console.Out.WriteLine(e);
					System.Console.Error.WriteLine(e.StackTrace);
				}
			}

			System.Console.ReadLine();
		}