public void TestUnsupportedTypeToXml()
        {
            var serializable = new WithObjectProperty()
            {
                AnyObject = new UTF7Encoding()
            };

            string xml = serializable.ToXml();
        }
        public void TestObjectNoTypeInfoForNullNoError()
        {
            var serializable = new WithObjectProperty()
            {
                AnyObject = null
            };

            string xml = serializable.ToXml(true);

            var deserialized = XmlSerialization.LoadFromXml <WithObjectProperty>(xml);

            Assert.AreEqual(serializable.AnyObject, deserialized.AnyObject);
        }