52 instantiations of ExtractionDocumentSourcePage
Microsoft.Extensions.DocumentExtraction.Abstractions.Tests (2)
Microsoft.Extensions.DocumentExtraction.Tests (2)
Microsoft.Extensions.Documents.Abstractions.Tests (48)
DocumentElementTests.cs (10)
41ExtractionDocumentSourcePage page = new("page-1", 1);
44ExtractionDocumentSourceReference last = new(new("page-2", 2));
63ExtractionDocumentSourceReference first = new(new("first", 1));
64ExtractionDocumentSourceReference second = new(new("second", 2));
86ExtractionDocumentSourceReference firstSource = new(new("first-page", 1), rawRepresentation: firstContent);
87ExtractionDocumentSourceReference secondSource = new(new("second-page", 2), rawRepresentation: secondContent);
113ExtractionDocumentSourceReference page = new(new("page-raw", 1));
194ExtractionDocumentSourcePage dimensionsOnly = new("dimensions-only", 7, new ExtractionDocumentPageDimensions(200, 100));
195ExtractionDocumentSourcePage polygonOnly = new("polygon-only", 2);
245ExtractionDocumentSourcePage page = new("page", 1);
DocumentReferencesTests.cs (15)
80ExtractionDocumentSourcePage page = new("unknown", 3);
100Assert.Throws<ArgumentException>("polygon", () => new ExtractionDocumentSourceReference(new("page", 1), new ExtractionDocumentPoint[count]));
108ExtractionDocumentSourcePage page = new("triangle", 1);
180ExtractionDocumentSourcePage page = new("iterator", 1);
201Assert.ThrowsAny<ArgumentException>(() => new ExtractionDocumentSourcePage(value!, 1));
239ExtractionDocumentSourcePage rasterPage = new("urn:frame:raster-A", 7, new ExtractionDocumentPageDimensions(400, 200),
255ExtractionDocumentSourcePage page = new("partial", 7, new ExtractionDocumentPageDimensions(200, 100),
270ExtractionDocumentSourcePage page = new("no-size", 7, coordinateUnit: ExtractionDocumentCoordinateUnit.Point,
317ExtractionDocumentSourcePage page = new("tiny", 1, positive);
343Assert.Throws<ArgumentOutOfRangeException>("dimensions", () => new ExtractionDocumentSourcePage("empty", 1, dimensions));
345ExtractionDocumentSourcePage unknown = new("unknown", 1, dimensions: null);
359Assert.Throws<ArgumentOutOfRangeException>("pageNumber", () => new ExtractionDocumentSourcePage("frame", 0));
360Assert.Throws<ArgumentOutOfRangeException>("dimensions", () => new ExtractionDocumentSourcePage("frame", 1, default(ExtractionDocumentPageDimensions)));
361Assert.Throws<ArgumentOutOfRangeException>("coordinateUnit", () => new ExtractionDocumentSourcePage("frame", 1, coordinateUnit: (ExtractionDocumentCoordinateUnit)99));
362Assert.Throws<ArgumentOutOfRangeException>("coordinateOrigin", () => new ExtractionDocumentSourcePage("frame", 1, coordinateOrigin: (ExtractionDocumentCoordinateOrigin)99));
48 references to ExtractionDocumentSourcePage
Microsoft.Extensions.DocumentExtraction.Abstractions.Tests (3)
Microsoft.Extensions.Documents.Abstractions (4)
Microsoft.Extensions.Documents.Abstractions.Tests (41)
DocumentReferencesTests.cs (11)
80ExtractionDocumentSourcePage page = new("unknown", 3);
108ExtractionDocumentSourcePage page = new("triangle", 1);
123ExtractionDocumentSourcePage page = DocumentAnnotationTestData.PdfPage();
180ExtractionDocumentSourcePage page = new("iterator", 1);
209ExtractionDocumentSourcePage page = DocumentAnnotationTestData.PdfPage();
239ExtractionDocumentSourcePage rasterPage = new("urn:frame:raster-A", 7, new ExtractionDocumentPageDimensions(400, 200),
255ExtractionDocumentSourcePage page = new("partial", 7, new ExtractionDocumentPageDimensions(200, 100),
270ExtractionDocumentSourcePage page = new("no-size", 7, coordinateUnit: ExtractionDocumentCoordinateUnit.Point,
317ExtractionDocumentSourcePage page = new("tiny", 1, positive);
345ExtractionDocumentSourcePage unknown = new("unknown", 1, dimensions: null);
356ExtractionDocumentSourcePage page = DocumentAnnotationTestData.PdfPage();