9 references to AddReferences
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (8)
Compilation\CompilationAPITests.cs (8)
495comp = comp.AddReferences(Enumerable.Empty<MetadataReference>());
522compCollection = compCollection.AddReferences(hs).RemoveReferences(ref1, ref2, ref3, ref4);
528compCollection = compCollection.AddReferences(col).RemoveReferences(ref1, ref2, ref3);
539compCollection = compCollection.AddReferences(stack).RemoveReferences(ref1, ref3, ref2);
550compCollection = compCollection.AddReferences(queue).RemoveReferences(ref3, ref2, ref1);
971comp1 = comp1.AddReferences(listRef).AddSyntaxTrees(t1).RemoveReferences().RemoveSyntaxTrees();
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));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)