31 references to UriContent
Microsoft.Extensions.AI.Abstractions.Tests (20)
Contents\UriContentTests.cs (16)
15Assert.Throws<ArgumentNullException>("uri", () => new UriContent((string)null!, "image/png"));
17Assert.Throws<UriFormatException>(() => new UriContent("notauri", "image/png"));
19Assert.Throws<ArgumentException>("mediaType", () => new UriContent("data:image/png;base64,aGVsbG8=", ""));
20Assert.Throws<ArgumentException>("mediaType", () => new UriContent("data:image/png;base64,aGVsbG8=", "image"));
25UriContent c = new("http://localhost/something", "image/png");
38Assert.Throws<ArgumentException>("mediaType", () => new UriContent("http://localhost/something", type));
40UriContent c = new("http://localhost/something", "image/png");
52var content = new UriContent("http://localhost/something", mediaType);
76var content = new UriContent(uri);
79var content2 = new UriContent(uri, null);
127var content = new UriContent(uri);
147var content = new UriContent("http://localhost/image.png", "application/octet-stream");
160new UriContent("http://localhost/something", "image/png"),
191UriContent c = new("http://localhost", mediaType);
204var content = new UriContent("http://localhost", mediaType);
217var content = new UriContent("http://localhost", mediaType);
Microsoft.Extensions.AI.Evaluation.Integration.Tests (4)
Microsoft.Extensions.AI.OpenAI.Tests (1)
Microsoft.Extensions.AI.Stabilization.Tests (3)
Microsoft.Extensions.AI.Tests (3)