Inheritance: DotNetWorkQueueException
 public void Create()
 {
     var e = new MessageException("error", Substitute.For<IMessageId>(), Substitute.For<ICorrelationId>());
     Assert.Equal(e.Message, "error");
     Assert.NotNull(e.MessageId);
     Assert.NotNull(e.CorrelationId);
 }
 public void Create_Format()
 {
     var e = new MessageException(Substitute.For<IMessageId>(), Substitute.For<ICorrelationId>(), "error {0}", 1);
     Assert.Equal(e.Message, "error 1");
     Assert.NotNull(e.MessageId);
     Assert.NotNull(e.CorrelationId);
 }
 public void Create_Empty()
 {
     var e = new MessageException();
     Assert.Equal(e.Message, "Exception of type 'DotNetWorkQueue.Exceptions.MessageException' was thrown.");
 }