27 references to AdditionalDocuments
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (7)
Workspaces\WorkspaceTests_EditorFeatures.cs (7)
1056Assert.Equal(1, project.AdditionalDocuments.Count()); 1244Assert.Equal(2, workspace.CurrentSolution.GetProject(project1.Id).AdditionalDocuments.Count()); 1254Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).AdditionalDocuments.Count()); 1255Assert.Equal("original.config", workspace.CurrentSolution.GetProject(project1.Id).AdditionalDocuments.Single().Name); 1313Assert.Equal(2, workspace.CurrentSolution.GetProject(project1.Id).AdditionalDocuments.Count()); 1320Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).AdditionalDocuments.Count()); 1321Assert.Equal("original.config", workspace.CurrentSolution.GetProject(project1.Id).AdditionalDocuments.Single().Name);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (6)
CodeFixes\CodeFixServiceTests.cs (1)
402TextDocumentKind.AdditionalDocument => project.AdditionalDocuments.Single(),
CodeRefactorings\CodeRefactoringServiceTest.cs (2)
171var txtAdditionalDocument = project.AdditionalDocuments.Single(t => t.Name == "test.txt"); 186var logAdditionalDocument = project.AdditionalDocuments.Single(t => t.Name == "test.log");
Diagnostics\DiagnosticAnalyzerServiceTests.cs (3)
451var firstAdditionalDocument = project.AdditionalDocuments.FirstOrDefault(); 464foreach (var additionalDoc in project.AdditionalDocuments) 753var additionalDocument = project.AdditionalDocuments.Single();
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Diagnostics\AdditionalFileDiagnosticsTests.vb (1)
115Dim appConfigDoc = project.AdditionalDocuments.Where(Function(d) d.Name.EndsWith("app.config", StringComparison.InvariantCultureIgnoreCase)).FirstOrDefault()
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\Diagnostics\DiagnosticSourceProviders\WorkspaceDocumentsAndProjectDiagnosticSourceProvider.cs (1)
77AddDocumentSources(project.AdditionalDocuments);
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Host\TestUtils.cs (1)
236foreach (var document in project.Documents.Concat(project.AdditionalDocuments).Concat(project.AnalyzerConfigDocuments))
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Workspace.cs (1)
2005additionalDocuments: project.AdditionalDocuments.Select(CreateDocumentInfoWithText),
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (8)
VisualStudioMSBuildWorkspaceTests.cs (8)
284Assert.All(project.AdditionalDocuments, d => Assert.Equal(SourceHashAlgorithm.Sha1, d.GetTextSynchronously(default).ChecksumAlgorithm)); 2141var documents = solution.GetProjectsByName("CSharpProject").FirstOrDefault().AdditionalDocuments.ToList(); 2209var xaml = workspace.CurrentSolution.GetProject(csProjectId).AdditionalDocuments.FirstOrDefault(d => d.Name == "XamlFile.xaml"); 2351var doc = Assert.Single(proj.AdditionalDocuments); 2374var additionalDocument = project.AdditionalDocuments.Single(a => a.Name == "XamlFile.xaml"); 2393var adoc = proj.AdditionalDocuments.First(a => a.Name == "XamlFile.xaml"); 3197Assert.Contains(project.AdditionalDocuments, doc => doc.Name == "COM1"); 3198Assert.Contains(project.AdditionalDocuments, doc => doc.Name == "TEST::");
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
SolutionTests\SolutionTests.cs (1)
4260Assert.Empty(frozenDocument.Project.AdditionalDocuments);
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
206project = project.AdditionalDocuments.First().WithAdditionalDocumentText(SourceText.From("Changed text!")).Project;