public void TestSerializeBadConstructor() { DateTime time = TestRandomizer.GetDateTime(); ConstructObject o = new ConstructObject(time); string xml = xstream.ToXml(o); ConstructObject oo = xstream.FromXml(xml) as ConstructObject; Assert.AreEqual(o.Created, oo.Created); string xml2 = xstream.ToXml(oo); Assert.IsNotNull(xml2); Assert.AreEqual(xml, xml2); ConstructObject ro = xstream.FromXml(xml2) as ConstructObject; Assert.AreEqual(oo.Created, ro.Created); }