Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

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

reproduce bug in testcase

parent d57b69e0
No related branches found
No related tags found
No related merge requests found
Source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -60,6 +60,9 @@ namespace TUGraz.VectoCore.Tests.XML
const string SampleVehicleDecl = "TestData/XML/XMLReaderDeclaration/vecto_vehicle-sample.xml";
const string SampleVehicleFullDecl = "TestData/XML/XMLReaderDeclaration/vecto_vehicle-sample_FULL.xml";
const string SampleVehicleFullDeclCertificationOptions =
"TestData/XML/XMLReaderDeclaration/vecto_vehicle-sample_certificationOptions.xml";
[TestMethod]
public void TestXMLInputEng()
{
......@@ -802,5 +805,18 @@ namespace TUGraz.VectoCore.Tests.XML
Assert.AreEqual("only the drive shaft of the PTO - multi-disc clutch", ptoDataProvider.PTOTransmissionType);
Assert.AreEqual(1000, lookup.PowerDemand.Value());
}
[TestMethod]
public void TestCertificationMethodInput()
{
var reader = XmlReader.Create(SampleVehicleFullDeclCertificationOptions);
var inputDataProvider = new XMLDeclarationInputDataProvider(reader, true);
Assert.AreEqual(CertificationMethod.Measured, inputDataProvider.GearboxInputData.CertificationMethod);
Assert.AreEqual(CertificationMethod.Measured, inputDataProvider.AxleGearInputData.CertificationMethod);
Assert.AreEqual(CertificationMethod.Measured, inputDataProvider.RetarderInputData.CertificationMethod);
Assert.AreEqual(CertificationMethod.Measured, inputDataProvider.AirdragInputData.CertificationMethod);
}
}
}
\ 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