From 5d534f01174d9a8e3770d0a1cdaf35ee02e98cab Mon Sep 17 00:00:00 2001 From: Markus Quaritsch <markus.quaritsch@tugraz.at> Date: Thu, 14 Mar 2019 09:48:29 +0100 Subject: [PATCH] Revert "adding testcase for writing xml reports" This reverts commit b8852d1fc2314ca96131d7526e7d2b9a1aa5189c. --- .../VectoCoreTest/Reports/SumWriterTest.cs | 34 ------------------- 1 file changed, 34 deletions(-) diff --git a/VectoCore/VectoCoreTest/Reports/SumWriterTest.cs b/VectoCore/VectoCoreTest/Reports/SumWriterTest.cs index c90ba2993d..4a1ff5ff37 100644 --- a/VectoCore/VectoCoreTest/Reports/SumWriterTest.cs +++ b/VectoCore/VectoCoreTest/Reports/SumWriterTest.cs @@ -289,39 +289,5 @@ namespace TUGraz.VectoCore.Tests.Reports fh.Close(); } - - [TestCase("Tractor_4x2_vehicle-class-5_EURO6_2018.RSLT_MANUFACTURER.xml"), - TestCase("Tractor_4x2_vehicle-class-5_EURO6_2018.RSLT_CUSTOMER.xml"), - TestCase("Tractor_4x2_vehicle-class-5_EURO6_2018.RSLT_MONITORING.xml"), - ] - public void TestXMLReportFileIsLocked(string xmlFile) - { - - - var jobFile = @"TestData\Integration\DeclarationMode\Class5_Vocational\Tractor_4x2_vehicle-class-5_EURO6_2018.xml"; - - var reportFile = Path.Combine(Path.GetDirectoryName(jobFile), xmlFile); - - // lock modfile so it can't be written - Stream fh = !File.Exists(reportFile) ? File.Create(reportFile) : File.OpenRead(reportFile); - - var writer = new FileOutputWriter(jobFile); - var inputData = new XMLDeclarationInputDataProvider(jobFile, true); - var factory = new SimulatorFactory(ExecutionMode.Declaration, inputData, writer) { - WriteModalResults = true, - ActualModalData = true - }; - var sumWriter = new SummaryDataContainer(writer); - var jobContainer = new JobContainer(sumWriter); - - jobContainer.AddRuns(factory); - - jobContainer.Execute(); - jobContainer.WaitFinished(); - - Assert.AreEqual(2, sumWriter.Table.Rows.Count); - - fh.Close(); - } } } -- GitLab