Example #1
0
        public void XmlRoundTripTest()
        {
            UID original = new UID(0xabcd);

            string plist = original.ToXmlPropertyList();

            // UIDs don't exist in XML property lists, but they are represented as strings
            // for compability purposes
            NSString roundtrip = XmlPropertyListParser.ParseString(plist) as NSString;

            Assert.Equal("abcd", roundtrip.ToObject());
        }