void ISafeSerializationData.CompleteDeserialization (object obj) { UnmappedItemException exception = (UnmappedItemException)obj; exception._state = this; }
public void Serialization () { var exception = new UnmappedItemException ("message", new Exception ("inner")); var deserializedException = Serializer.SerializeAndDeserialize (exception); Assert.That (deserializedException.Message, Is.EqualTo ("message")); Assert.That (deserializedException.InnerException, Is.InstanceOf (typeof (Exception))); Assert.That (deserializedException.InnerException.Message, Is.EqualTo ("inner")); }