static void TestDocDocObjRef() { TestDocument document = DocNode.Create <TestDocument>(); string[] names = FieldUtils.NamesByType(document.GetType()); foreach (string name in names) { UnitTest.Test(name != "testRef"); } }
static void TestDocPropertyUtils() { TestDocument document = DocNode.Create <TestDocument>(); string[] names = PropertyUtils.NamesByType(document.GetType()); UnitTest.Test(names.Length == 3); UnitTest.Test(names[0] == "TestList"); UnitTest.Test(names[1] == "TestBool"); UnitTest.Test(names[2] == "SubDoc"); }