Skip to content

Commit

Permalink
Namespace and code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mikernet committed Mar 7, 2024
1 parent 8bc44f8 commit 786a146
Show file tree
Hide file tree
Showing 36 changed files with 35 additions and 144 deletions.
1 change: 0 additions & 1 deletion Source/Singulink.Globalization.Currency/SortedMoneySet.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Collections;
using System.Collections.Immutable;
using System.Text;

namespace Singulink.Globalization;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Globalization;

namespace Singulink.Globalization.Utilities;
namespace Singulink.Globalization.Utilities;

internal static class CultureInfoExtensions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests;
namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests;

[PrefixTestClass]
public class Add
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests;
namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests;

[PrefixTestClass]
public class AddRange
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests;
namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests;

[PrefixTestClass]
public class Remove
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests;
namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests;

[PrefixTestClass]
public class RemoveAll
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests;
namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests;

[PrefixTestClass]
public class RoundToCurrencyDigits
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests;
namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests;

[PrefixTestClass]
public class SetAmount
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests;
namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests;

[PrefixTestClass]
public class SetValue
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests;
namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests;

[PrefixTestClass]
public class Subtract
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests;
namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests;

[PrefixTestClass]
public class SubtractRange
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests;
namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests;

[PrefixTestClass]
public class TrimZeroAmounts
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests;
namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests;

[PrefixTestClass]
public class TryGetAmount
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests;
namespace Singulink.Globalization.Tests.ImmutableSortedMoneySetTests;

[PrefixTestClass]
public class TryGetValue
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.MoneyTests;
namespace Singulink.Globalization.Tests.MoneyTests;

[PrefixTestClass]
public class CompareTo
Expand Down
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.MoneyTests;
namespace Singulink.Globalization.Tests.MoneyTests;

[PrefixTestClass]
public class RoundToCurrencyDigits
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Globalization;
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.MoneyTests;

Expand All @@ -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()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.SortedMoneySetTests;
namespace Singulink.Globalization.Tests.SortedMoneySetTests;

[PrefixTestClass]
public class Add
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.SortedMoneySetTests;
namespace Singulink.Globalization.Tests.SortedMoneySetTests;

[PrefixTestClass]
public class AddRange
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.SortedMoneySetTests;
namespace Singulink.Globalization.Tests.SortedMoneySetTests;

[PrefixTestClass]
public class Remove
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.SortedMoneySetTests;

[PrefixTestClass]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.SortedMoneySetTests;
namespace Singulink.Globalization.Tests.SortedMoneySetTests;

[PrefixTestClass]
public class RoundToCurrencyDigits
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.SortedMoneySetTests;
namespace Singulink.Globalization.Tests.SortedMoneySetTests;

[PrefixTestClass]
public class SetAmount
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.SortedMoneySetTests;
namespace Singulink.Globalization.Tests.SortedMoneySetTests;

[PrefixTestClass]
public class SetValue
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.SortedMoneySetTests;
namespace Singulink.Globalization.Tests.SortedMoneySetTests;

[PrefixTestClass]
public class Subtract
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.SortedMoneySetTests;
namespace Singulink.Globalization.Tests.SortedMoneySetTests;

[PrefixTestClass]
public class SubtractRange
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.SortedMoneySetTests;
namespace Singulink.Globalization.Tests.SortedMoneySetTests;

[PrefixTestClass]
public class TransformAmounts
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.SortedMoneySetTests;
namespace Singulink.Globalization.Tests.SortedMoneySetTests;

[PrefixTestClass]
public class TransformValues
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.SortedMoneySetTests;
namespace Singulink.Globalization.Tests.SortedMoneySetTests;

[PrefixTestClass]
public class TrimZeroAmounts
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.SortedMoneySetTests;
namespace Singulink.Globalization.Tests.SortedMoneySetTests;

[PrefixTestClass]
public class TryGetAmount
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using PrefixClassName.MsTest;
using Shouldly;

namespace Singulink.Globalization.Tests.SortedMoneySetTests;
namespace Singulink.Globalization.Tests.SortedMoneySetTests;

[PrefixTestClass]
public class TryGetValue
Expand Down
4 changes: 3 additions & 1 deletion Tests/Singulink.Globalization.Currency.Tests/Usings.cs
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
global using Microsoft.VisualStudio.TestTools.UnitTesting;
global using Microsoft.VisualStudio.TestTools.UnitTesting;
global using PrefixClassName.MsTest;
global using Shouldly;

0 comments on commit 786a146

Please sign in to comment.