diff --git a/test/HtmlToOpenXml.Tests/ParserTests.cs b/test/HtmlToOpenXml.Tests/ParserTests.cs
index 9342eff..a3dcd8b 100644
--- a/test/HtmlToOpenXml.Tests/ParserTests.cs
+++ b/test/HtmlToOpenXml.Tests/ParserTests.cs
@@ -140,5 +140,13 @@ public void ProvidedMainPartDocument_WithNull_ShouldBeAssigned()
var elements = new HtmlConverter(mainPart).Parse("Placeholder");
Assert.That(elements, Is.Not.Empty);
}
+
+ [Test(Description = "Provided BaseImageUrl must be an absolute uri")]
+ public void ProvidedBaseImageUrl_WithRelativeUrl_ShouldFail()
+ {
+ Assert.Throws(() => new HtmlConverter(mainPart, new IO.DefaultWebRequest {
+ BaseImageUrl = new Uri("/path", UriKind.Relative)
+ }));
+ }
}
}
\ No newline at end of file