Skip to content

Commit

Permalink
fix(tests): remove ambiguous call to Span<T>.Count (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbooth committed Nov 14, 2023
1 parent ba451a0 commit d5c63fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion X10D.Tests/src/Linq/ReadOnlySpanTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void Count_ShouldThrow_GivenNullPredicate()
Assert.Throws<ArgumentNullException>(() =>
{
var span = new ReadOnlySpan<int>();
_ = span.Count(null!);
_ = span.Count((Predicate<int>)null!);
});
}
}
2 changes: 1 addition & 1 deletion X10D.Tests/src/Linq/SpanTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void Count_ShouldThrow_GivenNullPredicate()
Assert.Throws<ArgumentNullException>(() =>
{
var span = new Span<int>();
_ = span.Count(null!);
_ = span.Count((Predicate<int>)null!);
});
}
}

0 comments on commit d5c63fe

Please sign in to comment.