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)
56
var project = workspace.CurrentSolution.Projects.Single().
AddAnalyzerReference
(reference);
294
var project = workspace.CurrentSolution.Projects.Single().
AddAnalyzerReference
(reference);
398
var project = workspace.CurrentSolution.Projects.Single().
AddAnalyzerReference
(reference);
779
var project = workspace.CurrentSolution.Projects.Single().
AddAnalyzerReference
(reference);
CodeRefactorings\CodeRefactoringServiceTest.cs (3)
48
var project = workspace.CurrentSolution.Projects.Single().
AddAnalyzerReference
(reference);
166
.
AddAnalyzerReference
(reference)
205
.
AddAnalyzerReference
(reference)
Completion\CompletionServiceTests.cs (1)
43
var project = workspace.CurrentSolution.Projects.Single().
AddAnalyzerReference
(reference);
Diagnostics\DiagnosticAnalyzerServiceTests.cs (2)
747
project = project.
AddAnalyzerReference
(analyzerReference);
859
Assert.True(workspace.TryApplyChanges(workspace.CurrentSolution.Projects.Single().
AddAnalyzerReference
(new TestGeneratorReference(generator)).Solution));
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
2940
workspace.TryApplyChanges(project.
AddAnalyzerReference
(aref).Solution);
Microsoft.CodeAnalysis.Workspaces.UnitTests (34)
SolutionTests\SolutionTests.cs (1)
5737
project1 = 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)
407
project = 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);
871
var project = AddEmptyProject(workspace.CurrentSolution).
AddAnalyzerReference
(analyzerReference);
904
var solution = AddEmptyProject(workspace.CurrentSolution).
AddAnalyzerReference
(analyzerReference).Solution;
906
var project2 = AddEmptyProject(solution, name: "TestProject2").
AddAnalyzerReference
(analyzerReference);
929
var project = AddEmptyProject(workspace.CurrentSolution).
AddAnalyzerReference
(analyzerReference);
952
var project1 = project0.
AddAnalyzerReference
(analyzerReference1);
968
var 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)
196
var project = workspace.CurrentSolution.Projects.First().
AddAnalyzerReference
(analyzerReference);
232
project = project.
AddAnalyzerReference
(analyzerReference);