コード例 #1
0
ファイル: TestCoreDocument.cs プロジェクト: MRoc/puremp3
        static void TestDocDocObjRef()
        {
            TestDocument document = DocNode.Create <TestDocument>();

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

            foreach (string name in names)
            {
                UnitTest.Test(name != "testRef");
            }
        }
コード例 #2
0
ファイル: TestCoreDocument.cs プロジェクト: MRoc/puremp3
        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");
        }