mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
6b22b6bbc7
* Fixes for agent abstractions to improve MEAI static analysis compliance * Fix build error
30 lines
675 B
C#
30 lines
675 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using System;
|
|
|
|
namespace Microsoft.Extensions.AI.Agents.Abstractions.UnitTests;
|
|
|
|
/// <summary>
|
|
/// Unit tests for the <see cref="AgentRunOptions"/> class.
|
|
/// </summary>
|
|
public class AgentRunOptionsTests
|
|
{
|
|
[Fact]
|
|
public void CloningConstructorCopiesProperties()
|
|
{
|
|
// Arrange
|
|
var options = new AgentRunOptions();
|
|
|
|
// Act
|
|
var clone = new AgentRunOptions(options);
|
|
Assert.NotNull(clone);
|
|
}
|
|
|
|
[Fact]
|
|
public void CloningConstructorThrowsIfNull()
|
|
{
|
|
// Act & Assert
|
|
Assert.Throws<ArgumentNullException>(() => new AgentRunOptions(null!));
|
|
}
|
|
}
|