mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-25 19:58:48 +00:00
fix(tests): remove ambiguous call to Span<T>.Count (#88)
This commit is contained in:
parent
ba451a0144
commit
d5c63feb5c
@ -76,7 +76,7 @@ internal class ReadOnlySpanTests
|
|||||||
Assert.Throws<ArgumentNullException>(() =>
|
Assert.Throws<ArgumentNullException>(() =>
|
||||||
{
|
{
|
||||||
var span = new ReadOnlySpan<int>();
|
var span = new ReadOnlySpan<int>();
|
||||||
_ = span.Count(null!);
|
_ = span.Count((Predicate<int>)null!);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -76,7 +76,7 @@ internal class SpanTests
|
|||||||
Assert.Throws<ArgumentNullException>(() =>
|
Assert.Throws<ArgumentNullException>(() =>
|
||||||
{
|
{
|
||||||
var span = new Span<int>();
|
var span = new Span<int>();
|
||||||
_ = span.Count(null!);
|
_ = span.Count((Predicate<int>)null!);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user