mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Update AgentsClientExtensionsTests.cs
Fix invalid cast format failure
This commit is contained in:
@@ -861,7 +861,7 @@ public sealed class AgentClientExtensionsTests
|
||||
|
||||
// Act & Assert
|
||||
var exception = await Assert.ThrowsAsync<ArgumentNullException>(() =>
|
||||
mockClient.Object.CreateAIAgentAsync(name: "agent-name", (AgentVersionCreationOptions)null!));
|
||||
mockClient.Object.CreateAIAgentAsync(name: "agent-name", null!));
|
||||
|
||||
Assert.Equal("creationOptions", exception.ParamName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user