Skip to content

Commit 4d4160c

Browse files
Copilotrogerbarreto
andcommitted
Fix format issues: file encoding and remove unused using directives
Co-authored-by: rogerbarreto <19890735+rogerbarreto@users.noreply.github.com>
1 parent 4f9cad2 commit 4d4160c

5 files changed

Lines changed: 5 additions & 9 deletions

File tree

dotnet/tests/Microsoft.Agents.AI.OpenAI.UnitTests/ChatClient/AsyncStreamingChatCompletionUpdateCollectionResultTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
// Copyright (c) Microsoft. All rights reserved.
1+
// Copyright (c) Microsoft. All rights reserved.
22

33
using System.ClientModel;
44
using System.Collections.Generic;
5-
using System.Linq;
65
using System.Threading.Tasks;
76
using Microsoft.Extensions.AI;
87
using OpenAI.Chat;

dotnet/tests/Microsoft.Agents.AI.OpenAI.UnitTests/ChatClient/AsyncStreamingResponseUpdateCollectionResultTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
// Copyright (c) Microsoft. All rights reserved.
1+
// Copyright (c) Microsoft. All rights reserved.
22

33
using System;
44
using System.ClientModel;
55
using System.Collections.Generic;
6-
using System.Linq;
76
using System.Threading.Tasks;
87
using Microsoft.Extensions.AI;
98
using OpenAI.Responses;

dotnet/tests/Microsoft.Agents.AI.OpenAI.UnitTests/ChatClient/StreamingUpdatePipelineResponseTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
// Copyright (c) Microsoft. All rights reserved.
1+
// Copyright (c) Microsoft. All rights reserved.
22

33
using System;
44
using System.ClientModel.Primitives;
55
using System.Collections.Generic;
6-
using System.Threading;
76
using System.Threading.Tasks;
87

98
namespace Microsoft.Agents.AI.OpenAI.UnitTests.ChatClient;

dotnet/tests/Microsoft.Agents.AI.OpenAI.UnitTests/Extensions/AgentResponseExtensionsTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
// Copyright (c) Microsoft. All rights reserved.
1+
// Copyright (c) Microsoft. All rights reserved.
22

33
using System;
4-
using Microsoft.Extensions.AI;
54
using OpenAI.Chat;
65
using ChatMessage = Microsoft.Extensions.AI.ChatMessage;
76
using ChatRole = Microsoft.Extensions.AI.ChatRole;

dotnet/tests/Microsoft.Agents.AI.OpenAI.UnitTests/Extensions/OpenAIAssistantClientExtensionsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ public void AsAIAgent_LegacyOverload_WithNullClientResult_ThrowsArgumentNullExce
845845

846846
// Act & Assert
847847
var exception = Assert.Throws<ArgumentNullException>(() =>
848-
assistantClient.AsAIAgent((ClientResult<Assistant>)null!));
848+
assistantClient.AsAIAgent(null!));
849849

850850
Assert.Equal("assistantClientResult", exception.ParamName);
851851
}

0 commit comments

Comments
 (0)