mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-22 08:58:48 +00:00
fix: discard Repeat return value
This commit is contained in:
parent
c6dbc4cebe
commit
fbd3e951c4
@ -51,6 +51,6 @@ internal class CharTests
|
||||
[Test]
|
||||
public void RepeatNegativeCountShouldThrow()
|
||||
{
|
||||
Assert.Throws<ArgumentOutOfRangeException>(() => 'a'.Repeat(-1));
|
||||
Assert.Throws<ArgumentOutOfRangeException>(() => _ = 'a'.Repeat(-1));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user