From 882c25e74ed3ee30a3e0a794e6b66f2ec2a25b3d Mon Sep 17 00:00:00 2001 From: Mehran Davoudi Date: Mon, 16 Sep 2024 03:32:43 +0330 Subject: [PATCH] Update docs to reflect ScenarioAssert --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8ef79f8..d4c6e73 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,8 @@ Executing tests is a straightforward process. You have the flexibility to utiliz ```csharp var markdown = // Load it from .md file var scenarios = await ChatScenario.LoadFromText(markdown); -await SemanticKernelAssert.CheckChatScenarioAsync(scenarios, async history => +await ScenarioAssert.PassAsync(scenarios, + getAnswerFunc: async history => { var result = // your logic to be tested; return result; @@ -199,10 +200,10 @@ Afterwards, you'll need to instantiate the `SemanticKernelAssert` class in your ```csharp public class MyTest { - SemanticKernelAssert SemanticKernelAssert { get; set; } + SemanticAssert SemanticAssert { get; set; } MyTest(ITestOutputHelper output) { - SemanticKernelAssert = new SemanticKernelAssert(_deploymentName, _endpoint, _apiKey, output.WriteLine); + SemanticAssert = new SemanticAssert(_deploymentName, _endpoint, _apiKey, output.WriteLine); } [Fact] @@ -210,7 +211,7 @@ public class MyTest { var scenario = // Load your markdown. var scenarios = await ChatScenario.LoadFromTest(scenario); - await SemanticKernelAssert.CheckChatScenarioAsync(scenarios, async history => + await SemanticAssert.PassAsync(scenarios, async history => { var result = // your logic to be tested; return result;