7 references to WithProjectDefaultNamespace
Microsoft.CodeAnalysis.Workspaces (3)
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
483
set => ChangeProjectProperty(ref _defaultNamespace, value, s => s.
WithProjectDefaultNamespace
(Id, value));
Workspace\Solution\Project.cs (1)
585
=> this.Solution.
WithProjectDefaultNamespace
(this.Id, defaultNamespace).GetRequiredProject(Id);
Workspace\Workspace.cs (1)
858
=> SetCurrentSolution(oldSolution => oldSolution.
WithProjectDefaultNamespace
(projectId, defaultNamespace), WorkspaceChangeKind.ProjectChanged, projectId);
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
SolutionTests\SolutionTests.cs (3)
1569
(s, value) => s.
WithProjectDefaultNamespace
(projectId, value),
1574
Assert.Throws<ArgumentNullException>("projectId", () => solution.
WithProjectDefaultNamespace
(null!, "x"));
1575
Assert.Throws<InvalidOperationException>(() => solution.
WithProjectDefaultNamespace
(ProjectId.CreateNewId(), "x"));
Roslyn.VisualStudio.Next.UnitTests (1)
Services\SolutionServiceTests.cs (1)
261
.
WithProjectDefaultNamespace
(projectId, "DefaultNamespace" + version)