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
1 changed files with 1 additions and 1 deletions

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));
}
}