@@ -169,6 +169,7 @@ public async Task VerifyStyleCopNamingConventionForGenericTypeAsync(string typeK
169169
170170 var expectedDiagnostic = this . CSharpDiagnostic ( ) . WithLocation ( "TestType`3.cs" , 3 , 13 + typeKeyword . Length ) ;
171171 await this . VerifyCSharpDiagnosticAsync ( testCode , expectedDiagnostic , CancellationToken . None , "TestType`3.cs" ) . ConfigureAwait ( false ) ;
172+ await this . VerifyCSharpDiagnosticAsync ( testCode , EmptyDiagnosticResults , CancellationToken . None , "TestType.cs" ) . ConfigureAwait ( false ) ;
172173 await this . VerifyCSharpDiagnosticAsync ( testCode , EmptyDiagnosticResults , CancellationToken . None , "TestType{T1,T2,T3}.cs" ) . ConfigureAwait ( false ) ;
173174 await this . VerifyRenameAsync ( testCode , "TestType{T1,T2,T3}.cs" , CancellationToken . None ) . ConfigureAwait ( false ) ;
174175 }
@@ -194,6 +195,9 @@ public async Task VerifyMetadataNamingConventionForGenericTypeAsync(string typeK
194195
195196 var expectedDiagnostic = this . CSharpDiagnostic ( ) . WithLocation ( "TestType{T1,T2,T3}.cs" , 3 , 13 + typeKeyword . Length ) ;
196197 await this . VerifyCSharpDiagnosticAsync ( testCode , expectedDiagnostic , CancellationToken . None , "TestType{T1,T2,T3}.cs" ) . ConfigureAwait ( false ) ;
198+
199+ expectedDiagnostic = this . CSharpDiagnostic ( ) . WithLocation ( "TestType.cs" , 3 , 13 + typeKeyword . Length ) ;
200+ await this . VerifyCSharpDiagnosticAsync ( testCode , expectedDiagnostic , CancellationToken . None , "TestType.cs" ) . ConfigureAwait ( false ) ;
197201 await this . VerifyCSharpDiagnosticAsync ( testCode , EmptyDiagnosticResults , CancellationToken . None , "TestType`3.cs" ) . ConfigureAwait ( false ) ;
198202 await this . VerifyRenameAsync ( testCode , "TestType`3.cs" , CancellationToken . None ) . ConfigureAwait ( false ) ;
199203 }
0 commit comments