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