public static void MainEngine()
        {
            EngineTest test = new EngineTest();

            //test.Single();
            test.Pair();
            test.Random(10000);
            //test.Full();
        }
 public static int Main(string[] args)
 {
     try
     {
         int res = 0;
         if (args.Length != 0)
         {
             ComponentLoader components = EngineTest.InitComponents();
             WrappedConsole  console    = new WrappedConsole();
             bool            interactive;
             string          saveProjectFile;
             Project         project = CommandLine.Prepare(args, components, console, out interactive, out saveProjectFile);
             if (project != null)
             {
                 project.EngineOptions.DumpResults  = false;
                 project.EngineOptions.StatusLine   = false;
                 project.ParserOptions.Instructions = false;
                 project.ParserOptions.StatusLine   = false;
             }
             ParseResult result = CommandLine.Parse(components, console, project);
             if (result == null || !result.Succesfull)
             {
                 return(-1);
             }
             CommandLine.Run(components, console, project);
             return(0);
         }
         else
         {
             //MainParser();
             MainEngine();
         }
         if (res == 0)
         {
             Console.WriteLine("No errors");
         }
         return(res);
     }
     catch (Exception ex)
     {
         return(ExceptionHandler.DumpException(ex));
     }
 }