Exemple #1
0
        /// <summary>
        /// just the default comparison
        /// </summary>
        private static void EvaluateStandardSet()
        {
            try
            {
                var factory   = new MutexTokenFactory();
                var watch     = Stopwatch.StartNew();
                var evalModel = new EvaluationRunModel(TEST_SUITE_DIRECTORY);
                cLogger.DebugFormat("evaluation run finished in {0} ms", watch.ElapsedMilliseconds);
                new ListResultsExport().Run(evalModel);

                File.WriteAllLines(@"test\tokens\tok1.txt", factory.GetTokenWrapperListFromFile(@"test\tokens\main-01.c").GetDebugTokenStrings());
                File.WriteAllLines(@"test\tokens\tok2.txt", factory.GetTokenWrapperListFromFile(@"test\tokens\main-03.c").GetDebugTokenStrings());
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }

            //if ("y" == decision)
            {
                new ComparisonExcelExport("comparisons").Run(
                    ComparisonHistoryModel.AllHistories);

                new RuntimeExcelExport("runtime").Run(
                    new[]
                {
                    new ComparisonHistoryModel("TPLV04-S01-02"),
                });
            }

            Console.WriteLine();
            Console.WriteLine();
            Console.WriteLine("Done!");
            Console.ReadLine();
        }
Exemple #2
0
 public void Run(EvaluationRunModel model)
 {
     cLogger.DebugFormat("Evaluation Run {0}", model.ID);
     foreach (var comparison in model.Comparisons)
     {
         cLogger.InfoFormat("{0}:\t\t{1}", comparison.Name, comparison.Result);
     }
 }
Exemple #3
0
 public void Run(EvaluationRunModel model)
 {
     cLogger.DebugFormat("Evaluation Run {0}", model.ID);
     foreach (var comparison in model.Comparisons)
     {
         cLogger.InfoFormat("{0}:\t\t{1}", comparison.Name, comparison.Result);
     }
 }
Exemple #4
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        protected override MemoryStream CreateContent(EvaluationRunModel model)
        {
            var wb = new WorkBook();
            WriteData(wb, model);
            var stream = new MemoryStream();

            wb.writeXLSX(stream);

            return stream;
        }
Exemple #5
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        protected override MemoryStream CreateContent(EvaluationRunModel model)
        {
            var wb = new WorkBook();

            WriteData(wb, model);
            var stream = new MemoryStream();

            wb.writeXLSX(stream);

            return(stream);
        }
Exemple #6
0
 /// <summary>
 /// creates the content and returns it in a memory stream
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 protected abstract MemoryStream CreateContent(EvaluationRunModel model);
Exemple #7
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="model"></param>
 public void Run(EvaluationRunModel model)
 {
     WriteData(CreateContent(model));
 }
Exemple #8
0
 protected override void WriteData(WorkBook wb, EvaluationRunModel model)
 {
     throw new NotImplementedException("not supported for this export, please use multi method");
 }
 protected override MemoryStream CreateContent(EvaluationRunModel model)
 {
     throw new NotImplementedException();
 }
Exemple #10
0
        /// <summary>
        /// just the default comparison
        /// </summary>
        private static void EvaluateStandardSet()
        {
            try
            {
                var factory = new MutexTokenFactory();
                var watch = Stopwatch.StartNew();
                var evalModel = new EvaluationRunModel(TEST_SUITE_DIRECTORY);
                cLogger.DebugFormat("evaluation run finished in {0} ms", watch.ElapsedMilliseconds);
                new ListResultsExport().Run(evalModel);

                File.WriteAllLines(@"test\tokens\tok1.txt", factory.GetTokenWrapperListFromFile(@"test\tokens\main-01.c").GetDebugTokenStrings());
                File.WriteAllLines(@"test\tokens\tok2.txt", factory.GetTokenWrapperListFromFile(@"test\tokens\main-03.c").GetDebugTokenStrings());
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }

            //if ("y" == decision)
            {
                new ComparisonExcelExport("comparisons").Run(
                   ComparisonHistoryModel.AllHistories);

                new RuntimeExcelExport("runtime").Run(
                    new[]
                    {
                        new ComparisonHistoryModel("TPLV04-S01-02"),
                    });
            }

            Console.WriteLine();
            Console.WriteLine();
            Console.WriteLine("Done!");
            Console.ReadLine();
        }
 protected override void WriteData(WorkBook wb, EvaluationRunModel model)
 {
     throw new NotImplementedException("not supported for this export, please use multi method");
 }
Exemple #12
0
 protected override MemoryStream CreateContent(EvaluationRunModel model)
 {
     throw new NotImplementedException();
 }
Exemple #13
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="model"></param>
 public void Run(EvaluationRunModel model)
 {
     WriteData(CreateContent(model));
 }
Exemple #14
0
 /// <summary>
 /// creates the content and returns it in a memory stream
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 protected abstract MemoryStream CreateContent(EvaluationRunModel model);
Exemple #15
0
 /// <summary>
 /// writes the excel data into the workbook
 /// </summary>
 /// <param name="wb"></param>
 protected abstract void WriteData(WorkBook wb, EvaluationRunModel model);
Exemple #16
0
 /// <summary>
 /// writes the excel data into the workbook
 /// </summary>
 /// <param name="wb"></param>
 protected abstract void WriteData(WorkBook wb, EvaluationRunModel model);