Skip to content

.NET 1.0.1 Unit test strategy #4575

Closed Answered by matthewbolanos
jimmy-vo-librestream asked this question in Q&A
Discussion options

You must be logged in to vote

Per @markwallace-microsoft guidance on #4589, you can take a look at our existing unit tests here for KernelFunction:

KernelFunctionFromMethodTests1.cs
KernelFunctionFromMethodTests2.cs
KernelFunctionFromPromptTests.cs

For your use case you can mock the AI service and add that to the Kernel you use in your unit tests. We're going to take a look at providing guidance around unit testing.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by sophialagerkranspandey
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants