Skip to content

Commit 365ffe4

Browse files
committed
Code cleanup
Move things around, remove dead code, rename things.
1 parent c289d93 commit 365ffe4

14 files changed

+575
-735
lines changed

AssignAll/AssignAll.Test/CodeFixTests.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
1-
using Microsoft.CodeAnalysis.Diagnostics;
2-
using TestHelper;
1+
using AssignAll.Test.Verifiers;
2+
using Microsoft.CodeAnalysis.CodeFixes;
3+
using Microsoft.CodeAnalysis.Diagnostics;
34
using Xunit;
45

56
namespace AssignAll.Test
67
{
78
public class CodeFixTests : CodeFixVerifier
89
{
10+
protected override DiagnosticAnalyzer GetCSharpDiagnosticAnalyzer()
11+
{
12+
return new AssignAllAnalyzer();
13+
}
14+
15+
protected override CodeFixProvider GetCSharpCodeFixProvider()
16+
{
17+
return new AssignAllCodeFixProvider();
18+
}
19+
920
[Fact]
1021
public void EmptyInitializer_PopulatesAssignmentsForAllPublicMembers()
1122
{
@@ -121,16 +132,5 @@ private static void Main(string[] args)
121132
// so skip new compiler diagnostics as they will just fail
122133
VerifyCSharpFix(testContent, fixedContent, allowNewCompilerDiagnostics: true);
123134
}
124-
125-
protected override DiagnosticAnalyzer GetCSharpDiagnosticAnalyzer()
126-
{
127-
return new AssignAllAnalyzer();
128-
}
129-
130-
protected override Microsoft.CodeAnalysis.CodeFixes.CodeFixProvider GetCSharpCodeFixProvider()
131-
{
132-
return new CodeFixProvider();
133-
}
134-
135135
}
136136
}

AssignAll/AssignAll.Test/Helpers/DiagnosticResult.cs

Lines changed: 0 additions & 87 deletions
This file was deleted.

0 commit comments

Comments
 (0)