From f8651c7b529e7e901e3791544f963b03b315f6bc Mon Sep 17 00:00:00 2001 From: Markus Quaritsch <markus.quaritsch@tugraz.at> Date: Fri, 24 Jun 2022 09:24:09 +0200 Subject: [PATCH] correcting testcases --- .../CompletedBus/CompletedBusFactorMethodTest.cs | 2 +- .../VectoCoreTest/Models/Simulation/PwheelModeTests.cs | 2 +- VectoCore/VectoCoreTest/XML/XMLDeclarationInputTest.cs | 2 +- VectoCore/VectoCoreTest/XML/XMLDeclarationInputv24.cs | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/VectoCore/VectoCoreTest/Integration/CompletedBus/CompletedBusFactorMethodTest.cs b/VectoCore/VectoCoreTest/Integration/CompletedBus/CompletedBusFactorMethodTest.cs index d78e66dd6b..3030e51b63 100644 --- a/VectoCore/VectoCoreTest/Integration/CompletedBus/CompletedBusFactorMethodTest.cs +++ b/VectoCore/VectoCoreTest/Integration/CompletedBus/CompletedBusFactorMethodTest.cs @@ -882,7 +882,7 @@ namespace TUGraz.VectoCore.Tests.Integration.CompletedBus genericDriver.LookAheadCoasting.LookAheadDistanceFactor); Assert.AreEqual(genericDriver.LookAheadCoasting, specificDriver.LookAheadCoasting); - Assert.AreEqual(true, genericDriver.OverSpeed.Enabled); + Assert.AreEqual(false, genericDriver.OverSpeed.Enabled); Assert.AreEqual(DeclarationData.Driver.OverSpeed.MinSpeed, genericDriver.OverSpeed.MinSpeed); Assert.AreEqual(DeclarationData.Driver.OverSpeed.AllowedOverSpeed, genericDriver.OverSpeed.OverSpeed); Assert.AreEqual(genericDriver.OverSpeed, specificDriver.OverSpeed); diff --git a/VectoCore/VectoCoreTest/Models/Simulation/PwheelModeTests.cs b/VectoCore/VectoCoreTest/Models/Simulation/PwheelModeTests.cs index 304b051c82..479abf5183 100644 --- a/VectoCore/VectoCoreTest/Models/Simulation/PwheelModeTests.cs +++ b/VectoCore/VectoCoreTest/Models/Simulation/PwheelModeTests.cs @@ -179,7 +179,7 @@ namespace TUGraz.VectoCore.Tests.Models.Simulation }; // call builder (actual test) - var jobContainer = PowertrainBuilder.Build(data, new MockModalDataContainer()); + var jobContainer = PowertrainBuilder.Build(data, new MockModalDataContainer(), container => {}); } /// <summary> diff --git a/VectoCore/VectoCoreTest/XML/XMLDeclarationInputTest.cs b/VectoCore/VectoCoreTest/XML/XMLDeclarationInputTest.cs index 3b8acaf915..2bbb611ebd 100644 --- a/VectoCore/VectoCoreTest/XML/XMLDeclarationInputTest.cs +++ b/VectoCore/VectoCoreTest/XML/XMLDeclarationInputTest.cs @@ -859,7 +859,7 @@ namespace TUGraz.VectoCore.Tests.XML var lookup = DeclarationData.PTOTransmission.Lookup(ptoDataProvider.PTOTransmissionType); Assert.AreEqual("only the drive shaft of the PTO - multi-disc clutch", ptoDataProvider.PTOTransmissionType); - Assert.AreEqual(1000, lookup.PowerDemand.Value()); + Assert.AreEqual(350, lookup.PowerDemand.Value()); } [TestCase] diff --git a/VectoCore/VectoCoreTest/XML/XMLDeclarationInputv24.cs b/VectoCore/VectoCoreTest/XML/XMLDeclarationInputv24.cs index e9489aa2ba..c209074e66 100644 --- a/VectoCore/VectoCoreTest/XML/XMLDeclarationInputv24.cs +++ b/VectoCore/VectoCoreTest/XML/XMLDeclarationInputv24.cs @@ -802,7 +802,7 @@ namespace TUGraz.VectoCore.Tests.XML Assert.IsNull(vehicle.Components.AngledriveInputData); Assert.IsNull(vehicle.Components.RetarderInputData); Assert.IsNull(vehicle.Components.AirdragInputData); - Assert.AreEqual(0, vehicle.TorqueLimits.Count); + Assert.IsNull(vehicle.TorqueLimits); Assert.IsNull(vehicle.ElectricMotorTorqueLimits);//Vehicle EM Drive Limits } else @@ -1007,7 +1007,7 @@ namespace TUGraz.VectoCore.Tests.XML Assert.IsNull(vehicle.Components.RetarderInputData); Assert.IsNull(vehicle.Components.AirdragInputData); Assert.IsNull(vehicle.CargoVolume); - Assert.IsEmpty(vehicle.TorqueLimits); + Assert.IsNull(vehicle.TorqueLimits); Assert.IsNull(vehicle.ElectricMotorTorqueLimits); } else @@ -1155,7 +1155,7 @@ namespace TUGraz.VectoCore.Tests.XML { Assert.IsNull(vehicle.Components.AngledriveInputData); Assert.IsNull(vehicle.Components.RetarderInputData); - Assert.IsEmpty(vehicle.TorqueLimits); + Assert.IsNull(vehicle.TorqueLimits); Assert.IsNull(vehicle.ElectricMotorTorqueLimits); } else -- GitLab