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

Skip to content
Snippets Groups Projects
Commit b6bdb3ab authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

explicit naming of nunit testcases (to avoid warnings, simpler names)

parent 0ad04cd9
No related branches found
No related tags found
No related merge requests found
......@@ -203,34 +203,48 @@ namespace TUGraz.VectoCore.Tests.Integration.BusAuxiliaries
[Category("ComparisonAAUX"),
TestCase(SimpleDrivingCycles.CycleDrive_80_Increasing_Slope,
"Coach_AAux_Drive_80_slope_inc.vmod", "24t Coach_AAux_Cycle_Drive_80_Increasing_Slope.vmod"),
"Coach_AAux_Drive_80_slope_inc.vmod", "24t Coach_AAux_Cycle_Drive_80_Increasing_Slope.vmod",
TestName = "CoachBusAux CycleDrive_80_Increasing_Slope"),
TestCase(SimpleDrivingCycles.CycleDrive_50_Increasing_Slope,
"Coach_AAux_Drive_50_slope_inc.vmod", "24t Coach_AAux_Cycle_Drive_50_Increasing_Slope.vmod"),
"Coach_AAux_Drive_50_slope_inc.vmod", "24t Coach_AAux_Cycle_Drive_50_Increasing_Slope.vmod",
TestName = "CoachBusAux CycleDrive_50_Increasing_Slope"),
TestCase(SimpleDrivingCycles.CycleDrive_30_Increasing_Slope,
"Coach_AAux_Drive_30_slope_inc.vmod", "24t Coach_AAux_Cycle_Drive_30_Increasing_Slope.vmod"),
"Coach_AAux_Drive_30_slope_inc.vmod", "24t Coach_AAux_Cycle_Drive_30_Increasing_Slope.vmod",
TestName = "CoachBusAux CycleDrive_30_Increasing_Slope"),
TestCase(SimpleDrivingCycles.CycleDrive_80_Decreasing_Slope,
"Coach_AAux_Drive_80_slope_dec.vmod", "24t Coach_AAux_Cycle_Drive_80_Decreasing_Slope.vmod"),
"Coach_AAux_Drive_80_slope_dec.vmod", "24t Coach_AAux_Cycle_Drive_80_Decreasing_Slope.vmod",
TestName = "CoachBusAux CycleDrive_80_Decreasing_Slope"),
TestCase(SimpleDrivingCycles.CycleDrive_50_Decreasing_Slope,
"Coach_AAux_Drive_50_slope_dec.vmod", "24t Coach_AAux_Cycle_Drive_50_Decreasing_Slope.vmod"),
"Coach_AAux_Drive_50_slope_dec.vmod", "24t Coach_AAux_Cycle_Drive_50_Decreasing_Slope.vmod",
TestName = "CoachBusAux CycleDrive_50_Decreasing_Slope"),
TestCase(SimpleDrivingCycles.CycleDrive_30_Decreasing_Slope,
"Coach_AAux_Drive_30_slope_dec.vmod", "24t Coach_AAux_Cycle_Drive_30_Decreasing_Slope.vmod"),
"Coach_AAux_Drive_30_slope_dec.vmod", "24t Coach_AAux_Cycle_Drive_30_Decreasing_Slope.vmod",
TestName = "CoachBusAux CycleDrive_30_Decreasing_Slope"),
TestCase(SimpleDrivingCycles.CycleDrive_80_Dec_Increasing_Slope,
"Coach_AAux_Drive_80_slope_dec-inc.vmod", "24t Coach_AAux_Cycle_Drive_80_Dec_Increasing_Slope.vmod"),
"Coach_AAux_Drive_80_slope_dec-inc.vmod", "24t Coach_AAux_Cycle_Drive_80_Dec_Increasing_Slope.vmod",
TestName = "CoachBusAux CycleDrive_80_Dec_Increasing_Slope"),
TestCase(SimpleDrivingCycles.CycleDrive_50_Dec_Increasing_Slope,
"Coach_AAux_Drive_50_slope_dec-inc.vmod", "24t Coach_AAux_Cycle_Drive_50_Dec_Increasing_Slope.vmod"),
"Coach_AAux_Drive_50_slope_dec-inc.vmod", "24t Coach_AAux_Cycle_Drive_50_Dec_Increasing_Slope.vmod",
TestName = "CoachBusAux CycleDrive_50_Dec_Increasing_Slope"),
TestCase(SimpleDrivingCycles.CycleDrive_30_Dec_Increasing_Slope,
"Coach_AAux_Drive_30_slope_dec-inc.vmod", "24t Coach_AAux_Cycle_Drive_30_Dec_Increasing_Slope.vmod"),
"Coach_AAux_Drive_30_slope_dec-inc.vmod", "24t Coach_AAux_Cycle_Drive_30_Dec_Increasing_Slope.vmod",
TestName = "CoachBusAux CycleDrive_30_Dec_Increasing_Slope"),
TestCase(SimpleDrivingCycles.CycleDecelerateWhileBrake_80_0_level,
"Coach_AAux_DecelerateWhileBrake_80_0_level.vmod", "24t Coach_AAux_Cycle_DecelerateWhileBrake_80_0_level.vmod"),
"Coach_AAux_DecelerateWhileBrake_80_0_level.vmod", "24t Coach_AAux_Cycle_DecelerateWhileBrake_80_0_level.vmod",
TestName = "CoachBusAux CycleDecelerateWhileBrake_80_0_level"),
TestCase(SimpleDrivingCycles.CycleAccelerateWhileBrake_80_0_level,
"Coach_AAux_AccelerateWhileBrake_80_0_level.vmod", "24t Coach_AAux_Cycle_AccelerateWhileBrake_80_0_level.vmod"),
"Coach_AAux_AccelerateWhileBrake_80_0_level.vmod", "24t Coach_AAux_Cycle_AccelerateWhileBrake_80_0_level.vmod",
TestName = "CoachBusAux CycleAccelerateWhileBrake_80_0_level"),
TestCase(SimpleDrivingCycles.CycleAccelerateAtBrake_80_0_level,
"Coach_AAux_AccelerateAtBrake_80_0_level.vmod", "24t Coach_AAux_Cycle_AccelerateAtBrake_80_0_level.vmod"),
"Coach_AAux_AccelerateAtBrake_80_0_level.vmod", "24t Coach_AAux_Cycle_AccelerateAtBrake_80_0_level.vmod",
TestName = "CoachBusAux CycleAccelerateAtBrake_80_0_level"),
TestCase(SimpleDrivingCycles.CycleAccelerateBeforeBrake_80_0_level,
"Coach_AAux_AccelerateBeforeBrake_80_0_level.vmod", "24t Coach_AAux_Cycle_AccelerateBeforeBrake_80_0_level.vmod"
"Coach_AAux_AccelerateBeforeBrake_80_0_level.vmod", "24t Coach_AAux_Cycle_AccelerateBeforeBrake_80_0_level.vmod",
TestName = "CoachBusAux CycleAccelerateBeforeBrake_80_0_level"
),
TestCase(SimpleDrivingCycles.CycleDrive_stop_85_stop_85_level,
"Coach_AAux_Drive_stop_85_stop_85_level.vmod", "24t Coach_AAux_Cycle_Drive_stop_85_stop_85_level.vmod"),
"Coach_AAux_Drive_stop_85_stop_85_level.vmod", "24t Coach_AAux_Cycle_Drive_stop_85_stop_85_level.vmod",
TestName = "CoachBusAux CycleDrive_stop_85_stop_85_level"),
]
public void Coach_BusAuxiliaries(string cycleData, string modFileName, string compareFileName)
{
......
......@@ -194,34 +194,37 @@ namespace TUGraz.VectoCore.Tests.Integration.DriverStrategy
[Category("ComparisonV2"),
TestCase(SimpleDrivingCycles.CycleDrive_80_Increasing_Slope,
"40t_Long_Haul_Truck_Cycle_Drive_80_Increasing_Slope.vmod", GearboxType.AMT),
"40t_Long_Haul_Truck_Cycle_Drive_80_Increasing_Slope.vmod", GearboxType.AMT, TestName = "TruckSpecial CycleDrive_80_Increasing_Slope"),
TestCase(SimpleDrivingCycles.CycleDrive_50_Increasing_Slope,
"40t_Long_Haul_Truck_Cycle_Drive_50_Increasing_Slope.vmod", GearboxType.AMT),
"40t_Long_Haul_Truck_Cycle_Drive_50_Increasing_Slope.vmod", GearboxType.AMT, TestName = "TruckSpecial CycleDrive_50_Increasing_Slope"),
TestCase(SimpleDrivingCycles.CycleDrive_30_Increasing_Slope,
"40t_Long_Haul_Truck_Cycle_Drive_30_Increasing_Slope.vmod", GearboxType.AMT),
"40t_Long_Haul_Truck_Cycle_Drive_30_Increasing_Slope.vmod", GearboxType.AMT, TestName = "TruckSpecial CycleDrive_30_Increasing_Slope"),
TestCase(SimpleDrivingCycles.CycleDrive_80_Decreasing_Slope,
"40t_Long_Haul_Truck_Cycle_Drive_80_Decreasing_Slope.vmod", GearboxType.AMT),
"40t_Long_Haul_Truck_Cycle_Drive_80_Decreasing_Slope.vmod", GearboxType.AMT, TestName = "TruckSpecial CycleDrive_80_Decreasing_Slope"),
TestCase(SimpleDrivingCycles.CycleDrive_50_Decreasing_Slope,
"40t_Long_Haul_Truck_Cycle_Drive_50_Decreasing_Slope.vmod", GearboxType.AMT),
"40t_Long_Haul_Truck_Cycle_Drive_50_Decreasing_Slope.vmod", GearboxType.AMT, TestName = "TruckSpecial CycleDrive_50_Decreasing_Slope"),
TestCase(SimpleDrivingCycles.CycleDrive_30_Decreasing_Slope,
"40t_Long_Haul_Truck_Cycle_Drive_30_Decreasing_Slope.vmod", GearboxType.AMT),
"40t_Long_Haul_Truck_Cycle_Drive_30_Decreasing_Slope.vmod", GearboxType.AMT, TestName = "TruckSpecial CycleDrive_30_Decreasing_Slope"),
TestCase(SimpleDrivingCycles.CycleDrive_80_Dec_Increasing_Slope,
"40t_Long_Haul_Truck_Cycle_Drive_80_Dec_Increasing_Slope.vmod", GearboxType.AMT),
"40t_Long_Haul_Truck_Cycle_Drive_80_Dec_Increasing_Slope.vmod", GearboxType.AMT, TestName = "TruckSpecial CycleDrive_80_Dec_Increasing_Slope"),
TestCase(SimpleDrivingCycles.CycleDrive_50_Dec_Increasing_Slope,
"40t_Long_Haul_Truck_Cycle_Drive_50_Dec_Increasing_Slope.vmod", GearboxType.AMT),
"40t_Long_Haul_Truck_Cycle_Drive_50_Dec_Increasing_Slope.vmod", GearboxType.AMT, TestName = "TruckSpecial CycleDrive_50_Dec_Increasing_Slope"),
TestCase(SimpleDrivingCycles.CycleDrive_30_Dec_Increasing_Slope,
"40t_Long_Haul_Truck_Cycle_Drive_30_Dec_Increasing_Slope.vmod", GearboxType.AMT),
"40t_Long_Haul_Truck_Cycle_Drive_30_Dec_Increasing_Slope.vmod", GearboxType.AMT, TestName = "TruckSpecial CycleDrive_30_Dec_Increasing_Slope"),
TestCase(SimpleDrivingCycles.CycleDecelerateWhileBrake_80_0_level,
"40t_Long_Haul_Truck_Cycle_DecelerateWhileBrake_80_0_level.vmod", GearboxType.AMT),
"40t_Long_Haul_Truck_Cycle_DecelerateWhileBrake_80_0_level.vmod", GearboxType.AMT, TestName = "TruckSpecial CycleDecelerateWhileBrake_80_0_level"),
TestCase(SimpleDrivingCycles.CycleAccelerateWhileBrake_80_0_level,
"40t_Long_Haul_Truck_Cycle_AccelerateWhileBrake_80_0_level.vmod", GearboxType.AMT),
"40t_Long_Haul_Truck_Cycle_AccelerateWhileBrake_80_0_level.vmod", GearboxType.AMT, TestName = "TruckSpecial CycleAccelerateWhileBrake_80_0_level"),
TestCase(SimpleDrivingCycles.CycleAccelerateAtBrake_80_0_level,
"40t_Long_Haul_Truck_Cycle_AccelerateAtBrake_80_0_level.vmod", GearboxType.AMT),
"40t_Long_Haul_Truck_Cycle_AccelerateAtBrake_80_0_level.vmod", GearboxType.AMT, TestName = "TruckSpecial CycleAccelerateAtBrake_80_0_level"),
TestCase(SimpleDrivingCycles.CycleAccelerateBeforeBrake_80_0_level,
"40t_Long_Haul_Truck_Cycle_AccelerateBeforeBrake_80_0_level.vmod", GearboxType.AMT),
TestCase(SimpleDrivingCycles.CycleDrive_stop_85_stop_85_level, "24t Truck_Cycle_Drive_stop_85_stop_85_level.vmod", GearboxType.AMT),
TestCase(SimpleDrivingCycles.CycleDrive_SlopeChangeBeforeStop, "Truck_DriverStrategy_SlopeChangeBeforeStop.vmod", GearboxType.AMT),
TestCase(SimpleDrivingCycles.CycleDriver_FrequentSlopChange, "Truck_DriverStrategy_SlopeChangeBeforeStop.vmod", GearboxType.AMT),
"40t_Long_Haul_Truck_Cycle_AccelerateBeforeBrake_80_0_level.vmod", GearboxType.AMT, TestName = "TruckSpecial CycleAccelerateBeforeBrake_80_0_level"),
TestCase(SimpleDrivingCycles.CycleDrive_stop_85_stop_85_level, "24t Truck_Cycle_Drive_stop_85_stop_85_level.vmod",
GearboxType.AMT, TestName = "TruckSpecial CycleDrive_stop_85_stop_85_level"),
TestCase(SimpleDrivingCycles.CycleDrive_SlopeChangeBeforeStop, "Truck_DriverStrategy_SlopeChangeBeforeStop.vmod",
GearboxType.AMT, TestName = "TruckSpecial CycleDrive_SlopeChangeBeforeStop"),
TestCase(SimpleDrivingCycles.CycleDriver_FrequentSlopChange, "Truck_DriverStrategy_SlopeChangeBeforeStop.vmod",
GearboxType.AMT, TestName = "TruckSpecial CycleDriver_FrequentSlopChange"),
]
public void Truck_Special(string cycleData, string modFileName, GearboxType gbxType = GearboxType.AMT)
{
......@@ -353,34 +356,40 @@ namespace TUGraz.VectoCore.Tests.Integration.DriverStrategy
[Category("ComparisonV2"),
TestCase(SimpleDrivingCycles.CycleDrive_80_Increasing_Slope,
"24t Coach_Cycle_Drive_80_Increasing_Slope.vmod"),
"24t Coach_Cycle_Drive_80_Increasing_Slope.vmod", TestName = "CoachSpecial CycleDrive_80_Increasing_Slope"),
TestCase(SimpleDrivingCycles.CycleDrive_50_Increasing_Slope,
"24t Coach_Cycle_Drive_50_Increasing_Slope.vmod"),
"24t Coach_Cycle_Drive_50_Increasing_Slope.vmod", TestName = "CoachSpecial CycleDrive_50_Increasing_Slope"),
TestCase(SimpleDrivingCycles.CycleDrive_30_Increasing_Slope,
"24t Coach_Cycle_Drive_30_Increasing_Slope.vmod"),
"24t Coach_Cycle_Drive_30_Increasing_Slope.vmod", TestName = "CoachSpecial CycleDrive_30_Increasing_Slope"),
TestCase(SimpleDrivingCycles.CycleDrive_80_Decreasing_Slope,
"24t Coach_Cycle_Drive_80_Decreasing_Slope.vmod"),
"24t Coach_Cycle_Drive_80_Decreasing_Slope.vmod", TestName = "CoachSpecial CycleDrive_80_Decreasing_Slope"),
TestCase(SimpleDrivingCycles.CycleDrive_50_Decreasing_Slope,
"24t Coach_Cycle_Drive_50_Decreasing_Slope.vmod"),
"24t Coach_Cycle_Drive_50_Decreasing_Slope.vmod", TestName = "CoachSpecial CycleDrive_50_Decreasing_Slope"),
TestCase(SimpleDrivingCycles.CycleDrive_30_Decreasing_Slope,
"24t Coach_Cycle_Drive_30_Decreasing_Slope.vmod"),
"24t Coach_Cycle_Drive_30_Decreasing_Slope.vmod", TestName = "CoachSpecial CycleDrive_30_Decreasing_Slope"),
TestCase(SimpleDrivingCycles.CycleDrive_80_Dec_Increasing_Slope,
"24t Coach_Cycle_Drive_80_Dec_Increasing_Slope.vmod"),
"24t Coach_Cycle_Drive_80_Dec_Increasing_Slope.vmod", TestName = "CoachSpecial CycleDrive_80_Dec_Increasing_Slope"),
TestCase(SimpleDrivingCycles.CycleDrive_50_Dec_Increasing_Slope,
"24t Coach_Cycle_Drive_50_Dec_Increasing_Slope.vmod"),
"24t Coach_Cycle_Drive_50_Dec_Increasing_Slope.vmod", TestName = "CoachSpecial CycleDrive_50_Dec_Increasing_Slope"),
TestCase(SimpleDrivingCycles.CycleDrive_30_Dec_Increasing_Slope,
"24t Coach_Cycle_Drive_30_Dec_Increasing_Slope.vmod"),
"24t Coach_Cycle_Drive_30_Dec_Increasing_Slope.vmod", TestName = "CoachSpecialCycleDrive_30_Dec_Increasing_Slope "),
TestCase(SimpleDrivingCycles.CycleDecelerateWhileBrake_80_0_level,
"24t Coach_Cycle_DecelerateWhileBrake_80_0_level.vmod"),
"24t Coach_Cycle_DecelerateWhileBrake_80_0_level.vmod",
TestName = "CoachSpecial CycleDecelerateWhileBrake_80_0_level"),
TestCase(SimpleDrivingCycles.CycleAccelerateWhileBrake_80_0_level,
"24t Coach_Cycle_AccelerateWhileBrake_80_0_level.vmod"),
"24t Coach_Cycle_AccelerateWhileBrake_80_0_level.vmod",
TestName = "CoachSpecial CycleAccelerateWhileBrake_80_0_level"),
TestCase(SimpleDrivingCycles.CycleAccelerateAtBrake_80_0_level,
"24t Coach_Cycle_AccelerateAtBrake_80_0_level.vmod"),
"24t Coach_Cycle_AccelerateAtBrake_80_0_level.vmod", TestName = "CoachSpecial CycleAccelerateAtBrake_80_0_level"),
TestCase(SimpleDrivingCycles.CycleAccelerateBeforeBrake_80_0_level,
"24t Coach_Cycle_AccelerateBeforeBrake_80_0_level.vmod"),
TestCase(SimpleDrivingCycles.CycleDrive_stop_85_stop_85_level, "24t Coach_Cycle_Drive_stop_85_stop_85_level.vmod"),
TestCase(SimpleDrivingCycles.CycleDrive_SlopeChangeBeforeStop, "24t Coach_DriverStrategy_SlopeChangeBeforeStop.vmod"),
TestCase(SimpleDrivingCycles.CycleDriver_FrequentSlopChange, "24t Coach_DriverStrategy_SlopeChangeBeforeStop.vmod"),
"24t Coach_Cycle_AccelerateBeforeBrake_80_0_level.vmod",
TestName = "CoachSpecial CycleAccelerateBeforeBrake_80_0_level"),
TestCase(SimpleDrivingCycles.CycleDrive_stop_85_stop_85_level, "24t Coach_Cycle_Drive_stop_85_stop_85_level.vmod",
TestName = "CoachSpecial CycleDrive_stop_85_stop_85_level"),
TestCase(SimpleDrivingCycles.CycleDrive_SlopeChangeBeforeStop, "24t Coach_DriverStrategy_SlopeChangeBeforeStop.vmod",
TestName = "CoachSpecial CycleDrive_SlopeChangeBeforeStop"),
TestCase(SimpleDrivingCycles.CycleDriver_FrequentSlopChange, "24t Coach_DriverStrategy_SlopeChangeBeforeStop.vmod",
TestName = "CoachSpecial CycleDriver_FrequentSlopChange"),
]
public void Coach_Special(string cycleData, string modFileName)
{
......
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