14 instantiations of MockDiagnosticAnalyzer
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (14)
CodeFixes\CodeFixServiceTests.cs (14)
78new MockAnalyzerReference.MockDiagnosticAnalyzer(), 79new MockAnalyzerReference.MockDiagnosticAnalyzer())); 102new MockAnalyzerReference.MockDiagnosticAnalyzer("ID1", "Category1"), 103new MockAnalyzerReference.MockDiagnosticAnalyzer("ID1", "Category1"), 104new MockAnalyzerReference.MockDiagnosticAnalyzer("ID1", "Category2"), 105new MockAnalyzerReference.MockDiagnosticAnalyzer("ID2", "Category2"))); 127var analyzerWithFix = new MockAnalyzerReference.MockDiagnosticAnalyzer(); 130var analyzerWithoutFix = new MockAnalyzerReference.MockDiagnosticAnalyzer("AnalyzerWithoutFixId", "Category"); 275new MockAnalyzerReference.MockDiagnosticAnalyzer(), 279=> GetAddedFixesAsync(codefix, diagnosticAnalyzer: new MockAnalyzerReference.MockDiagnosticAnalyzer(), exception: true); 453private static readonly ImmutableArray<DiagnosticAnalyzer> s_defaultAnalyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new MockDiagnosticAnalyzer()); 689var diagnosticAnalyzer = new MockAnalyzerReference.MockDiagnosticAnalyzer(reportedDiagnosticIds); 776diagnosticAnalyzer ??= new MockAnalyzerReference.MockDiagnosticAnalyzer(); 828var analyzer = new MockAnalyzerReference.MockDiagnosticAnalyzer(ImmutableArray.Create(diagnosticId));
7 references to MockDiagnosticAnalyzer
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (7)
CodeFixes\CodeFixServiceTests.cs (7)
127var analyzerWithFix = new MockAnalyzerReference.MockDiagnosticAnalyzer(); 130var analyzerWithoutFix = new MockAnalyzerReference.MockDiagnosticAnalyzer("AnalyzerWithoutFixId", "Category"); 674MockAnalyzerReference.MockDiagnosticAnalyzer? diagnosticAnalyzer = null) 689var diagnosticAnalyzer = new MockAnalyzerReference.MockDiagnosticAnalyzer(reportedDiagnosticIds); 743MockAnalyzerReference.MockDiagnosticAnalyzer diagnosticAnalyzer) 760MockAnalyzerReference.MockDiagnosticAnalyzer? diagnosticAnalyzer = null) 828var analyzer = new MockAnalyzerReference.MockDiagnosticAnalyzer(ImmutableArray.Create(diagnosticId));