public void Ctor_Default() { HtmlException exception = new HtmlException(); Assert.Equal("Exception of type 'HtmlGenerator.HtmlException' was thrown.", exception.Message); Assert.Null(exception.InnerException); }
public void Ctor_String(string message) { HtmlException exception = new HtmlException(message); Assert.Equal(message ?? "Exception of type 'HtmlGenerator.HtmlException' was thrown.", exception.Message); Assert.Null(exception.InnerException); }
public void Ctor_String_Exception(string message) { Exception innerException = new InvalidOperationException(); HtmlException exception = new HtmlException(message, innerException); Assert.Equal(message ?? "Exception of type 'HtmlGenerator.HtmlException' was thrown.", exception.Message); Assert.Same(innerException, exception.InnerException); }