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