1 type derived from TestGeneratorReference
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
106private class TestGeneratorReferenceWithFilePathEquality : TestGeneratorReference, IEquatable<AnalyzerReference>
4 instantiations of TestGeneratorReference
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
432var analyzerReference = new TestGeneratorReference(generator);
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (1)
114solution = solution.AddAnalyzerReference(project.Id, new TestGeneratorReference(generator));
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
527var analyzerReference = new TestGeneratorReference(generator);
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
SolutionExplorer\SourceGeneratorItemTests.vb (1)
268Dim analyzerReference = New TestGeneratorReference(New GenerateFileForEachAdditionalFileWithContentsCommented())
46 references to TestGeneratorReference
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Completion\CompletionServiceTests.cs (1)
205var analyzerReference = new TestGeneratorReference(generator);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
432var analyzerReference = new TestGeneratorReference(generator);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (8)
Remote\InProcRemoteHostClientProvider.cs (2)
42ConcurrentDictionary<Guid, TestGeneratorReference> sharedTestGeneratorReferences, 51ConcurrentDictionary<Guid, TestGeneratorReference> sharedTestGeneratorReferences,
Remote\TestSerializerService.cs (6)
30ConcurrentDictionary<Guid, TestGeneratorReference> sharedTestGeneratorReferences, 43private readonly ConcurrentDictionary<Guid, TestGeneratorReference> _sharedTestGeneratorReferences = sharedTestGeneratorReferences; 78TestGeneratorReference generatorReference => generatorReference.Checksum, 86if (reference is TestGeneratorReference generatorReference) 120private ConcurrentDictionary<Guid, TestGeneratorReference>? _sharedTestGeneratorReferences; 133public ConcurrentDictionary<Guid, TestGeneratorReference> SharedTestGeneratorReferences
Microsoft.CodeAnalysis.Workspaces.UnitTests (34)
SolutionTests\SolutionWithSourceGeneratorTests.cs (33)
48var analyzerReference = new TestGeneratorReference(new GenerateFileForEachAdditionalFileWithContentsCommented()); 135var generatorReferenceToKeep = new TestGeneratorReference(new SingleFileTestGenerator("// StaticContent", hintName: "generatorReferenceToKeep")); 136var analyzerReferenceToAddAndRemove = new TestGeneratorReference(new SingleFileTestGenerator2("// More Static Content", hintName: "analyzerReferenceToAddAndRemove")); 162var generatorReference1 = new TestGeneratorReference(new SingleFileTestGenerator("", hintName: "DuplicateFile"), analyzerFilePath: "Z:\\A.dll"); 163var generatorReference2 = new TestGeneratorReference(new SingleFileTestGenerator("", hintName: "DuplicateFile"), analyzerFilePath: "Z:\\B.dll"); 181var analyzerReference = new TestGeneratorReference(generator); 253var analyzerReference = new TestGeneratorReference(new GenerateFileForEachAdditionalFileWithContentsCommented()); 293var analyzerReference = new TestGeneratorReference(new GenerateFileForEachAdditionalFileWithContentsCommented()); 337var analyzerReference = new TestGeneratorReference(new GenerateFileForEachAdditionalFileWithContentsCommented()); 365var analyzerReference = new TestGeneratorReference(new GenerateFileForEachAdditionalFileWithContentsCommented()); 387var analyzerReference = new TestGeneratorReference(new GenerateFileForEachAdditionalFileWithContentsCommented()); 403static Solution AddProjectWithReference(Solution solution, TestGeneratorReference analyzerReference) 418var analyzerReference = new TestGeneratorReference(new GenerateFileForEachAdditionalFileWithContentsCommented()); 443var analyzerReference = new TestGeneratorReference(new GenerateFileForEachAdditionalFileWithContentsCommented()); 457var analyzerReference = new TestGeneratorReference(new GenerateFileForEachAdditionalFileWithContentsCommented()); 480var analyzerReference = new TestGeneratorReference(new SingleFileTestGenerator("// StaticContent")); 500var analyzerReference = new TestGeneratorReference(new SingleFileTestGenerator("// StaticContent")); 527var analyzerReference = new TestGeneratorReference(generator); 588var analyzerReference = new TestGeneratorReference(new SingleFileTestGenerator("// StaticContent")); 612var analyzerReference = new TestGeneratorReference(new SingleFileTestGenerator("// StaticContent")); 631var analyzerReference = new TestGeneratorReference(new GenerateFileForEachAdditionalFileWithContentsCommented()); 659var analyzerReference = new TestGeneratorReference(new SingleFileTestGenerator("// StaticContent")); 690var analyzerReference = new TestGeneratorReference(new SingleFileTestGenerator("// StaticContent")); 718var analyzerReference = new TestGeneratorReference(generator); 749var analyzerReference = new TestGeneratorReference(new CallbackGenerator(_ => { }, onExecute: _ => { generatorRan = true; }, source: "// Hello World!")); 778var analyzerReference = new TestGeneratorReference(new CallbackGenerator(_ => { }, onExecute: _ => { generatorRan = true; }, source: "// Hello World!")); 807var analyzerReference = new TestGeneratorReference(new CallbackGenerator(_ => { }, onExecute: _ => { generatorRan = true; }, source: "// Hello World!")); 842var analyzerReference = new TestGeneratorReference( 868var analyzerReference = new TestGeneratorReference( 901var analyzerReference = new TestGeneratorReference( 926var analyzerReference = new TestGeneratorReference( 944var analyzerReference1 = new TestGeneratorReference( 946var analyzerReference2 = new TestGeneratorReference(
SolutionTests\SourceGeneratorTelemetryCollectorWorkspaceServiceTests.cs (1)
29var analyzerReference = new TestGeneratorReference(new SingleFileTestGenerator("// Hello World"), analyzerFilePath: nonExistentFilePath);
Roslyn.VisualStudio.Next.UnitTests (2)
Services\ServiceHubServicesTests.cs (2)
428var analyzerReference = new TestGeneratorReference(generator); 767var analyzerReference = new TestGeneratorReference(generator);