diff --git a/src/EditorFeatures/CSharpTest/Diagnostics/DiagnosticAnalyzerDriver/DiagnosticAnalyzerDriverTests.cs b/src/EditorFeatures/CSharpTest/Diagnostics/DiagnosticAnalyzerDriver/DiagnosticAnalyzerDriverTests.cs index 10726d087c6d65bc2e38b75c363d092b2fbfc916..a846688a3a9552e0f8e0fd83de7635fc67c2a968 100644 --- a/src/EditorFeatures/CSharpTest/Diagnostics/DiagnosticAnalyzerDriver/DiagnosticAnalyzerDriverTests.cs +++ b/src/EditorFeatures/CSharpTest/Diagnostics/DiagnosticAnalyzerDriver/DiagnosticAnalyzerDriverTests.cs @@ -30,6 +30,10 @@ public async Task DiagnosticAnalyzerDriverAllInOne() symbolKindsWithNoCodeBlocks.Add(SymbolKind.Property); symbolKindsWithNoCodeBlocks.Add(SymbolKind.NamedType); + // PROTOTYPE(patterns2): Add examples of all the new pattern types once supported. + var syntaxKinds = new HashSet(); + syntaxKinds.Add(SyntaxKind.SubpatternElement); + syntaxKinds.Add(SyntaxKind.DeconstructionPattern); var analyzer = new CSharpTrackingDiagnosticAnalyzer(); using (var workspace = TestWorkspace.CreateCSharp(source, TestOptions.Regular)) @@ -39,7 +43,7 @@ public async Task DiagnosticAnalyzerDriverAllInOne() await DiagnosticProviderTestUtilities.GetAllDiagnosticsAsync(analyzer, document, new Text.TextSpan(0, document.GetTextAsync().Result.Length)); analyzer.VerifyAllAnalyzerMembersWereCalled(); analyzer.VerifyAnalyzeSymbolCalledForAllSymbolKinds(); - analyzer.VerifyAnalyzeNodeCalledForAllSyntaxKinds(new HashSet()); + analyzer.VerifyAnalyzeNodeCalledForAllSyntaxKinds(syntaxKinds); analyzer.VerifyOnCodeBlockCalledForAllSymbolAndMethodKinds(symbolKindsWithNoCodeBlocks, true); } }