Skip to content

Commit

Permalink
test: Apply a naming convention to test names (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDave1999 authored Jun 27, 2024
1 parent 0e8da69 commit e468736
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class ServiceCollectionExtensionsTests
private const string ConfigEnvPath = "env_files/config.env";

[TestMethod]
public void AddDotEnvWithDefaultEnvFileName()
public void AddDotEnv_WhenDefaultEnvFileNameIsUsed_ShouldReadKeyValuePairs()
{
// Arrange
var services = new ServiceCollection();
Expand All @@ -24,7 +24,7 @@ public void AddDotEnvWithDefaultEnvFileName()
}

[TestMethod]
public void AddDotEnvWithCustomConfiguration()
public void AddDotEnv_WhenCustomConfigurationIsUsed_ShouldReadKeyValuePairs()
{
// Arrange
var services = new ServiceCollection();
Expand All @@ -40,7 +40,7 @@ public void AddDotEnvWithCustomConfiguration()
}

[TestMethod]
public void AddDotEnvGenericWithDefaultEnvFileName()
public void AddDotEnvOfT_WhenDefaultEnvFileNameIsUsed_ShouldReadKeyValuePairs()
{
// Arrange
var services = new ServiceCollection();
Expand All @@ -56,7 +56,7 @@ public void AddDotEnvGenericWithDefaultEnvFileName()
}

[TestMethod]
public void AddDotEnvGenericWithCustomConfiguration()
public void AddDotEnvOfT_WhenCustomConfigurationIsUsed_ShouldReadKeyValuePairs()
{
// Arrange
var services = new ServiceCollection();
Expand All @@ -72,7 +72,7 @@ public void AddDotEnvGenericWithCustomConfiguration()
}

[TestMethod]
public void AddCustomEnvWithCustomConfiguration()
public void AddCustomEnv_WhenCustomConfigurationIsUsed_ShouldReadKeyValuePairs()
{
// Arrange
var services = new ServiceCollection();
Expand All @@ -94,7 +94,7 @@ public void AddCustomEnvWithCustomConfiguration()
}

[TestMethod]
public void AddCustomEnvGenericWithCustomConfiguration()
public void AddCustomEnvOfT_WhenCustomConfigurationIsUsed_ShouldReadKeyValuePairs()
{
// Arrange
var services = new ServiceCollection();
Expand Down

0 comments on commit e468736

Please sign in to comment.