@@ -25,7 +25,7 @@ async void SecondMethodAsync() { }
25
25
}
26
26
" ;
27
27
28
- await VerifyCSharpDiagnosticAsync ( testCode , EmptyDiagnosticResults , CancellationToken . None ) . ConfigureAwait ( false ) ;
28
+ await this . VerifyCSharpDiagnosticAsync ( testCode , EmptyDiagnosticResults , CancellationToken . None ) . ConfigureAwait ( false ) ;
29
29
}
30
30
31
31
[ Fact ]
@@ -40,7 +40,7 @@ async void SecondMethodAsync(object sender, EventArgs e) { }
40
40
}
41
41
" ;
42
42
43
- await VerifyCSharpDiagnosticAsync ( testCode , EmptyDiagnosticResults , CancellationToken . None ) . ConfigureAwait ( false ) ;
43
+ await this . VerifyCSharpDiagnosticAsync ( testCode , EmptyDiagnosticResults , CancellationToken . None ) . ConfigureAwait ( false ) ;
44
44
}
45
45
46
46
[ Fact ]
@@ -63,10 +63,10 @@ async Task SecondMethodAsync() { }
63
63
}
64
64
" ;
65
65
66
- DiagnosticResult expected = CSharpDiagnostic ( ) . WithArguments ( "FirstMethod" ) . WithLocation ( 5 , 16 ) ;
67
- await VerifyCSharpDiagnosticAsync ( testCode , expected , CancellationToken . None ) . ConfigureAwait ( false ) ;
68
- await VerifyCSharpDiagnosticAsync ( fixedCode , EmptyDiagnosticResults , CancellationToken . None ) . ConfigureAwait ( false ) ;
69
- await VerifyCSharpFixAsync ( testCode , fixedCode , cancellationToken : CancellationToken . None ) . ConfigureAwait ( false ) ;
66
+ DiagnosticResult expected = this . CSharpDiagnostic ( ) . WithArguments ( "FirstMethod" ) . WithLocation ( 5 , 16 ) ;
67
+ await this . VerifyCSharpDiagnosticAsync ( testCode , expected , CancellationToken . None ) . ConfigureAwait ( false ) ;
68
+ await this . VerifyCSharpDiagnosticAsync ( fixedCode , EmptyDiagnosticResults , CancellationToken . None ) . ConfigureAwait ( false ) ;
69
+ await this . VerifyCSharpFixAsync ( testCode , fixedCode , cancellationToken : CancellationToken . None ) . ConfigureAwait ( false ) ;
70
70
}
71
71
72
72
[ Fact ]
@@ -89,10 +89,10 @@ class ClassName
89
89
}
90
90
" ;
91
91
92
- DiagnosticResult expected = CSharpDiagnostic ( ) . WithArguments ( "FirstMethod" ) . WithLocation ( 5 , 21 ) ;
93
- await VerifyCSharpDiagnosticAsync ( testCode , expected , CancellationToken . None ) . ConfigureAwait ( false ) ;
94
- await VerifyCSharpDiagnosticAsync ( fixedCode , EmptyDiagnosticResults , CancellationToken . None ) . ConfigureAwait ( false ) ;
95
- await VerifyCSharpFixAsync ( testCode , fixedCode , cancellationToken : CancellationToken . None ) . ConfigureAwait ( false ) ;
92
+ DiagnosticResult expected = this . CSharpDiagnostic ( ) . WithArguments ( "FirstMethod" ) . WithLocation ( 5 , 21 ) ;
93
+ await this . VerifyCSharpDiagnosticAsync ( testCode , expected , CancellationToken . None ) . ConfigureAwait ( false ) ;
94
+ await this . VerifyCSharpDiagnosticAsync ( fixedCode , EmptyDiagnosticResults , CancellationToken . None ) . ConfigureAwait ( false ) ;
95
+ await this . VerifyCSharpFixAsync ( testCode , fixedCode , cancellationToken : CancellationToken . None ) . ConfigureAwait ( false ) ;
96
96
}
97
97
98
98
[ Fact ]
@@ -115,10 +115,10 @@ class ClassName
115
115
}
116
116
" ;
117
117
118
- DiagnosticResult expected = CSharpDiagnostic ( ) . WithArguments ( "FirstMethod" ) . WithLocation ( 5 , 10 ) ;
119
- await VerifyCSharpDiagnosticAsync ( testCode , expected , CancellationToken . None ) . ConfigureAwait ( false ) ;
120
- await VerifyCSharpDiagnosticAsync ( fixedCode , EmptyDiagnosticResults , CancellationToken . None ) . ConfigureAwait ( false ) ;
121
- await VerifyCSharpFixAsync ( testCode , fixedCode , cancellationToken : CancellationToken . None ) . ConfigureAwait ( false ) ;
118
+ DiagnosticResult expected = this . CSharpDiagnostic ( ) . WithArguments ( "FirstMethod" ) . WithLocation ( 5 , 10 ) ;
119
+ await this . VerifyCSharpDiagnosticAsync ( testCode , expected , CancellationToken . None ) . ConfigureAwait ( false ) ;
120
+ await this . VerifyCSharpDiagnosticAsync ( fixedCode , EmptyDiagnosticResults , CancellationToken . None ) . ConfigureAwait ( false ) ;
121
+ await this . VerifyCSharpFixAsync ( testCode , fixedCode , cancellationToken : CancellationToken . None ) . ConfigureAwait ( false ) ;
122
122
}
123
123
124
124
[ Fact ]
@@ -141,10 +141,10 @@ class ClassName
141
141
}
142
142
" ;
143
143
144
- DiagnosticResult expected = CSharpDiagnostic ( ) . WithArguments ( "FirstMethod" ) . WithLocation ( 5 , 15 ) ;
145
- await VerifyCSharpDiagnosticAsync ( testCode , expected , CancellationToken . None ) . ConfigureAwait ( false ) ;
146
- await VerifyCSharpDiagnosticAsync ( fixedCode , EmptyDiagnosticResults , CancellationToken . None ) . ConfigureAwait ( false ) ;
147
- await VerifyCSharpFixAsync ( testCode , fixedCode , cancellationToken : CancellationToken . None ) . ConfigureAwait ( false ) ;
144
+ DiagnosticResult expected = this . CSharpDiagnostic ( ) . WithArguments ( "FirstMethod" ) . WithLocation ( 5 , 15 ) ;
145
+ await this . VerifyCSharpDiagnosticAsync ( testCode , expected , CancellationToken . None ) . ConfigureAwait ( false ) ;
146
+ await this . VerifyCSharpDiagnosticAsync ( fixedCode , EmptyDiagnosticResults , CancellationToken . None ) . ConfigureAwait ( false ) ;
147
+ await this . VerifyCSharpFixAsync ( testCode , fixedCode , cancellationToken : CancellationToken . None ) . ConfigureAwait ( false ) ;
148
148
}
149
149
150
150
[ Fact ]
@@ -157,7 +157,7 @@ class ClassName
157
157
public Task<string> TaskString { get; set; }
158
158
}
159
159
" ;
160
- await VerifyCSharpDiagnosticAsync ( testCode , EmptyDiagnosticResults , CancellationToken . None ) . ConfigureAwait ( false ) ;
160
+ await this . VerifyCSharpDiagnosticAsync ( testCode , EmptyDiagnosticResults , CancellationToken . None ) . ConfigureAwait ( false ) ;
161
161
}
162
162
163
163
protected override IEnumerable < DiagnosticAnalyzer > GetCSharpDiagnosticAnalyzers ( )
0 commit comments