Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add unit tests for dotnet and improve test infrastructure #5269

Merged
merged 9 commits into from
Jan 30, 2025
Prev Previous commit
Next Next commit
test naming convention: PascalCase with Test at end
  • Loading branch information
bassmang committed Jan 30, 2025

Verified

This commit was signed with the committer’s verified signature.
jkcdarunday Jan Keith Darunday
commit 0d3c2d16446efb1d25ea7dc92029b88de281a498
8 changes: 4 additions & 4 deletions dotnet/test/Microsoft.AutoGen.Core.Tests/AgentTests.cs
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ namespace Microsoft.AutoGen.Core.Tests;
public class AgentTests()
{
[Fact]
public async Task Agent_ShouldNotReceiveMessages_WhenNotSubscribed()
public async Task AgentShouldNotReceiveMessagesWhenNotSubscribedTest()
{
var runtime = new InProcessRuntime();
await runtime.StartAsync();
@@ -40,7 +40,7 @@ await runtime.RegisterAgentFactoryAsync("MyAgent", (id, runtime) =>
}

[Fact]
public async Task Agent_ShouldReceiveMessages_WhenSubscribed()
public async Task AgentShouldReceiveMessagesWhenSubscribedTest()
{
var runtime = new InProcessRuntime();
await runtime.StartAsync();
@@ -72,7 +72,7 @@ await runtime.RegisterAgentFactoryAsync("MyAgent", (id, runtime) =>
}

[Fact]
public async Task SendMessageAsync_ShouldReturnResponse()
public async Task SendMessageAsyncShouldReturnResponseTest()
{
// Arrange
var runtime = new InProcessRuntime();
@@ -146,7 +146,7 @@ public ValueTask HandleAsync(string item, MessageContext messageContext)
}

[Fact]
public async Task SubscribeAsync_UnsubscribeAsync_and_GetSubscriptionsTest()
public async Task SubscribeAsyncUnsubscribeAsyncAndGetSubscriptionsTest()
{
var runtime = new InProcessRuntime();
await runtime.StartAsync();
Loading