From e1942a5b35edfe0708e08c39761d1eb1679a3eb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20St=C3=BChmer?= Date: Fri, 5 Jan 2024 06:20:03 +0100 Subject: [PATCH] chore: Added `StringComparer.Ordinal` at all possible positions (#304) [skip ci] --- .../SetCultureAttributeTests.cs | 9 +++++---- .../SetUICultureAttributeTests.cs | 9 +++++---- .../SetCultureAttributeTests.cs | 9 +++++---- .../SetUICultureAttributeTests.cs | 9 +++++---- 4 files changed, 20 insertions(+), 16 deletions(-) diff --git a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/SetCultureAttributeTests.cs b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/SetCultureAttributeTests.cs index 6bf7d44..6591544 100644 --- a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/SetCultureAttributeTests.cs +++ b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/SetCultureAttributeTests.cs @@ -1,5 +1,6 @@ namespace NetEvolve.Extensions.NUnit.Tests.Unit; +using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; @@ -14,7 +15,7 @@ public class SetCultureAttributeTests : AttributeTestsBase public async Task Execute_English() { var properties = GetProperties(); - var translations = new Dictionary + var translations = new Dictionary(StringComparer.Ordinal) { { "Translation", Translations.HelloWorld } }; @@ -27,7 +28,7 @@ public async Task Execute_English() public async Task Execute_Invariant() { var properties = GetProperties(); - var translations = new Dictionary + var translations = new Dictionary(StringComparer.Ordinal) { { "Translation", Translations.HelloWorld } }; @@ -40,7 +41,7 @@ public async Task Execute_Invariant() public async Task Execute_German() { var properties = GetProperties(); - var translations = new Dictionary + var translations = new Dictionary(StringComparer.Ordinal) { { "Translation", Translations.HelloWorld } }; @@ -53,7 +54,7 @@ public async Task Execute_German() public async Task Execute_German_Germany() { var properties = GetProperties(); - var translations = new Dictionary + var translations = new Dictionary(StringComparer.Ordinal) { { "Translation", Translations.HelloWorld } }; diff --git a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/SetUICultureAttributeTests.cs b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/SetUICultureAttributeTests.cs index 6f682cc..e37e7dd 100644 --- a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/SetUICultureAttributeTests.cs +++ b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/SetUICultureAttributeTests.cs @@ -1,5 +1,6 @@ namespace NetEvolve.Extensions.NUnit.Tests.Unit; +using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; @@ -14,7 +15,7 @@ public class SetUICultureAttributeTests : AttributeTestsBase public async Task Execute_English() { var properties = GetProperties(); - var translations = new Dictionary + var translations = new Dictionary(StringComparer.Ordinal) { { "Translation", Translations.HelloWorld } }; @@ -27,7 +28,7 @@ public async Task Execute_English() public async Task Execute_Invariant() { var properties = GetProperties(); - var translations = new Dictionary + var translations = new Dictionary(StringComparer.Ordinal) { { "Translation", Translations.HelloWorld } }; @@ -40,7 +41,7 @@ public async Task Execute_Invariant() public async Task Execute_German() { var properties = GetProperties(); - var translations = new Dictionary + var translations = new Dictionary(StringComparer.Ordinal) { { "Translation", Translations.HelloWorld } }; @@ -53,7 +54,7 @@ public async Task Execute_German() public async Task Execute_German_Germany() { var properties = GetProperties(); - var translations = new Dictionary + var translations = new Dictionary(StringComparer.Ordinal) { { "Translation", Translations.HelloWorld } }; diff --git a/tests/NetEvolve.Extensions.XUnit.Tests.Unit/SetCultureAttributeTests.cs b/tests/NetEvolve.Extensions.XUnit.Tests.Unit/SetCultureAttributeTests.cs index 635d7db..39b0791 100644 --- a/tests/NetEvolve.Extensions.XUnit.Tests.Unit/SetCultureAttributeTests.cs +++ b/tests/NetEvolve.Extensions.XUnit.Tests.Unit/SetCultureAttributeTests.cs @@ -1,5 +1,6 @@ namespace NetEvolve.Extensions.XUnit.Tests.Unit; +using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; @@ -16,7 +17,7 @@ public class SetCultureAttributeTests : AttributeTestsBase public async Task Execute_English() { var traits = GetTraits(); - var translations = new Dictionary + var translations = new Dictionary(StringComparer.Ordinal) { { "Translation", Translations.HelloWorld } }; @@ -29,7 +30,7 @@ public async Task Execute_English() public async Task Execute_Invariant() { var traits = GetTraits(); - var translations = new Dictionary + var translations = new Dictionary(StringComparer.Ordinal) { { "Translation", Translations.HelloWorld } }; @@ -42,7 +43,7 @@ public async Task Execute_Invariant() public async Task Execute_German() { var traits = GetTraits(); - var translations = new Dictionary + var translations = new Dictionary(StringComparer.Ordinal) { { "Translation", Translations.HelloWorld } }; @@ -55,7 +56,7 @@ public async Task Execute_German() public async Task Execute_German_Germany() { var traits = GetTraits(); - var translations = new Dictionary + var translations = new Dictionary(StringComparer.Ordinal) { { "Translation", Translations.HelloWorld } }; diff --git a/tests/NetEvolve.Extensions.XUnit.Tests.Unit/SetUICultureAttributeTests.cs b/tests/NetEvolve.Extensions.XUnit.Tests.Unit/SetUICultureAttributeTests.cs index 390d5b8..a67ffa3 100644 --- a/tests/NetEvolve.Extensions.XUnit.Tests.Unit/SetUICultureAttributeTests.cs +++ b/tests/NetEvolve.Extensions.XUnit.Tests.Unit/SetUICultureAttributeTests.cs @@ -1,5 +1,6 @@ namespace NetEvolve.Extensions.XUnit.Tests.Unit; +using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; @@ -16,7 +17,7 @@ public class SetUICultureAttributeTests : AttributeTestsBase public async Task Execute_English() { var traits = GetTraits(); - var translations = new Dictionary + var translations = new Dictionary(StringComparer.Ordinal) { { "Translation", Translations.HelloWorld } }; @@ -29,7 +30,7 @@ public async Task Execute_English() public async Task Execute_Invariant() { var traits = GetTraits(); - var translations = new Dictionary + var translations = new Dictionary(StringComparer.Ordinal) { { "Translation", Translations.HelloWorld } }; @@ -42,7 +43,7 @@ public async Task Execute_Invariant() public async Task Execute_German() { var traits = GetTraits(); - var translations = new Dictionary + var translations = new Dictionary(StringComparer.Ordinal) { { "Translation", Translations.HelloWorld } }; @@ -55,7 +56,7 @@ public async Task Execute_German() public async Task Execute_German_Germany() { var traits = GetTraits(); - var translations = new Dictionary + var translations = new Dictionary(StringComparer.Ordinal) { { "Translation", Translations.HelloWorld } };