mirror of
https://github.com/UglyToad/PdfPig.git
synced 2026-03-10 00:23:29 +08:00
add test for index increment when children are present
This commit is contained in:
@@ -25,6 +25,21 @@ namespace UglyToad.PdfPig.Tests.Integration
|
|||||||
Assert.Equal(i, mcs[i].Index);
|
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]
|
[Fact]
|
||||||
|
|||||||
Reference in New Issue
Block a user