@@ -25,7 +25,7 @@ async void SecondMethodAsync() { }
2525}
2626" ;
2727
28- await VerifyCSharpDiagnosticAsync ( testCode , EmptyDiagnosticResults , CancellationToken . None ) . ConfigureAwait ( false ) ;
28+ await this . VerifyCSharpDiagnosticAsync ( testCode , EmptyDiagnosticResults , CancellationToken . None ) . ConfigureAwait ( false ) ;
2929 }
3030
3131 [ Fact ]
@@ -40,7 +40,7 @@ async void SecondMethodAsync(object sender, EventArgs e) { }
4040}
4141" ;
4242
43- await VerifyCSharpDiagnosticAsync ( testCode , EmptyDiagnosticResults , CancellationToken . None ) . ConfigureAwait ( false ) ;
43+ await this . VerifyCSharpDiagnosticAsync ( testCode , EmptyDiagnosticResults , CancellationToken . None ) . ConfigureAwait ( false ) ;
4444 }
4545
4646 [ Fact ]
@@ -63,10 +63,10 @@ async Task SecondMethodAsync() { }
6363}
6464" ;
6565
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 ) ;
7070 }
7171
7272 [ Fact ]
@@ -89,10 +89,10 @@ class ClassName
8989}
9090" ;
9191
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 ) ;
9696 }
9797
9898 [ Fact ]
@@ -115,10 +115,10 @@ class ClassName
115115}
116116" ;
117117
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 ) ;
122122 }
123123
124124 [ Fact ]
@@ -141,10 +141,10 @@ class ClassName
141141}
142142" ;
143143
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 ) ;
148148 }
149149
150150 [ Fact ]
@@ -157,7 +157,7 @@ class ClassName
157157 public Task<string> TaskString { get; set; }
158158}
159159" ;
160- await VerifyCSharpDiagnosticAsync ( testCode , EmptyDiagnosticResults , CancellationToken . None ) . ConfigureAwait ( false ) ;
160+ await this . VerifyCSharpDiagnosticAsync ( testCode , EmptyDiagnosticResults , CancellationToken . None ) . ConfigureAwait ( false ) ;
161161 }
162162
163163 protected override IEnumerable < DiagnosticAnalyzer > GetCSharpDiagnosticAnalyzers ( )
0 commit comments