4 references to UploadAsync
Microsoft.Extensions.AI.Abstractions.Tests (4)
Files\HostedFileClientExtensionsTests.cs (4)
85var result = await client.UploadAsync(tempFile); 102await Assert.ThrowsAsync<ArgumentNullException>("client", () => client.UploadAsync("somefile.txt")); 109await Assert.ThrowsAsync<ArgumentNullException>("filePath", () => client.UploadAsync((string)null!)); 116await Assert.ThrowsAsync<ArgumentException>("filePath", () => client.UploadAsync(string.Empty));