15 references to WithReferences
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (8)
Emit\EditAndContinue\AssemblyReferencesTests.cs (7)
212
var compilation1 = compilation0.WithSource(src1).
WithReferences
(new[] { MscorlibRef, lib1.ToMetadataReference() });
213
var compilation2 = compilation1.WithSource(src2).
WithReferences
(new[] { MscorlibRef, lib2.ToMetadataReference() });
316
var compilation1 = compilation0.WithSource(src1).
WithReferences
(new[] { MscorlibRef, lib1.ToMetadataReference() });
317
var compilation2 = compilation1.WithSource(src2).
WithReferences
(new[] { MscorlibRef, lib2.ToMetadataReference() });
399
var compilation1 = compilation0.WithSource(src1).
WithReferences
(new[] { MscorlibRef, lib1.EmitToImageReference() });
400
var compilation2 = compilation1.WithSource(src2).
WithReferences
(new[] { MscorlibRef, lib2.EmitToImageReference() });
483
var compilation1 = compilation0.WithSource(src1).
WithReferences
(new[] { MscorlibRef, ref02, ref12 });
Emit\EditAndContinue\SymbolMatcherTests.cs (1)
339
var compilation1 = compilation0.WithSource(source).
WithReferences
(MscorlibRef, lib1.ToMetadataReference());
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Attributes\InternalsVisibleToAndStrongNameTests.cs (4)
2360
CompileAndVerify(other.
WithReferences
(new[] { other.References.ElementAt(0), new CSharpCompilationReference(unsigned) })).VerifyDiagnostics();
2362
CompileAndVerify(other.
WithReferences
(new[] { other.References.ElementAt(0), MetadataReference.CreateFromStream(unsigned.EmitToStream()) })).VerifyDiagnostics();
2388
var comps = new[] {other.
WithReferences
(new []{other.References.ElementAt(0), new CSharpCompilationReference(unsigned)}),
2389
other.
WithReferences
(new []{other.References.ElementAt(0), MetadataReference.CreateFromStream(unsigned.EmitToStream()) })};
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Compilation\CompilationAPITests.cs (3)
2045
var c2 = c1.
WithReferences
(new[] { MscorlibRef });
2048
var c3 = c2.
WithReferences
(new[] { MscorlibRef, SystemCoreRef });
2211
var c5 = c4.
WithReferences
(new[] { MscorlibRef, reference });