9 references to AddReferences
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (8)
Compilation\CompilationAPITests.cs (8)
494comp = comp.AddReferences(Enumerable.Empty<MetadataReference>());
521compCollection = compCollection.AddReferences(hs).RemoveReferences(ref1, ref2, ref3, ref4);
527compCollection = compCollection.AddReferences(col).RemoveReferences(ref1, ref2, ref3);
538compCollection = compCollection.AddReferences(stack).RemoveReferences(ref1, ref3, ref2);
549compCollection = compCollection.AddReferences(queue).RemoveReferences(ref3, ref2, ref1);
970comp1 = comp1.AddReferences(listRef).AddSyntaxTrees(t1).RemoveReferences().RemoveSyntaxTrees();
1423comp = comp.AddReferences(listRef).AddReferences(ref2).RemoveReferences(ref1, ref3, ref4).ReplaceReference(ref2, ref2);
1427Assert.Throws<ArgumentException>(() => comp.AddReferences(listRef).AddReferences(ref2).RemoveReferences(ref1, ref2, ref3, ref4).ReplaceReference(ref2, ref2));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)