Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 554f4638 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

updated testcases

parent 508bb1f6
No related branches found
No related tags found
No related merge requests found
......@@ -869,9 +869,11 @@ namespace TUGraz.VectoCore.Tests.Models.Declaration
[TestCase(@"E:\QUAM\Workspace\VECTO-Bugreports\BugReportTests\Bugreport Jobs\20190307_VECTO-904_Extrapolation\OM-18173493.xml")]
//[TestCase(@"E:\QUAM\Workspace\VECTO_DEV_Hybrid\Generic Vehicles\Declaration Mode\Group5_Tractor_4x2\Class5_Tractor_DECL.xml")]
[Ignore("Confidential data")]
public void ComputeShiftPolygonXML(string xmlJob)
{
if (!File.Exists(xmlJob)) {
Assert.Inconclusive("Confidential File not found. Test cannot run without file.");
}
var inputData = xmlInputReader.CreateDeclaration(xmlJob);
var dao = new DeclarationDataAdapterHeavyLorry();
......
......@@ -340,19 +340,15 @@ namespace TUGraz.VectoCore.Tests.Models
}
[TestCase()]
[TestCase, Ignore("Engineering XML not maintained")]
public void ReadEngineeringXMLDualFuel()
{
var inputDataProvider = xmlInputReader.CreateEngineering(EngineeringDualFuelWHRVehicle);
var dao = new EngineeringModeVectoRunDataFactory(inputDataProvider);
VectoRunData[] runs;
Assert.That(() => runs = dao.NextRun().ToArray(),
Throws.TypeOf<VectoException>()
.And.Message.EqualTo("Node IdlingSpeed not found in input data"));
//Assert.AreEqual(1, runs.Length);
//Assert.IsTrue(runs.All(x => x.EngineData.ElectricalWHR?.WHRMap != null));
Assert.Inconclusive("Engineering Mode XML");
var runs = dao.NextRun().ToArray();
Assert.AreEqual(1, runs.Length);
Assert.IsTrue(runs.All(x => x.EngineData.ElectricalWHR?.WHRMap != null));
}
}
}
......@@ -285,7 +285,7 @@ namespace TUGraz.VectoCore.Tests.XML
Assert.AreEqual(1.0, inputDataProvider.JobInputData.Vehicle.Components.RetarderInputData.Ratio);
}
[TestCase]
[TestCase, Ignore("Engineering XML not maintained")]
public void TestXMLPowertrainGenerationReferencedFile()
{
var fileWriter = new FileOutputWriter("foo");
......@@ -301,10 +301,7 @@ namespace TUGraz.VectoCore.Tests.XML
Throws.TypeOf<VectoException>()
.And.Message.EqualTo("Node IdlingSpeed not found in input data"));
Assert.Inconclusive("Engineering Mode XML");
//Assert.AreEqual(6, jobContainer.Runs.Count);
Assert.AreEqual(6, jobContainer.Runs.Count);
}
......
......@@ -477,7 +477,7 @@ namespace TUGraz.VectoCore.Tests.XML
}
[TestCase]
[TestCase, Ignore("Engineering XML not maintained")]
public void TestXMLPowertrainGenerationSingleFile()
{
var fileWriter = new FileOutputWriter("foo");
......@@ -495,9 +495,9 @@ namespace TUGraz.VectoCore.Tests.XML
jobContainer.Execute();
Assert.Inconclusive("Engineering Mode XML");
//Assert.Inconclusive("Engineering Mode XML");
//Assert.AreEqual(6, jobContainer.Runs.Count);
Assert.AreEqual(6, jobContainer.Runs.Count);
}
[TestCase]
......@@ -765,8 +765,6 @@ namespace TUGraz.VectoCore.Tests.XML
.And.Message.EqualTo("Missing Power Demands for ICE Off Driving, ICE Off Standstill, and Base Demand"));
jobContainer.Execute();
Assert.Inconclusive("Engineering Mode XML");
}
[TestCase]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment