mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
6c12b2c0f8
- Enable warnings as errors - Make the remaining src projects NativeAOT compatible - Use Throw helpers
29 lines
644 B
C#
29 lines
644 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);
|
|
}
|
|
|
|
[Fact]
|
|
public void CloningConstructorThrowsIfNull()
|
|
{
|
|
// Act & Assert
|
|
Assert.Throws<ArgumentNullException>(() => new AgentRunOptions(null!));
|
|
}
|
|
}
|