mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-10-07 16:14:03 +08:00
fix test since document is now opened successfully but mediabox is broken
This commit is contained in:
@@ -102,8 +102,10 @@
|
|||||||
{
|
{
|
||||||
var path = IntegrationHelpers.GetSpecificTestDocumentPath("Hang.pdf");
|
var path = IntegrationHelpers.GetSpecificTestDocumentPath("Hang.pdf");
|
||||||
|
|
||||||
var ex = Assert.Throws<PdfDocumentFormatException>(() => PdfDocument.Open(path, new ParsingOptions() { UseLenientParsing = true }));
|
using var doc = PdfDocument.Open(path, new ParsingOptions { UseLenientParsing = true });
|
||||||
Assert.StartsWith("Could not locate object with reference:", ex.Message);
|
|
||||||
|
var ex = Assert.Throws<PdfDocumentFormatException>(() => doc.GetPage(1));
|
||||||
|
Assert.StartsWith("Could not find", ex.Message);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
|
Reference in New Issue
Block a user