10 references to WithDocumentFilePath
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\Document.cs (1)
435
=> this.Project.Solution.
WithDocumentFilePath
(this.Id, filePath).GetRequiredDocument(Id);
Microsoft.CodeAnalysis.Workspaces.UnitTests (8)
SolutionTests\SolutionTests.cs (8)
227
var newSolution1 = solution.
WithDocumentFilePath
(documentId, path);
231
var newSolution2 = newSolution1.
WithDocumentFilePath
(documentId, path);
234
var newSolution3 = solution.
WithDocumentFilePath
(documentId, "");
238
var newSolution4 = solution.
WithDocumentFilePath
(documentId, null);
242
Assert.Throws<ArgumentNullException>(() => solution.
WithDocumentFilePath
(null!, path));
243
Assert.Throws<InvalidOperationException>(() => solution.
WithDocumentFilePath
(s_unrelatedDocumentId, path));
3276
solution = solution.
WithDocumentFilePath
(documentId, NewFilePath);
3914
.
WithDocumentFilePath
(did, "document path");
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
DocumentOutline\DocumentOutlineTestsBase.cs (1)
107
solution = solution.
WithDocumentFilePath
(document.Id, PathRoot + document.Name);