1
0
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:
Oliver Booth 2023-08-27 03:47:58 +01:00
parent c6dbc4cebe
commit fbd3e951c4
Signed by: oliverbooth
GPG Key ID: B89D139977693FED

View File

@ -51,6 +51,6 @@ internal class CharTests
[Test]
public void RepeatNegativeCountShouldThrow()
{
Assert.Throws<ArgumentOutOfRangeException>(() => 'a'.Repeat(-1));
Assert.Throws<ArgumentOutOfRangeException>(() => _ = 'a'.Repeat(-1));
}
}