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

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

adding testcase to reproduce error: no certification number for tyres in xml report

parent 0991a4be
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,7 @@
*/
using System.IO;
using System.Linq;
using System.Xml;
using System.Xml.XPath;
using NUnit.Framework;
......@@ -78,6 +79,13 @@ namespace TUGraz.VectoCore.Tests.Integration
var manufacturerReport = xmlReport.FullReport;
Assert.AreEqual(5, manufacturerReport.XPathSelectElement("//*[local-name()='VehicleGroup']").Value.ToInt());
var reportWheels = manufacturerReport.XPathSelectElements("//*[local-name()='TyreCertificationNumber']").ToList();
var i = 0;
Assert.AreEqual(dataProvider.JobInputData.Vehicle.Axles.Count, reportWheels.Count);
foreach (var axleDeclarationInputData in dataProvider.JobInputData.Vehicle.Axles) {
Assert.AreEqual(axleDeclarationInputData.Tyre.CertificationNumber, reportWheels[i++].Value);
}
}
}
}
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