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 115b30f commit 0371fb9
Show file tree
Hide file tree
Showing 303 changed files with 93 additions and 486 deletions.
2 changes: 1 addition & 1 deletion documentation/documentation/exceptions/throw.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Func<Task> doSomething = async () =>
};
var exception = await Should.ThrowAsync<DivideByZeroException>(() => doSomething());
```
<sup><a href='/src/Shouldly.Tests/ShouldThrowAsync/FuncOfTaskScenarioAsync.cs#L104-L110' title='Snippet source file'>snippet source</a> | <a href='#29d6a5af' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Shouldly.Tests/ShouldThrowAsync/FuncOfTaskScenarioAsync.cs#L103-L109' title='Snippet source file'>snippet source</a> | <a href='#29d6a5af' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

**Exception**
Expand Down
1 change: 0 additions & 1 deletion src/Shouldly.Tests/ConventionTests/ShouldlyConventions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using TestStack.ConventionTests;
using TestStack.ConventionTests.ConventionData;
using Xunit;

namespace Shouldly.Tests.ConventionTests
{
Expand Down
1 change: 0 additions & 1 deletion src/Shouldly.Tests/Dictionaries/ShouldContainKey.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;
using Xunit;

namespace Shouldly.Tests.Dictionaries
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;
using Xunit;

namespace Shouldly.Tests.Dictionaries
{
Expand Down
1 change: 0 additions & 1 deletion src/Shouldly.Tests/Dictionaries/ShouldNotContainKey.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;
using Xunit;

namespace Shouldly.Tests.Dictionaries
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;
using Xunit;

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

namespace Shouldly.Tests.DynamicShould
{
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,6 +1,5 @@
using System.Dynamic;
using Shouldly.Tests.Strings;
using Xunit;

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

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

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

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

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

global using Xunit;
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Collections;
using Xunit;

namespace Shouldly.Tests.InternalTests
{
Expand Down
4 changes: 1 addition & 3 deletions src/Shouldly.Tests/InternalTests/EqualityComparerTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Xunit;

namespace Shouldly.Tests.InternalTests
namespace Shouldly.Tests.InternalTests
{
public class EqualityComparerTests
{
Expand Down
1 change: 0 additions & 1 deletion src/Shouldly.Tests/ShouldAllBe/IntegerArrayScenario.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Shouldly.Tests.Strings;
using Xunit;

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

namespace Shouldly.Tests.ShouldAllBe
{
Expand Down
1 change: 0 additions & 1 deletion src/Shouldly.Tests/ShouldBe/ComparerScenario.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;
using Xunit;

namespace Shouldly.Tests.ShouldBe
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;
using Xunit;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

namespace Shouldly.Tests.ShouldBe.EnumerableType
{
Expand Down
1 change: 0 additions & 1 deletion src/Shouldly.Tests/ShouldBe/NumericTypeSuffixInMessage.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Shouldly.Tests.Strings;
using Xunit;

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

namespace Shouldly.Tests.ShouldBe
{
Expand Down
1 change: 0 additions & 1 deletion src/Shouldly.Tests/ShouldBe/ShouldBeScenarios.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;
using Xunit;

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

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

namespace Shouldly.Tests.ShouldBe.WithTolerance
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;
using Xunit;

namespace Shouldly.Tests.ShouldBe.WithTolerance
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;
using Xunit;

namespace Shouldly.Tests.ShouldBe.WithTolerance
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;
using Xunit;

namespace Shouldly.Tests.ShouldBe.WithTolerance
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;
using Xunit;

namespace Shouldly.Tests.ShouldBe.WithTolerance
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;
using Xunit;

namespace Shouldly.Tests.ShouldBe.WithTolerance
{
Expand Down
1 change: 0 additions & 1 deletion src/Shouldly.Tests/ShouldBe/WithTolerance/FloatScenario.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;
using Xunit;

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

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

namespace Shouldly.Tests.ShouldBeAssignableTo
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;
using Xunit;

namespace Shouldly.Tests.ShouldBeAssignableTo
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Xunit;

namespace Shouldly.Tests.ShouldBeAssignableTo
namespace Shouldly.Tests.ShouldBeAssignableTo
{
public class GenericOverloadReturnsValue
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;
using Xunit;

namespace Shouldly.Tests.ShouldBeAssignableTo
{
Expand Down
1 change: 0 additions & 1 deletion src/Shouldly.Tests/ShouldBeBoolean/FalseScenario.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Shouldly.Tests.Strings;
using Xunit;

namespace Shouldly.Tests.ShouldBeBoolean
{
Expand Down
1 change: 0 additions & 1 deletion src/Shouldly.Tests/ShouldBeBoolean/TrueScenario.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Shouldly.Tests.Strings;
using Xunit;

namespace Shouldly.Tests.ShouldBeBoolean
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Shouldly.Tests.Strings;
using Shouldly.Tests.TestHelpers;
using Xunit;

namespace Shouldly.Tests.ShouldBeDecoratedWith
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Shouldly.Tests.TestHelpers;
using Xunit;

namespace Shouldly.Tests.ShouldBeDecoratedWith
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Shouldly.Tests.TestHelpers;
using Xunit;

namespace Shouldly.Tests.ShouldBeDecoratedWith
{
Expand Down
1 change: 0 additions & 1 deletion src/Shouldly.Tests/ShouldBeEmpty/ArrayScenario.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Shouldly.Tests.Strings;
using Xunit;

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

namespace Shouldly.Tests.ShouldBeEquivalentTo
{
Expand Down

0 comments on commit 0371fb9

Please sign in to comment.