10 references to WithDocumentFilePath
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\Document.cs (1)
416
=> this.Project.Solution.
WithDocumentFilePath
(this.Id, filePath).GetRequiredDocument(Id);
Microsoft.CodeAnalysis.Workspaces.UnitTests (8)
SolutionTests\SolutionTests.cs (8)
229
var newSolution1 = solution.
WithDocumentFilePath
(documentId, path);
233
var newSolution2 = newSolution1.
WithDocumentFilePath
(documentId, path);
236
var newSolution3 = solution.
WithDocumentFilePath
(documentId, "");
240
var newSolution4 = solution.
WithDocumentFilePath
(documentId, null);
244
Assert.Throws<ArgumentNullException>(() => solution.
WithDocumentFilePath
(null!, path));
245
Assert.Throws<InvalidOperationException>(() => solution.
WithDocumentFilePath
(s_unrelatedDocumentId, path));
3275
solution = solution.
WithDocumentFilePath
(documentId, NewFilePath);
3913
.
WithDocumentFilePath
(did, "document path");
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
DocumentOutline\DocumentOutlineTestsBase.cs (1)
106
solution = solution.
WithDocumentFilePath
(document.Id, PathRoot + document.Name);