// Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; using System.Threading.Tasks; namespace Microsoft.Agents.AI.AGUI.UnitTests; internal static class TestHelpers { /// /// Extension method to convert a synchronous enumerable to an async enumerable for testing purposes. /// public static async IAsyncEnumerable ToAsyncEnumerableAsync(this IEnumerable source) { foreach (T item in source) { yield return item; await Task.CompletedTask; } } }