예제 #1
0
        public void XmlObjectSetPropertyTest()
        {
            var a = new XmlObject("<root id=''/>", "q", null);

            Assert.IsFalse(a.SetProperty("/any", "should not work"));
            Assert.IsTrue(a.SetProperty("/root/@id", "test"));
            Assert.AreEqual("test", a.GetProperty("/root/@id"));
        }