From da08d23aeed6c3f0f7588f910db89775546cf04a Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sun, 27 Aug 2023 03:48:56 +0100 Subject: [PATCH] style(tests): use more meaningful test names --- X10D.Tests/src/Text/CharTests.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/X10D.Tests/src/Text/CharTests.cs b/X10D.Tests/src/Text/CharTests.cs index 4644ebd8e..3c72213aa 100644 --- a/X10D.Tests/src/Text/CharTests.cs +++ b/X10D.Tests/src/Text/CharTests.cs @@ -29,7 +29,7 @@ public void IsEmoji_ShouldReturnFalse_GivenNonEmoji() } [Test] - public void RepeatShouldBeCorrect() + public void Repeat_ShouldReturnRepeatedCharacter_GivenValidCount() { const string expected = "aaaaaaaaaa"; string actual = 'a'.Repeat(10); @@ -38,7 +38,7 @@ public void RepeatShouldBeCorrect() } [Test] - public void RepeatOneCountShouldBeLength1String() + public void Repeat_ShouldReturnSingleCharString_GivenCount1() { string repeated = 'a'.Repeat(1); Assert.That(repeated, Has.Length.EqualTo(1)); @@ -46,13 +46,13 @@ public void RepeatOneCountShouldBeLength1String() } [Test] - public void RepeatZeroCountShouldBeEmpty() + public void Repeat_ShouldReturnEmptyString_GivenCount0() { Assert.That('a'.Repeat(0), Is.EqualTo(string.Empty)); } [Test] - public void RepeatNegativeCountShouldThrow() + public void Repeat_ShouldThrowArgumentOutOfRangeException_GivenNegativeCount() { Assert.Throws(() => _ = 'a'.Repeat(-1)); }