13 references to WithReferences
Microsoft.CodeAnalysis.CSharp.Emit2.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)
308
var compilation1 = compilation0.WithSource(source).
WithReferences
(MscorlibRef, lib1.ToMetadataReference());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\InternalsVisibleToAndStrongNameTests.cs (2)
2417
CompileAndVerify(other.
WithReferences
(new[] { other.References.ElementAt(0), MetadataReference.CreateFromStream(unsigned.EmitToStream()) })).VerifyDiagnostics();
2444
other.
WithReferences
(new []{other.References.ElementAt(0), MetadataReference.CreateFromStream(unsigned.EmitToStream()) })};
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Compilation\CompilationAPITests.cs (3)
2044
var c2 = c1.
WithReferences
(new[] { MscorlibRef });
2047
var c3 = c2.
WithReferences
(new[] { MscorlibRef, SystemCoreRef });
2210
var c5 = c4.
WithReferences
(new[] { MscorlibRef, reference });