From 0fe1df32c58d3e0f3accf8b977bbf9b96be4de15 Mon Sep 17 00:00:00 2001 From: Mike Marynowski Date: Thu, 7 Mar 2024 01:03:04 -0500 Subject: [PATCH] Namespace and code cleanup --- .../ImmutableSortedMoneySet.cs | 4 ++-- .../Singulink.Globalization.Currency/SortedMoneySet.cs | 3 +-- .../Utilities/CultureInfoExtensions.cs | 5 +---- .../Utilities/DecimalExtensions.cs | 6 +----- .../Utilities/RegionInfoExtensions.cs | 10 ---------- .../ImmutableSortedMoneySetTests/Add.cs | 5 +---- .../ImmutableSortedMoneySetTests/AddRange.cs | 5 +---- .../ImmutableSortedMoneySetTests/Remove.cs | 5 +---- .../ImmutableSortedMoneySetTests/RemoveAll.cs | 5 +---- .../RoundToCurrencyDigits.cs | 5 +---- .../ImmutableSortedMoneySetTests/SetAmount.cs | 5 +---- .../ImmutableSortedMoneySetTests/SetValue.cs | 5 +---- .../ImmutableSortedMoneySetTests/Subtract.cs | 5 +---- .../ImmutableSortedMoneySetTests/SubtractRange.cs | 5 +---- .../ImmutableSortedMoneySetTests/TransformAmounts.cs | 6 +----- .../ImmutableSortedMoneySetTests/TrimZeroAmounts.cs | 5 +---- .../ImmutableSortedMoneySetTests/TryGetAmount.cs | 5 +---- .../ImmutableSortedMoneySetTests/TryGetValue.cs | 5 +---- .../MoneyTests/CompareTo.cs | 5 +---- .../MoneyTests/Operators.cs | 5 +---- .../MoneyTests/RoundToCurrencyDigits.cs | 5 +---- .../MoneyTests/ToString.cs | 4 +--- .../SortedMoneySetTests/Add.cs | 5 +---- .../SortedMoneySetTests/AddRange.cs | 5 +---- .../SortedMoneySetTests/Remove.cs | 5 +---- .../SortedMoneySetTests/RemoveAll.cs | 3 --- .../SortedMoneySetTests/RoundToCurrencyDigits.cs | 5 +---- .../SortedMoneySetTests/SetAmount.cs | 5 +---- .../SortedMoneySetTests/SetValue.cs | 5 +---- .../SortedMoneySetTests/Subtract.cs | 5 +---- .../SortedMoneySetTests/SubtractRange.cs | 5 +---- .../SortedMoneySetTests/TransformAmounts.cs | 5 +---- .../SortedMoneySetTests/TransformValues.cs | 5 +---- .../SortedMoneySetTests/TrimZeroAmounts.cs | 5 +---- .../SortedMoneySetTests/TryGetAmount.cs | 5 +---- .../SortedMoneySetTests/TryGetValue.cs | 5 +---- Tests/Singulink.Globalization.Currency.Tests/Usings.cs | 4 +++- 37 files changed, 38 insertions(+), 147 deletions(-) delete mode 100644 Source/Singulink.Globalization.Currency/Utilities/RegionInfoExtensions.cs diff --git a/Source/Singulink.Globalization.Currency/ImmutableSortedMoneySet.cs b/Source/Singulink.Globalization.Currency/ImmutableSortedMoneySet.cs index 61788e5..83b1017 100644 --- a/Source/Singulink.Globalization.Currency/ImmutableSortedMoneySet.cs +++ b/Source/Singulink.Globalization.Currency/ImmutableSortedMoneySet.cs @@ -1,4 +1,4 @@ -using System.Collections; +using System.Collections; using System.Collections.Immutable; using System.Runtime.CompilerServices; using System.Text; @@ -416,7 +416,7 @@ public ImmutableSortedMoneySet SubtractRange(IEnumerable values) /// Returns a string representation of the money values this set contains. /// /// The format to use for each money value. See for valid money formats. - /// Prepend the format with the "!" character to ignore zero amount values. + /// Prepend the desired money format with the ! character to ignore zero amount values. /// The format provider that will be used to obtain number format information. This should be a /// instance for formats that depend on the culture, otherwise the current culture is used. public string ToString(string? format, IFormatProvider? formatProvider = null) diff --git a/Source/Singulink.Globalization.Currency/SortedMoneySet.cs b/Source/Singulink.Globalization.Currency/SortedMoneySet.cs index 7a5f151..fe70cd2 100644 --- a/Source/Singulink.Globalization.Currency/SortedMoneySet.cs +++ b/Source/Singulink.Globalization.Currency/SortedMoneySet.cs @@ -1,5 +1,4 @@ using System.Collections; -using System.Collections.Immutable; using System.Text; namespace Singulink.Globalization; @@ -347,7 +346,7 @@ public void SubtractRange(IEnumerable values) /// Returns a string representation of the money values this set contains. /// /// The format to use for each money value. See for valid money formats. - /// Prepend the format with the "!" character to ignore zero amount values. + /// Prepend the desired money format with the ! character to ignore zero amount values. /// The format provider that will be used to obtain number format information. This should be a /// instance for formats that depend on the culture, otherwise the current culture is used. public string ToString(string? format, IFormatProvider? formatProvider = null) diff --git a/Source/Singulink.Globalization.Currency/Utilities/CultureInfoExtensions.cs b/Source/Singulink.Globalization.Currency/Utilities/CultureInfoExtensions.cs index 418ca67..03bfdf5 100644 --- a/Source/Singulink.Globalization.Currency/Utilities/CultureInfoExtensions.cs +++ b/Source/Singulink.Globalization.Currency/Utilities/CultureInfoExtensions.cs @@ -1,7 +1,4 @@ -using System; -using System.Globalization; - -namespace Singulink.Globalization.Utilities; +namespace Singulink.Globalization.Utilities; internal static class CultureInfoExtensions { diff --git a/Source/Singulink.Globalization.Currency/Utilities/DecimalExtensions.cs b/Source/Singulink.Globalization.Currency/Utilities/DecimalExtensions.cs index 758fc42..2e6e6be 100644 --- a/Source/Singulink.Globalization.Currency/Utilities/DecimalExtensions.cs +++ b/Source/Singulink.Globalization.Currency/Utilities/DecimalExtensions.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace Singulink.Globalization.Utilities; +namespace Singulink.Globalization.Utilities; internal static class DecimalExtensions { diff --git a/Source/Singulink.Globalization.Currency/Utilities/RegionInfoExtensions.cs b/Source/Singulink.Globalization.Currency/Utilities/RegionInfoExtensions.cs deleted file mode 100644 index 83dae2d..0000000 --- a/Source/Singulink.Globalization.Currency/Utilities/RegionInfoExtensions.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace Singulink.Globalization.Utilities; - -internal static class RegionInfoExtensions -{ - public static bool DecimalSeparatorIsCurrencySymbol(this RegionInfo regionInfo) - { - string symbol = regionInfo.CurrencySymbol; - return symbol.Length == 1 && char.GetUnicodeCategory(symbol[0]) == UnicodeCategory.Format; - } -} \ No newline at end of file diff --git a/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/Add.cs b/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/Add.cs index 1e2d62e..0e2c948 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/Add.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/Add.cs @@ -1,7 +1,4 @@ -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests; +namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests; [PrefixTestClass] public class Add diff --git a/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/AddRange.cs b/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/AddRange.cs index 41cfa4b..e14cb14 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/AddRange.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/AddRange.cs @@ -1,7 +1,4 @@ -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests; +namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests; [PrefixTestClass] public class AddRange diff --git a/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/Remove.cs b/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/Remove.cs index eafa722..54bd7cf 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/Remove.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/Remove.cs @@ -1,7 +1,4 @@ -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests; +namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests; [PrefixTestClass] public class Remove diff --git a/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/RemoveAll.cs b/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/RemoveAll.cs index 9c9300e..aa9494a 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/RemoveAll.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/RemoveAll.cs @@ -1,7 +1,4 @@ -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests; +namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests; [PrefixTestClass] public class RemoveAll diff --git a/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/RoundToCurrencyDigits.cs b/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/RoundToCurrencyDigits.cs index 4468f05..4479714 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/RoundToCurrencyDigits.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/RoundToCurrencyDigits.cs @@ -1,7 +1,4 @@ -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests; +namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests; [PrefixTestClass] public class RoundToCurrencyDigits diff --git a/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/SetAmount.cs b/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/SetAmount.cs index 8135fc7..0276c54 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/SetAmount.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/SetAmount.cs @@ -1,7 +1,4 @@ -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests; +namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests; [PrefixTestClass] public class SetAmount diff --git a/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/SetValue.cs b/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/SetValue.cs index be6abba..5273f75 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/SetValue.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/SetValue.cs @@ -1,7 +1,4 @@ -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests; +namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests; [PrefixTestClass] public class SetValue diff --git a/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/Subtract.cs b/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/Subtract.cs index 70a4a58..5db3898 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/Subtract.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/Subtract.cs @@ -1,7 +1,4 @@ -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests; +namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests; [PrefixTestClass] public class Subtract diff --git a/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/SubtractRange.cs b/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/SubtractRange.cs index e87531c..979eb00 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/SubtractRange.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/SubtractRange.cs @@ -1,7 +1,4 @@ -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests; +namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests; [PrefixTestClass] public class SubtractRange diff --git a/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/TransformAmounts.cs b/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/TransformAmounts.cs index d61b170..5b837ed 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/TransformAmounts.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/TransformAmounts.cs @@ -1,8 +1,4 @@ -using System.Collections.Generic; -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests; +namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests; [PrefixTestClass] public class TransformAmounts diff --git a/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/TrimZeroAmounts.cs b/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/TrimZeroAmounts.cs index 9530914..8ec24ec 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/TrimZeroAmounts.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/TrimZeroAmounts.cs @@ -1,7 +1,4 @@ -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests; +namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests; [PrefixTestClass] public class TrimZeroAmounts diff --git a/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/TryGetAmount.cs b/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/TryGetAmount.cs index 71286fc..ae5fd4a 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/TryGetAmount.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/TryGetAmount.cs @@ -1,7 +1,4 @@ -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests; +namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests; [PrefixTestClass] public class TryGetAmount diff --git a/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/TryGetValue.cs b/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/TryGetValue.cs index d661e3a..1e73ee9 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/TryGetValue.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/ImmutableSortedMoneySetTests/TryGetValue.cs @@ -1,7 +1,4 @@ -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests; +namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests; [PrefixTestClass] public class TryGetValue diff --git a/Tests/Singulink.Globalization.Currency.Tests/MoneyTests/CompareTo.cs b/Tests/Singulink.Globalization.Currency.Tests/MoneyTests/CompareTo.cs index 40f5c1a..d93bdef 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/MoneyTests/CompareTo.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/MoneyTests/CompareTo.cs @@ -1,7 +1,4 @@ -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.MoneyTests; +namespace Singulink.Globalization.Tests.MoneyTests; [PrefixTestClass] public class CompareTo diff --git a/Tests/Singulink.Globalization.Currency.Tests/MoneyTests/Operators.cs b/Tests/Singulink.Globalization.Currency.Tests/MoneyTests/Operators.cs index 9e9db7e..55d07cb 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/MoneyTests/Operators.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/MoneyTests/Operators.cs @@ -1,7 +1,4 @@ -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.MoneyTests; +namespace Singulink.Globalization.Tests.MoneyTests; #pragma warning disable CS1718 // Comparison made to same variable diff --git a/Tests/Singulink.Globalization.Currency.Tests/MoneyTests/RoundToCurrencyDigits.cs b/Tests/Singulink.Globalization.Currency.Tests/MoneyTests/RoundToCurrencyDigits.cs index 280d417..45437ab 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/MoneyTests/RoundToCurrencyDigits.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/MoneyTests/RoundToCurrencyDigits.cs @@ -1,7 +1,4 @@ -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.MoneyTests; +namespace Singulink.Globalization.Tests.MoneyTests; [PrefixTestClass] public class RoundToCurrencyDigits diff --git a/Tests/Singulink.Globalization.Currency.Tests/MoneyTests/ToString.cs b/Tests/Singulink.Globalization.Currency.Tests/MoneyTests/ToString.cs index b98947f..f7392eb 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/MoneyTests/ToString.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/MoneyTests/ToString.cs @@ -1,6 +1,4 @@ using System.Globalization; -using PrefixClassName.MsTest; -using Shouldly; namespace Singulink.Globalization.Tests.MoneyTests; @@ -11,7 +9,7 @@ public class ToString private static readonly CultureInfo EnUS = CultureInfo.GetCultureInfo("en-US"); private static readonly CultureInfo FrFR = CultureInfo.GetCultureInfo("fe-FR"); - private static readonly CultureInfo KeaCV = CultureInfo.GetCultureInfo("kea-CV"); // currency symbol $ as decimal separator + private static readonly CultureInfo KeaCV = CultureInfo.GetCultureInfo("kea-CV"); // $ as decimal separator, no actual currency symbol [TestMethod] public void DefaultFormat() diff --git a/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/Add.cs b/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/Add.cs index 139152e..a91ed71 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/Add.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/Add.cs @@ -1,7 +1,4 @@ -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.SortedMoneySetTests; +namespace Singulink.Globalization.Tests.SortedMoneySetTests; [PrefixTestClass] public class Add diff --git a/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/AddRange.cs b/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/AddRange.cs index 44fe72d..94abf7e 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/AddRange.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/AddRange.cs @@ -1,7 +1,4 @@ -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.SortedMoneySetTests; +namespace Singulink.Globalization.Tests.SortedMoneySetTests; [PrefixTestClass] public class AddRange diff --git a/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/Remove.cs b/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/Remove.cs index 5346f70..c052f68 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/Remove.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/Remove.cs @@ -1,7 +1,4 @@ -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.SortedMoneySetTests; +namespace Singulink.Globalization.Tests.SortedMoneySetTests; [PrefixTestClass] public class Remove diff --git a/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/RemoveAll.cs b/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/RemoveAll.cs index 4f64530..89fa109 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/RemoveAll.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/RemoveAll.cs @@ -1,6 +1,3 @@ -using PrefixClassName.MsTest; -using Shouldly; - namespace Singulink.Globalization.Tests.SortedMoneySetTests; [PrefixTestClass] diff --git a/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/RoundToCurrencyDigits.cs b/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/RoundToCurrencyDigits.cs index 1a246ca..46ef634 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/RoundToCurrencyDigits.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/RoundToCurrencyDigits.cs @@ -1,7 +1,4 @@ -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.SortedMoneySetTests; +namespace Singulink.Globalization.Tests.SortedMoneySetTests; [PrefixTestClass] public class RoundToCurrencyDigits diff --git a/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/SetAmount.cs b/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/SetAmount.cs index 3a9c2cb..bfb77fe 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/SetAmount.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/SetAmount.cs @@ -1,7 +1,4 @@ -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.SortedMoneySetTests; +namespace Singulink.Globalization.Tests.SortedMoneySetTests; [PrefixTestClass] public class SetAmount diff --git a/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/SetValue.cs b/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/SetValue.cs index 1632945..279a1d7 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/SetValue.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/SetValue.cs @@ -1,7 +1,4 @@ -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.SortedMoneySetTests; +namespace Singulink.Globalization.Tests.SortedMoneySetTests; [PrefixTestClass] public class SetValue diff --git a/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/Subtract.cs b/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/Subtract.cs index 0242111..0fef500 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/Subtract.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/Subtract.cs @@ -1,7 +1,4 @@ -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.SortedMoneySetTests; +namespace Singulink.Globalization.Tests.SortedMoneySetTests; [PrefixTestClass] public class Subtract diff --git a/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/SubtractRange.cs b/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/SubtractRange.cs index caf13f3..081792a 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/SubtractRange.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/SubtractRange.cs @@ -1,7 +1,4 @@ -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.SortedMoneySetTests; +namespace Singulink.Globalization.Tests.SortedMoneySetTests; [PrefixTestClass] public class SubtractRange diff --git a/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/TransformAmounts.cs b/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/TransformAmounts.cs index c5022d2..dc6cb4a 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/TransformAmounts.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/TransformAmounts.cs @@ -1,7 +1,4 @@ -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.SortedMoneySetTests; +namespace Singulink.Globalization.Tests.SortedMoneySetTests; [PrefixTestClass] public class TransformAmounts diff --git a/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/TransformValues.cs b/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/TransformValues.cs index b19bc90..09395f5 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/TransformValues.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/TransformValues.cs @@ -1,7 +1,4 @@ -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.SortedMoneySetTests; +namespace Singulink.Globalization.Tests.SortedMoneySetTests; [PrefixTestClass] public class TransformValues diff --git a/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/TrimZeroAmounts.cs b/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/TrimZeroAmounts.cs index 20d02f6..7fa6317 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/TrimZeroAmounts.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/TrimZeroAmounts.cs @@ -1,7 +1,4 @@ -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.SortedMoneySetTests; +namespace Singulink.Globalization.Tests.SortedMoneySetTests; [PrefixTestClass] public class TrimZeroAmounts diff --git a/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/TryGetAmount.cs b/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/TryGetAmount.cs index 0b61704..70763b6 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/TryGetAmount.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/TryGetAmount.cs @@ -1,7 +1,4 @@ -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.SortedMoneySetTests; +namespace Singulink.Globalization.Tests.SortedMoneySetTests; [PrefixTestClass] public class TryGetAmount diff --git a/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/TryGetValue.cs b/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/TryGetValue.cs index 64763a1..700cc0e 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/TryGetValue.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/SortedMoneySetTests/TryGetValue.cs @@ -1,7 +1,4 @@ -using PrefixClassName.MsTest; -using Shouldly; - -namespace Singulink.Globalization.Tests.SortedMoneySetTests; +namespace Singulink.Globalization.Tests.SortedMoneySetTests; [PrefixTestClass] public class TryGetValue diff --git a/Tests/Singulink.Globalization.Currency.Tests/Usings.cs b/Tests/Singulink.Globalization.Currency.Tests/Usings.cs index ab67c7e..da6fe16 100644 --- a/Tests/Singulink.Globalization.Currency.Tests/Usings.cs +++ b/Tests/Singulink.Globalization.Currency.Tests/Usings.cs @@ -1 +1,3 @@ -global using Microsoft.VisualStudio.TestTools.UnitTesting; \ No newline at end of file +global using Microsoft.VisualStudio.TestTools.UnitTesting; +global using PrefixClassName.MsTest; +global using Shouldly; \ No newline at end of file