20 references to UriContent
Microsoft.Extensions.AI.Abstractions.Tests (13)
Contents\UriContentTests.cs (13)
15Assert.Throws<ArgumentNullException>("uri", () => new UriContent((string)null!, "image/png"));
17Assert.Throws<UriFormatException>(() => new UriContent("notauri", "image/png"));
19Assert.Throws<ArgumentNullException>("mediaType", () => new UriContent("data:image/png;base64,aGVsbG8=", null!));
20Assert.Throws<ArgumentException>("mediaType", () => new UriContent("data:image/png;base64,aGVsbG8=", ""));
21Assert.Throws<ArgumentException>("mediaType", () => new UriContent("data:image/png;base64,aGVsbG8=", "image"));
27UriContent c = new("http://localhost/something", "image/png");
40Assert.Throws<ArgumentException>("mediaType", () => new UriContent("http://localhost/something", type));
42UriContent c = new("http://localhost/something", "image/png");
54var content = new UriContent("http://localhost/something", mediaType);
70new UriContent("http://localhost/something", "image/png"),
101UriContent c = new("http://localhost", mediaType);
114var content = new UriContent("http://localhost", mediaType);
127var content = new UriContent("http://localhost", mediaType);
Microsoft.Extensions.AI.AzureAIInference.Tests (1)
Microsoft.Extensions.AI.Evaluation.Integration.Tests (4)
Microsoft.Extensions.AI.OpenAI.Tests (1)
Microsoft.Extensions.AI.Tests (1)