1 write to Cells
Microsoft.Extensions.DataIngestion.Abstractions (1)
IngestionDocumentElement.cs (1)
179
Cells
= Throw.IfNull(cells);
28 references to Cells
Microsoft.Extensions.DataIngestion (5)
Chunkers\ElementsChunker.cs (4)
83
AddMarkdownTableSeparatorRow(columnCount: table.
Cells
.GetLength(1), ref tableBuilder);
103
int rowCount = table.
Cells
.GetLength(0);
238
for (int columnIndex = 0; columnIndex < table.
Cells
.GetLength(1); columnIndex++)
242
string? cellContent = table.
Cells
[rowIndex, columnIndex] switch
Processors\ImageAlternativeTextEnricher.cs (1)
60
foreach (var cell in table.
Cells
)
Microsoft.Extensions.DataIngestion.Tests (23)
Readers\DocumentReaderConformanceTests.cs (3)
146
Assert.Equal(5, documentTable.
Cells
.GetLength(0));
147
Assert.Equal(4, documentTable.
Cells
.GetLength(1));
149
Assert.Equal(expected, documentTable.
Cells
.Map(NormalizeCell));
Readers\MarkdownReaderTests.cs (20)
46
Assert.Equal(5, documentTable.
Cells
.GetLength(0));
47
Assert.Equal(4, documentTable.
Cells
.GetLength(1));
58
Assert.Equal(expected, documentTable.
Cells
.Map(element => element!.GetMarkdown().Trim()));
85
Assert.Equal(10, documentTable.
Cells
.GetLength(0)); // 10 rows (1 header + 9 data rows)
86
Assert.Equal(3, documentTable.
Cells
.GetLength(1)); // 3 columns
89
Assert.Equal("Flag", documentTable.
Cells
[0, 0]!.GetMarkdown().Trim());
90
Assert.Equal("Value", documentTable.
Cells
[0, 1]!.GetMarkdown().Trim());
91
Assert.Equal("Description", documentTable.
Cells
[0, 2]!.GetMarkdown().Trim());
93
Assert.Equal("READYTORUN_FLAG_PLATFORM_NEUTRAL_SOURCE", documentTable.
Cells
[1, 0]!.GetMarkdown().Trim());
94
Assert.Equal("0x00000001", documentTable.
Cells
[1, 1]!.GetMarkdown().Trim());
95
Assert.Contains("platform neutral", documentTable.
Cells
[1, 2]!.GetMarkdown().Trim());
97
Assert.Equal("READYTORUN_FLAG_PARTIAL", documentTable.
Cells
[3, 0]!.GetMarkdown().Trim());
98
Assert.Equal("0x00000004", documentTable.
Cells
[3, 1]!.GetMarkdown().Trim());
99
Assert.Null(documentTable.
Cells
[3, 2]); // Empty description cell is null
159
Assert.Equal(2, table.
Cells
.GetLength(0));
160
Assert.Equal(2, table.
Cells
.GetLength(1));
165
Assert.Equal("**Years**", table.
Cells
[0, 0]!.GetMarkdown().Trim());
166
Assert.Equal("**Logo**", table.
Cells
[0, 1]!.GetMarkdown().Trim());
167
Assert.Equal("2020-2025", table.
Cells
[1, 0]!.GetMarkdown().Trim());
169
IngestionDocumentImage img = Assert.IsType<IngestionDocumentImage>(table.
Cells
[1, 1]);