コード例 #1
0
        private void RunExperiment(IExperiment experiment)
        {
            Console.ForegroundColor = ConsoleColor.Green;
            Console.Write("Running: ");
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine(experiment.Identify());
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("Start of Experiment Output: ");
            Console.WriteLine("=================================");
            Console.WriteLine();
            Console.ResetColor();

            experiment.Execute();

            Console.ResetColor();
            Console.WriteLine();
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("=================================");
            Console.WriteLine("End of Experiment Output: ");
            Console.WriteLine();
            Console.ResetColor();

            this.run = PromptKeepGoing();
        }