Skip to content

Commit 7483695

Browse files
Add test for handling no matches in HandleBlueMatches
A new test method, `HandleBlueMatches_ShouldHandleNoMatches`, was added to the `CodeBreakerAlgorithmsTests` class. This test validates the behavior of the system when no matches occur by using a `List<int>` with binary values representing "miss" cases. This improves test coverage and ensures robustness of the `HandleBlueMatches` functionality.
1 parent 5b3f983 commit 7483695

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/services/bot/CodeBreaker.Bot.Tests/CodeBreakerAlgorithmsTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ public void HandleBlueMatches_Should_ReturnUnfiltered_ForOtherGameTypes()
200200
Assert.Equal(toMatch.Count, actual6x4.Count);
201201
Assert.Equal(toMatch.Count, actual8x5.Count);
202202
}
203+
204+
[Fact]
205+
public void HandleBlueMatches_ShouldHandleNoMatches()
203206
{
204207
List<int> toMatch =
205208
[

0 commit comments

Comments
 (0)