Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

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

Corrections for ModDataIntegrityTest

parent ff65d0ca
Branches
Tags
No related merge requests found
......@@ -304,7 +304,7 @@ namespace TUGraz.VectoCore.OutputData
public void FinishSimulation()
{
Data.Clear(); //.Rows.Clear();
//Data.Clear(); //.Rows.Clear();
Data = null;
CurrentRow = null;
Auxiliaries.Clear();
......
......@@ -61,21 +61,20 @@ namespace TUGraz.VectoCore.Tests.Reports
var engineData = MockSimulationDataFactory.CreateEngineDataFromFile(Truck40tPowerTrain.EngineFile);
var modData = (ModalDataContainer)run.GetContainer().ModalData;
var modData = ((ModalDataContainer)run.GetContainer().ModalData).Data;
run.Run();
Assert.IsTrue(run.FinishedWithoutErrors);
var lastGear = 0u;
foreach (DataRow row in modData.Data.Rows) {
foreach (DataRow row in modData.Rows) {
if (cycle.Entries.Last().Distance.IsEqual(((Meter)row[(int)ModalResultField.dist]))) {
continue;
}
var gear = (uint)row[(int)ModalResultField.Gear];
var time = (Second)row[(int)ModalResultField.time];
if ((lastGear == 0 && gear != 0) || (lastGear != 0 && gear == 0))
{
if ((lastGear == 0 && gear != 0) || (lastGear != 0 && gear == 0)) {
//skipNext = (uint)row[(int)ModalResultField.Gear] == 0;
lastGear = gear;
continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment