public static void Main(String[] args)
        {
            AniseProgram program = new AniseProgram();
            program.LoadEmbeddedResource(typeof(PauthorTestRunner), "AniseConfig.adi");
            if (args.Length == 0)
            {
                program.AniseEngine.RunAllTests(System.Console.Out);
            }
            else
            {
                foreach (String test in args)
                {
                    program.AniseEngine.RunTest(System.Console.Out, test);
                }
            }

            System.Console.Out.WriteLine("\nPress enter to finish");
            System.Console.In.ReadLine();
        }
Beispiel #2
0
        public static void Main(String[] args)
        {
            AniseProgram program = new AniseProgram();

            program.LoadEmbeddedResource(typeof(PauthorTestRunner), "AniseConfig.adi");
            if (args.Length == 0)
            {
                program.AniseEngine.RunAllTests(System.Console.Out);
            }
            else
            {
                foreach (String test in args)
                {
                    program.AniseEngine.RunTest(System.Console.Out, test);
                }
            }

            System.Console.Out.WriteLine("\nPress enter to finish");
            System.Console.In.ReadLine();
        }
Beispiel #3
0
 public static void Main(String[] args)
 {
     try
     {
         AniseProgram program = new AniseProgram();
         program.LoadEmbeddedResource(typeof(PauthorProgram), "AniseConfig.adi");
         program.Run("pauthor-program", args);
     }
     catch (StopExecutionException e)
     {
         Environment.ExitCode = e.Success ? 0 : 1;
     }
     catch (Exception e)
     {
         while (e.InnerException != null)
         {
             e = e.InnerException;
         }
         Log.Error("A problem occured while processing your collection: {0}", e);
     }
 }
Beispiel #4
0
 public static void Main(String[] args)
 {
     try
     {
         AniseProgram program = new AniseProgram();
         program.LoadEmbeddedResource(typeof(PauthorProgram), "AniseConfig.adi");
         program.Run("pauthor-program", args);
     }
     catch (StopExecutionException e)
     {
         Environment.ExitCode = e.Success ? 0 : 1;
     }
     catch (Exception e)
     {
         while (e.InnerException != null)
         {
             e = e.InnerException;
         }
         Log.Error("A problem occured while processing your collection: {0}", e);
     }
 }