1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-09 22:55:42 +00:00

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

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]