Beispiel #1
0
        // ----

        static PartialFieldType PropertyToFieldType(ObganismProperty obganismProperty)
        {
            var fieldType = TypeToFieldType(obganismProperty.Type);

            foreach (var obganismModifier in obganismProperty.Modifiers)
            {
                ModifierToMeta(fieldType, obganismModifier);
            }

            return(fieldType);
        }
Beispiel #2
0
 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);
 }