8 references to RemoveDocuments
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Host\RemoteWorkspace.SolutionCreator.cs (1)
398
static (solution, documentIds) => solution.
RemoveDocuments
(documentIds),
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
588
static (s, ids) => s.
RemoveDocuments
(ids),
Workspace\Solution\Project.cs (1)
770
return this.Solution.
RemoveDocuments
(documentIds).GetRequiredProject(this.Id);
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
SolutionTests\SolutionTests.cs (5)
127
Assert.Throws<ArgumentNullException>(() => solution.
RemoveDocuments
(default));
128
Assert.Throws<InvalidOperationException>(() => solution.
RemoveDocuments
(ImmutableArray.Create(s_unrelatedDocumentId)));
129
Assert.Throws<ArgumentNullException>(() => solution.
RemoveDocuments
(ImmutableArray.Create((DocumentId)null!)));
2695
solution = solution.
RemoveDocuments
(ImmutableArray.Create(documentInfo1.Id, documentInfo2.Id));
2719
solution = solution.
RemoveDocuments
(ImmutableArray.Create(documentInfo1.Id, documentInfo2.Id));