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