12 references to EqualFunctionCallResults
Microsoft.Extensions.AI.Tests (12)
ChatCompletion\FunctionInvokingChatClientTests.cs (2)
1000
AssertExtensions.
EqualFunctionCallResults
(expectedFunctionResult.Result, chatFunctionResult.Result);
1094
AssertExtensions.
EqualFunctionCallResults
(expectedFunctionResult.Result, chatFunctionResult.Result);
Functions\AIFunctionFactoryTest.cs (10)
43
AssertExtensions.
EqualFunctionCallResults
("test test", await func.InvokeAsync(new() { ["a"] = "test" }));
46
AssertExtensions.
EqualFunctionCallResults
("hello world", await func.InvokeAsync(new() { ["b"] = "hello", ["a"] = "world" }));
49
AssertExtensions.
EqualFunctionCallResults
(3L, await func.InvokeAsync(new() { ["a"] = 1, ["b"] = 2L }));
56
AssertExtensions.
EqualFunctionCallResults
("test test", await func.InvokeAsync());
57
AssertExtensions.
EqualFunctionCallResults
("hello hello", await func.InvokeAsync(new() { ["a"] = "hello" }));
91
AssertExtensions.
EqualFunctionCallResults
(42, await func.InvokeAsync(cancellationToken: ctArg));
103
AssertExtensions.
EqualFunctionCallResults
("test test", await func.InvokeAsync(new() { ["a"] = "test" }));
106
AssertExtensions.
EqualFunctionCallResults
("hello world", await func.InvokeAsync(new() { ["b"] = "hello", ["a"] = "world" }));
110
AssertExtensions.
EqualFunctionCallResults
(null, await func.InvokeAsync(new() { ["a"] = 1, ["b"] = 2L }));
115
AssertExtensions.
EqualFunctionCallResults
(null, await func.InvokeAsync(new() { ["a"] = 1, ["b"] = 2L }));