public void BinarySerializationLevel3() { var originalObject = ModelBaseTestHelper.CreateComputerSettingsObject(); var clonedObject = SerializationTestHelper.SerializeAndDeserialize(originalObject, SerializationFactory.GetBinarySerializer()); Assert.AreEqual(originalObject, clonedObject); }
public void SerializationLevel3() { var originalObject = ModelBaseTestHelper.CreateComputerSettingsObject(); TestSerializationOnAllSerializers((serializer, description) => { var clonedObject = SerializationTestHelper.SerializeAndDeserialize(originalObject, serializer); Assert.AreEqual(originalObject, clonedObject, description); }); }