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

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

updated tests with TODO's

parent 30edda6e
No related branches found
No related tags found
No related merge requests found
......@@ -179,7 +179,7 @@ namespace TUGraz.VectoCore.Tests.Models.SimulationComponentData
target.Parameters.Add(new MethodCallParameter("${message}"));
SimpleConfigurator.ConfigureForTargetLogging(target, LogLevel.Debug);
EngineFullLoadCurve.ReadFromFile(@"TestData\Components\FullLoadCurve wrong header.vfld");
Assert.IsTrue(LogList.Contains(@"FullLoadCurve: Header Line is not valid. Expected: 'engine speed, full load torque, motoring torque', Got: 'n, Mfull, Mdrag, PT1'. Falling back to column index."));
Assert.IsTrue(LogList.Contains("FullLoadCurve: Header Line is not valid. Expected: \'engine speed, full load torque, motoring torque\', Got: \'n, Mfull, Mdrag, PT1\'. Falling back to column index."));
LogList.Clear();
}
......
......@@ -58,13 +58,14 @@ namespace TUGraz.VectoCore.Tests.Models.SimulationComponentData
[TestMethod]
public void TestGearboxDataReadTest()
{
var axleData = MockSimulationDataFactory.CreateAxleGearDataFromFile(GearboxFile);
Assert.AreEqual(3.240355, axleData.AxleGear.Ratio, 0.0001);
var gbxData = MockSimulationDataFactory.CreateGearboxDataFromFile(GearboxFile, EngineFile, false);
Assert.AreEqual(GearboxType.AMT, gbxData.Type);
Assert.AreEqual(1.0, gbxData.TractionInterruption.Value(), 0.0001);
Assert.AreEqual(8, gbxData.Gears.Count);
// Todo: Assert.AreEqual(3.240355, gbxData.AxleGearData.Ratio, 0.0001);
Assert.AreEqual(1.0, gbxData.Gears[7].Ratio, 0.0001);
Assert.AreEqual(-400, gbxData.Gears[1].ShiftPolygon.Downshift[0].Torque.Value(), 0.0001);
......
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