From 07f8bec32634117bee390d989eb6c24dd610f99c Mon Sep 17 00:00:00 2001 From: Mark Wallace <127216156+markwallace-microsoft@users.noreply.github.com> Date: Tue, 11 Nov 2025 12:44:25 +0000 Subject: [PATCH] .NET: Fix some copilot issues (#2089) * Fix some copilot issues * Fix some copilot issues --- .../AgentBotElementYamlTests.cs | 2 +- .../ChatClient/ChatClientAgentFactoryTests.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dotnet/tests/Microsoft.Agents.AI.Declarative.UnitTests/AgentBotElementYamlTests.cs b/dotnet/tests/Microsoft.Agents.AI.Declarative.UnitTests/AgentBotElementYamlTests.cs index 0d9774cd42..41602efdd3 100644 --- a/dotnet/tests/Microsoft.Agents.AI.Declarative.UnitTests/AgentBotElementYamlTests.cs +++ b/dotnet/tests/Microsoft.Agents.AI.Declarative.UnitTests/AgentBotElementYamlTests.cs @@ -242,7 +242,7 @@ public sealed class AgentBotElementYamlTests /// Represents information about a person, including their name, age, and occupation, matched to the JSON schema used in the agent. /// [Description("Information about a person including their name, age, and occupation")] - public class PersonInfo + public sealed class PersonInfo { [JsonPropertyName("name")] public string? Name { get; set; } diff --git a/dotnet/tests/Microsoft.Agents.AI.Declarative.UnitTests/ChatClient/ChatClientAgentFactoryTests.cs b/dotnet/tests/Microsoft.Agents.AI.Declarative.UnitTests/ChatClient/ChatClientAgentFactoryTests.cs index b9078ee0b0..97647ea3a9 100644 --- a/dotnet/tests/Microsoft.Agents.AI.Declarative.UnitTests/ChatClient/ChatClientAgentFactoryTests.cs +++ b/dotnet/tests/Microsoft.Agents.AI.Declarative.UnitTests/ChatClient/ChatClientAgentFactoryTests.cs @@ -19,7 +19,7 @@ public sealed class ChatClientAgentFactoryTests } [Fact] - public async Task TryCreateAsync_WithChatClientInConstructor_CreatesAgentAsync() + public async Task TryCreateAsync_WithChatClientInConstructor_CreatesAgent() { // Arrange var promptAgent = PromptAgents.CreateTestPromptAgent(); @@ -36,7 +36,7 @@ public sealed class ChatClientAgentFactoryTests } [Fact] - public async Task TryCreateAsync_Creates_ChatClientAgentAsync() + public async Task TryCreateAsync_Creates_ChatClientAgent() { // Arrange var promptAgent = PromptAgents.CreateTestPromptAgent(); @@ -56,7 +56,7 @@ public sealed class ChatClientAgentFactoryTests } [Fact] - public async Task TryCreateAsync_Creates_ChatOptionsAsync() + public async Task TryCreateAsync_Creates_ChatOptions() { // Arrange var promptAgent = PromptAgents.CreateTestPromptAgent(); @@ -87,7 +87,7 @@ public sealed class ChatClientAgentFactoryTests } [Fact] - public async Task TryCreateAsync_Creates_ToolsAsync() + public async Task TryCreateAsync_Creates_Tools() { // Arrange var promptAgent = PromptAgents.CreateTestPromptAgent();