Example #1
0
        private static string Compile(Compiler compiler, string file)
        {
            var compiledFile = compiler.Compile(file);
            var runResults = ExecutableRunner.RunExecutable(compiledFile);

            if (!String.IsNullOrEmpty(runResults.Error.ToString()))
            {

            }

            return runResults.Output.ToString();
        }
Example #2
0
 private void Run(Compiler compiler, IEnumerable<string> files)
 {
     foreach (var file in files)
     {
         TestLogger.WriteLineTestRunnerMessage(ConsoleColor.DarkYellow, "Compiling and running {0}", file);
         var output = Compile(compiler, file);
         TestLogger.WriteLineTestRunnerMessage(ConsoleColor.Green, "Output:");
         Console.Write(output);
         TestLogger.WriteLineTestRunnerMessage(ConsoleColor.DarkYellow, "Press any key to continue...\r\n");
         Console.ReadKey();
     }
 }