We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6087c71 commit b675e83Copy full SHA for b675e83
1 file changed
Tests/Tests.cs
@@ -329,6 +329,23 @@ private static void Validate_Vmap_Reflection(Datamodel.Datamodel unserialisedVma
329
330
Assert.That(unserialisedVmap.PrefixAttributes["map_asset_references"], Is.Not.Empty);
331
332
+ // iterate all datamodel elements, and verify that all their types are superclasses of Element
333
+ foreach (var elem in unserialisedVmap.AllElements)
334
+ {
335
+ if (elem.Name == "subdivisionBinding")
336
337
+ continue; // known case, skip
338
+ }
339
+
340
+ // prefix elements, still an Element type
341
+ if (elem.ContainsKey("map_asset_references"))
342
343
+ continue;
344
345
346
+ Assert.That(elem, Is.Not.TypeOf<Element>(), $"Found object {elem.ID} {elem.ClassName} that is still an Element type.");
347
348
349
}
350
351
[Test]
0 commit comments