Skip to content

Commit

Permalink
chore: Added StringComparer.Ordinal at all possible positions (#304)…
Browse files Browse the repository at this point in the history
… [skip ci]
  • Loading branch information
samtrion authored Jan 5, 2024
1 parent c334a42 commit e1942a5
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace NetEvolve.Extensions.NUnit.Tests.Unit;

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
Expand All @@ -14,7 +15,7 @@ public class SetCultureAttributeTests : AttributeTestsBase
public async Task Execute_English()
{
var properties = GetProperties();
var translations = new Dictionary<string, string>
var translations = new Dictionary<string, string>(StringComparer.Ordinal)
{
{ "Translation", Translations.HelloWorld }
};
Expand All @@ -27,7 +28,7 @@ public async Task Execute_English()
public async Task Execute_Invariant()
{
var properties = GetProperties();
var translations = new Dictionary<string, string>
var translations = new Dictionary<string, string>(StringComparer.Ordinal)
{
{ "Translation", Translations.HelloWorld }
};
Expand All @@ -40,7 +41,7 @@ public async Task Execute_Invariant()
public async Task Execute_German()
{
var properties = GetProperties();
var translations = new Dictionary<string, string>
var translations = new Dictionary<string, string>(StringComparer.Ordinal)
{
{ "Translation", Translations.HelloWorld }
};
Expand All @@ -53,7 +54,7 @@ public async Task Execute_German()
public async Task Execute_German_Germany()
{
var properties = GetProperties();
var translations = new Dictionary<string, string>
var translations = new Dictionary<string, string>(StringComparer.Ordinal)
{
{ "Translation", Translations.HelloWorld }
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace NetEvolve.Extensions.NUnit.Tests.Unit;

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
Expand All @@ -14,7 +15,7 @@ public class SetUICultureAttributeTests : AttributeTestsBase
public async Task Execute_English()
{
var properties = GetProperties();
var translations = new Dictionary<string, string>
var translations = new Dictionary<string, string>(StringComparer.Ordinal)
{
{ "Translation", Translations.HelloWorld }
};
Expand All @@ -27,7 +28,7 @@ public async Task Execute_English()
public async Task Execute_Invariant()
{
var properties = GetProperties();
var translations = new Dictionary<string, string>
var translations = new Dictionary<string, string>(StringComparer.Ordinal)
{
{ "Translation", Translations.HelloWorld }
};
Expand All @@ -40,7 +41,7 @@ public async Task Execute_Invariant()
public async Task Execute_German()
{
var properties = GetProperties();
var translations = new Dictionary<string, string>
var translations = new Dictionary<string, string>(StringComparer.Ordinal)
{
{ "Translation", Translations.HelloWorld }
};
Expand All @@ -53,7 +54,7 @@ public async Task Execute_German()
public async Task Execute_German_Germany()
{
var properties = GetProperties();
var translations = new Dictionary<string, string>
var translations = new Dictionary<string, string>(StringComparer.Ordinal)
{
{ "Translation", Translations.HelloWorld }
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace NetEvolve.Extensions.XUnit.Tests.Unit;

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
Expand All @@ -16,7 +17,7 @@ public class SetCultureAttributeTests : AttributeTestsBase
public async Task Execute_English()
{
var traits = GetTraits();
var translations = new Dictionary<string, string>
var translations = new Dictionary<string, string>(StringComparer.Ordinal)
{
{ "Translation", Translations.HelloWorld }
};
Expand All @@ -29,7 +30,7 @@ public async Task Execute_English()
public async Task Execute_Invariant()
{
var traits = GetTraits();
var translations = new Dictionary<string, string>
var translations = new Dictionary<string, string>(StringComparer.Ordinal)
{
{ "Translation", Translations.HelloWorld }
};
Expand All @@ -42,7 +43,7 @@ public async Task Execute_Invariant()
public async Task Execute_German()
{
var traits = GetTraits();
var translations = new Dictionary<string, string>
var translations = new Dictionary<string, string>(StringComparer.Ordinal)
{
{ "Translation", Translations.HelloWorld }
};
Expand All @@ -55,7 +56,7 @@ public async Task Execute_German()
public async Task Execute_German_Germany()
{
var traits = GetTraits();
var translations = new Dictionary<string, string>
var translations = new Dictionary<string, string>(StringComparer.Ordinal)
{
{ "Translation", Translations.HelloWorld }
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace NetEvolve.Extensions.XUnit.Tests.Unit;

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
Expand All @@ -16,7 +17,7 @@ public class SetUICultureAttributeTests : AttributeTestsBase
public async Task Execute_English()
{
var traits = GetTraits();
var translations = new Dictionary<string, string>
var translations = new Dictionary<string, string>(StringComparer.Ordinal)
{
{ "Translation", Translations.HelloWorld }
};
Expand All @@ -29,7 +30,7 @@ public async Task Execute_English()
public async Task Execute_Invariant()
{
var traits = GetTraits();
var translations = new Dictionary<string, string>
var translations = new Dictionary<string, string>(StringComparer.Ordinal)
{
{ "Translation", Translations.HelloWorld }
};
Expand All @@ -42,7 +43,7 @@ public async Task Execute_Invariant()
public async Task Execute_German()
{
var traits = GetTraits();
var translations = new Dictionary<string, string>
var translations = new Dictionary<string, string>(StringComparer.Ordinal)
{
{ "Translation", Translations.HelloWorld }
};
Expand All @@ -55,7 +56,7 @@ public async Task Execute_German()
public async Task Execute_German_Germany()
{
var traits = GetTraits();
var translations = new Dictionary<string, string>
var translations = new Dictionary<string, string>(StringComparer.Ordinal)
{
{ "Translation", Translations.HelloWorld }
};
Expand Down

0 comments on commit e1942a5

Please sign in to comment.