From 56c3f117c7192d471af77ad0af6bd50b5360a333 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sun, 27 Aug 2023 13:45:24 +0100 Subject: [PATCH] style: discard pure return of Randomize --- X10D.Tests/src/Text/StringTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/X10D.Tests/src/Text/StringTests.cs b/X10D.Tests/src/Text/StringTests.cs index c1a78ea03..1eecb8996 100644 --- a/X10D.Tests/src/Text/StringTests.cs +++ b/X10D.Tests/src/Text/StringTests.cs @@ -744,7 +744,7 @@ public void Randomize_ShouldThrow_GivenNull() [Test] public void Randomize_ShouldThrow_GivenNegativeLength() { - Assert.Throws(() => string.Empty.Randomize(-1)); + Assert.Throws(() => _ = string.Empty.Randomize(-1)); } [Test]