mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-10-15 03:26:58 +08:00
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:
@@ -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);
|
||||
|
@@ -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"
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user