add test for index increment when children are present

This commit is contained in:
BobLd
2020-02-09 18:01:18 +00:00
committed by Eliot Jones
parent ec68231ab3
commit b49740d093

View File

@@ -25,6 +25,21 @@ namespace UglyToad.PdfPig.Tests.Integration
Assert.Equal(i, mcs[i].Index);
}
}
using (var document = PdfDocument.Open(GetPath2()))
{
var page = document.GetPage(10);
var mcs = page.GetMarkedContents();
Assert.NotEmpty(mcs);
Assert.Equal(86, mcs.Count);
for (int i = 0; i < mcs.Count; i++)
{
Assert.Equal(i, mcs[i].Index);
}
}
}
[Fact]