public void ReadXml() { // Should always return null var iniFile = ModelBaseTestHelper.CreateIniFileObject(); Assert.AreEqual(null, ((IXmlSerializable)iniFile).GetSchema()); }
public void BinarySerializationLevel2() { var originalObject = ModelBaseTestHelper.CreateIniFileObject(); var clonedObject = SerializationTestHelper.SerializeAndDeserialize(originalObject, SerializationFactory.GetBinarySerializer()); Assert.AreEqual(originalObject, clonedObject); }
public void SerializationLevel2() { var originalObject = ModelBaseTestHelper.CreateIniFileObject(); TestSerializationOnAllSerializers((serializer, description) => { var clonedObject = SerializationTestHelper.SerializeAndDeserialize(originalObject, serializer); Assert.AreEqual(originalObject, clonedObject, description); }); }