diff --git a/dotnet/tests/Microsoft.Agents.AI.UnitTests/Functions/ContextualFunctionProviderTests.cs b/dotnet/tests/Microsoft.Agents.AI.UnitTests/Functions/ContextualFunctionProviderTests.cs index 88d8684ae5..5a88c1ad69 100644 --- a/dotnet/tests/Microsoft.Agents.AI.UnitTests/Functions/ContextualFunctionProviderTests.cs +++ b/dotnet/tests/Microsoft.Agents.AI.UnitTests/Functions/ContextualFunctionProviderTests.cs @@ -306,7 +306,7 @@ public sealed class ContextualFunctionProviderTests } [Fact] - public void Serialize_WithNoRecentMessages_ShouldReturnEmptyState() + public async Task Serialize_WithNoRecentMessages_ShouldReturnEmptyStateAsync() { // Arrange var functions = new List { CreateFunction("f1") }; @@ -343,7 +343,7 @@ public sealed class ContextualFunctionProviderTests var expected = string.Join(Environment.NewLine, ["msg1", "msg2", "new message"]); this._collectionMock.Verify(c => c.SearchAsync(expected, It.IsAny(), null, It.IsAny()), Times.Once); } - + [Fact] public async Task InvokedAsync_ShouldNotAddMessages_WhenExceptionIsPresent_Async() {