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

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

adding sample testcase to reproduce bug (AT Declaration Truck)

parent 533bfed8
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ namespace TUGraz.VectoCore.Tests.Integration
var manufacturerReport = xmlReport.FullReport;
Assert.AreEqual(5, manufacturerReport.XPathSelectElement("//*[local-name()='VehicleGroup']").Value.ToInt());
Assert.AreEqual(5, manufacturerReport.XPathSelectElement("//*[local-name()='VehicleGroup']")?.Value.ToInt());
var reportWheels = manufacturerReport.XPathSelectElements("//*[local-name()='TyreCertificationNumber']").ToList();
var i = 0;
......
......@@ -2721,6 +2721,9 @@
</Content>
<Content Include="TestData\XML\XMLReaderDeclaration\vecto_engine-sample.xml" />
<Content Include="TestData\XML\XMLReaderDeclaration\vecto_gearbox-sample.xml" />
<Content Include="TestData\XML\XMLReaderDeclaration\vecto_vehicle-sample_AT.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="TestData\XML\XMLReaderDeclaration\vecto_vehicle-sample_noAirdrag.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
......
......@@ -46,14 +46,17 @@ namespace TUGraz.VectoCore.Tests.XML
public class XMLReportTest
{
const string SampleVehicleDecl = "TestData/XML/XMLReaderDeclaration/vecto_vehicle-sample.xml";
const string SampleVehicleDeclAT = "TestData/XML/XMLReaderDeclaration/vecto_vehicle-sample_AT.xml";
[OneTimeSetUp]
public void RunBeforeAnyTests()
{
Directory.SetCurrentDirectory(TestContext.CurrentContext.TestDirectory);
}
[TestCase(SampleVehicleDecl)]
[TestCase(SampleVehicleDecl),
TestCase(SampleVehicleDeclAT)]
public void RunDeclarationJob(string filename)
{
var fileWriter = new FileOutputWriter(filename);
......
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