Skip to content

Commit 78df660

Browse files
committed
Use descriptors in tests.
1 parent 9480747 commit 78df660

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

IDisposableAnalyzers.Test/IDISP002DisposeMemberTests/CodeFix.Rx.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace IDisposableAnalyzers.Test.IDISP002DisposeMemberTests
1+
namespace IDisposableAnalyzers.Test.IDISP002DisposeMemberTests
22
{
33
using Gu.Roslyn.Asserts;
44
using Microsoft.CodeAnalysis.CodeFixes;
@@ -11,7 +11,7 @@ public static class Rx
1111
{
1212
private static readonly DiagnosticAnalyzer Analyzer = new FieldAndPropertyDeclarationAnalyzer();
1313
private static readonly CodeFixProvider Fix = new DisposeMemberFix();
14-
private static readonly ExpectedDiagnostic ExpectedDiagnostic = ExpectedDiagnostic.Create("IDISP002");
14+
private static readonly ExpectedDiagnostic ExpectedDiagnostic = ExpectedDiagnostic.Create(Descriptors.IDISP002DisposeMember);
1515

1616
[Test]
1717
public static void SerialDisposable()

IDisposableAnalyzers.Test/IDISP002DisposeMemberTests/CodeFix.TestFixture.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace IDisposableAnalyzers.Test.IDISP002DisposeMemberTests
1+
namespace IDisposableAnalyzers.Test.IDISP002DisposeMemberTests
22
{
33
using Gu.Roslyn.Asserts;
44
using Microsoft.CodeAnalysis.CodeFixes;
@@ -11,7 +11,7 @@ public static class TestFixture
1111
{
1212
private static readonly DiagnosticAnalyzer Analyzer = new FieldAndPropertyDeclarationAnalyzer();
1313
private static readonly CodeFixProvider Fix = new DisposeInTearDownFix();
14-
private static readonly ExpectedDiagnostic ExpectedDiagnostic = ExpectedDiagnostic.Create("IDISP002");
14+
private static readonly ExpectedDiagnostic ExpectedDiagnostic = ExpectedDiagnostic.Create(Descriptors.IDISP002DisposeMember);
1515

1616
[Test]
1717
public static void AssigningFieldInSetUp()

0 commit comments

Comments
 (0)