Skip to content

Commit

Permalink
style: discard pure return of Randomize
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbooth committed Aug 27, 2023
1 parent 5220f38 commit 56c3f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion X10D.Tests/src/Text/StringTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ public void Randomize_ShouldThrow_GivenNull()
[Test]
public void Randomize_ShouldThrow_GivenNegativeLength()
{
Assert.Throws<ArgumentOutOfRangeException>(() => string.Empty.Randomize(-1));
Assert.Throws<ArgumentOutOfRangeException>(() => _ = string.Empty.Randomize(-1));
}

[Test]
Expand Down

0 comments on commit 56c3f11

Please sign in to comment.