From 80af79fd893a04574de8b296bb559286456cf085 Mon Sep 17 00:00:00 2001 From: Dave Roman <43916038+MrDave1999@users.noreply.github.com> Date: Fri, 6 Sep 2024 16:44:09 -0500 Subject: [PATCH] refactor: Improve test names (#62) --- .../Players/Accounts/PlayerStatsPerRoundTests.cs | 8 ++++---- tests/Application.Tests/Teams/TeamStatsPerRoundTests.cs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/Application.Tests/Players/Accounts/PlayerStatsPerRoundTests.cs b/tests/Application.Tests/Players/Accounts/PlayerStatsPerRoundTests.cs index 3d288a1b..02b69662 100644 --- a/tests/Application.Tests/Players/Accounts/PlayerStatsPerRoundTests.cs +++ b/tests/Application.Tests/Players/Accounts/PlayerStatsPerRoundTests.cs @@ -173,7 +173,7 @@ public void SubtractPoints_WhenSubtractionOfPointsGivesNegativeResult_ShouldSetV } [Test] - public void AddKills_WhenKillIsAdded_ShouldUpdateKills() + public void AddKills_WhenCalledTwice_ShouldBeIncreasedTo2() { // Arrange var stats = new PlayerStatsPerRound(); @@ -188,7 +188,7 @@ public void AddKills_WhenKillIsAdded_ShouldUpdateKills() } [Test] - public void AddDeaths_WhenDeathIsAdded_ShouldUpdateDeaths() + public void AddDeaths_WhenCalledTwice_ShouldBeIncreasedTo2() { // Arrange var stats = new PlayerStatsPerRound(); @@ -203,7 +203,7 @@ public void AddDeaths_WhenDeathIsAdded_ShouldUpdateDeaths() } [Test] - public void AddKillingSpree_WhenKillingSpreeIsAdded_ShouldUpdateKillingSpree() + public void AddKillingSpree_WhenCalledTwice_ShouldBeIncreasedTo2() { // Arrange var stats = new PlayerStatsPerRound(); @@ -218,7 +218,7 @@ public void AddKillingSpree_WhenKillingSpreeIsAdded_ShouldUpdateKillingSpree() } [Test] - public void ResetStats_WhenStatsAreReset_ShouldUpdateStats() + public void ResetStats_WhenCalled_ShouldResetAllStatsToZero() { // Arrange var stats = new PlayerStatsPerRound(); diff --git a/tests/Application.Tests/Teams/TeamStatsPerRoundTests.cs b/tests/Application.Tests/Teams/TeamStatsPerRoundTests.cs index c0beeaa3..d903e3ef 100644 --- a/tests/Application.Tests/Teams/TeamStatsPerRoundTests.cs +++ b/tests/Application.Tests/Teams/TeamStatsPerRoundTests.cs @@ -3,7 +3,7 @@ public class TeamStatsPerRoundTests { [Test] - public void AddScore_WhenScoreIsAdded_ShouldUpdateScore() + public void AddScore_WhenCalledTwice_ShouldBeIncreasedTo2() { // Arrange var stats = new TeamStatsPerRound(); @@ -18,7 +18,7 @@ public void AddScore_WhenScoreIsAdded_ShouldUpdateScore() } [Test] - public void AddKills_WhenKillIsAdded_ShouldUpdateKills() + public void AddKills_WhenCalledTwice_ShouldBeIncreasedTo2() { // Arrange var stats = new TeamStatsPerRound(); @@ -33,7 +33,7 @@ public void AddKills_WhenKillIsAdded_ShouldUpdateKills() } [Test] - public void AddDeaths_WhenDeathIsAdded_ShouldUpdateDeaths() + public void AddDeaths_WhenCalledTwice_ShouldBeIncreasedTo2() { // Arrange var stats = new TeamStatsPerRound(); @@ -48,7 +48,7 @@ public void AddDeaths_WhenDeathIsAdded_ShouldUpdateDeaths() } [Test] - public void Reset_WhenStatsAreReset_ShouldUpdateStats() + public void Reset_WhenCalled_ShouldResetAllStatsToZero() { // Arrange var stats = new TeamStatsPerRound();