11 instantiations of MockAnalyzerReference
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (11)
31 references to MockAnalyzerReference
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (31)
CodeFixes\CodeFixServiceTests.cs (31)
55var reference = new MockAnalyzerReference();
75var analyzerReference = new MockAnalyzerReference(
78new MockAnalyzerReference.MockDiagnosticAnalyzer(),
79new MockAnalyzerReference.MockDiagnosticAnalyzer()));
99var analyzerReference = new MockAnalyzerReference(
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");
132var analyzerReference = new MockAnalyzerReference(codeFix, analyzers);
164var documentDiagnosticAnalyzer = new MockAnalyzerReference.MockDocumentDiagnosticAnalyzer(reportedDiagnosticIds: ImmutableArray<string>.Empty);
169var analyzerReference = new MockAnalyzerReference(codeFix, analyzers);
197var generator = new MockAnalyzerReference.MockGenerator();
202var analyzerReference = new MockAnalyzerReference(codeFixes, analyzers, generators);
275new MockAnalyzerReference.MockDiagnosticAnalyzer(),
279=> GetAddedFixesAsync(codefix, diagnosticAnalyzer: new MockAnalyzerReference.MockDiagnosticAnalyzer(), exception: true);
293var reference = new MockAnalyzerReference(codefix, ImmutableArray.Create(diagnosticAnalyzer));
381MockAnalyzerReference? analyzerReference = null,
391MockAnalyzerReference? analyzerReference = null,
397var reference = analyzerReference ?? new MockAnalyzerReference();
674MockAnalyzerReference.MockDiagnosticAnalyzer? diagnosticAnalyzer = null)
689var diagnosticAnalyzer = new MockAnalyzerReference.MockDiagnosticAnalyzer(reportedDiagnosticIds);
743MockAnalyzerReference.MockDiagnosticAnalyzer diagnosticAnalyzer)
760MockAnalyzerReference.MockDiagnosticAnalyzer? diagnosticAnalyzer = null)
776diagnosticAnalyzer ??= new MockAnalyzerReference.MockDiagnosticAnalyzer();
778var reference = new MockAnalyzerReference(nugetFixer, analyzers);
828var analyzer = new MockAnalyzerReference.MockDiagnosticAnalyzer(ImmutableArray.Create(diagnosticId));
878var analyzerReference = new MockAnalyzerReference(fixers, ImmutableArray.Create<DiagnosticAnalyzer>(analyzer));
1033var analyzerReference = new MockAnalyzerReference(codeFix, ImmutableArray.Create<DiagnosticAnalyzer>(analyzer));