Esempio n. 1
0
        static void TestDocDocObjRef()
        {
            TestDocument document = DocNode.Create <TestDocument>();

            string[] names = FieldUtils.NamesByType(document.GetType());

            foreach (string name in names)
            {
                UnitTest.Test(name != "testRef");
            }
        }
Esempio n. 2
0
        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");
        }