Base:
method
ReadAsync
Microsoft.Extensions.DataIngestion.IngestionDocumentReader.ReadAsync(System.IO.Stream, System.String, System.String, System.Threading.CancellationToken)
3 references to ReadAsync
Microsoft.Extensions.DataIngestion.Tests (3)
Readers\MarkItDownMcpReaderTests.cs (3)
28await Assert.ThrowsAsync<ArgumentNullException>("identifier", async () => await reader.ReadAsync(stream, identifier: null!, mediaType: "some")); 29await Assert.ThrowsAsync<ArgumentException>("identifier", async () => await reader.ReadAsync(stream, identifier: string.Empty, mediaType: "some")); 38await Assert.ThrowsAsync<ArgumentNullException>("source", async () => await reader.ReadAsync((Stream)null!, "identifier", "mediaType"));