30 references to Polygon
Microsoft.Extensions.Documents.Abstractions.Tests (30)
DocumentElementTests.cs (2)
196
ExtractionDocumentSourceReference region = new(polygonOnly, DocumentAnnotationTestData.
Polygon
());
209
Assert.Equal(DocumentAnnotationTestData.
Polygon
(), region.Polygon);
DocumentExtensionElementTests.cs (2)
68
ExtractionDocumentSourceReference first = new(DocumentAnnotationTestData.PdfPage(), DocumentAnnotationTestData.
Polygon
(), attributes);
69
ExtractionDocumentSourceReference second = new(new ExtractionDocumentSourcePage("frame-2", 2), DocumentAnnotationTestData.
Polygon
());
DocumentImageElementTests.cs (1)
100
image.Sources.Add(new ExtractionDocumentSourceReference(page, DocumentAnnotationTestData.
Polygon
()));
DocumentReferencesTests.cs (9)
208
ExtractionDocumentPoint[] supplied = DocumentAnnotationTestData.
Polygon
();
219
Assert.Equal(DocumentAnnotationTestData.
Polygon
(), region.Polygon);
233
ExtractionDocumentSourceReference pdf = new(DocumentAnnotationTestData.PdfPage(), DocumentAnnotationTestData.
Polygon
());
245
Assert.Equal(DocumentAnnotationTestData.
Polygon
(), pdf.Polygon);
258
ExtractionDocumentSourceReference region = new(page, DocumentAnnotationTestData.
Polygon
());
261
Assert.Equal(DocumentAnnotationTestData.
Polygon
(), region.Polygon);
272
ExtractionDocumentSourceReference reference = new(page, DocumentAnnotationTestData.
Polygon
());
276
Assert.Equal(DocumentAnnotationTestData.
Polygon
(), reference.Polygon);
292
ExtractionDocumentSourceReference valid = new(DocumentAnnotationTestData.PdfPage(), DocumentAnnotationTestData.
Polygon
());
DocumentTableCellCollectionTests.cs (4)
137
ExtractionDocumentSourceReference cellSource = new(page, DocumentAnnotationTestData.
Polygon
());
217
Assert.Equal(DocumentAnnotationTestData.
Polygon
(), cellSource.Polygon);
509
oldAnchor.Sources.Add(new ExtractionDocumentSourceReference(frame, DocumentAnnotationTestData.
Polygon
()));
584
Assert.Equal(DocumentAnnotationTestData.
Polygon
(), oldAnchor.Sources[0].Polygon);
DocumentTableCellTests.cs (4)
121
empty.Sources.Add(new ExtractionDocumentSourceReference(page, DocumentAnnotationTestData.
Polygon
()));
134
Assert.Equal(DocumentAnnotationTestData.
Polygon
(), empty.Sources[0].Polygon);
166
empty.Sources.Add(new ExtractionDocumentSourceReference(pdf, DocumentAnnotationTestData.
Polygon
()));
197
Assert.Equal(DocumentAnnotationTestData.
Polygon
(), sources[0].Polygon);
DocumentTableElementTests.cs (2)
306
empty.Sources.Add(new ExtractionDocumentSourceReference(frame, DocumentAnnotationTestData.
Polygon
(), "NATIVE_ONLY"));
321
Assert.Equal(DocumentAnnotationTestData.
Polygon
(), empty.Sources[0].Polygon);
DocumentTests.cs (4)
163
ExtractionDocumentSourceReference region = new(page7, DocumentAnnotationTestData.
Polygon
());
165
text2.Sources.Add(new ExtractionDocumentSourceReference(page2, DocumentAnnotationTestData.
Polygon
()));
183
Assert.Equal(DocumentAnnotationTestData.
Polygon
(), region.Polygon);
239
text.Sources.Add(new ExtractionDocumentSourceReference(page, DocumentAnnotationTestData.
Polygon
()));
DocumentTextElementTests.cs (2)
37
ExtractionDocumentSourceReference citation = new(page, DocumentAnnotationTestData.
Polygon
());
48
Assert.Equal(DocumentAnnotationTestData.
Polygon
(), citation.Polygon);