mirror of
https://github.com/UglyToad/PdfPig.git
synced 2026-01-18 19:51:24 +08:00
Flipped expected and actual values in assert
This commit is contained in:
@@ -16,8 +16,8 @@
|
|||||||
using (var document = PdfDocument.Open(path))
|
using (var document = PdfDocument.Open(path))
|
||||||
{
|
{
|
||||||
var page = document.GetPage(1);
|
var page = document.GetPage(1);
|
||||||
Assert.Equal(page.Width, 612); // Due to cropping
|
Assert.Equal(612, page.Width); // Due to cropping
|
||||||
Assert.Equal(page.Height, 792); // Due to cropping
|
Assert.Equal(792, page.Height); // Due to cropping
|
||||||
var minX = page.Letters.Select(l => l.GlyphRectangle.Left).Min();
|
var minX = page.Letters.Select(l => l.GlyphRectangle.Left).Min();
|
||||||
var maxX = page.Letters.Select(l => l.GlyphRectangle.Right).Max();
|
var maxX = page.Letters.Select(l => l.GlyphRectangle.Right).Max();
|
||||||
Assert.Equal(72, minX, 0); // If cropping is not applied correctly, these values will be off
|
Assert.Equal(72, minX, 0); // If cropping is not applied correctly, these values will be off
|
||||||
|
|||||||
Reference in New Issue
Block a user