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

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

adding another testcase

parent 09c63691
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.
......@@ -112,6 +112,17 @@ namespace VectoHashingTest
Assert.IsFalse(h.ValidateHash());
}
[TestCase(VectoComponents.Engine),
TestCase(VectoComponents.Gearbox),
]
public void TestValidationComponentValid(VectoComponents component)
{
var file = @"Testdata\XML\Validation\vecto_vehicle_components_valid-engine_gbx.xml";
var h = VectoHash.Load(file);
Assert.IsFalse(h.ValidateHash(component));
}
[TestCase(VectoComponents.Engine),
TestCase(VectoComponents.Gearbox),
TestCase(VectoComponents.Axlegear),
......
......@@ -109,6 +109,9 @@
<Content Include="Testdata\XML\Validation\vecto_vehicle_components_invalid.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Testdata\XML\Validation\vecto_vehicle_components_valid-engine_gbx.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Testdata\XML\Variations\vecto_engine-sample Encoding ISO 8859-15.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
......
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