95 references to Text
Aspire.Azure.AI.OpenAI.Tests (1)
Aspire.OpenAI.Tests (2)
Microsoft.Extensions.AI (2)
Microsoft.Extensions.AI.Abstractions (1)
Microsoft.Extensions.AI.Abstractions.Tests (4)
Microsoft.Extensions.AI.AzureAIInference.Tests (7)
Microsoft.Extensions.AI.Evaluation (1)
Microsoft.Extensions.AI.Evaluation.Quality (11)
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (1)
Microsoft.Extensions.AI.Evaluation.Safety (1)
Microsoft.Extensions.AI.Integration.Tests (25)
ChatClientIntegrationTests.cs (24)
52Assert.Contains("whale", response.Text, StringComparison.OrdinalIgnoreCase);
69Assert.Contains("America", response.Text);
70Assert.Contains("Asia", response.Text);
86Assert.Contains("3", response.Text);
185Assert.True(response.Text.IndexOf("net", StringComparison.OrdinalIgnoreCase) >= 0, response.Text);
203Assert.True(response.Text.IndexOf("hello", StringComparison.OrdinalIgnoreCase) >= 0, response.Text);
233Assert.Contains(secretNumber.ToString(), response.Text);
249Assert.Contains("3528", response.Text);
301Assert.Contains(secretNumber.ToString(), response.Text);
333Assert.Contains((secretNumber + 19).ToString(), response.Text);
426Regex.IsMatch(response.Text ?? "", @"\b(3|three)\b", RegexOptions.IgnoreCase),
427$"Doesn't contain three: {response.Text}");
483Assert.NotEqual(firstResponse.Text, secondResponse.Text);
574Assert.Contains("101", response.Text);
581Assert.Equal(response.Text, secondResponse.Text);
613Assert.Contains("58", response.Text);
621Assert.Equal(response.Text, secondResponse.Text);
655Assert.Contains("81", response.Text);
664Assert.Contains("82", secondResponse.Text);
Microsoft.Extensions.AI.Ollama.Tests (7)
Microsoft.Extensions.AI.OpenAI.Tests (12)
OpenAIChatClientTests.cs (10)
168Assert.Equal("Hello! How can I assist you today?", response.Text);
358Assert.Equal("Hello! How can I assist you today?", response.Text);
520Assert.Equal("Hello! How can I assist you today?", response.Text);
780Assert.Equal("I’m doing well, thank you! What’s on your mind today?", response.Text);
878Assert.Equal("Hi! It's so good to hear from you!", response.Text);
976Assert.Equal("I’m doing well, thank you! What’s on your mind today?", response.Text);
1089Assert.Empty(response.Text);
1173Assert.Equal("December 31, 2023", response.Text);
1429Assert.Equal("I’m doing well, thank you! What’s on your mind today?", response.Text);
1543Assert.Equal("The logo says \".NET\", which is a software development framework created by Microsoft. It is used for building and running applications on Windows, macOS, and Linux environments. The logo typically also represents the broader .NET ecosystem, which includes various programming languages, libraries, and tools.", response.Text);
Microsoft.Extensions.AI.Tests (20)
ChatCompletion\DistributedCachingChatClientTest.cs (10)
133Assert.Equal("Hello", (await result1).Text);
134Assert.Equal("Hello", (await result2).Text);
139Assert.Equal("Hello", (await result3).Text);
210Assert.Equal("A good result", result2.Text);
555Assert.Equal("value 1", result1.Text);
556Assert.Equal("value 1", result2.Text);
570Assert.Equal("value 1", result3.Text);
571Assert.Equal("value 2", result4.Text);
606Assert.Equal("value 1", result1.Text);
607Assert.Equal("value 2", result2.Text);