From d730c87054cb2c04d5d2183250e1747b7f3bff9f Mon Sep 17 00:00:00 2001 From: "VKMTHD\\franzjosefkober" <franz.josef.kober@ivt.tugraz.at> Date: Wed, 26 Jan 2022 11:53:43 +0100 Subject: [PATCH] added additional test for xEV components --- .../Resources/XSLT/SortInputData.xslt | 6 +- .../ElectricMachineSystem-IHPC_1_unsorted.xml | 42 +++++----- .../Sort/ElectricMachineSystem_1_unsorted.xml | 3 +- .../Testdata/XML/Sort/Gearbox_FWD.xml | 79 +++++++++++++++++++ .../XML/Sort/Gearbox_FWD_unsorted.xml | 79 +++++++++++++++++++ .../VectoHashingTest/VectoHashSortTest.cs | 8 +- .../VectoHashingTest/VectoHashingTest.csproj | 6 ++ 7 files changed, 196 insertions(+), 27 deletions(-) create mode 100644 VectoCommon/VectoHashingTest/Testdata/XML/Sort/Gearbox_FWD.xml create mode 100644 VectoCommon/VectoHashingTest/Testdata/XML/Sort/Gearbox_FWD_unsorted.xml diff --git a/VectoCommon/VectoHashing/Resources/XSLT/SortInputData.xslt b/VectoCommon/VectoHashing/Resources/XSLT/SortInputData.xslt index 2686e89879..8b15b19ce3 100644 --- a/VectoCommon/VectoHashing/Resources/XSLT/SortInputData.xslt +++ b/VectoCommon/VectoHashing/Resources/XSLT/SortInputData.xslt @@ -24,7 +24,7 @@ - sort dragcurve entries - sort conditioning entries - sort powermaps by gear attribute - - sort voltage entries by voltage element value + - sort voltagelevel entries by voltage element value - sort ovc entries - sort internalresistance entries - sort currentlimits entries @@ -116,7 +116,7 @@ </xsl:element> </xsl:template> - + <xsl:template match="*[local-name()='MaxTorqueCurve']"> <xsl:element name="{local-name()}"> <xsl:apply-templates select="@*"/> @@ -224,6 +224,6 @@ <xsl:apply-templates select="."/> </xsl:for-each> </xsl:element> - </xsl:template> + </xsl:template> </xsl:transform> diff --git a/VectoCommon/VectoHashingTest/Testdata/XML/Sort/ElectricMachineSystem-IHPC_1_unsorted.xml b/VectoCommon/VectoHashingTest/Testdata/XML/Sort/ElectricMachineSystem-IHPC_1_unsorted.xml index c48484ef29..2cc9e403a7 100644 --- a/VectoCommon/VectoHashingTest/Testdata/XML/Sort/ElectricMachineSystem-IHPC_1_unsorted.xml +++ b/VectoCommon/VectoHashingTest/Testdata/XML/Sort/ElectricMachineSystem-IHPC_1_unsorted.xml @@ -13,32 +13,32 @@ <RotationalInertia>0.10</RotationalInertia> <DcDcConverterIncluded>true</DcDcConverterIncluded> <IHPCType>IHPC Type 1</IHPCType> - <VoltageLevel> - <Voltage>400</Voltage> - <ContinuousTorque>200.00</ContinuousTorque> + <VoltageLevel> + <Voltage>600</Voltage> + <ContinuousTorque>200.00</ContinuousTorque> <TestSpeedContinuousTorque>2000.00</TestSpeedContinuousTorque> <OverloadTorque>400.00</OverloadTorque> <TestSpeedOverloadTorque>2000.00</TestSpeedOverloadTorque> <OverloadDuration>30.00</OverloadDuration> - <MaxTorqueCurve> + <MaxTorqueCurve> <Entry outShaftSpeed="4000.00" maxTorque="100.00" minTorque="-100.00"/> <Entry outShaftSpeed="0.00" maxTorque="450.00" minTorque="-450.00"/> </MaxTorqueCurve> <PowerMap gear="2"> - <Entry outShaftSpeed="0.00" torque="400.00" electricPower="1000.00"/> <Entry outShaftSpeed="4000.00" torque="-4000.00" electricPower="-20000.00"/> - <Entry outShaftSpeed="0.00" torque="-400.00" electricPower="-1000.00"/> <Entry outShaftSpeed="4000.00" torque="4000.00" electricPower="20000.00"/> - </PowerMap> - <PowerMap gear="1"> + <Entry outShaftSpeed="0.00" torque="-400.00" electricPower="-1000.00"/> <Entry outShaftSpeed="0.00" torque="400.00" electricPower="1000.00"/> - <Entry outShaftSpeed="4000.00" torque="-4000.00" electricPower="-20000.00"/> + </PowerMap> + <PowerMap gear="1"> <Entry outShaftSpeed="0.00" torque="-400.00" electricPower="-1000.00"/> <Entry outShaftSpeed="4000.00" torque="4000.00" electricPower="20000.00"/> - </PowerMap> + <Entry outShaftSpeed="4000.00" torque="-4000.00" electricPower="-20000.00"/> + <Entry outShaftSpeed="0.00" torque="400.00" electricPower="1000.00"/> + </PowerMap> </VoltageLevel> - <VoltageLevel> - <Voltage>600</Voltage> + <VoltageLevel> + <Voltage>400</Voltage> <ContinuousTorque>200.00</ContinuousTorque> <TestSpeedContinuousTorque>2000.00</TestSpeedContinuousTorque> <OverloadTorque>400.00</OverloadTorque> @@ -49,25 +49,27 @@ <Entry outShaftSpeed="0.00" maxTorque="450.00" minTorque="-450.00"/> </MaxTorqueCurve> <PowerMap gear="2"> + <Entry outShaftSpeed="0.00" torque="400.00" electricPower="1000.00"/> <Entry outShaftSpeed="4000.00" torque="-4000.00" electricPower="-20000.00"/> - <Entry outShaftSpeed="4000.00" torque="4000.00" electricPower="20000.00"/> <Entry outShaftSpeed="0.00" torque="-400.00" electricPower="-1000.00"/> - <Entry outShaftSpeed="0.00" torque="400.00" electricPower="1000.00"/> + <Entry outShaftSpeed="4000.00" torque="4000.00" electricPower="20000.00"/> </PowerMap> <PowerMap gear="1"> - <Entry outShaftSpeed="0.00" torque="-400.00" electricPower="-1000.00"/> - <Entry outShaftSpeed="4000.00" torque="4000.00" electricPower="20000.00"/> - <Entry outShaftSpeed="4000.00" torque="-4000.00" electricPower="-20000.00"/> <Entry outShaftSpeed="0.00" torque="400.00" electricPower="1000.00"/> + <Entry outShaftSpeed="4000.00" torque="-4000.00" electricPower="-20000.00"/> + <Entry outShaftSpeed="0.00" torque="-400.00" electricPower="-1000.00"/> + <Entry outShaftSpeed="4000.00" torque="4000.00" electricPower="20000.00"/> </PowerMap> </VoltageLevel> + <DragCurve> <Entry outShaftSpeed="4000.00" dragTorque="30.00" /> <Entry outShaftSpeed="0.00" dragTorque="10.00" /> </DragCurve> <Conditioning> - <Entry coolantTempInlet="30" coolingPower="5000" /> - </Conditioning> + <Entry coolantTempInlet="50" coolingPower="5000" /> + <Entry coolantTempInlet="30" coolingPower="5000" /> + </Conditioning> </Data> <v2.10.1:Signature> <di:Reference URI="#EM-asdf"> @@ -76,7 +78,7 @@ <di:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /> </di:Transforms> <di:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" /> - <di:DigestValue>vvxJmw6PIWC5lHtnDAYVoxy6sF97g24Ti/QDlUq09tc=</di:DigestValue> + <di:DigestValue>X5dgavua/V/jzBQeJ6SxZXsXm3i1jruL48LedzZ5IxU=</di:DigestValue> </di:Reference> </v2.10.1:Signature> </tns:ElectricMachineSystem> diff --git a/VectoCommon/VectoHashingTest/Testdata/XML/Sort/ElectricMachineSystem_1_unsorted.xml b/VectoCommon/VectoHashingTest/Testdata/XML/Sort/ElectricMachineSystem_1_unsorted.xml index 3dffc91da1..352fa54c78 100644 --- a/VectoCommon/VectoHashingTest/Testdata/XML/Sort/ElectricMachineSystem_1_unsorted.xml +++ b/VectoCommon/VectoHashingTest/Testdata/XML/Sort/ElectricMachineSystem_1_unsorted.xml @@ -54,6 +54,7 @@ <Entry outShaftSpeed="0.00" dragTorque="10.00"/> </DragCurve> <Conditioning> + <Entry coolantTempInlet="60" coolingPower="6000"/> <Entry coolantTempInlet="30" coolingPower="5000"/> </Conditioning> </Data> @@ -64,7 +65,7 @@ <di:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> </di:Transforms> <di:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/> - <di:DigestValue>TilK8FUXim9VK3Jy2qTIdogjpWvSF0cj/Ny1fyuoajk=</di:DigestValue> + <di:DigestValue>wLFLpJxFZ6mDXeqdlZCGVOLCoXTCf7XTL0q9ZKkmt7o=</di:DigestValue> </di:Reference> </v2.10.1:Signature> </tns:ElectricMachineSystem> diff --git a/VectoCommon/VectoHashingTest/Testdata/XML/Sort/Gearbox_FWD.xml b/VectoCommon/VectoHashingTest/Testdata/XML/Sort/Gearbox_FWD.xml new file mode 100644 index 0000000000..997f5129c0 --- /dev/null +++ b/VectoCommon/VectoHashingTest/Testdata/XML/Sort/Gearbox_FWD.xml @@ -0,0 +1,79 @@ +<?xml version="1.0" encoding="utf-8"?> +<tns:VectoInputDeclaration xmlns="urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:v2.10.1" xmlns:tns="urn:tugraz:ivt:VectoAPI:DeclarationComponent:v2.10" xmlns:v2.0="urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:v2.0" xmlns:v2.3="urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:DEV:v2.3" xmlns:v2.6="urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:DEV:v2.6" xmlns:v2.10.1="urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:DEV:v2.10.1" xmlns:di="http://www.w3.org/2000/09/xmldsig#" schemaVersion="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:tugraz:ivt:VectoAPI:DeclarationComponent v:\VectoCore\VectoCore\Resources\XSD/VectoDeclarationComponent.xsd"> + <tns:Gearbox xsi:type="v2.0:GearboxComponentDeclarationType"> + <v2.0:Data xmlns="urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:DEV:v2.10.1" xsi:type="GearboxFWDDataDeclarationType" id="GBX-asdf"> + <Manufacturer>Generic Vendor</Manufacturer> + <Model>GB_12-gear</Model> + <CertificationNumber>GBX-GB_12-gear</CertificationNumber> + <Date>2021-11-18T14:23:31.4958567Z</Date> + <AppVersion>VectoCore</AppVersion> + <TransmissionType>APT-P</TransmissionType> + <MainCertificationMethod>Standard values</MainCertificationMethod> + <DifferentialIncluded>true</DifferentialIncluded> + <AxlegearRatio>1.000</AxlegearRatio> + <v2.10.1:Gears xsi:type="v2.0:GearsDeclarationType" xmlns="urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:v2.0"> + <Gear number="1"> + <Ratio>14.930</Ratio> + <MaxTorque>1000</MaxTorque> + <MaxSpeed>100</MaxSpeed> + <TorqueLossMap> + <Entry inputSpeed="0.00" inputTorque="-50000.10" torqueLoss="2000.10" /> + <Entry inputSpeed="0.00" inputTorque="-125.10" torqueLoss="5.10" /> + <Entry inputSpeed="0.00" inputTorque="0.10" torqueLoss="5.10" /> + <Entry inputSpeed="0.00" inputTorque="125.10" torqueLoss="5.10" /> + <Entry inputSpeed="0.00" inputTorque="50000.10" torqueLoss="2000.10" /> + <Entry inputSpeed="5000.00" inputTorque="-50000.10" torqueLoss="2000.10" /> + <Entry inputSpeed="5000.00" inputTorque="-780.10" torqueLoss="31.10" /> + <Entry inputSpeed="5000.00" inputTorque="0.10" torqueLoss="31.10" /> + <Entry inputSpeed="5000.00" inputTorque="780.10" torqueLoss="31.10" /> + <Entry inputSpeed="5000.00" inputTorque="50000.10" torqueLoss="2000.10" /> + </TorqueLossMap> + </Gear> + <Gear number="2"> + <Ratio>11.640</Ratio> + <MaxTorque>1200</MaxTorque> + <MaxSpeed>110</MaxSpeed> + <TorqueLossMap> + <Entry inputSpeed="0.00" inputTorque="-50000.20" torqueLoss="2000.20" /> + <Entry inputSpeed="0.00" inputTorque="-125.20" torqueLoss="5.20" /> + <Entry inputSpeed="0.00" inputTorque="0.20" torqueLoss="5.20" /> + <Entry inputSpeed="0.00" inputTorque="125.20" torqueLoss="5.20" /> + <Entry inputSpeed="0.00" inputTorque="50000.20" torqueLoss="2000.20" /> + <Entry inputSpeed="5000.00" inputTorque="-50000.20" torqueLoss="2000.20" /> + <Entry inputSpeed="5000.00" inputTorque="-780.20" torqueLoss="31.20" /> + <Entry inputSpeed="5000.00" inputTorque="0.20" torqueLoss="31.20" /> + <Entry inputSpeed="5000.00" inputTorque="780.20" torqueLoss="31.20" /> + <Entry inputSpeed="5000.00" inputTorque="50000.20" torqueLoss="2000.20" /> + </TorqueLossMap> + </Gear> + <Gear number="3"> + <Ratio>9.020</Ratio> + <MaxTorque>1300</MaxTorque> + <MaxSpeed>112</MaxSpeed> + <TorqueLossMap> + <Entry inputSpeed="0.00" inputTorque="-50000.30" torqueLoss="2000.30" /> + <Entry inputSpeed="0.00" inputTorque="-125.30" torqueLoss="5.30" /> + <Entry inputSpeed="0.00" inputTorque="0.30" torqueLoss="5.30" /> + <Entry inputSpeed="0.00" inputTorque="125.30" torqueLoss="5.30" /> + <Entry inputSpeed="0.00" inputTorque="50000.30" torqueLoss="2000.30" /> + <Entry inputSpeed="5000.00" inputTorque="-50000.30" torqueLoss="2000.30" /> + <Entry inputSpeed="5000.00" inputTorque="-780.30" torqueLoss="31.30" /> + <Entry inputSpeed="5000.00" inputTorque="0.30" torqueLoss="31.30" /> + <Entry inputSpeed="5000.00" inputTorque="780.30" torqueLoss="31.30" /> + <Entry inputSpeed="5000.00" inputTorque="50000.30" torqueLoss="2000.30" /> + </TorqueLossMap> + </Gear> + </v2.10.1:Gears> + </v2.0:Data> + <v2.0:Signature> + <di:Reference URI="#GBX-asdf"> + <di:Transforms> + <di:Transform Algorithm="urn:vecto:xml:2017:canonicalization" /> + <di:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /> + </di:Transforms> + <di:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" /> + <di:DigestValue>LrsR3WfAkFia53dMiwGEIeAiA+9bdWvaS6x7dIL9yiQ=</di:DigestValue> + </di:Reference> + </v2.0:Signature> + </tns:Gearbox> +</tns:VectoInputDeclaration> \ No newline at end of file diff --git a/VectoCommon/VectoHashingTest/Testdata/XML/Sort/Gearbox_FWD_unsorted.xml b/VectoCommon/VectoHashingTest/Testdata/XML/Sort/Gearbox_FWD_unsorted.xml new file mode 100644 index 0000000000..e80620ce06 --- /dev/null +++ b/VectoCommon/VectoHashingTest/Testdata/XML/Sort/Gearbox_FWD_unsorted.xml @@ -0,0 +1,79 @@ +<?xml version="1.0" encoding="utf-8"?> +<tns:VectoInputDeclaration xmlns="urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:v2.10.1" xmlns:tns="urn:tugraz:ivt:VectoAPI:DeclarationComponent:v2.10" xmlns:v2.0="urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:v2.0" xmlns:v2.3="urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:DEV:v2.3" xmlns:v2.6="urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:DEV:v2.6" xmlns:v2.10.1="urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:DEV:v2.10.1" xmlns:di="http://www.w3.org/2000/09/xmldsig#" schemaVersion="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:tugraz:ivt:VectoAPI:DeclarationComponent v:\VectoCore\VectoCore\Resources\XSD/VectoDeclarationComponent.xsd"> + <tns:Gearbox xsi:type="v2.0:GearboxComponentDeclarationType"> + <v2.0:Data xmlns="urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:DEV:v2.10.1" xsi:type="GearboxFWDDataDeclarationType" id="GBX-asdf"> + <Manufacturer>Generic Vendor</Manufacturer> + <Model>GB_12-gear</Model> + <CertificationNumber>GBX-GB_12-gear</CertificationNumber> + <Date>2021-11-18T14:23:31.4958567Z</Date> + <AppVersion>VectoCore</AppVersion> + <TransmissionType>APT-P</TransmissionType> + <MainCertificationMethod>Standard values</MainCertificationMethod> + <DifferentialIncluded>true</DifferentialIncluded> + <AxlegearRatio>1.000</AxlegearRatio> + <v2.10.1:Gears xsi:type="v2.0:GearsDeclarationType" xmlns="urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:v2.0"> + <Gear number="2"> + <Ratio>11.640</Ratio> + <MaxTorque>1200</MaxTorque> + <MaxSpeed>110</MaxSpeed> + <TorqueLossMap> + <Entry inputSpeed="0.00" inputTorque="50000.20" torqueLoss="2000.20" /> + <Entry inputSpeed="5000.00" inputTorque="-50000.20" torqueLoss="2000.20" /> + <Entry inputSpeed="0.00" inputTorque="-50000.20" torqueLoss="2000.20" /> + <Entry inputSpeed="0.00" inputTorque="-125.20" torqueLoss="5.20" /> + <Entry inputSpeed="0.00" inputTorque="0.20" torqueLoss="5.20" /> + <Entry inputSpeed="0.00" inputTorque="125.20" torqueLoss="5.20" /> + <Entry inputSpeed="5000.00" inputTorque="780.20" torqueLoss="31.20" /> + <Entry inputSpeed="5000.00" inputTorque="50000.20" torqueLoss="2000.20" /> + <Entry inputSpeed="5000.00" inputTorque="-780.20" torqueLoss="31.20" /> + <Entry inputSpeed="5000.00" inputTorque="0.20" torqueLoss="31.20" /> + </TorqueLossMap> + </Gear> + <Gear number="1"> + <Ratio>14.930</Ratio> + <MaxTorque>1000</MaxTorque> + <MaxSpeed>100</MaxSpeed> + <TorqueLossMap> + <Entry inputSpeed="5000.00" inputTorque="-50000.10" torqueLoss="2000.10" /> + <Entry inputSpeed="5000.00" inputTorque="-780.10" torqueLoss="31.10" /> + <Entry inputSpeed="5000.00" inputTorque="0.10" torqueLoss="31.10" /> + <Entry inputSpeed="5000.00" inputTorque="780.10" torqueLoss="31.10" /> + <Entry inputSpeed="0.00" inputTorque="-50000.10" torqueLoss="2000.10" /> + <Entry inputSpeed="0.00" inputTorque="125.10" torqueLoss="5.10" /> + <Entry inputSpeed="0.00" inputTorque="50000.10" torqueLoss="2000.10" /> + <Entry inputSpeed="5000.00" inputTorque="50000.10" torqueLoss="2000.10" /> + <Entry inputSpeed="0.00" inputTorque="-125.10" torqueLoss="5.10" /> + <Entry inputSpeed="0.00" inputTorque="0.10" torqueLoss="5.10" /> + </TorqueLossMap> + </Gear> + <Gear number="3"> + <Ratio>9.020</Ratio> + <MaxTorque>1300</MaxTorque> + <MaxSpeed>112</MaxSpeed> + <TorqueLossMap> + <Entry inputSpeed="5000.00" inputTorque="0.30" torqueLoss="31.30" /> + <Entry inputSpeed="5000.00" inputTorque="780.30" torqueLoss="31.30" /> + <Entry inputSpeed="5000.00" inputTorque="50000.30" torqueLoss="2000.30" /> + <Entry inputSpeed="0.00" inputTorque="-50000.30" torqueLoss="2000.30" /> + <Entry inputSpeed="0.00" inputTorque="-125.30" torqueLoss="5.30" /> + <Entry inputSpeed="0.00" inputTorque="50000.30" torqueLoss="2000.30" /> + <Entry inputSpeed="5000.00" inputTorque="-50000.30" torqueLoss="2000.30" /> + <Entry inputSpeed="5000.00" inputTorque="-780.30" torqueLoss="31.30" /> + <Entry inputSpeed="0.00" inputTorque="0.30" torqueLoss="5.30" /> + <Entry inputSpeed="0.00" inputTorque="125.30" torqueLoss="5.30" /> + </TorqueLossMap> + </Gear> + </v2.10.1:Gears> + </v2.0:Data> + <v2.0:Signature> + <di:Reference URI="#GBX-asdf"> + <di:Transforms> + <di:Transform Algorithm="urn:vecto:xml:2017:canonicalization" /> + <di:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /> + </di:Transforms> + <di:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" /> + <di:DigestValue>LrsR3WfAkFia53dMiwGEIeAiA+9bdWvaS6x7dIL9yiQ=</di:DigestValue> + </di:Reference> + </v2.0:Signature> + </tns:Gearbox> +</tns:VectoInputDeclaration> \ No newline at end of file diff --git a/VectoCommon/VectoHashingTest/VectoHashSortTest.cs b/VectoCommon/VectoHashingTest/VectoHashSortTest.cs index 8488b883a7..21d4f17dd6 100644 --- a/VectoCommon/VectoHashingTest/VectoHashSortTest.cs +++ b/VectoCommon/VectoHashingTest/VectoHashSortTest.cs @@ -44,8 +44,8 @@ namespace VectoHashingTest Assert.AreEqual(expectedHash, loadedFile.ComputeHash(VectoComponents.CapacitorSystem)); } - [TestCase("vvxJmw6PIWC5lHtnDAYVoxy6sF97g24Ti/QDlUq09tc=", @"Testdata\XML\Sort\ElectricMachineSystem-IHPC_1_unsorted.xml"), - TestCase("TilK8FUXim9VK3Jy2qTIdogjpWvSF0cj/Ny1fyuoajk=", @"Testdata\XML\Sort\ElectricMachineSystem_1_unsorted.xml"), + [TestCase("X5dgavua/V/jzBQeJ6SxZXsXm3i1jruL48LedzZ5IxU=", @"Testdata\XML\Sort\ElectricMachineSystem-IHPC_1_unsorted.xml"), + TestCase("wLFLpJxFZ6mDXeqdlZCGVOLCoXTCf7XTL0q9ZKkmt7o=", @"Testdata\XML\Sort\ElectricMachineSystem_1_unsorted.xml"), TestCase("CunnDxsiE9kciX+v9oeEGADZpEc88NtfMtmrHyJkCQ0=", @"Testdata\XML\Sort\ElectricMachineSystem_StdValues_unsorted.xml")] public void TestElectricMachineHashSort(string expectedHash, string filePath) { @@ -55,7 +55,9 @@ namespace VectoHashingTest [TestCase("hRzWfx3/El/LwEtP86Utm3dgBAF6CagrpEREsca7+/0=", @"Testdata\XML\Sort\Gearbox_APT-N_unsorted.xml"), - TestCase("XZCluPiG05mOAj5rTjTllCWbhCTEYVxCbE940ck3XsA=", @"Testdata\XML\Sort\Gearbox_IHPC_unsorted.xml")] + TestCase("XZCluPiG05mOAj5rTjTllCWbhCTEYVxCbE940ck3XsA=", @"Testdata\XML\Sort\Gearbox_IHPC_unsorted.xml"), + TestCase("LrsR3WfAkFia53dMiwGEIeAiA+9bdWvaS6x7dIL9yiQ=", @"Testdata\XML\Sort\Gearbox_FWD.xml"), + TestCase("LrsR3WfAkFia53dMiwGEIeAiA+9bdWvaS6x7dIL9yiQ=", @"Testdata\XML\Sort\Gearbox_FWD_unsorted.xml")] public void TestGearboxComponentHashSort(string expectedHash, string filePath) { var loadedFile = VectoHash.Load(filePath); diff --git a/VectoCommon/VectoHashingTest/VectoHashingTest.csproj b/VectoCommon/VectoHashingTest/VectoHashingTest.csproj index ecd8a7e2d8..f2b394e73d 100644 --- a/VectoCommon/VectoHashingTest/VectoHashingTest.csproj +++ b/VectoCommon/VectoHashingTest/VectoHashingTest.csproj @@ -108,6 +108,12 @@ <Content Include="Testdata\XML\Sort\Gearbox_APT-N_unsorted.xml"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Content> + <Content Include="Testdata\XML\Sort\Gearbox_FWD.xml"> + <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> + </Content> + <Content Include="Testdata\XML\Sort\Gearbox_FWD_unsorted.xml"> + <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> + </Content> <Content Include="Testdata\XML\Sort\Gearbox_IHPC_unsorted.xml"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Content> -- GitLab