Skip to content

Commit

Permalink
Rename the ConstructorArgumentsAnalyzer.
Browse files Browse the repository at this point in the history
  • Loading branch information
GillesTourreau committed Oct 23, 2024
1 parent d7e9639 commit 1aef55b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//-----------------------------------------------------------------------
// <copyright file="ConstructorArgumentsMustMatchAnalyzer.cs" company="P.O.S Informatique">
// <copyright file="ConstructorArgumentsAnalyzer.cs" company="P.O.S Informatique">
// Copyright (c) P.O.S Informatique. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
Expand All @@ -14,7 +14,7 @@ namespace PosInformatique.Moq.Analyzers
using Microsoft.CodeAnalysis.Text;

[DiagnosticAnalyzer(LanguageNames.CSharp)]
public class ConstructorArgumentsMustMatchAnalyzer : DiagnosticAnalyzer
public class ConstructorArgumentsAnalyzer : DiagnosticAnalyzer
{
internal static readonly DiagnosticDescriptor ConstructorArgumentsCanBePassedToInterfaceRule = new DiagnosticDescriptor(
"PosInfoMoq2004",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
//-----------------------------------------------------------------------
// <copyright file="ConstructorArgumentsMustMatchAnalyzerTest.cs" company="P.O.S Informatique">
// <copyright file="ConstructorArgumentsAnalyzerTest.cs" company="P.O.S Informatique">
// Copyright (c) P.O.S Informatique. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace PosInformatique.Moq.Analyzers.Tests
{
using Microsoft.CodeAnalysis.Testing;
using Verifier = MoqCSharpAnalyzerVerifier<ConstructorArgumentsMustMatchAnalyzer>;
using Verifier = MoqCSharpAnalyzerVerifier<ConstructorArgumentsAnalyzer>;

public class ConstructorArgumentsMustMatchAnalyzerTest
public class ConstructorArgumentsAnalyzerTest
{
[Fact]
public async Task NoMock()
Expand Down Expand Up @@ -124,7 +124,7 @@ public interface I

await Verifier.VerifyAnalyzerAsync(
source,
new DiagnosticResult(ConstructorArgumentsMustMatchAnalyzer.ConstructorArgumentsCanBePassedToInterfaceRule)
new DiagnosticResult(ConstructorArgumentsAnalyzer.ConstructorArgumentsCanBePassedToInterfaceRule)
.WithLocation(0).WithArguments("1")
.WithLocation(1).WithArguments("2"));
}
Expand Down Expand Up @@ -152,7 +152,7 @@ public interface I

await Verifier.VerifyAnalyzerAsync(
source,
new DiagnosticResult(ConstructorArgumentsMustMatchAnalyzer.ConstructorArgumentsCanBePassedToInterfaceRule)
new DiagnosticResult(ConstructorArgumentsAnalyzer.ConstructorArgumentsCanBePassedToInterfaceRule)
.WithLocation(0).WithArguments("1")
.WithLocation(1).WithArguments("2"));
}
Expand Down

0 comments on commit 1aef55b

Please sign in to comment.