/// <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(); }
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); } }
/// <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; }
/// <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); }
/// <summary> /// creates the content and returns it in a memory stream /// </summary> /// <param name="model"></param> /// <returns></returns> protected abstract MemoryStream CreateContent(EvaluationRunModel model);
/// <summary> /// /// </summary> /// <param name="model"></param> public void Run(EvaluationRunModel model) { WriteData(CreateContent(model)); }
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(); }
/// <summary> /// writes the excel data into the workbook /// </summary> /// <param name="wb"></param> protected abstract void WriteData(WorkBook wb, EvaluationRunModel model);