46 references to AddReferences
Microsoft.AspNetCore.App.Analyzers.Test (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (37)
Compilation\CompilationAPITests.cs (19)
499comp = comp.AddReferences(ref1);
520compCollection = compCollection.AddReferences(ref1, ref2, ref3, ref4).RemoveReferences(hs);
530compCollection = compCollection.AddReferences(ref1, ref2, ref3).RemoveReferences(col);
541compCollection = compCollection.AddReferences(ref2, ref1, ref3).RemoveReferences(stack);
552compCollection = compCollection.AddReferences(ref2, ref1, ref3).RemoveReferences(queue);
957Assert.Throws<ArgumentException>(() => comp = comp.AddSyntaxTrees(listSyntaxTree).AddReferences().ReplaceSyntaxTree(t1, t2));
958comp = comp.AddSyntaxTrees(t1).AddReferences().ReplaceSyntaxTree(t1, t2);
1171comp = comp.AddReferences(item);
1202comp = comp.AddReferences(ref1);
1219comp = comp.AddReferences(modRef1);
1297Assert.Throws<ArgumentException>(() => comp.AddReferences(compRef));
1382Assert.Throws<ArgumentException>(() => comp.AddReferences(compRef));
1416comp = comp.AddReferences(ref1, ref1);
1424comp = comp.AddReferences(listRef).AddReferences(ref2).RemoveReferences(ref1, ref3, ref4).ReplaceReference(ref2, ref2);
1428Assert.Throws<ArgumentException>(() => comp.AddReferences(listRef).AddReferences(ref2).RemoveReferences(ref1, ref2, ref3, ref4).ReplaceReference(ref2, ref2));
1440comp = comp.AddReferences(ref1);
2050c3 = c2.AddReferences(SystemCoreRef);
2351comp = comp.AddReferences(metadata);
2357comp2 = comp2.AddReferences(metadata);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (4)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
WinShimmer (1)