9 instantiations of TestEmbeddingGenerator
Microsoft.Extensions.AI.Abstractions.Tests (9)
Embeddings\DelegatingEmbeddingGeneratorTests.cs (7)
23
using var inner = new
TestEmbeddingGenerator
();
38
using var inner = new
TestEmbeddingGenerator
63
using var inner = new
TestEmbeddingGenerator
();
72
using var inner = new
TestEmbeddingGenerator
();
88
using var expectedResult = new
TestEmbeddingGenerator
();
89
using var inner = new
TestEmbeddingGenerator
109
using var inner = new
TestEmbeddingGenerator
Embeddings\EmbeddingGeneratorExtensionsTests.cs (2)
33
using TestEmbeddingGenerator service =
new
()
55
using TestEmbeddingGenerator service =
new
()
12 references to TestEmbeddingGenerator
Microsoft.Extensions.AI.Abstractions.Tests (12)
Embeddings\DelegatingEmbeddingGeneratorTests.cs (7)
23
using
var
inner = new TestEmbeddingGenerator();
38
using
var
inner = new TestEmbeddingGenerator
63
using
var
inner = new TestEmbeddingGenerator();
72
using
var
inner = new TestEmbeddingGenerator();
88
using
var
expectedResult = new TestEmbeddingGenerator();
89
using
var
inner = new TestEmbeddingGenerator
109
using
var
inner = new TestEmbeddingGenerator
Embeddings\EmbeddingGeneratorExtensionsTests.cs (5)
23
await Assert.ThrowsAsync<ArgumentNullException>("generator", () => ((
TestEmbeddingGenerator
)null!).GenerateEmbeddingAsync("hello"));
24
await Assert.ThrowsAsync<ArgumentNullException>("generator", () => ((
TestEmbeddingGenerator
)null!).GenerateEmbeddingVectorAsync("hello"));
25
await Assert.ThrowsAsync<ArgumentNullException>("generator", () => ((
TestEmbeddingGenerator
)null!).GenerateAndZipAsync(["hello"]));
33
using
TestEmbeddingGenerator
service = new()
55
using
TestEmbeddingGenerator
service = new()