示例#1
0
        [Test]         // If it is root, it is not serialized as IXmlSerializable.
        public void Read_XmlSerializable()
        {
            var obj = new XmlSerializable("<root/>");
            var xr  = new XamlObjectReader(obj);

            Read_XmlSerializable(xr);
        }
示例#2
0
		[Test] // If it is root, it is not serialized as IXmlSerializable.
		public void Read_XmlSerializable ()
		{
			var obj = new XmlSerializable ("<root/>");
			var xr = new XamlObjectReader (obj);
			Read_XmlSerializable (xr);
		}
示例#3
0
		public XmlSerializableWrapper (XmlSerializable val)
		{
			this.val = val;
		}
示例#4
0
        public void Write_XmlSerializable()
        {
            var obj = new XmlSerializable("<root/>");

            Assert.AreEqual(ReadXml("XmlSerializable.xml").Trim(), XamlServices.Save(obj), "#1");
        }
示例#5
0
 public XmlSerializableWrapper(XmlSerializable val)
 {
     this.val = val;
 }