// ---- static PartialFieldType PropertyToFieldType(ObganismProperty obganismProperty) { var fieldType = TypeToFieldType(obganismProperty.Type); foreach (var obganismModifier in obganismProperty.Modifiers) { ModifierToMeta(fieldType, obganismModifier); } return(fieldType); }
static void AssertObo(JsonObject expected, ObganismProperty actual) { Assert.AreEqual(expected.Qs("name"), actual.Name, "Property names are not the same."); AssertObo(expected.Qo("type"), actual.Type); AssertObo(expected.Qa("modifiers"), actual.Modifiers); }