1 write to Projects
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestWorkspace`1.cs (1)
87this.Projects = [];
29 references to Projects
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
CodeActions\SyncNamespace\CSharpSyncNamespaceTestsBase.cs (2)
143if (workspace.Projects.Count == 2) 146var dependentProject = workspace.Projects.Single(proj => proj.Id != project.Id);
MoveToNamespace\MoveToNamespaceTests.cs (1)
1445var testDocument = workspace.Projects.Single(p => p.Name == "Proj1").Documents.Single();
Workspaces\WorkspaceTests_EditorFeatures.cs (1)
1425AssertEx.SetEqual(workspace.Projects.SelectMany(p => p.Documents).Select(d => d.Id), eventArgs.Select(e => e.DocumentId));
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (1)
1062var projectId = workspace.Projects[0].Id;
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
AbstractCommandHandlerTestState.cs (1)
69var languageName = Workspace.Projects.First().Language;
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
353foreach (var project in workspace.Projects)
SpellCheck\AbstractSpellCheckSpanTests.cs (1)
26var annotations = workspace.Projects.Single().Documents.Single().AnnotatedSpans;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
CodeFixes\CodeFixServiceTests.cs (1)
350workspace.Projects.Single().AddAdditionalDocument(additionalDocument);
Diagnostics\SuppressMessageAttributeWorkspaceTests.cs (2)
62workspace.Projects.Single().Id, 63workspace.Projects.Single().MetadataReferences.Append(_unconditionalSuppressMessageRef.Value)));
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (4)
Workspaces\TestWorkspace`1.cs (4)
253if (!this.Projects.Contains(project)) 255this.Projects.Add(project); 332=> this.Projects.FirstOrDefault(p => p.Id == projectId); 656Projects.Add(project);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
DocumentOutline\DocumentOutlineTestsBase.cs (1)
112foreach (var project in workspace.Projects)
Microsoft.VisualStudio.LanguageServices.UnitTests (13)
SolutionExplorer\AnalyzerItemsSourceTests.vb (1)
26Dim project = workspace.Projects.Single()
SolutionExplorer\AnalyzerItemTests.vb (2)
25Dim project = workspace.Projects.Single() 44Dim project = workspace.Projects.Single()
SolutionExplorer\AnalyzersFolderItemTests.vb (2)
24Dim project = workspace.Projects.Single() 42Dim project = workspace.Projects.Single()
SolutionExplorer\CpsDiagnosticItemSourceTests.vb (1)
30Dim project = workspace.Projects.Single()
SolutionExplorer\SourceGeneratorItemTests.vb (7)
30Dim projectId = workspace.Projects.Single().Id 51Dim projectId = workspace.Projects.Single().Id 77Dim projectId = workspace.Projects.Single().Id 112Dim projectId = workspace.Projects.Single().Id 147Dim projectId = workspace.Projects.Single().Id 188Dim projectId = workspace.Projects.Single().Id 241Dim projectId = workspace.Projects.Single().Id