Example #1
0
        public void XmlObjectGetTypeViaAttributeTest()
        {
            var a = new XmlObject("<a type='string'>test</a><b type='int'>4</b><c>def</c>", "q", "type");

            Assert.AreEqual("string", a.GetPropertyType("a"), "a is ok");
            Assert.AreEqual("int", a.GetPropertyType("b"), "b is ok");
            Assert.AreEqual("System.String", a.GetPropertyType("c"), "c is ok");
        }