Skip to content

Commit

Permalink
refactor: Improve test names (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDave1999 authored Sep 6, 2024
1 parent ba8de4e commit 80af79f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand Down
8 changes: 4 additions & 4 deletions tests/Application.Tests/Teams/TeamStatsPerRoundTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
public class TeamStatsPerRoundTests
{
[Test]
public void AddScore_WhenScoreIsAdded_ShouldUpdateScore()
public void AddScore_WhenCalledTwice_ShouldBeIncreasedTo2()
{
// Arrange
var stats = new TeamStatsPerRound();
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit 80af79f

Please sign in to comment.