fix tests for public api and merge conflict

the cross reference parser tests behaviour had change, this fixes a compilation error from merge conflicts. also updates the merger tests to account for new version behaviour and checks the output document text. adds pdfmerger to the public api in the tests.
This commit is contained in:
Eliot Jones
2020-03-02 15:07:02 +00:00
parent b560c73fa9
commit 2193063809
3 changed files with 7 additions and 2 deletions

View File

@@ -234,7 +234,7 @@ trailer
trailer
<<>>");
Action action = () => CrossReferenceTableParser.Parse(input, 0, false);
var result = CrossReferenceTableParser.Parse(input, 0, false);
var offset = Assert.Single(result.ObjectOffsets);
Assert.Equal(10, offset.Value);

View File

@@ -196,6 +196,7 @@
"UglyToad.PdfPig.Util.IWordExtractor",
"UglyToad.PdfPig.Util.DefaultWordExtractor",
"UglyToad.PdfPig.Writer.PdfDocumentBuilder",
"UglyToad.PdfPig.Writer.PdfMerger",
"UglyToad.PdfPig.Writer.PdfPageBuilder",
"UglyToad.PdfPig.Writer.TokenWriter",
"UglyToad.PdfPig.XObjects.XObjectImage"

View File

@@ -18,7 +18,11 @@
{
Assert.Equal(2, document.NumberOfPages);
Assert.Equal(1.7m, document.Version);
Assert.Equal(1.5m, document.Version);
var page1 = document.GetPage(1);
Assert.Equal("Write something inInkscape", page1.Text);
}
}
}