style: discard pure return of Randomize

This commit is contained in:
Oliver Booth 2023-08-27 13:45:24 +01:00
parent 5220f386aa
commit 56c3f117c7
Signed by: oliverbooth
GPG Key ID: B89D139977693FED
1 changed files with 1 additions and 1 deletions

View File

@ -744,7 +744,7 @@ internal class StringTests
[Test] [Test]
public void Randomize_ShouldThrow_GivenNegativeLength() public void Randomize_ShouldThrow_GivenNegativeLength()
{ {
Assert.Throws<ArgumentOutOfRangeException>(() => string.Empty.Randomize(-1)); Assert.Throws<ArgumentOutOfRangeException>(() => _ = string.Empty.Randomize(-1));
} }
[Test] [Test]