Skip to content

Commit e567a4f

Browse files
authored
Features/cs1998 codefix (#10)
* wip * wip * working codefix and tests
1 parent 5742ac2 commit e567a4f

File tree

6 files changed

+524
-2
lines changed

6 files changed

+524
-2
lines changed

src/Amusoft.CodeAnalysis.Analyzers.Test/Amusoft.CodeAnalysis.Analyzers.Test.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Analyzer.Testing.MSTest" Version="1.0.1-beta1.20059.2" />
9-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeFix.Testing.MSTest" Version="1.0.1-beta1.20059.2" />
8+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Analyzer.Testing.MSTest" Version="1.0.1-beta1.20062.1" />
9+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeFix.Testing.MSTest" Version="1.0.1-beta1.20062.1" />
1010
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="2.4.0" />
1111
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0" />
1212
<PackageReference Include="MSTest.TestAdapter" Version="1.1.18" />
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Copyright 2020 Andreas Müller
2+
// This file is a part of Amusoft.CodeAnalysis.Analyzers and is licensed under Apache 2.0
3+
// See https://github.com/taori/Amusoft.CodeAnalysis.Analyzers/blob/master/LICENSE for details
4+
5+
using Microsoft.CodeAnalysis.CodeFixes;
6+
using Microsoft.CodeAnalysis.CSharp.Testing;
7+
using Microsoft.CodeAnalysis.Diagnostics;
8+
using Microsoft.CodeAnalysis.Testing.Verifiers;
9+
10+
namespace Amusoft.CodeAnalysis.Analyzers.Test.Helpers
11+
{
12+
public class CodeFixTest<TAnalyzer, TCodeFix> : CSharpCodeFixTest<TAnalyzer, TCodeFix, MSTestVerifier>
13+
where TAnalyzer : DiagnosticAnalyzer, new()
14+
where TCodeFix : CodeFixProvider, new()
15+
{
16+
}
17+
}

0 commit comments

Comments
 (0)