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 462cef5a authored by Michael KRISPER's avatar Michael KRISPER
Browse files

ignored some confidential test cases (they only run when the file exists)

parent 2857cf49
Branches
Tags
No related merge requests found
...@@ -347,6 +347,9 @@ namespace TUGraz.VectoCore.Tests.Models.Declaration ...@@ -347,6 +347,9 @@ namespace TUGraz.VectoCore.Tests.Models.Declaration
var engineFldFile = @"E:\QUAM\Downloads\EngineFLD\Map_375c_BB1390_modTUG_R49_375c_BB1386.vfld"; var engineFldFile = @"E:\QUAM\Downloads\EngineFLD\Map_375c_BB1390_modTUG_R49_375c_BB1386.vfld";
var gearboxFile = @"TestData\Components\40t_Long_Haul_Truck.vgbx"; var gearboxFile = @"TestData\Components\40t_Long_Haul_Truck.vgbx";
if (!File.Exists(engineFldFile))
Assert.Inconclusive("Confidential File not found. Test cannot run without file.");
var rdyn = 0.4882675.SI<Meter>(); var rdyn = 0.4882675.SI<Meter>();
var axlegearRatio = 2.59; var axlegearRatio = 2.59;
...@@ -407,6 +410,9 @@ namespace TUGraz.VectoCore.Tests.Models.Declaration ...@@ -407,6 +410,9 @@ namespace TUGraz.VectoCore.Tests.Models.Declaration
public void ComputeShiftPolygon(string engineFldFile, string gearboxFile, double rdyn, double axlegearRatio, public void ComputeShiftPolygon(string engineFldFile, string gearboxFile, double rdyn, double axlegearRatio,
double idlingSpeed) double idlingSpeed)
{ {
if (!Directory.Exists(BasePath))
NUnit.Framework.Assert.Ignore("Confidential File not found. Test cannot run without file.");
var engineData = new CombustionEngineData() { var engineData = new CombustionEngineData() {
IdleSpeed = idlingSpeed.RPMtoRad(), IdleSpeed = idlingSpeed.RPMtoRad(),
FullLoadCurve = EngineFullLoadCurve.ReadFromFile(Path.Combine(BasePath, engineFldFile), true) FullLoadCurve = EngineFullLoadCurve.ReadFromFile(Path.Combine(BasePath, engineFldFile), true)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment