We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e112b9a commit 8e00c09Copy full SHA for 8e00c09
test/HtmlToOpenXml.Tests/ParserTests.cs
@@ -140,5 +140,13 @@ public void ProvidedMainPartDocument_WithNull_ShouldBeAssigned()
140
var elements = new HtmlConverter(mainPart).Parse("Placeholder");
141
Assert.That(elements, Is.Not.Empty);
142
}
143
+
144
+ [Test(Description = "Provided BaseImageUrl must be an absolute uri")]
145
+ public void ProvidedBaseImageUrl_WithRelativeUrl_ShouldFail()
146
+ {
147
+ Assert.Throws<ArgumentException>(() => new HtmlConverter(mainPart, new IO.DefaultWebRequest {
148
+ BaseImageUrl = new Uri("/path", UriKind.Relative)
149
+ }));
150
+ }
151
152
0 commit comments