21 references to new
Microsoft.Extensions.Documents.Abstractions.Tests (21)
DocumentReferencesTests.cs (1)
366ExtractionDocumentTableCell cell = new();
DocumentReviewFollowUpTests.cs (1)
24Assert.IsType<List<ExtractionDocumentSourceReference>>(new ExtractionDocumentTableCell().Sources);
DocumentTableCellCollectionTests.cs (4)
396ExtractionDocumentTableCell overlap = new(2, 1); 397ExtractionDocumentTableCell candidate = new(); 426ExtractionDocumentTableCell candidate = new(rowSpan, columnSpan); 535ExtractionDocumentTableCell empty = new();
DocumentTableCellTests.cs (5)
80ExtractionDocumentTableCell empty = new(role: role); 108Assert.Throws<ArgumentException>(nameof(role), () => new ExtractionDocumentTableCell(role: role)); 118ExtractionDocumentTableCell empty = new(); 148Assert.Throws<ArgumentOutOfRangeException>(parameter, () => new ExtractionDocumentTableCell(rowSpan, columnSpan)); 165ExtractionDocumentTableCell empty = new();
DocumentTableElementTests.cs (8)
68Assert.Throws<InvalidOperationException>(() => table.Cells[1, 1] = new ExtractionDocumentTableCell()); 69Assert.Throws<InvalidOperationException>(() => table.Cells[0, 3] = new ExtractionDocumentTableCell(3, 1)); 70Assert.Throws<ArgumentException>(() => table.Cells[0, 0] = new ExtractionDocumentTableCell(4, 1)); 205ExtractionDocumentTableCell empty = new(role: "vendor\"role"); 258ExtractionDocumentTableCell empty = new(); 303ExtractionDocumentTableCell empty = new(); 366ExtractionDocumentTableCell empty = new(); 391ExtractionDocumentTableCell empty = new();
DocumentTests.Composition.cs (2)
31ExtractionDocumentTableCell empty = new(); 92table.Cells[0, 1] = new ExtractionDocumentTableCell();