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

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

adding verbose assertion message

parent d496f927
No related branches found
No related tags found
No related merge requests found
......@@ -146,7 +146,7 @@ namespace TUGraz.VectoCore.Tests.Utils
continue;
}
if (propertyType.IsPrimitive || propertyType == typeof(string)) {
Assert.AreEqual(expectedVal, actualVal);
Assert.AreEqual(expectedVal, actualVal, $"Property {prop.Name}, expected: {expectedVal}, actual: {actualVal}");
} else if (propertyType == typeof(SI)) {
Assert.AreEqual((expectedVal as SI).Value(), (actualVal as SI).Value());
Assert.AreEqual((expectedVal as SI).UnitString, (actualVal as SI).UnitString);
......
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