Beispiel #1
0
        public void ContentHandlerAddToTest()
        {
            var h         = new ContentHandler();
            var baseObj   = h.ObjectFrom("<a><b>test</b><c/></a>");
            var insertObj = h.ObjectFrom("<d>test2</d>");

            Assert.IsTrue(ContentHandler.AddToAt(insertObj, baseObj, "/a/c"));
            Assert.AreEqual("<a><b>test</b><c><d>test2</d></c></a>", baseObj.Serialize());
        }