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

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

added new test with a different gearbox (12t truck)

parent cd2ee3ec
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,9 @@ namespace TUGraz.VectoCore.Tests.Integration
public const string DeliveryTruckDeclarationJob =
@"TestData\Integration\DeclarationMode\12t Truck\12t Delivery Truck.vecto";
public const string DeliveryTruck8GearDeclarationJob =
@"TestData\Integration\DeclarationMode\12t Truck\12t Delivery Truck_8gear.vecto";
[TestMethod]
public void Truck40t_LongHaulCycle_RefLoad()
{
......@@ -186,5 +189,27 @@ namespace TUGraz.VectoCore.Tests.Integration
Assert.IsTrue(jobContainer.Runs.All(r => r.Success), string.Concat(jobContainer.Runs.Select(r => r.ExecException)));
}
[TestMethod, TestCategory("LongRunning")]
public void Truck12t8Gear_DeclarationTest()
{
var inputData = JSONInputDataFactory.ReadJsonJob(DeliveryTruck8GearDeclarationJob);
var fileWriter = new FileOutputWriter(DeliveryTruck8GearDeclarationJob);
var factory = new SimulatorFactory(ExecutionMode.Declaration, inputData, fileWriter) {
WriteModalResults = true
};
var sumData = new SummaryDataContainer(fileWriter);
var jobContainer = new JobContainer(sumData);
jobContainer.AddRuns(factory);
var runs = jobContainer.Runs;
//runs[8].Run.Run();
jobContainer.Execute();
jobContainer.WaitFinished();
Assert.IsTrue(jobContainer.Runs.All(r => r.Success), string.Concat(jobContainer.Runs.Select(r => r.ExecException)));
}
}
}
\ No newline at end of file
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