mirror of https://github.com/oliverbooth/X10D
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