コード例 #1
0
        public void ContentHandlerObsoleteTest()
        {
            var h    = new ContentHandler();
            var obj1 = h.CreateObjectFrom("<a><b>test</b><c/></a>");
            var obj2 = h.CreateObjectFromTypeInAssembly("xml", "RestTests.FewTypes", "RestTests.dll");
            var obj3 = h.CreateObjectFromTypeInAssemblyWithParams("xml", "RestTests.FewTypes", "RestTests.dll",
                                                                  new[] { "true" });
            var obj4 = h.CreateObjectFromPropertyOf("a", obj1);

            Assert.IsNotNull(obj1);
            Assert.IsNotNull(obj2);
            Assert.IsNotNull(obj3);
            Assert.IsNotNull(obj4);
        }