62 references to ExtractionDocumentTableCell
Microsoft.Extensions.DocumentExtraction.Abstractions.Tests (2)
DocumentExtractionDocumentBuilderTests.cs (2)
121table.Cells[0, 0] = new ExtractionDocumentTableCell(content); 153table.Cells[0, 0] = new ExtractionDocumentTableCell(new ExtractionDocumentTextElement(new TextContent("replacement")));
Microsoft.Extensions.Documents.Abstractions.Tests (60)
DocumentReviewFollowUpTests.cs (5)
124outer.Cells[0, 0] = new(inner); 125outer.Cells[0, 1] = new(inner); 126inner.Cells[0, 0] = new(shared); 135inner.Cells[0, 0] = new(outer); 149ExtractionDocumentTableCell cell = new(text);
DocumentTableCellCollectionTests.cs (21)
21table.Cells[0, 1] = new ExtractionDocumentTableCell(firstContent); 22table.Cells[1, 2] = new ExtractionDocumentTableCell(lastContent); 48table.Cells[0, 0] = new ExtractionDocumentTableCell(content); 68table.Cells[0, 0] = new ExtractionDocumentTableCell(image); 89table.Cells[0, 0] = new ExtractionDocumentTableCell(oldContent); 92table.Cells[0, 0] = new ExtractionDocumentTableCell(replacementContent); 113ExtractionDocumentTableCell cell = new(content); 163ExtractionDocumentTableCell cell = new(mixed, 2, 2, "rowHeader"); 259ExtractionDocumentTableCell cell = new(mixed); 270innerTable.Cells[0, 0] = new ExtractionDocumentTableCell(root); 303Assert.Throws<InvalidOperationException>(() => table.Cells[0, 0] = new ExtractionDocumentTableCell(table)); 314outerTable.Cells[0, 0] = new ExtractionDocumentTableCell(innerTable); 316innerTable.Cells[0, 0] = new ExtractionDocumentTableCell(outerTable); 337table.Cells[0, 0] = new ExtractionDocumentTableCell(content); 358ExtractionDocumentTableCell anchor = new(new ExtractionDocumentTextElement(new TextContent("MERGED_A")), 2, 2, "header"); 359ExtractionDocumentTableCell ordinary = new(new ExtractionDocumentTextElement(new TextContent("B"))); 391ExtractionDocumentTableCell anchor = new(text, 2, 2); 440ExtractionDocumentTableCell anchor = new(anchorText, 2, 2); 447ExtractionDocumentTableCell candidate = new(candidateText, 2, 1); 508ExtractionDocumentTableCell oldAnchor = new(oldText, 2, 2, "rowHeader"); 519ExtractionDocumentTableCell replacement = new(replacementText);
DocumentTableCellTests.cs (7)
21table.Cells[1, 0] = new ExtractionDocumentTableCell(content); 40table.Cells[0, 0] = new ExtractionDocumentTableCell(content); 63() => new ExtractionDocumentTableCell(null!)); 79ExtractionDocumentTableCell content = new(text, role: role); 107Assert.Throws<ArgumentException>(nameof(role), () => new ExtractionDocumentTableCell(text, role: role)); 149Assert.Throws<ArgumentOutOfRangeException>(parameter, () => new ExtractionDocumentTableCell(text, rowSpan, columnSpan)); 169ExtractionDocumentTableCell ordinary = new(text);
DocumentTableElementTests.cs (20)
21inner.Cells[0, 0] = new ExtractionDocumentTableCell(leaf); 22middle.Cells[0, 0] = new ExtractionDocumentTableCell(inner); 23outer.Cells[0, 0] = new ExtractionDocumentTableCell(middle); 40ExtractionDocumentTableCell first = new(text, role: "vendor|\"<"); 42inner.Cells[0, 1] = new ExtractionDocumentTableCell(image); 44outer.Cells[0, 0] = new ExtractionDocumentTableCell(inner); 62ExtractionDocumentTableCell wide = new(new ExtractionDocumentTextElement(new TextContent("wide")), 2, 3); 63ExtractionDocumentTableCell corner = new(new ExtractionDocumentTextElement(new TextContent("corner")), role: "rowHeader"); 73ExtractionDocumentTableCell small = new(new ExtractionDocumentTextElement(new TextContent("small"))); 145ExtractionDocumentTableCell candidate = new(text); 167table.Cells[0, 1] = new ExtractionDocumentTableCell(new ExtractionDocumentTextElement(new TextContent("one"))); 168table.Cells[1, 0] = new ExtractionDocumentTableCell(new ExtractionDocumentTextElement(new TextContent("two"))); 183table.Cells[0, 0] = new ExtractionDocumentTableCell(new ExtractionDocumentTextElement(new TextContent("left|right"))); 192table.Cells[0, 0] = new ExtractionDocumentTableCell(new ExtractionDocumentTextElement(new TextContent("semantic cell"))); 202ExtractionDocumentTableCell anchor = new(new ExtractionDocumentTextElement(new TextContent("MERGED_A<&")), 2, 2, "columnHeader"); 204table.Cells[2, 0] = new ExtractionDocumentTableCell(new ExtractionDocumentTextElement(new TextContent("B")), role: "rowHeader"); 236ExtractionDocumentTableCell cell = new(text, role: role); 260ExtractionDocumentTableCell anchor = new(text, rowSpan, columnSpan); 309table.Cells[0, 2] = new ExtractionDocumentTableCell(text); 390ExtractionDocumentTableCell populated = new(text);
DocumentTests.Composition.cs (2)
34table.Cells[0, 1] = new ExtractionDocumentTableCell(cellText); 91table.Cells[0, 0] = new ExtractionDocumentTableCell(cellText);
DocumentTests.StandardContent.cs (5)
135table.Cells[0, 0] = new ExtractionDocumentTableCell(cellContent); 170table.Cells[0, 0] = new ExtractionDocumentTableCell(cellText); 220table.Cells[0, 0] = new ExtractionDocumentTableCell(text); 400ExtractionDocumentTableCell firstCell = new(first); 403table.Cells[0, 1] = new ExtractionDocumentTableCell(second);