@@ -25,7 +25,7 @@ namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.QuickInfo;
2525
2626[ UseExportProvider ]
2727[ Trait ( Traits . Feature , Traits . Features . QuickInfo ) ]
28- public class DiagnosticAnalyzerQuickInfoSourceTests
28+ public sealed class DiagnosticAnalyzerQuickInfoSourceTests
2929{
3030 [ WpfFact , WorkItem ( "https://github.com/dotnet/roslyn/issues/46604" ) ]
3131 public async Task ErrorTitleIsShownOnDisablePragma ( )
@@ -156,26 +156,26 @@ public async Task QuickInfoSuppressMessageAttributeUseCases(string suppressMessa
156156 ? GetFormattedIDEAnalyzerTitle ( 51 , nameof ( AnalyzersResources . Remove_unused_private_members ) )
157157 : null ;
158158 await TestAsync (
159- @$ "
160- using System.Diagnostics.CodeAnalysis;
161- using SM = System.Diagnostics.CodeAnalysis.SuppressMessageAttribute;
162- namespace T
163- { {
164- public static class DiagnosticIds
165- { {
166- public const string IDE0051 = "" IDE0051" ";
167- } }
159+ $$ "" "
160+ using System.Diagnostics.CodeAnalysis;
161+ using SM = System.Diagnostics.CodeAnalysis.SuppressMessageAttribute;
162+ namespace T
163+ {
164+ public static class DiagnosticIds
165+ {
166+ public const string IDE0051 = "IDE0051";
167+ }
168168
169- { suppressMessageAttribute }
170- public class C
171- { {
172- private int _i;
173- } }
174- } }
175- " , description , ImmutableArray < TextSpan > . Empty ) ;
169+ {{ suppressMessageAttribute } }
170+ public class C
171+ {
172+ private int _i;
173+ }
174+ }
175+ "" ", description , ImmutableArray < TextSpan > . Empty ) ;
176176 }
177177
178- protected static async Task AssertContentIsAsync ( EditorTestWorkspace workspace , Document document , int position , string expectedDescription ,
178+ private static async Task AssertContentIsAsync ( EditorTestWorkspace workspace , Document document , int position , string expectedDescription ,
179179 ImmutableArray < TextSpan > relatedSpans )
180180 {
181181 var info = await GetQuickinfo ( workspace , document , position ) ;
@@ -194,13 +194,13 @@ private static async Task<QuickInfoItem> GetQuickinfo(EditorTestWorkspace worksp
194194 return info ;
195195 }
196196
197- protected static async Task AssertNoContentAsync ( EditorTestWorkspace workspace , Document document , int position )
197+ private static async Task AssertNoContentAsync ( EditorTestWorkspace workspace , Document document , int position )
198198 {
199199 var info = await GetQuickinfo ( workspace , document , position ) ;
200200 Assert . Null ( info ) ;
201201 }
202202
203- protected static async Task TestAsync (
203+ private static async Task TestAsync (
204204 string code ,
205205 string expectedDescription ,
206206 ImmutableArray < TextSpan > relatedSpans ,
@@ -237,7 +237,7 @@ private static string GetFormattedIDEAnalyzerTitle(int ideDiagnosticId, string n
237237 return $ "IDE{ ideDiagnosticId : 0000} : { localizable } ";
238238 }
239239
240- protected static Task TestInClassAsync ( string code , string expectedDescription , params TextSpan [ ] relatedSpans )
240+ private static Task TestInClassAsync ( string code , string expectedDescription , params TextSpan [ ] relatedSpans )
241241 => TestAsync (
242242 $$ """
243243 class C
@@ -246,7 +246,7 @@ class C
246246 }
247247 """ , expectedDescription , relatedSpans . ToImmutableArray ( ) ) ;
248248
249- protected static Task TestInMethodAsync ( string code , string expectedDescription , params TextSpan [ ] relatedSpans )
249+ private static Task TestInMethodAsync ( string code , string expectedDescription , params TextSpan [ ] relatedSpans )
250250 => TestInClassAsync (
251251 $$ """
252252 void M()
0 commit comments