From 88b21e303fffc3e7f04f41b22dd15b46bf138ec4 Mon Sep 17 00:00:00 2001 From: Gilles TOURREAU Date: Mon, 24 Jun 2024 14:37:58 +0200 Subject: [PATCH] Add global namespaces. --- Directory.Build.props | 1 + PosInformatique.Moq.Analyzers.sln | 1 + tests/Directory.Build.props | 11 +++++++++++ .../AsMustBeUsedWithInterfaceAnalyzerTest.cs | 2 -- ...llBackDelegateMustMatchMockedMethodAnalyzerTest.cs | 2 -- ...rArgumentCannotBePassedForInterfaceAnalyzerTest.cs | 2 -- .../ConstructorArgumentsMustMatchAnalyzerTest.cs | 2 -- .../MockInstanceShouldBeStrictBehaviorAnalyzerTest.cs | 2 -- .../Analyzers/NoSealedClassAnalyzerTest.cs | 2 -- ...odMustReturnValueWithStrictBehaviorAnalyzerTest.cs | 3 --- ...MustBeUsedOnlyForOverridableMembersAnalyzerTest.cs | 2 -- ...eUsedWithProtectedOrInternalMembersAnalyzerTest.cs | 2 -- ...MustBeUsedOnlyForOverridableMembersAnalyzerTest.cs | 2 -- .../Analyzers/VerifyShouldBeCalledAnalyzerTest.cs | 2 -- .../SetBehaviorToStrictCodeFixProviderTest.cs | 2 -- 15 files changed, 13 insertions(+), 25 deletions(-) create mode 100644 tests/Directory.Build.props diff --git a/Directory.Build.props b/Directory.Build.props index 98320c7..4c73d3c 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -43,6 +43,7 @@ + \ No newline at end of file diff --git a/PosInformatique.Moq.Analyzers.sln b/PosInformatique.Moq.Analyzers.sln index 77ffaf5..fdecb54 100644 --- a/PosInformatique.Moq.Analyzers.sln +++ b/PosInformatique.Moq.Analyzers.sln @@ -21,6 +21,7 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{DC2CDF77-88A9-490D-84ED-34832943104A}" ProjectSection(SolutionItems) = preProject tests\.editorconfig = tests\.editorconfig + tests\Directory.Build.props = tests\Directory.Build.props EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{3C20D95F-AB5F-44EC-8FB6-CB9827B7FD63}" diff --git a/tests/Directory.Build.props b/tests/Directory.Build.props new file mode 100644 index 0000000..8910c72 --- /dev/null +++ b/tests/Directory.Build.props @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/tests/Moq.Analyzers.Tests/Analyzers/AsMustBeUsedWithInterfaceAnalyzerTest.cs b/tests/Moq.Analyzers.Tests/Analyzers/AsMustBeUsedWithInterfaceAnalyzerTest.cs index 68e2fd3..e6ac324 100644 --- a/tests/Moq.Analyzers.Tests/Analyzers/AsMustBeUsedWithInterfaceAnalyzerTest.cs +++ b/tests/Moq.Analyzers.Tests/Analyzers/AsMustBeUsedWithInterfaceAnalyzerTest.cs @@ -6,8 +6,6 @@ namespace PosInformatique.Moq.Analyzers.Tests { - using System.Threading.Tasks; - using Xunit; using Verifier = MoqCSharpAnalyzerVerifier; public class AsMustBeUsedWithInterfaceAnalyzerTest diff --git a/tests/Moq.Analyzers.Tests/Analyzers/CallBackDelegateMustMatchMockedMethodAnalyzerTest.cs b/tests/Moq.Analyzers.Tests/Analyzers/CallBackDelegateMustMatchMockedMethodAnalyzerTest.cs index 705affb..2267991 100644 --- a/tests/Moq.Analyzers.Tests/Analyzers/CallBackDelegateMustMatchMockedMethodAnalyzerTest.cs +++ b/tests/Moq.Analyzers.Tests/Analyzers/CallBackDelegateMustMatchMockedMethodAnalyzerTest.cs @@ -6,8 +6,6 @@ namespace PosInformatique.Moq.Analyzers.Tests { - using System.Threading.Tasks; - using Xunit; using Verifier = MoqCSharpAnalyzerVerifier; public class CallBackDelegateMustMatchMockedMethodAnalyzerTest diff --git a/tests/Moq.Analyzers.Tests/Analyzers/ConstructorArgumentCannotBePassedForInterfaceAnalyzerTest.cs b/tests/Moq.Analyzers.Tests/Analyzers/ConstructorArgumentCannotBePassedForInterfaceAnalyzerTest.cs index 82e3dc8..40dc526 100644 --- a/tests/Moq.Analyzers.Tests/Analyzers/ConstructorArgumentCannotBePassedForInterfaceAnalyzerTest.cs +++ b/tests/Moq.Analyzers.Tests/Analyzers/ConstructorArgumentCannotBePassedForInterfaceAnalyzerTest.cs @@ -6,9 +6,7 @@ namespace PosInformatique.Moq.Analyzers.Tests { - using System.Threading.Tasks; using Microsoft.CodeAnalysis.Testing; - using Xunit; using Verifier = MoqCSharpAnalyzerVerifier; public class ConstructorArgumentCannotBePassedForInterfaceAnalyzerTest diff --git a/tests/Moq.Analyzers.Tests/Analyzers/ConstructorArgumentsMustMatchAnalyzerTest.cs b/tests/Moq.Analyzers.Tests/Analyzers/ConstructorArgumentsMustMatchAnalyzerTest.cs index 25e16e3..3a6581d 100644 --- a/tests/Moq.Analyzers.Tests/Analyzers/ConstructorArgumentsMustMatchAnalyzerTest.cs +++ b/tests/Moq.Analyzers.Tests/Analyzers/ConstructorArgumentsMustMatchAnalyzerTest.cs @@ -6,8 +6,6 @@ namespace PosInformatique.Moq.Analyzers.Tests { - using System.Threading.Tasks; - using Xunit; using Verifier = MoqCSharpAnalyzerVerifier; public class ConstructorArgumentsMustMatchAnalyzerTest diff --git a/tests/Moq.Analyzers.Tests/Analyzers/MockInstanceShouldBeStrictBehaviorAnalyzerTest.cs b/tests/Moq.Analyzers.Tests/Analyzers/MockInstanceShouldBeStrictBehaviorAnalyzerTest.cs index 532414d..7a3be37 100644 --- a/tests/Moq.Analyzers.Tests/Analyzers/MockInstanceShouldBeStrictBehaviorAnalyzerTest.cs +++ b/tests/Moq.Analyzers.Tests/Analyzers/MockInstanceShouldBeStrictBehaviorAnalyzerTest.cs @@ -6,8 +6,6 @@ namespace PosInformatique.Moq.Analyzers.Tests { - using System.Threading.Tasks; - using Xunit; using Verifier = MoqCSharpAnalyzerVerifier; public class MockInstanceShouldBeStrictBehaviorAnalyzerTest diff --git a/tests/Moq.Analyzers.Tests/Analyzers/NoSealedClassAnalyzerTest.cs b/tests/Moq.Analyzers.Tests/Analyzers/NoSealedClassAnalyzerTest.cs index a8c16a2..5e21c61 100644 --- a/tests/Moq.Analyzers.Tests/Analyzers/NoSealedClassAnalyzerTest.cs +++ b/tests/Moq.Analyzers.Tests/Analyzers/NoSealedClassAnalyzerTest.cs @@ -6,8 +6,6 @@ namespace PosInformatique.Moq.Analyzers.Tests { - using System.Threading.Tasks; - using Xunit; using Verifier = MoqCSharpAnalyzerVerifier; public class NoSealedClassAnalyzerTest diff --git a/tests/Moq.Analyzers.Tests/Analyzers/SetupMethodMustReturnValueWithStrictBehaviorAnalyzerTest.cs b/tests/Moq.Analyzers.Tests/Analyzers/SetupMethodMustReturnValueWithStrictBehaviorAnalyzerTest.cs index 3c4d4df..e6fdc66 100644 --- a/tests/Moq.Analyzers.Tests/Analyzers/SetupMethodMustReturnValueWithStrictBehaviorAnalyzerTest.cs +++ b/tests/Moq.Analyzers.Tests/Analyzers/SetupMethodMustReturnValueWithStrictBehaviorAnalyzerTest.cs @@ -6,10 +6,7 @@ namespace PosInformatique.Moq.Analyzers.Tests { - using System.Threading.Tasks; - using Microsoft.CodeAnalysis.CSharp.Testing; using Microsoft.CodeAnalysis.Testing; - using Xunit; using Verifier = MoqCSharpAnalyzerVerifier; public class SetupMethodMustReturnValueWithStrictBehaviorAnalyzerTest diff --git a/tests/Moq.Analyzers.Tests/Analyzers/SetupMustBeUsedOnlyForOverridableMembersAnalyzerTest.cs b/tests/Moq.Analyzers.Tests/Analyzers/SetupMustBeUsedOnlyForOverridableMembersAnalyzerTest.cs index 8792873..fe6bfe0 100644 --- a/tests/Moq.Analyzers.Tests/Analyzers/SetupMustBeUsedOnlyForOverridableMembersAnalyzerTest.cs +++ b/tests/Moq.Analyzers.Tests/Analyzers/SetupMustBeUsedOnlyForOverridableMembersAnalyzerTest.cs @@ -6,8 +6,6 @@ namespace PosInformatique.Moq.Analyzers.Tests { - using System.Threading.Tasks; - using Xunit; using Verifier = MoqCSharpAnalyzerVerifier; public class SetupMustBeUsedOnlyForOverridableMembersAnalyzerTest diff --git a/tests/Moq.Analyzers.Tests/Analyzers/SetupProtectedMustBeUsedWithProtectedOrInternalMembersAnalyzerTest.cs b/tests/Moq.Analyzers.Tests/Analyzers/SetupProtectedMustBeUsedWithProtectedOrInternalMembersAnalyzerTest.cs index 608fb12..327d033 100644 --- a/tests/Moq.Analyzers.Tests/Analyzers/SetupProtectedMustBeUsedWithProtectedOrInternalMembersAnalyzerTest.cs +++ b/tests/Moq.Analyzers.Tests/Analyzers/SetupProtectedMustBeUsedWithProtectedOrInternalMembersAnalyzerTest.cs @@ -6,8 +6,6 @@ namespace PosInformatique.Moq.Analyzers.Tests { - using System.Threading.Tasks; - using Xunit; using Verifier = MoqCSharpAnalyzerVerifier; public class SetupProtectedMustBeUsedWithProtectedOrInternalMembersAnalyzerTest diff --git a/tests/Moq.Analyzers.Tests/Analyzers/VerifyMustBeUsedOnlyForOverridableMembersAnalyzerTest.cs b/tests/Moq.Analyzers.Tests/Analyzers/VerifyMustBeUsedOnlyForOverridableMembersAnalyzerTest.cs index 90cee64..3b33587 100644 --- a/tests/Moq.Analyzers.Tests/Analyzers/VerifyMustBeUsedOnlyForOverridableMembersAnalyzerTest.cs +++ b/tests/Moq.Analyzers.Tests/Analyzers/VerifyMustBeUsedOnlyForOverridableMembersAnalyzerTest.cs @@ -6,8 +6,6 @@ namespace PosInformatique.Moq.Analyzers.Tests { - using System.Threading.Tasks; - using Xunit; using Verifier = MoqCSharpAnalyzerVerifier; public class VerifyMustBeUsedOnlyForOverridableMembersAnalyzerTest diff --git a/tests/Moq.Analyzers.Tests/Analyzers/VerifyShouldBeCalledAnalyzerTest.cs b/tests/Moq.Analyzers.Tests/Analyzers/VerifyShouldBeCalledAnalyzerTest.cs index 61b9bb3..2f6c441 100644 --- a/tests/Moq.Analyzers.Tests/Analyzers/VerifyShouldBeCalledAnalyzerTest.cs +++ b/tests/Moq.Analyzers.Tests/Analyzers/VerifyShouldBeCalledAnalyzerTest.cs @@ -6,8 +6,6 @@ namespace PosInformatique.Moq.Analyzers.Tests { - using System.Threading.Tasks; - using Xunit; using Verifier = MoqCSharpAnalyzerVerifier; public class VerifyShouldBeCalledAnalyzerTest diff --git a/tests/Moq.Analyzers.Tests/CodeFixes/SetBehaviorToStrictCodeFixProviderTest.cs b/tests/Moq.Analyzers.Tests/CodeFixes/SetBehaviorToStrictCodeFixProviderTest.cs index f86e103..b42df75 100644 --- a/tests/Moq.Analyzers.Tests/CodeFixes/SetBehaviorToStrictCodeFixProviderTest.cs +++ b/tests/Moq.Analyzers.Tests/CodeFixes/SetBehaviorToStrictCodeFixProviderTest.cs @@ -6,8 +6,6 @@ namespace PosInformatique.Moq.Analyzers.Tests { - using System.Threading.Tasks; - using Xunit; using Verifier = MoqCSharpCodeFixVerifier; public class SetBehaviorToStrictCodeFixProviderTest