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)
147
Assert.Equal(5, documentTable.
Cells
.GetLength(0));
148
Assert.Equal(4, documentTable.
Cells
.GetLength(1));
150
Assert.Equal(expected, documentTable.
Cells
.Map(NormalizeCell));
Readers\MarkdownReaderTests.cs (20)
47
Assert.Equal(5, documentTable.
Cells
.GetLength(0));
48
Assert.Equal(4, documentTable.
Cells
.GetLength(1));
59
Assert.Equal(expected, documentTable.
Cells
.Map(element => element!.GetMarkdown().Trim()));
86
Assert.Equal(10, documentTable.
Cells
.GetLength(0)); // 10 rows (1 header + 9 data rows)
87
Assert.Equal(3, documentTable.
Cells
.GetLength(1)); // 3 columns
90
Assert.Equal("Flag", documentTable.
Cells
[0, 0]!.GetMarkdown().Trim());
91
Assert.Equal("Value", documentTable.
Cells
[0, 1]!.GetMarkdown().Trim());
92
Assert.Equal("Description", documentTable.
Cells
[0, 2]!.GetMarkdown().Trim());
94
Assert.Equal("READYTORUN_FLAG_PLATFORM_NEUTRAL_SOURCE", documentTable.
Cells
[1, 0]!.GetMarkdown().Trim());
95
Assert.Equal("0x00000001", documentTable.
Cells
[1, 1]!.GetMarkdown().Trim());
96
Assert.Contains("platform neutral", documentTable.
Cells
[1, 2]!.GetMarkdown().Trim());
98
Assert.Equal("READYTORUN_FLAG_PARTIAL", documentTable.
Cells
[3, 0]!.GetMarkdown().Trim());
99
Assert.Equal("0x00000004", documentTable.
Cells
[3, 1]!.GetMarkdown().Trim());
100
Assert.Null(documentTable.
Cells
[3, 2]); // Empty description cell is null
160
Assert.Equal(2, table.
Cells
.GetLength(0));
161
Assert.Equal(2, table.
Cells
.GetLength(1));
166
Assert.Equal("**Years**", table.
Cells
[0, 0]!.GetMarkdown().Trim());
167
Assert.Equal("**Logo**", table.
Cells
[0, 1]!.GetMarkdown().Trim());
168
Assert.Equal("2020-2025", table.
Cells
[1, 0]!.GetMarkdown().Trim());
170
IngestionDocumentImage img = Assert.IsType<IngestionDocumentImage>(table.
Cells
[1, 1]);