From 52bbcc0680e282a5912cc9c4a91e26d61703b6c8 Mon Sep 17 00:00:00 2001 From: Markus Quaritsch <markus.quaritsch@tugraz.at> Date: Tue, 26 Feb 2019 14:45:22 +0100 Subject: [PATCH] fixing testcases for new constructor arguments --- .../VectoCoreTest/Models/SimulationComponent/ATGearboxTest.cs | 2 +- .../Models/SimulationComponent/GearboxShiftLossesTest.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VectoCore/VectoCoreTest/Models/SimulationComponent/ATGearboxTest.cs b/VectoCore/VectoCoreTest/Models/SimulationComponent/ATGearboxTest.cs index e93ba3f408..659a47f1ad 100644 --- a/VectoCore/VectoCoreTest/Models/SimulationComponent/ATGearboxTest.cs +++ b/VectoCore/VectoCoreTest/Models/SimulationComponent/ATGearboxTest.cs @@ -82,7 +82,7 @@ namespace TUGraz.VectoCore.Tests.Models.SimulationComponent var engineData = MockSimulationDataFactory.CreateEngineDataFromFile(EngineDataFile, gearboxData.Gears.Count); vehicleContainer.Engine = new CombustionEngine(vehicleContainer, engineData); var runData = new VectoRunData() { GearboxData = gearboxData }; - var gearbox = new ATGearbox(vehicleContainer, new ATShiftStrategy(gearboxData, vehicleContainer), runData); + var gearbox = new ATGearbox(vehicleContainer, new ATShiftStrategy(runData, vehicleContainer), runData); vehicleContainer.VehicleSpeed = vehicleSpeed.KMPHtoMeterPerSecond(); diff --git a/VectoCore/VectoCoreTest/Models/SimulationComponent/GearboxShiftLossesTest.cs b/VectoCore/VectoCoreTest/Models/SimulationComponent/GearboxShiftLossesTest.cs index b9fdc5afca..8d86354509 100644 --- a/VectoCore/VectoCoreTest/Models/SimulationComponent/GearboxShiftLossesTest.cs +++ b/VectoCore/VectoCoreTest/Models/SimulationComponent/GearboxShiftLossesTest.cs @@ -113,7 +113,7 @@ namespace TUGraz.VectoCore.Tests.Models.SimulationComponent GearboxData = gearboxData, EngineData = new CombustionEngineData() { Inertia = 5.SI<KilogramSquareMeter>() } }; - var gbx = new ATGearbox(container, new ATShiftStrategy(gearboxData, container), runData); + var gbx = new ATGearbox(container, new ATShiftStrategy(runData, container), runData); gbx.Connect(engine); gbx.IdleController = new MockIdleController(); -- GitLab