mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Update M.E.AI and MCP versions (#992)
But not yet M.E.AI.OpenAI, which depends on the latest OpenAI, which conflicts with the latest Azure.AI.OpenAI.
This commit is contained in:
-33
@@ -118,39 +118,6 @@ public sealed class PersistentAgentsClientExtensionsTests
|
||||
Assert.Equal("persistentAgentsClient", exception.ParamName);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verify that AsNewIChatClient throws ArgumentNullException when client is null.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void AsNewIChatClient_WithNullClient_ThrowsArgumentNullException()
|
||||
{
|
||||
// Act & Assert
|
||||
var exception = Assert.Throws<ArgumentNullException>(() =>
|
||||
((PersistentAgentsClient)null!).AsNewIChatClient("test-agent"));
|
||||
|
||||
Assert.Equal("client", exception.ParamName);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verify that AsNewIChatClient throws ArgumentException when assistantId is null or empty.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void AsNewIChatClient_WithNullOrEmptyAssistantId_ThrowsArgumentException()
|
||||
{
|
||||
// Arrange
|
||||
var mockClient = new Mock<PersistentAgentsClient>();
|
||||
|
||||
// Act & Assert - null assistantId throws ArgumentNullException
|
||||
var exception1 = Assert.Throws<ArgumentNullException>(() =>
|
||||
mockClient.Object.AsNewIChatClient(null!));
|
||||
Assert.Equal("assistantId", exception1.ParamName);
|
||||
|
||||
// Act & Assert - empty assistantId throws ArgumentException
|
||||
var exception2 = Assert.Throws<ArgumentException>(() =>
|
||||
mockClient.Object.AsNewIChatClient(""));
|
||||
Assert.Equal("assistantId", exception2.ParamName);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verify that GetAIAgent with clientFactory parameter correctly applies the factory.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user