// Copyright (c) Microsoft. All rights reserved. using System; using System.Threading.Tasks; namespace Microsoft.Extensions.AI.Agents.Abstractions.UnitTests; /// /// Unit tests for the class. /// public class AgentRunOptionsTests { [Fact] public void CloningConstructorCopiesProperties() { // Arrange var options = new AgentRunOptions { OnIntermediateMessages = msg => Task.CompletedTask }; // Act var clone = new AgentRunOptions(options); // Assert Assert.Equal(options.OnIntermediateMessages, clone.OnIntermediateMessages); } [Fact] public void CloningConstructorThrowsIfNull() { // Act & Assert Assert.Throws(() => new AgentRunOptions(null!)); } }