51 references to AddAnalyzerReference
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Completion\CompletionServiceTests.cs (1)
207.AddAnalyzerReference(analyzerReference)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
436.AddAnalyzerReference(analyzerReference)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (10)
CodeFixes\CodeFixServiceTests.cs (4)
56var project = workspace.CurrentSolution.Projects.Single().AddAnalyzerReference(reference); 294var project = workspace.CurrentSolution.Projects.Single().AddAnalyzerReference(reference); 398var project = workspace.CurrentSolution.Projects.Single().AddAnalyzerReference(reference); 779var project = workspace.CurrentSolution.Projects.Single().AddAnalyzerReference(reference);
CodeRefactorings\CodeRefactoringServiceTest.cs (3)
48var project = workspace.CurrentSolution.Projects.Single().AddAnalyzerReference(reference); 166.AddAnalyzerReference(reference) 205.AddAnalyzerReference(reference)
Completion\CompletionServiceTests.cs (1)
43var project = workspace.CurrentSolution.Projects.Single().AddAnalyzerReference(reference);
Diagnostics\DiagnosticAnalyzerServiceTests.cs (2)
747project = project.AddAnalyzerReference(analyzerReference); 859Assert.True(workspace.TryApplyChanges(workspace.CurrentSolution.Projects.Single().AddAnalyzerReference(new TestGeneratorReference(generator)).Solution));
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
2940workspace.TryApplyChanges(project.AddAnalyzerReference(aref).Solution);
Microsoft.CodeAnalysis.Workspaces.UnitTests (34)
SolutionTests\SolutionTests.cs (1)
5737project1 = project1.AddAnalyzerReference(new TestGeneratorReference(new CallbackGenerator(() =>
SolutionTests\SolutionWithSourceGeneratorTests.cs (32)
51.AddAnalyzerReference(analyzerReference); 91.AddAnalyzerReference(analyzerReference1); 139.AddAnalyzerReference(generatorReferenceToKeep); 183.AddAnalyzerReference(analyzerReference) 255.AddAnalyzerReference(analyzerReference) 295.AddAnalyzerReference(analyzerReference); 339.AddAnalyzerReference(analyzerReference) 367.AddAnalyzerReference(analyzerReference) 407project = project.AddAnalyzerReference(analyzerReference); 420.AddAnalyzerReference(analyzerReference) 445.AddAnalyzerReference(analyzerReference) 459.AddAnalyzerReference(analyzerReference) 482.AddAnalyzerReference(analyzerReference) 502.AddAnalyzerReference(analyzerReference) 529.AddAnalyzerReference(analyzerReference) 590.AddAnalyzerReference(analyzerReference); 614.AddAnalyzerReference(analyzerReference); 633.AddAnalyzerReference(analyzerReference) 661.AddAnalyzerReference(analyzerReference).Solution; 692.AddAnalyzerReference(analyzerReference); 720.AddAnalyzerReference(analyzerReference) 751.AddAnalyzerReference(analyzerReference) 780.AddAnalyzerReference(analyzerReference) 810.AddAnalyzerReference(analyzerReference) 815.AddAnalyzerReference(analyzerReference) 854.AddAnalyzerReference(analyzerReference); 871var project = AddEmptyProject(workspace.CurrentSolution).AddAnalyzerReference(analyzerReference); 904var solution = AddEmptyProject(workspace.CurrentSolution).AddAnalyzerReference(analyzerReference).Solution; 906var project2 = AddEmptyProject(solution, name: "TestProject2").AddAnalyzerReference(analyzerReference); 929var project = AddEmptyProject(workspace.CurrentSolution).AddAnalyzerReference(analyzerReference); 952var project1 = project0.AddAnalyzerReference(analyzerReference1); 968var project3 = project2.AddAnalyzerReference(analyzerReference2);
SolutionTests\SourceGeneratorTelemetryCollectorWorkspaceServiceTests.cs (1)
32.AddAnalyzerReference(analyzerReference);
Roslyn.VisualStudio.Next.UnitTests (4)
Services\ServiceHubServicesTests.cs (1)
1729.AddAnalyzerReference(new AnalyzerFileReference(typeof(object).Assembly.Location, new TestAnalyzerAssemblyLoader()));
Services\SolutionServiceTests.cs (1)
511.AddAnalyzerReference(new AnalyzerFileReference(typeof(Microsoft.CodeAnalysis.TestSourceGenerator.HelloWorldGenerator).Assembly.Location, new TestAnalyzerAssemblyLoader()))
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (2)
196var project = workspace.CurrentSolution.Projects.First().AddAnalyzerReference(analyzerReference); 232project = project.AddAnalyzerReference(analyzerReference);