12 instantiations of TestEmbeddingGenerator
Microsoft.Extensions.AI.Tests (12)
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 (2)
20Assert.Throws<ArgumentNullException>("logger", () => new LoggingEmbeddingGenerator<string, Embedding<float>>(new TestEmbeddingGenerator(), null!)); 35using IEmbeddingGenerator<string, Embedding<float>> innerGenerator = new TestEmbeddingGenerator
Embeddings\UseDelegateEmbeddingGeneratorTests.cs (2)
17using var generator = new TestEmbeddingGenerator(); 40using IEmbeddingGenerator<string, Embedding<float>> innerGenerator = new TestEmbeddingGenerator
7 references to TestEmbeddingGenerator
Microsoft.Extensions.AI.Tests (7)
Embeddings\ConfigureOptionsEmbeddingGeneratorTests.cs (1)
23using var 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\UseDelegateEmbeddingGeneratorTests.cs (1)
17using var generator = new TestEmbeddingGenerator();