11 references to WithDocumentFilePath
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Solution\Document.cs (1)
435
=> this.Project.Solution.
WithDocumentFilePath
(this.Id, filePath).GetRequiredDocument(Id);
Workspace\Workspace.cs (1)
1154
newSolution = newSolution.
WithDocumentFilePath
(documentId, newInfo.FilePath);
Microsoft.CodeAnalysis.Workspaces.UnitTests (9)
SolutionTests\SolutionTests.cs (9)
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));
3301
solution = solution.
WithDocumentFilePath
(documentId, NewFilePath);
3939
.
WithDocumentFilePath
(did, "document path");
4967
solution = solution.
WithDocumentFilePath
(documentId, @"Z:\NewPath.txt");