diff --git a/docs/anonymous-types.md b/docs/anonymous-types.md index 1bf4f2925c..d5e84c2a5f 100644 --- a/docs/anonymous-types.md +++ b/docs/anonymous-types.md @@ -37,7 +37,7 @@ public Task Anon() }); } ``` -snippet source | anchor +snippet source | anchor @@ -68,7 +68,7 @@ public Task Anon() }); } ``` -snippet source | anchor +snippet source | anchor @@ -98,7 +98,7 @@ public Task Anon() }); } ``` -snippet source | anchor +snippet source | anchor @@ -129,7 +129,7 @@ public Task Anon() }); } ``` -snippet source | anchor +snippet source | anchor diff --git a/src/StaticSettingsTests/GlobalUsings.cs b/src/StaticSettingsTests/GlobalUsings.cs new file mode 100644 index 0000000000..3ec660be3a --- /dev/null +++ b/src/StaticSettingsTests/GlobalUsings.cs @@ -0,0 +1,3 @@ +// Global using directives + +global using Argon; \ No newline at end of file diff --git a/src/StaticSettingsTests/SortedPropertiesTests.cs b/src/StaticSettingsTests/SortedPropertiesTests.cs index 2932b41610..9859d9e19c 100644 --- a/src/StaticSettingsTests/SortedPropertiesTests.cs +++ b/src/StaticSettingsTests/SortedPropertiesTests.cs @@ -1,6 +1,4 @@ -using Argon; - -public class SortedPropertiesTests : +public class SortedPropertiesTests : BaseTest { public SortedPropertiesTests() => diff --git a/src/Verify.Fixie.Tests/GlobalUsings.cs b/src/Verify.Fixie.Tests/GlobalUsings.cs new file mode 100644 index 0000000000..3ec660be3a --- /dev/null +++ b/src/Verify.Fixie.Tests/GlobalUsings.cs @@ -0,0 +1,3 @@ +// Global using directives + +global using Argon; \ No newline at end of file diff --git a/src/Verify.Fixie.Tests/VerifyObjectSamples.cs b/src/Verify.Fixie.Tests/VerifyObjectSamples.cs index ebdc208cd9..ee1992fd12 100644 --- a/src/Verify.Fixie.Tests/VerifyObjectSamples.cs +++ b/src/Verify.Fixie.Tests/VerifyObjectSamples.cs @@ -1,6 +1,4 @@ -using Argon; - -// ReSharper disable NotAccessedField.Local +// ReSharper disable NotAccessedField.Local // Non-nullable field is uninitialized #pragma warning disable CS8618 diff --git a/src/Verify.MSTest.Tests/GlobalUsings.cs b/src/Verify.MSTest.Tests/GlobalUsings.cs index 9acd0e3836..e1996e4ff9 100644 --- a/src/Verify.MSTest.Tests/GlobalUsings.cs +++ b/src/Verify.MSTest.Tests/GlobalUsings.cs @@ -1 +1,2 @@ -global using System.Diagnostics; \ No newline at end of file +global using System.Diagnostics; +global using Argon; \ No newline at end of file diff --git a/src/Verify.MSTest.Tests/VerifyObjectSamples.cs b/src/Verify.MSTest.Tests/VerifyObjectSamples.cs index 2bc9001c3e..5bf2203ba1 100644 --- a/src/Verify.MSTest.Tests/VerifyObjectSamples.cs +++ b/src/Verify.MSTest.Tests/VerifyObjectSamples.cs @@ -1,5 +1,3 @@ -using Argon; - // ReSharper disable NotAccessedField.Local // Non-nullable field is uninitialized diff --git a/src/Verify.NUnit.Tests/GlobalUsings.cs b/src/Verify.NUnit.Tests/GlobalUsings.cs index 06a96f6a6e..fd1786c117 100644 --- a/src/Verify.NUnit.Tests/GlobalUsings.cs +++ b/src/Verify.NUnit.Tests/GlobalUsings.cs @@ -1,2 +1,3 @@ -global using NUnit.Framework.Interfaces; +global using Argon; +global using NUnit.Framework.Interfaces; global using NUnit.Framework.Internal; \ No newline at end of file diff --git a/src/Verify.NUnit.Tests/VerifyObjectSamples.cs b/src/Verify.NUnit.Tests/VerifyObjectSamples.cs index c2681ee17d..abe8325e5e 100644 --- a/src/Verify.NUnit.Tests/VerifyObjectSamples.cs +++ b/src/Verify.NUnit.Tests/VerifyObjectSamples.cs @@ -1,6 +1,4 @@ -using Argon; - -// ReSharper disable NotAccessedField.Local +// ReSharper disable NotAccessedField.Local // Non-nullable field is uninitialized #pragma warning disable CS8618 diff --git a/src/Verify.Xunit.Tests/GlobalUsings.cs b/src/Verify.Xunit.Tests/GlobalUsings.cs new file mode 100644 index 0000000000..3ec660be3a --- /dev/null +++ b/src/Verify.Xunit.Tests/GlobalUsings.cs @@ -0,0 +1,3 @@ +// Global using directives + +global using Argon; \ No newline at end of file diff --git a/src/Verify.Xunit.Tests/VerifyObjectSamples.cs b/src/Verify.Xunit.Tests/VerifyObjectSamples.cs index 6bb29436ee..6200f871b7 100644 --- a/src/Verify.Xunit.Tests/VerifyObjectSamples.cs +++ b/src/Verify.Xunit.Tests/VerifyObjectSamples.cs @@ -1,6 +1,4 @@ -using Argon; - -// ReSharper disable NotAccessedField.Local +// ReSharper disable NotAccessedField.Local // Non-nullable field is uninitialized #pragma warning disable CS8618 diff --git a/src/Verify.XunitV3.Tests/GlobalUsings.cs b/src/Verify.XunitV3.Tests/GlobalUsings.cs new file mode 100644 index 0000000000..3ec660be3a --- /dev/null +++ b/src/Verify.XunitV3.Tests/GlobalUsings.cs @@ -0,0 +1,3 @@ +// Global using directives + +global using Argon; \ No newline at end of file diff --git a/src/Verify.XunitV3.Tests/VerifyObjectSamples.cs b/src/Verify.XunitV3.Tests/VerifyObjectSamples.cs index d0c971ac6f..8250f4cdb9 100644 --- a/src/Verify.XunitV3.Tests/VerifyObjectSamples.cs +++ b/src/Verify.XunitV3.Tests/VerifyObjectSamples.cs @@ -1,6 +1,4 @@ -using Argon; - -// ReSharper disable NotAccessedField.Local +// ReSharper disable NotAccessedField.Local // Non-nullable field is uninitialized #pragma warning disable CS8618