diff --git a/dotnet/src/SemanticKernel.Core/Functions/KernelFunctionFromMethod.cs b/dotnet/src/SemanticKernel.Core/Functions/KernelFunctionFromMethod.cs index 9385ae02bcaf..4dc83cb46c7d 100644 --- a/dotnet/src/SemanticKernel.Core/Functions/KernelFunctionFromMethod.cs +++ b/dotnet/src/SemanticKernel.Core/Functions/KernelFunctionFromMethod.cs @@ -697,8 +697,10 @@ private static (Func { actual = val; }); + + // Act + await sut.InvokeAsync(this._kernel, new() { ["val"] = null }); + + // Assert + Assert.Equal(5, actual); + } + [Fact] public async Task ItShouldMarshalArgumentsOfReferenceTypeAsync() {