6 references to WithProjectName
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
419
set => ChangeProjectProperty(ref _displayName, value, s => s.
WithProjectName
(Id, value));
Workspace\Workspace.cs (1)
852
=> SetCurrentSolution(oldSolution => oldSolution.
WithProjectName
(projectId, name).WithProjectFilePath(projectId, filePath), WorkspaceChangeKind.ProjectChanged, projectId);
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
SolutionTests\SolutionTests.cs (3)
1683
(s, value) => s.
WithProjectName
(projectId, value),
1688
Assert.Throws<ArgumentNullException>("projectId", () => solution.
WithProjectName
(null!, "x"));
1689
Assert.Throws<InvalidOperationException>(() => solution.
WithProjectName
(ProjectId.CreateNewId(), "x"));
Roslyn.VisualStudio.Next.UnitTests (1)
Services\SolutionServiceTests.cs (1)
255
.
WithProjectName
(projectId, "Name" + version)