Skip to content

Commit

Permalink
global usings
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Aug 24, 2022
1 parent 0371fb9 commit f17a087
Show file tree
Hide file tree
Showing 204 changed files with 191 additions and 637 deletions.
5 changes: 1 addition & 4 deletions src/Shouldly.Tests/Dictionaries/ShouldContainKey.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;

namespace Shouldly.Tests.Dictionaries
namespace Shouldly.Tests.Dictionaries
{
public class ShouldContainKey
{
Expand Down
5 changes: 1 addition & 4 deletions src/Shouldly.Tests/Dictionaries/ShouldContainKeyAndValue.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;

namespace Shouldly.Tests.Dictionaries
namespace Shouldly.Tests.Dictionaries
{
public class ShouldContainKeyAndValue
{
Expand Down
5 changes: 1 addition & 4 deletions src/Shouldly.Tests/Dictionaries/ShouldNotContainKey.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;

namespace Shouldly.Tests.Dictionaries
namespace Shouldly.Tests.Dictionaries
{
public class ShouldNotContainKey
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;

namespace Shouldly.Tests.Dictionaries
namespace Shouldly.Tests.Dictionaries
{
public class ShouldNotContainValueForKey
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.DynamicShould
namespace Shouldly.Tests.DynamicShould
{
public class HavePropertyNonDynamicScenario
{
Expand Down
1 change: 0 additions & 1 deletion src/Shouldly.Tests/DynamicShould/HavePropertyScenario.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Dynamic;
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.DynamicShould
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Dynamic;
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.DynamicShould
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Dynamic;
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.DynamicShould
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.DynamicShould
{
public class ThrowFromObjectMethodScenario
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.DynamicShould
{
public class ThrowFromVoidMethodScenario
Expand Down
3 changes: 3 additions & 0 deletions src/Shouldly.Tests/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Global using directives

global using Shouldly;
global using Shouldly.Tests.Strings;
global using Shouldly.Tests.TestHelpers;
global using Xunit;
4 changes: 1 addition & 3 deletions src/Shouldly.Tests/ShouldAllBe/IntegerArrayScenario.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.ShouldAllBe
namespace Shouldly.Tests.ShouldAllBe
{
public class IntegerArrayScenario
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.ShouldAllBe
namespace Shouldly.Tests.ShouldAllBe
{
public class TypeBinaryExpressionScenario
{
Expand Down
5 changes: 1 addition & 4 deletions src/Shouldly.Tests/ShouldBe/ComparerScenario.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;

namespace Shouldly.Tests.ShouldBe
namespace Shouldly.Tests.ShouldBe
{
public class ComparerScenario
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;

namespace Shouldly.Tests.ShouldBe.EnumerableType
namespace Shouldly.Tests.ShouldBe.EnumerableType
{
public class ComparerScenario
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;

namespace Shouldly.Tests.ShouldBe.EnumerableType
namespace Shouldly.Tests.ShouldBe.EnumerableType
{
public class EnumerableOfComplexTypeScenario
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.ShouldBe.EnumerableType
namespace Shouldly.Tests.ShouldBe.EnumerableType
{
public class EnumerableOfMemoryScenario
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.ShouldBe.EnumerableType
namespace Shouldly.Tests.ShouldBe.EnumerableType
{
public class EnumerableOfReadOnlyMemoryScenario
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.ShouldBe.EnumerableType
namespace Shouldly.Tests.ShouldBe.EnumerableType
{
public class EnumerableOfStringIsInsensitiveScenario
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.ShouldBe.EnumerableType
namespace Shouldly.Tests.ShouldBe.EnumerableType
{
public class EnumerableOfStringIsSensitiveScenario
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.ShouldBe.EnumerableType
namespace Shouldly.Tests.ShouldBe.EnumerableType
{
public class EnumerableOfStringScenario
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.ShouldBe.EnumerableType
namespace Shouldly.Tests.ShouldBe.EnumerableType
{
public class IgnoreOrderFalseIEnumerableMethodYieldBreak
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.ShouldBe.EnumerableType
namespace Shouldly.Tests.ShouldBe.EnumerableType
{
public class IgnoreOrderFalseIEnumerableMethodYieldReturn
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.ShouldBe.EnumerableType
namespace Shouldly.Tests.ShouldBe.EnumerableType
{
public class IgnoreOrderFalseScenario
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.ShouldBe.EnumerableType
namespace Shouldly.Tests.ShouldBe.EnumerableType
{
public class IgnoreOrderFalseScenario2
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.ShouldBe.EnumerableType
namespace Shouldly.Tests.ShouldBe.EnumerableType
{
public class IgnoreOrderIEnumerableMethodYieldBreak
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.ShouldBe.EnumerableType
namespace Shouldly.Tests.ShouldBe.EnumerableType
{
public class IgnoreOrderIEnumerableMethodYieldReturn
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.ShouldBe.EnumerableType
{
public class IgnoreOrderOnNonNullableTypesScenario
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.ShouldBe.EnumerableType
namespace Shouldly.Tests.ShouldBe.EnumerableType
{
public class IgnoreOrderScenario
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.ShouldBe.EnumerableType
namespace Shouldly.Tests.ShouldBe.EnumerableType
{
public class IgnoreOrderWhenItemsAreNotComparableScenario
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.ShouldBe.EnumerableType
namespace Shouldly.Tests.ShouldBe.EnumerableType
{
public class IntegerArrayScenario
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.ShouldBe.EnumerableType
namespace Shouldly.Tests.ShouldBe.EnumerableType
{
public class MultiDimensionalArrayScenario
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.ShouldBe.EnumerableType
namespace Shouldly.Tests.ShouldBe.EnumerableType
{
public class NonRetraversableEnumerable
{
Expand Down
4 changes: 1 addition & 3 deletions src/Shouldly.Tests/ShouldBe/NumericTypeSuffixInMessage.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.ShouldBe
namespace Shouldly.Tests.ShouldBe
{
public class NumericTypeSuffixInMessage
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.ShouldBe
namespace Shouldly.Tests.ShouldBe
{
public class ShouldBeEnumerableTypeScenarios
{
Expand Down
5 changes: 1 addition & 4 deletions src/Shouldly.Tests/ShouldBe/ShouldBeScenarios.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;

namespace Shouldly.Tests.ShouldBe
namespace Shouldly.Tests.ShouldBe
{
public class ShouldBeScenarios
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.ShouldBe.WithTolerance
namespace Shouldly.Tests.ShouldBe.WithTolerance
{
public class DateTimeOffsetScenario
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.ShouldBe.WithTolerance
namespace Shouldly.Tests.ShouldBe.WithTolerance
{
public class DateTimeScenario
{
Expand Down
5 changes: 1 addition & 4 deletions src/Shouldly.Tests/ShouldBe/WithTolerance/DecimalScenario.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;

namespace Shouldly.Tests.ShouldBe.WithTolerance
namespace Shouldly.Tests.ShouldBe.WithTolerance
{
public class DecimalScenario
{
Expand Down
5 changes: 1 addition & 4 deletions src/Shouldly.Tests/ShouldBe/WithTolerance/DoubleScenario.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;

namespace Shouldly.Tests.ShouldBe.WithTolerance
namespace Shouldly.Tests.ShouldBe.WithTolerance
{
public class DoubleScenario
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;

namespace Shouldly.Tests.ShouldBe.WithTolerance
namespace Shouldly.Tests.ShouldBe.WithTolerance
{
public class EnumerableOfDecimalScenario
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;

namespace Shouldly.Tests.ShouldBe.WithTolerance
namespace Shouldly.Tests.ShouldBe.WithTolerance
{
public class EnumerableOfDoubleScenario
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;

namespace Shouldly.Tests.ShouldBe.WithTolerance
namespace Shouldly.Tests.ShouldBe.WithTolerance
{
public class EnumerableOfFloatScenario
{
Expand Down
5 changes: 1 addition & 4 deletions src/Shouldly.Tests/ShouldBe/WithTolerance/FloatScenario.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;

namespace Shouldly.Tests.ShouldBe.WithTolerance
namespace Shouldly.Tests.ShouldBe.WithTolerance
{
public static class MathEx
{
Expand Down
2 changes: 0 additions & 2 deletions src/Shouldly.Tests/ShouldBe/WithTolerance/TimeSpanScenario.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.ShouldBe.WithTolerance
{
public class TimeSpanScenario
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.ShouldBeAssignableTo
namespace Shouldly.Tests.ShouldBeAssignableTo
{
public class BasicTypesScenario
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;

namespace Shouldly.Tests.ShouldBeAssignableTo
namespace Shouldly.Tests.ShouldBeAssignableTo
{
public class DerivedTypeScenario
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;

namespace Shouldly.Tests.ShouldBeAssignableTo
namespace Shouldly.Tests.ShouldBeAssignableTo
{
public class NullIsAssignableToTypeScenario
{
Expand Down
4 changes: 1 addition & 3 deletions src/Shouldly.Tests/ShouldBeBoolean/FalseScenario.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Shouldly.Tests.Strings;

namespace Shouldly.Tests.ShouldBeBoolean
namespace Shouldly.Tests.ShouldBeBoolean
{
public class FalseScenario
{
Expand Down
Loading

0 comments on commit f17a087

Please sign in to comment.