public void TransportDisconnectedException_ctor_With_InnerException() { var innerException = new Exception("inner-exception"); var exception = new TransportDisconnectedException("exception", innerException); Assert.Equal(innerException, exception.InnerException); Assert.Equal("exception", exception.Reason); }
public void TransportDisconnectedException_ctor() { var exception = new TransportDisconnectedException(); Assert.NotNull(exception.Reason); }