Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions TUnit.Assertions.Tests/CollectionAssertionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,10 @@ public async Task Chained_Collection_Assertions_WithStrings()
{
var names = new[] { "Alice", "Bob", "Charlie" };

// For non-int collections, Count(c => c.IsEqualTo(3)) works unambiguously
// Count(predicate) is the per-item filter overload and returns a source without .And.
await Assert.That(names)
.IsNotEmpty()
.And.Count(c => c.IsEqualTo(3))
.And.Count().IsEqualTo(3)
.And.Contains("Bob")
.And.DoesNotContain("Dave");
}
Expand Down
Loading