public void TestObjectWithSimpleProperties() { var testobj = new SimpleTestObject { Prop1 = 1, Prop2 = "BLABLA", Prop3 = 21.0 }; var m = new MemoryStream(); SilverlightSerializer.Serialize(testobj, m); m.Seek(0, SeekOrigin.Begin); var testObj2 = (SimpleTestObject)SilverlightSerializer.Deserialize(m); Assert.AreEqual(testobj.Prop1, testObj2.Prop1); Assert.AreEqual(testobj.Prop2, testObj2.Prop2); Assert.AreEqual(testobj.Prop3, testObj2.Prop3); }