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