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 6c2675c8 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

correct testcases for segment lookups: compare with body weight of municipal body, update max load

parent 98ea8a68
Branches
No related merge requests found
...@@ -1086,14 +1086,14 @@ namespace TUGraz.VectoCore.Tests.Models.Declaration ...@@ -1086,14 +1086,14 @@ namespace TUGraz.VectoCore.Tests.Models.Declaration
axleWeightDistribution: new[] { 0.45, 0.55 }, axleWeightDistribution: new[] { 0.45, 0.55 },
trailerAxleWeightDistribution: new double[] { }, trailerAxleWeightDistribution: new double[] { },
trailerAxleCount: new int[] { }, trailerAxleCount: new int[] { },
bodyCurbWeight: 2100, bodyCurbWeight: 6000,
trailerCurbWeight: new double[] { }, trailerCurbWeight: new double[] { },
trailerType: new TrailerType[] { }, trailerType: new TrailerType[] { },
lowLoad: 600, lowLoad: 600,
refLoad: 3000, refLoad: 3000,
trailerGrossVehicleWeight: new double[] { }, trailerGrossVehicleWeight: new double[] { },
deltaCdA: 0, deltaCdA: 0,
maxLoad: 8400); maxLoad: 4500);
} }
/// <summary> /// <summary>
...@@ -1126,14 +1126,14 @@ namespace TUGraz.VectoCore.Tests.Models.Declaration ...@@ -1126,14 +1126,14 @@ namespace TUGraz.VectoCore.Tests.Models.Declaration
axleWeightDistribution: new[] { 0.45, 0.55 }, axleWeightDistribution: new[] { 0.45, 0.55 },
trailerAxleWeightDistribution: new double[] { }, trailerAxleWeightDistribution: new double[] { },
trailerAxleCount: new int[] { }, trailerAxleCount: new int[] { },
bodyCurbWeight: 2100, bodyCurbWeight: 6000,
trailerCurbWeight: new double[] { }, trailerCurbWeight: new double[] { },
trailerType: new TrailerType[] { }, trailerType: new TrailerType[] { },
lowLoad: 600, lowLoad: 600,
refLoad: 3000, refLoad: 3000,
trailerGrossVehicleWeight: new double[] { }, trailerGrossVehicleWeight: new double[] { },
deltaCdA: 0, deltaCdA: 0,
maxLoad: 8400); maxLoad: 4500);
AssertMission(segment.Missions[1], AssertMission(segment.Missions[1],
vehicleData: vehicleData, vehicleData: vehicleData,
...@@ -1376,14 +1376,14 @@ namespace TUGraz.VectoCore.Tests.Models.Declaration ...@@ -1376,14 +1376,14 @@ namespace TUGraz.VectoCore.Tests.Models.Declaration
axleWeightDistribution: new[] { 0.35, 0.4, 0.25 }, axleWeightDistribution: new[] { 0.35, 0.4, 0.25 },
trailerAxleWeightDistribution: new double[] { }, trailerAxleWeightDistribution: new double[] { },
trailerAxleCount: new int[] { }, trailerAxleCount: new int[] { },
bodyCurbWeight: 2200, bodyCurbWeight: 6750,
trailerCurbWeight: new double[] { }, trailerCurbWeight: new double[] { },
trailerType: new TrailerType[] { }, trailerType: new TrailerType[] { },
lowLoad: 1200, lowLoad: 1200,
refLoad: 6000, refLoad: 6000,
trailerGrossVehicleWeight: new double[] { }, trailerGrossVehicleWeight: new double[] { },
deltaCdA: 0, deltaCdA: 0,
maxLoad: 14300); maxLoad: 9750);
} }
/// <summary> /// <summary>
...@@ -1416,14 +1416,14 @@ namespace TUGraz.VectoCore.Tests.Models.Declaration ...@@ -1416,14 +1416,14 @@ namespace TUGraz.VectoCore.Tests.Models.Declaration
axleWeightDistribution: new[] { 0.35, 0.4, 0.25 }, axleWeightDistribution: new[] { 0.35, 0.4, 0.25 },
trailerAxleWeightDistribution: new double[] { }, trailerAxleWeightDistribution: new double[] { },
trailerAxleCount: new int[] { }, trailerAxleCount: new int[] { },
bodyCurbWeight: 2200, bodyCurbWeight: 6750,
trailerCurbWeight: new double[] { }, trailerCurbWeight: new double[] { },
trailerType: new TrailerType[] { }, trailerType: new TrailerType[] { },
lowLoad: 1200, lowLoad: 1200,
refLoad: 6000, refLoad: 6000,
trailerGrossVehicleWeight: new double[] { }, trailerGrossVehicleWeight: new double[] { },
deltaCdA: 0, deltaCdA: 0,
maxLoad: 14300); maxLoad: 9750);
AssertMission(segment.Missions[1], AssertMission(segment.Missions[1],
vehicleData: vehicleData, vehicleData: vehicleData,
...@@ -1669,14 +1669,14 @@ namespace TUGraz.VectoCore.Tests.Models.Declaration ...@@ -1669,14 +1669,14 @@ namespace TUGraz.VectoCore.Tests.Models.Declaration
axleWeightDistribution: new[] { 0.35, 0.35, 0.3 }, axleWeightDistribution: new[] { 0.35, 0.35, 0.3 },
trailerAxleWeightDistribution: new double[] { }, trailerAxleWeightDistribution: new double[] { },
trailerAxleCount: new int[] { }, trailerAxleCount: new int[] { },
bodyCurbWeight: 2200, bodyCurbWeight: 6750,
trailerCurbWeight: new double[] { }, trailerCurbWeight: new double[] { },
trailerType: new TrailerType[] { }, trailerType: new TrailerType[] { },
lowLoad: 1200, lowLoad: 1200,
refLoad: 6000, refLoad: 6000,
trailerGrossVehicleWeight: new double[] { }, trailerGrossVehicleWeight: new double[] { },
deltaCdA: 0, deltaCdA: 0,
maxLoad: 14300); maxLoad: 9750);
AssertMission(segment.Missions[5], AssertMission(segment.Missions[5],
vehicleData: vehicleData, vehicleData: vehicleData,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment