From 20f81c5c9747fed2d7176ae2ff52901c6a46e1cc Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sun, 27 Aug 2023 13:38:58 +0100 Subject: [PATCH] test: use more meaningful test names --- X10D.Tests/src/Text/StringTests.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/X10D.Tests/src/Text/StringTests.cs b/X10D.Tests/src/Text/StringTests.cs index 710e59a..7cba8c5 100644 --- a/X10D.Tests/src/Text/StringTests.cs +++ b/X10D.Tests/src/Text/StringTests.cs @@ -767,13 +767,13 @@ internal class StringTests } [Test] - public void Repeat_ShouldThrow_GivenNegativeCount() + public void Repeat_ShouldThrowArgumentOutOfRangeException_GivenNegativeCount() { Assert.Throws(() => _ = "a".Repeat(-1)); } [Test] - public void Repeat_ShouldThrow_GivenNull() + public void Repeat_ShouldThrowArgumentNullException_GivenNull() { string value = null!; Assert.Throws(() => _ = value.Repeat(0)); @@ -795,7 +795,7 @@ internal class StringTests } [Test] - public void Reverse_ShouldThrow_GivenNull() + public void Reverse_ShouldThrowArgumentNullException_GivenNull() { string value = null!; Assert.Throws(() => _ = value.Reverse()); @@ -813,7 +813,7 @@ internal class StringTests } [Test] - public void Shuffled_ShouldThrow_GivenNull() + public void Shuffled_ShouldThrowArgumentNullException_GivenNull() { string value = null!; Assert.Throws(() => _ = value.Shuffled()); @@ -847,7 +847,7 @@ internal class StringTests } [Test] - public void Split_ShouldThrow_GivenNullString() + public void Split_ShouldThrowArgumentNullException_GivenNullString() { string value = null!;