12 references to EqualFunctionCallResults
Microsoft.Extensions.AI.Tests (12)
ChatCompletion\FunctionInvokingChatClientTests.cs (2)
1002
AssertExtensions.
EqualFunctionCallResults
(expectedFunctionResult.Result, chatFunctionResult.Result);
1096
AssertExtensions.
EqualFunctionCallResults
(expectedFunctionResult.Result, chatFunctionResult.Result);
Functions\AIFunctionFactoryTest.cs (10)
41
AssertExtensions.
EqualFunctionCallResults
("test test", await func.InvokeAsync(new() { ["a"] = "test" }));
44
AssertExtensions.
EqualFunctionCallResults
("hello world", await func.InvokeAsync(new() { ["b"] = "hello", ["a"] = "world" }));
47
AssertExtensions.
EqualFunctionCallResults
(3L, await func.InvokeAsync(new() { ["a"] = 1, ["b"] = 2L }));
54
AssertExtensions.
EqualFunctionCallResults
("test test", await func.InvokeAsync());
55
AssertExtensions.
EqualFunctionCallResults
("hello hello", await func.InvokeAsync(new() { ["a"] = "hello" }));
89
AssertExtensions.
EqualFunctionCallResults
(42, await func.InvokeAsync(cancellationToken: ctArg));
101
AssertExtensions.
EqualFunctionCallResults
("test test", await func.InvokeAsync(new() { ["a"] = "test" }));
104
AssertExtensions.
EqualFunctionCallResults
("hello world", await func.InvokeAsync(new() { ["b"] = "hello", ["a"] = "world" }));
108
AssertExtensions.
EqualFunctionCallResults
(null, await func.InvokeAsync(new() { ["a"] = 1, ["b"] = 2L }));
113
AssertExtensions.
EqualFunctionCallResults
(null, await func.InvokeAsync(new() { ["a"] = 1, ["b"] = 2L }));