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