public void ShouldCreateExceptionWithCustomMessageAndInnerException() { _exception = new UnsupportedPlataformException(CustomMessage, new ArgumentNullException()); Assert.Equal(CustomMessage, _exception.Message); Assert.NotNull(_exception.InnerException); Assert.IsType <ArgumentNullException>(_exception.InnerException); }
public void ShouldCreateExceptionWithCustomMessage() { _exception = new UnsupportedPlataformException(CustomMessage); Assert.Equal(CustomMessage, _exception.Message); Assert.Null(_exception.InnerException); }