Implemented interface member:
5 references to IndexOf
Microsoft.Extensions.AI.Abstractions.Tests (5)
Embeddings\GeneratedEmbeddingsTests.cs (5)
44
Assert.Equal(-1, instance.
IndexOf
(new Embedding<float>(new float[] { 1, 2, 3 })));
45
Assert.Equal(-1, instance.
IndexOf
(null!));
71
Assert.Equal(0, generatedEmbeddings.
IndexOf
(embeddings[0]));
72
Assert.Equal(1, generatedEmbeddings.
IndexOf
(embeddings[1]));
78
Assert.Equal(-1, generatedEmbeddings.
IndexOf
(null!));