-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Refactored SemanticTestBase to use ScenarioAssert and IChatClient. Updated KernelChatTests to use ScenarioAssert. Removed obsolete test classes and methods, including FunctionTests and KernelTests. Deleted config.json, sktest.md, and skprompt.txt files. Updated skUnit.Tests.csproj to remove references to deleted files and scenarios. Updated ScenarioAssert_Initialize.cs and SemanticAssert.cs to use IChatClient. Removed PocomoPlugin.cs and related configurations. Updated skUnit.csproj to target .NET 8.0 and updated package references. Added new ChatClientTests class in ChatClientTests.cs. Introduced new methods in ScenarioAssert for chat scenario validation.
- Loading branch information
Showing
38 changed files
with
209 additions
and
1,498 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/skUnit.Tests/ScenarioAssertTests/ChatScenarioTests/ChatClientTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using Microsoft.SemanticKernel; | ||
using skUnit.Tests.Infrastructure; | ||
using Xunit.Abstractions; | ||
|
||
namespace skUnit.Tests.ScenarioAssertTests.ChatScenarioTests | ||
{ | ||
public class ChatClientTests : SemanticTestBase | ||
{ | ||
public ChatClientTests(ITestOutputHelper output) : base(output) | ||
{ | ||
|
||
} | ||
|
||
[Fact] | ||
public async Task EiffelTallChat_MustWork() | ||
{ | ||
var scenarios = await LoadChatScenarioAsync("EiffelTallChat"); | ||
await ScenarioAssert.PassAsync(scenarios, ChatClient); | ||
} | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 0 additions & 55 deletions
55
src/skUnit.Tests/ScenarioAssertTests/InvokeScenarioTests/FunctionTests.cs
This file was deleted.
Oops, something went wrong.
41 changes: 0 additions & 41 deletions
41
src/skUnit.Tests/ScenarioAssertTests/InvokeScenarioTests/KernelTests.cs
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
....Tests/ScenarioAssertTests/InvokeScenarioTests/Samples/SentimentAngry_Complex/config.json
This file was deleted.
Oops, something went wrong.
56 changes: 0 additions & 56 deletions
56
...cenarioAssertTests/InvokeScenarioTests/Samples/SentimentAngry_Complex/sktest.md
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...it.Tests/ScenarioAssertTests/InvokeScenarioTests/Samples/SentimentAngry_Light/config.json
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
.../ScenarioAssertTests/InvokeScenarioTests/Samples/SentimentAngry_Light/sktest.md
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
src/skUnit.Tests/ScenarioAssertTests/InvokeScenarioTests/Samples/SentimentHappy/config.json
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
....Tests/ScenarioAssertTests/InvokeScenarioTests/Samples/SentimentHappy/sktest.md
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.