10 references to OnProjectReferenceAdded
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (8)
CodeActions\SyncNamespace\CSharpSyncNamespaceTestsBase.cs (1)
150workspace.OnProjectReferenceAdded(dependentProject.Id, new ProjectReference(project.Id));
Workspaces\WorkspaceTests_EditorFeatures.cs (7)
267Assert.Throws<ArgumentException>(() => workspace.OnProjectReferenceAdded(project1.Id, new ProjectReference(project2.Id))); 283workspace.OnProjectReferenceAdded(project1.Id, reference); 304workspace.OnProjectReferenceAdded(project1.Id, new ProjectReference(project2.Id)); 306Assert.Throws<ArgumentException>(() => workspace.OnProjectReferenceAdded(project1.Id, new ProjectReference(project2.Id))); 321workspace.OnProjectReferenceAdded(project1.Id, new ProjectReference(project2.Id)); 343workspace.OnProjectReferenceAdded(project1.Id, new ProjectReference(project2.Id)); 345Assert.Throws<ArgumentException>(() => workspace.OnProjectReferenceAdded(project2.Id, new ProjectReference(project1.Id)));
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Workspaces\TestWorkspace`1.cs (2)
693OnProjectReferenceAdded(fromProject.Id, new ProjectReference(toProject.Id, aliases.Any() ? aliases : default)); 708OnProjectReferenceAdded(submissions[i].Id, new ProjectReference(submissions[j].Id));