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

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

Updated 4 Testcases: TestSimulationExemptedVehicle

parent ad420a36
No related branches found
No related tags found
No related merge requests found
......@@ -124,24 +124,14 @@ namespace TUGraz.VectoCore.Tests.Integration
}
var inputData = xmlInputReader.CreateDeclaration(filename);
var factory = new SimulatorFactory(ExecutionMode.Declaration, inputData, writer) {
WriteModalResults = true,
ActualModalData = true
};
var jobContainer = new JobContainer(new MockSumWriter());
List<IVectoRun> runs;
Assert.That(() => runs = factory.SimulationRuns().ToList(),
Throws.TypeOf<VectoException>()
.And.Message.EqualTo("Node MaxNetPower1 not found in input data"));
Assert.Inconclusive("Exempted Vehicle");
//Assert.AreEqual(numRuns, runs.Count);
//foreach (var run in runs) {
// jobContainer.AddRun(run);
//}
//jobContainer.AddRuns(factory);
jobContainer.AddRuns(factory);
Assert.That(jobContainer.Runs.Count, Is.EqualTo(numRuns));
jobContainer.Execute();
jobContainer.WaitFinished();
......
......@@ -18,6 +18,8 @@ urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:v2.1 E:\QUAM\Workspace\VECTO_quam
<CurbMassChassis>7100</CurbMassChassis>
<GrossVehicleMass>40000</GrossVehicleMass>
<ZeroEmissionVehicle>false</ZeroEmissionVehicle>
<MaxNetPower1>30000</MaxNetPower1>
<MaxNetPower2>20000</MaxNetPower2>
<HybridElectricHDV>false</HybridElectricHDV>
<DualFuelVehicle>true</DualFuelVehicle>
</v2.0:Vehicle>
......
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