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

Skip to content
Snippets Groups Projects
Commit bc2e4d94 authored by Markus QUARITSCH's avatar Markus QUARITSCH
Browse files

updating testcase for drawing shift polygons

parent 6e7270d4
No related branches found
No related tags found
No related merge requests found
......@@ -592,16 +592,15 @@ namespace TUGraz.VectoCore.Tests.Models.Declaration
}
}
[TestCase]
public void ComputeShiftPolygonDeclarationTestConfidentialXMLJob()
[TestCase(@"E:\QUAM\Downloads\upshifts-missing_over-revving\FL_curve_orig.xml"),
TestCase(@"E:\QUAM\Downloads\VECTO_821\VECTO_lorry_6x2_13L_276kW.vecto")]
public void ComputeShiftPolygonDeclarationTestConfidentialXMLJob(string jobFile)
{
var jobFile = @"E:\QUAM\Downloads\upshifts-missing_over-revving\FL_curve_orig.xml";
if (!File.Exists(jobFile)) {
Assert.Inconclusive("Confidential File not found. Test cannot run without file.");
}
var job = new XMLDeclarationInputDataProvider(jobFile, true);
IDeclarationInputDataProvider job = (IDeclarationInputDataProvider)(Path.GetExtension(jobFile) == ".vecto" ? JSONInputDataFactory.ReadJsonJob(jobFile) : new XMLDeclarationInputDataProvider(jobFile, true));
var gearboxData = job.JobInputData.Vehicle.GearboxInputData;
var idlespeed = VectoMath.Max(
......
This diff is collapsed.
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