14 references to TestEmbeddingGenerator
Microsoft.Extensions.AI.Tests (14)
Embeddings\ConfigureOptionsEmbeddingGeneratorTests.cs (3)
17Assert.Throws<ArgumentNullException>("configure", () => new ConfigureOptionsEmbeddingGenerator<string, Embedding<float>>(new TestEmbeddingGenerator(), null!)); 23using var innerGenerator = new TestEmbeddingGenerator(); 38using IEmbeddingGenerator<string, Embedding<float>> innerGenerator = new TestEmbeddingGenerator
Embeddings\DistributedCachingEmbeddingGeneratorTest.cs (1)
32using var testGenerator = new TestEmbeddingGenerator
Embeddings\EmbeddingGeneratorBuilderTests.cs (4)
16using var expectedOuterGenerator = new TestEmbeddingGenerator(); 17using var expectedInnerGenerator = new TestEmbeddingGenerator(); 38using var expectedInnerGenerator = new TestEmbeddingGenerator(); 74using var innerGenerator = new TestEmbeddingGenerator();
Embeddings\LoggingEmbeddingGeneratorTests.cs (3)
20Assert.Throws<ArgumentNullException>("logger", () => new LoggingEmbeddingGenerator<string, Embedding<float>>(new TestEmbeddingGenerator(), null!)); 26using var innerGenerator = new TestEmbeddingGenerator(); 54using IEmbeddingGenerator<string, Embedding<float>> innerGenerator = new TestEmbeddingGenerator
Embeddings\OpenTelemetryEmbeddingGeneratorTests.cs (1)
31using var innerGenerator = new TestEmbeddingGenerator
Embeddings\UseDelegateEmbeddingGeneratorTests.cs (2)
17using var generator = new TestEmbeddingGenerator(); 40using IEmbeddingGenerator<string, Embedding<float>> innerGenerator = new TestEmbeddingGenerator