Remotion.Linq.SqlBackend.UnitTests.UnmappedItemExceptionTest.Serialization C# (CSharp) Méthode

Serialization() private méthode

private Serialization ( ) : void
Résultat void
    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"));
    }
  }
UnmappedItemExceptionTest