429 references to MscorlibRef
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (123)
CodeGen\CodeGenTupleTest.cs (80)
4106
references: new[] {
MscorlibRef
, ValueTupleRef, SystemRuntimeFacadeRef, SystemCoreRef });
5788
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
}); // no ValueTuple
5814
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
, tupleComp.ToMetadataReference() });
5851
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
, tupleComp.ToMetadataReference() });
5868
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
, tupleComp.ToMetadataReference() });
5903
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
, tupleComp.ToMetadataReference() });
5938
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
, tupleComp.EmitToImageReference() });
5946
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
}); // no ValueTuple
5967
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
}); // no ValueTuple
5986
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
}); // no ValueTuple
6005
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
}); // no ValueTuple
6023
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
}); // no ValueTuple
6049
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
, tupleComp.ToMetadataReference() });
6075
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
}); // no ValueTuple
6100
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
}); // no ValueTuple
6125
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
}); // no ValueTuple
6151
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
}); // no ValueTuple
6184
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
, tupleComp.ToMetadataReference() });
6208
var comp = (Compilation)CSharpCompilation.Create("test", references: new[] {
MscorlibRef
, TestReferences.SymbolsTests.netModule.netModule1 });
6268
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
});
6290
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
});
6313
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
});
6330
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
});
6338
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
}); // no ValueTuple
6362
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
, tupleComp.ToMetadataReference() });
6381
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
, tupleComp.ToMetadataReference() });
6411
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
}); // no ValueTuple
6427
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
}); // no ValueTuple
6443
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
}); // no ValueTuple
6458
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
}); // no ValueTuple
6478
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
}); // no ValueTuple
6498
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
}); // no ValueTuple
6519
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
}); // no ValueTuple
6541
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
, tupleComp.ToMetadataReference() });
6558
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
});
6583
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
});
6933
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
});
18841
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
, tupleComp.ToMetadataReference() });
18859
var comp = (Compilation)CSharpCompilation.Create("test", references: new[] {
MscorlibRef
, tupleComp.ToMetadataReference() });
18879
var comp = (Compilation)CSharpCompilation.Create("test", references: new[] {
MscorlibRef
, tupleComp.ToMetadataReference() });
18902
var comp = CSharpCompilation.Create("test", references: new[] {
MscorlibRef
, tupleComp.ToMetadataReference() });
18919
var comp = (Compilation)CSharpCompilation.Create("test", references: new[] {
MscorlibRef
, tupleComp.ToMetadataReference() });
18945
var comp = (Compilation)CSharpCompilation.Create("test", references: new[] {
MscorlibRef
, tupleComp1.ToMetadataReference(), tupleComp2.ToMetadataReference() });
18970
var comp = (Compilation)CSharpCompilation.Create("test", references: new[] {
MscorlibRef
, tupleComp1.ToMetadataReference(), tupleComp2.ToMetadataReference() });
18995
var comp = (Compilation)CSharpCompilation.Create("test", references: new[] {
MscorlibRef
, tupleComp1.ToMetadataReference(), tupleComp2.ToMetadataReference() });
19021
var comp = (Compilation)CSharpCompilation.Create("test", references: new[] {
MscorlibRef
, tupleComp1.ToMetadataReference(), tupleComp2.ToMetadataReference() });
19137
var comp = (Compilation)CSharpCompilation.Create("test", syntaxTrees: new[] { tree }, references: new[] {
MscorlibRef
, tupleComp1.ToMetadataReference() });
19176
var comp = (Compilation)CSharpCompilation.Create("test", syntaxTrees: new[] { tree }, references: new[] {
MscorlibRef
, tupleComp1.ToMetadataReference() });
25689
references: new[] {
MscorlibRef
, ValueTupleRef, SystemRuntimeFacadeRef });
25734
references: new[] {
MscorlibRef
, ValueTupleRef, SystemRuntimeFacadeRef });
25760
references: new[] {
MscorlibRef
, ValueTupleRef, SystemRuntimeFacadeRef });
25805
references: new[] {
MscorlibRef
, ValueTupleRef, SystemRuntimeFacadeRef });
25831
references: new[] {
MscorlibRef
, ValueTupleRef, SystemRuntimeFacadeRef });
25870
references: new[] {
MscorlibRef
, ValueTupleRef, SystemRuntimeFacadeRef });
25903
references: new[] {
MscorlibRef
, ValueTupleRef, SystemRuntimeFacadeRef });
26669
var vtLib = CreateEmptyCompilation(trivial2uple + tupleattributes_cs, references: new[] {
MscorlibRef
}, assemblyName: "vt");
26681
var lib = CreateEmptyCompilation(lib_cs, references: new[] {
MscorlibRef
, vtLib.EmitToImageReference() });
26692
var comp = CreateEmptyCompilation(client_cs, references: new[] {
MscorlibRef
, lib.EmitToImageReference() }); // missing reference to vt
26696
var compWithMetadataReference = CreateEmptyCompilation(client_cs, references: new[] {
MscorlibRef
, lib.ToMetadataReference() }); // missing reference to vt
26700
var fakeVtLib = CreateEmptyCompilation("", references: new[] {
MscorlibRef
}, assemblyName: "vt");
26701
var compWithFakeVt = CreateEmptyCompilation(client_cs, references: new[] {
MscorlibRef
, lib.EmitToImageReference(), fakeVtLib.EmitToImageReference() }); // reference to fake vt
26716
var comp2 = CreateEmptyCompilation(client2_cs, references: new[] {
MscorlibRef
, lib.EmitToImageReference() }); // missing reference to vt
26727
var comp2WithFakeVt = CreateEmptyCompilation(client2_cs, references: new[] {
MscorlibRef
, lib.EmitToImageReference(), fakeVtLib.EmitToImageReference() }); // reference to fake vt
26771
var vtLib = CreateEmptyCompilation(tuplelib_cs + tupleattributes_cs, references: new[] {
MscorlibRef
}, assemblyName: "vt");
26783
var lib = CreateEmptyCompilation(lib_cs, references: new[] {
MscorlibRef
, vtLib.EmitToImageReference() });
26797
var fakeVtLib = CreateEmptyCompilation("", references: new[] {
MscorlibRef
}, assemblyName: "vt");
26798
var comp = CreateEmptyCompilation(client2_cs, references: new[] {
MscorlibRef
, lib.EmitToImageReference() }); // missing reference to vt
26809
var compWithFakeVt = CreateEmptyCompilation(client2_cs, references: new[] {
MscorlibRef
, lib.EmitToImageReference(), fakeVtLib.EmitToImageReference() }); // reference to fake vt
26835
var containerLib = CreateEmptyCompilation("public class Container<T> { }", references: new[] {
MscorlibRef
}, assemblyName: "container");
26847
var lib = CreateEmptyCompilation(lib_cs + tuplelib_cs + tupleattributes_cs, references: new[] {
MscorlibRef
, containerLib.EmitToImageReference() });
26858
var comp = CreateEmptyCompilation(client_cs, references: new[] {
MscorlibRef
, lib.EmitToImageReference() }); // missing reference to container
26862
var compWithMetadataReference = CreateEmptyCompilation(client_cs, references: new[] {
MscorlibRef
, lib.ToMetadataReference() }); // missing reference to container
26866
var fakeContainerLib = CreateEmptyCompilation("", references: new[] {
MscorlibRef
}, assemblyName: "container");
26867
var compWithFakeContainer = CreateEmptyCompilation(client_cs, references: new[] {
MscorlibRef
, lib.EmitToImageReference(), fakeContainerLib.EmitToImageReference() }); // reference to fake container
26910
var containerLib = CreateEmptyCompilation("public class Container<T> { public class Contained<U> { } }", references: new[] {
MscorlibRef
}, assemblyName: "container");
26922
var lib = CreateEmptyCompilation(lib_cs + tuplelib_cs + tupleattributes_cs, references: new[] {
MscorlibRef
, containerLib.EmitToImageReference() });
26933
var comp = CreateEmptyCompilation(client_cs, references: new[] {
MscorlibRef
, lib.EmitToImageReference() }); // missing reference to container
26937
var compWithMetadataReference = CreateEmptyCompilation(client_cs, references: new[] {
MscorlibRef
, lib.ToMetadataReference() }); // missing reference to container
26941
var fakeContainerLib = CreateEmptyCompilation("", references: new[] {
MscorlibRef
}, assemblyName: "container");
26942
var compWithFakeContainer = CreateEmptyCompilation(client_cs, references: new[] {
MscorlibRef
, lib.EmitToImageReference(), fakeContainerLib.EmitToImageReference() }); // reference to fake container
Emit\CompilationEmitTests.cs (34)
896
var compWithMetadata = CreateEmptyCompilation("", references: new[] {
MscorlibRef
, metadataRef },
1806
referencedAssemblies: new[] {
MscorlibRef
});
1815
referencedAssemblies: new[] {
MscorlibRef
, image1 });
1825
referencedAssemblies: new[] {
MscorlibRef
, image1, image2 });
2123
CSharpCompilation comp = CreateEmptyCompilation(source, references: new[] {
MscorlibRef
},
2132
var compWithReal = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] {
MscorlibRef
, realImage },
2163
var compWithReal2 = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] {
MscorlibRef
, realImage2 },
2191
var compWithMetadata = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] {
MscorlibRef
, metadataImage },
2220
var compWithRef = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] {
MscorlibRef
, refImage },
2262
CSharpCompilation comp = CreateEmptyCompilation(source, parseOptions: parseOptions, references: new[] {
MscorlibRef
},
2269
var compWithReal = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] {
MscorlibRef
, realImage },
2279
var compWithMetadata = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] {
MscorlibRef
, metadataImage },
2291
var compWithRef = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] {
MscorlibRef
, refImage },
2329
CSharpCompilation comp = CreateEmptyCompilation(source, parseOptions: parseOptions, references: new[] {
MscorlibRef
},
2336
var compWithReal = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] {
MscorlibRef
, realImage },
2346
var compWithMetadata = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] {
MscorlibRef
, metadataImage },
2358
var compWithRef = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] {
MscorlibRef
, refImage },
2396
CSharpCompilation comp = CreateEmptyCompilation(source, parseOptions: parseOptions, references: new[] {
MscorlibRef
},
2403
var compWithReal = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] {
MscorlibRef
, realImage },
2413
var compWithMetadata = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] {
MscorlibRef
, metadataImage },
2425
var compWithRef = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] {
MscorlibRef
, refImage },
2456
CSharpCompilation comp = CreateEmptyCompilation(source, parseOptions: parseOptions, references: new[] {
MscorlibRef
},
2464
var compWithRef = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] {
MscorlibRef
, refImage },
2501
CSharpCompilation comp = CreateEmptyCompilation(source, parseOptions: parseOptions, references: new[] {
MscorlibRef
},
2509
var compWithRef = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] {
MscorlibRef
, refImage },
2523
CSharpCompilation comp = CreateEmptyCompilation("", references: new[] {
MscorlibRef
},
2537
CSharpCompilation comp = CreateEmptyCompilation("", references: new[] {
MscorlibRef
},
2551
CSharpCompilation comp = CreateEmptyCompilation("", references: new[] {
MscorlibRef
},
2566
CSharpCompilation comp = CreateEmptyCompilation("", references: new[] {
MscorlibRef
},
2579
CSharpCompilation comp = CreateEmptyCompilation("", references: new[] {
MscorlibRef
},
2593
CSharpCompilation comp = CreateEmptyCompilation("", references: new[] {
MscorlibRef
},
2606
CSharpCompilation comp = CreateEmptyCompilation("", references: new[] {
MscorlibRef
},
2632
CSharpCompilation comp = CreateEmptyCompilation("", references: new[] {
MscorlibRef
},
2652
CSharpCompilation comp = CreateEmptyCompilation(source, references: new[] {
MscorlibRef
},
Emit\DeterministicTests.cs (4)
38
references: new[] {
MscorlibRef
},
55
var compilation = CreateEmptyCompilation(source, assemblyName: "DeterminismTest", references: new[] {
MscorlibRef
, SystemCoreRef, CSharpRef }, options: options);
76
assemblyName: "DeterminismTest", references: new[] {
MscorlibRef
},
81
references: new[] {
MscorlibRef
},
Emit\ResourceTests.cs (5)
290
var c1 = CSharpCompilation.Create("goo", references: new[] {
MscorlibRef
}, options: TestOptions.ReleaseDll);
454
new[] {
MscorlibRef
},
498
new[] {
MscorlibRef
},
547
new[] {
MscorlibRef
},
604
new[] {
MscorlibRef
},
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (19)
Emit\EditAndContinue\AssemblyReferencesTests.cs (14)
43
var references = new[] { SystemWindowsFormsRef,
MscorlibRef
, SystemCoreRef };
137
var md1 = AssemblyMetadata.CreateFromStream(CreateEmptyCompilation(srcPE, parseOptions: parseOptions, references: new[] {
MscorlibRef
, SystemRef }).EmitToStream());
139
var compilation0 = CreateEmptyCompilation(src1, parseOptions: parseOptions, references: new[] {
MscorlibRef
});
211
var compilation0 = CreateEmptyCompilation(src0, new[] {
MscorlibRef
, lib0.ToMetadataReference() }, assemblyName: "C", options: TestOptions.DebugDll);
212
var compilation1 = compilation0.WithSource(src1).WithReferences(new[] {
MscorlibRef
, lib1.ToMetadataReference() });
213
var compilation2 = compilation1.WithSource(src2).WithReferences(new[] {
MscorlibRef
, lib2.ToMetadataReference() });
315
var compilation0 = CreateEmptyCompilation(src0, new[] {
MscorlibRef
, lib0.ToMetadataReference() }, assemblyName: "C", options: TestOptions.DebugDll);
316
var compilation1 = compilation0.WithSource(src1).WithReferences(new[] {
MscorlibRef
, lib1.ToMetadataReference() });
317
var compilation2 = compilation1.WithSource(src2).WithReferences(new[] {
MscorlibRef
, lib2.ToMetadataReference() });
398
var compilation0 = CreateEmptyCompilation(src0, new[] {
MscorlibRef
, lib0.EmitToImageReference() }, assemblyName: "C", options: TestOptions.DebugDll);
399
var compilation1 = compilation0.WithSource(src1).WithReferences(new[] {
MscorlibRef
, lib1.EmitToImageReference() });
400
var compilation2 = compilation1.WithSource(src2).WithReferences(new[] {
MscorlibRef
, lib2.EmitToImageReference() });
482
var compilation0 = CreateEmptyCompilation(src0, new[] {
MscorlibRef
, ref01, ref11 }, assemblyName: "C", options: TestOptions.DebugDll);
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());
PDB\CheckSumTest.cs (2)
25
new[] {
MscorlibRef
},
303
new[] {
MscorlibRef
},
PDB\PDBTests.cs (2)
50
var comp = CSharpCompilation.Create("Compilation", new[] { tree1, tree2, tree3, tree4 }, new[] {
MscorlibRef
}, options: TestOptions.ReleaseDll);
70
var comp = CSharpCompilation.Create("Compilation", new[] { tree1, tree2, tree3, tree4 }, new[] {
MscorlibRef
}, options: TestOptions.ReleaseDll);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (11)
Attributes\AttributeTests.cs (3)
4882
references: new[] {
MscorlibRef
},
4887
var metadataStream2 = CSharpCompilation.Create("goo.dll", references: new[] {
MscorlibRef
, ref1 },
4896
var compilation = CSharpCompilation.Create("moo.dll", references: new[] {
MscorlibRef
, ref1, ref2 });
Attributes\AttributeTests_Security.cs (2)
1506
new[] {
MscorlibRef
},
1628
new[] {
MscorlibRef
},
Attributes\AttributeTests_WellKnownAttributes.cs (2)
10284
var cscomp = CreateEmptyCompilation(cssource, new[] {
MscorlibRef
, ilReference }, TestOptions.ReleaseExe);
10392
var cscomp = CreateEmptyCompilation(cssource, new[] {
MscorlibRef
, ilReference }, TestOptions.ReleaseExe);
Attributes\InternalsVisibleToAndStrongNameTests.cs (4)
151
new[] {
MscorlibRef
},
181
new[] {
MscorlibRef
},
310
new[] {
MscorlibRef
},
357
new[] {
MscorlibRef
},
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IParameterReferenceExpression.cs (1)
987
references: new[] {
MscorlibRef
, SystemRef, compilation0.EmitToImageReference(embedInteropTypes: true) });
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (2)
ScriptTests.cs (2)
198
, ScriptOptions.WithReferences(
MscorlibRef
, SystemRef, SystemCoreRef, CSharpRef));
213
, ScriptOptions.WithReferences(
MscorlibRef
, SystemRef, SystemCoreRef, CSharpRef));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (11)
Semantics\AccessibilityTests.cs (1)
69
references: new MetadataReference[] {
MscorlibRef
}).GetWellKnownType(WellKnownType.System_Exception);
Semantics\LambdaTests.cs (2)
512
references: new[] {
MscorlibRef
},
562
references: new[] {
MscorlibRef
},
Semantics\NullableReferenceTypesTests.cs (2)
116730
var compilation6 = CreateEmptyCompilation(source2, options: WithNullableEnable(TestOptions.ReleaseDll), references: new[] { compilation1.EmitToImageReference(),
MscorlibRef
});
116760
var compilation7 = CreateEmptyCompilation(source2, options: WithNullableEnable(TestOptions.ReleaseDll), references: new[] { compilation1.ToMetadataReference(),
MscorlibRef
});
Semantics\RefLocalsAndReturnsTests.cs (1)
1998
var comp = CreateCompilation(text, targetFramework: TargetFramework.Empty, references: new[] {
MscorlibRef
, SystemCoreRef });
Semantics\StructsTests.cs (2)
383
new[] {
MscorlibRef
, new CSharpCompilationReference(c1) },
390
var mscorlibAssembly = c2.GetReferencedAssemblySymbol(
MscorlibRef
);
Semantics\SwitchTests.cs (1)
2420
references: new[] {
MscorlibRef
, SystemCoreRef });
Semantics\UseSiteErrorTests.cs (2)
2389
var compilation6 = CreateEmptyCompilation(source2, parseOptions: parseOptions, options: TestOptions.ReleaseDll, references: new[] { compilation1.EmitToImageReference(),
MscorlibRef
});
2419
var compilation7 = CreateEmptyCompilation(source2, parseOptions: parseOptions, options: TestOptions.ReleaseDll, references: new[] { compilation1.ToMetadataReference(),
MscorlibRef
});
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (192)
BadSymbolReference.cs (6)
742
MscorlibRef
,
796
var libRef = CreateEmptyCompilation(libSource, new[] {
MscorlibRef
}, assemblyName: "System.Drawing").EmitToImageReference();
798
var comp1 = CreateEmptyCompilation(project1Source, new[] {
MscorlibRef
, libRef }, assemblyName: "Project1");
801
var comp2 = CreateEmptyCompilation(project2Source, new[] {
MscorlibRef
, libRef }, assemblyName: "Project2");
806
var comp3 = CreateEmptyCompilation(project3Source, new[] {
MscorlibRef
, comp1.ToMetadataReference(), comp2.ToMetadataReference() }, assemblyName: "Project3");
815
var comp3 = CreateEmptyCompilation(project3Source, new[] {
MscorlibRef
, comp1.EmitToImageReference(), comp2.EmitToImageReference() }, assemblyName: "Project3");
Compilation\CompilationAPITests.cs (27)
387
new[] {
MscorlibRef
});
615
references: new MetadataReference[] {
MscorlibRef
});
625
references: new MetadataReference[] {
MscorlibRef
, mtref }
636
references: new MetadataReference[] {
MscorlibRef
, mtref }
649
references: new MetadataReference[] {
MscorlibRef
, mtref }
683
references: new MetadataReference[] {
MscorlibRef
});
693
references: new MetadataReference[] {
MscorlibRef
, mtref }
704
references: new MetadataReference[] {
MscorlibRef
, mtref }
717
references: new MetadataReference[] {
MscorlibRef
, mtref }
1351
Assert.Null(comp.GetReferencedAssemblySymbol(reference:
MscorlibRef
));
1443
Assert.Throws<ArgumentException>(() => comp = comp.ReplaceReference(
MscorlibRef
, ref1));
1690
var compilation = CSharpCompilation.Create(assemblyName: null, options: TestOptions.ReleaseModule, syntaxTrees: new[] { Parse(source) }, references: new[] {
MscorlibRef
});
1698
compilation = CSharpCompilation.Create(assemblyName: null, options: TestOptions.ReleaseDll, syntaxTrees: new[] { Parse(source) }, references: new[] {
MscorlibRef
});
1706
compilation = CSharpCompilation.Create(assemblyName: "ModuleAssemblyName", options: TestOptions.ReleaseModule, syntaxTrees: new[] { Parse(source) }, references: new[] {
MscorlibRef
});
1811
references: new[] {
MscorlibRef
},
1835
references: new[] {
MscorlibRef
},
1902
var comp = CreateEmptyCompilation(text, references: new[] {
MscorlibRef
, alias });
2044
var c2 = c1.WithReferences(new[] {
MscorlibRef
});
2047
var c3 = c2.WithReferences(new[] {
MscorlibRef
, SystemCoreRef });
2056
c3 = c2.ReplaceReference(
MscorlibRef
, SystemCoreRef);
2059
c3 = c2.RemoveReferences(
MscorlibRef
);
2206
var c1 = CreateEmptyCompilation("public class Main { public static C C; }", new[] {
MscorlibRef
, reference, reference });
2210
var c5 = c4.WithReferences(new[] {
MscorlibRef
, reference });
2237
var c = CSharpCompilation.Create("Goo", references: new[] {
MscorlibRef
, mdModule.GetReference(display: "ModuleCS00") }, options: TestOptions.ReleaseDll);
2293
references: new[] {
MscorlibRef
, NetFramework.System },
2385
CSharpCompilation.Create(assemblyName, new[] { tree1, tree2 }, new[] {
MscorlibRef
}, compilationOptions);
2388
CSharpCompilation.Create(assemblyName, new[] { tree1, tree3 }, new[] {
MscorlibRef
}, compilationOptions);
Compilation\GetUnusedImportDirectivesTests.cs (1)
122
var comp = CreateEmptyCompilation(text, new[] {
MscorlibRef
});
Compilation\ReferenceManagerTests.cs (65)
745
var compilation = CreateEmptyCompilation(tree, new[] {
MscorlibRef
, r1, r2_SysCore }, TestOptions.DebugExe, assemblyName: "Test");
1336
references: new[] {
MscorlibRef
, SystemCoreRef, SystemRef });
2248
CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public class C {}", new[] {
MscorlibRef
}, assemblyName: "C").EmitToImageReference(),
2249
CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""2.0.0.0"")] public class C {}", new[] {
MscorlibRef
}, assemblyName: "C").ToMetadataReference(),
2266
CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""0.0.0.0"")] public class C {}", new[] {
MscorlibRef
}, assemblyName: "C").ToMetadataReference(),
2267
CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""2.0.0.1"")] public class C {}", new[] {
MscorlibRef
}, assemblyName: "C").ToMetadataReference(),
2268
CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public class C {}", new[] {
MscorlibRef
}, assemblyName: "C").ToMetadataReference(),
2269
CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""2.0.0.0"")] public class C {}", new[] {
MscorlibRef
}, assemblyName: "C").ToMetadataReference(),
2270
CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.1.0.0"")] public class C {}", new[] {
MscorlibRef
}, assemblyName: "C").ToMetadataReference().
2398
MscorlibRef
,
2434
MscorlibRef
,
2472
MscorlibRef
,
2511
MscorlibRef
,
2577
var b1Ref = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public class B { }", new[] {
MscorlibRef
}, options: s_signedDll, assemblyName: "B").EmitToImageReference();
2578
var b2Ref = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""2.0.0.0"")] public class B { }", new[] {
MscorlibRef
}, options: s_signedDll, assemblyName: "B").EmitToImageReference();
2579
var b3Ref = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""3.0.0.0"")] public class B { }", new[] {
MscorlibRef
}, options: s_signedDll, assemblyName: "B").EmitToImageReference();
2581
var aRef = CreateEmptyCompilation("public class A : B { }", new[] {
MscorlibRef
, b1Ref }, assemblyName: "A").EmitToImageReference();
2582
var dRef = CreateEmptyCompilation("public class D : B { }", new[] {
MscorlibRef
, b2Ref }, assemblyName: "D").EmitToImageReference();
2601
", new[] {
MscorlibRef
, aRef, dRef },
2631
var b1Ref = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public interface B { }", new[] {
MscorlibRef
}, assemblyName: "B").EmitToImageReference();
2632
var b2Ref = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""2.0.0.0"")] public interface B { }", new[] {
MscorlibRef
}, assemblyName: "B").EmitToImageReference();
2633
var b3Ref = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""3.0.0.0"")] public interface B { }", new[] {
MscorlibRef
}, assemblyName: "B").EmitToImageReference();
2634
var b4Ref = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""4.0.0.0"")] public interface B { }", new[] {
MscorlibRef
}, assemblyName: "B").EmitToImageReference();
2636
var aRef = CreateEmptyCompilation(@"public interface A : B { }", new[] {
MscorlibRef
, b1Ref }, assemblyName: "A").EmitToImageReference();
2637
var dRef = CreateEmptyCompilation(@"public interface D : B { }", new[] {
MscorlibRef
, b2Ref }, assemblyName: "D").EmitToImageReference();
2667
var b1Ref = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public interface B { }", new[] {
MscorlibRef
}, assemblyName: "B").EmitToImageReference();
2668
var b2Ref = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""2.0.0.0"")] public interface B { }", new[] {
MscorlibRef
}, assemblyName: "B").EmitToImageReference();
2669
var b3Ref = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""3.0.0.0"")] public interface B { }", new[] {
MscorlibRef
}, assemblyName: "B").EmitToImageReference();
2670
var b4Ref = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""4.0.0.0"")] public interface B { }", new[] {
MscorlibRef
}, assemblyName: "B").EmitToImageReference();
2672
var aRef = CreateEmptyCompilation(@"public interface A : B { }", new[] {
MscorlibRef
, b1Ref }, assemblyName: "A").EmitToImageReference();
2673
var dRef = CreateEmptyCompilation(@"public interface D : B { }", new[] {
MscorlibRef
, b2Ref }, assemblyName: "D").EmitToImageReference();
2873
var b1Ref = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public interface B { }", new[] {
MscorlibRef
}, options: s_signedDll, assemblyName: "B").EmitToImageReference();
2874
var b2Ref = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""2.0.0.0"")] public interface B { }", new[] {
MscorlibRef
}, options: s_signedDll, assemblyName: "B").EmitToImageReference();
2876
var dRef = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public interface D : B { }", new[] {
MscorlibRef
, b2Ref }, options: s_signedDll, assemblyName: "D").EmitToImageReference();
2877
var eRef = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public interface E : B { }", new[] {
MscorlibRef
, b1Ref }, options: s_signedDll, assemblyName: "E").EmitToImageReference();
2885
var aRef = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public interface A : D, E { }", new[] {
MscorlibRef
, dRef, eRef },
2896
var c = CreateEmptyCompilation("public class C : A { }", new[] {
MscorlibRef
, aRef, b1Ref },
2939
var b1Ref = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public interface B { }", references: new[] {
MscorlibRef
}, options: s_signedDll, assemblyName: "B").EmitToImageReference();
2940
var b2Ref = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""2.0.0.0"")] public interface B { }", references: new[] {
MscorlibRef
}, options: s_signedDll, assemblyName: "B").EmitToImageReference();
2942
var dRef = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public interface D : B { }", new[] {
MscorlibRef
, b2Ref }, options: s_signedDll, assemblyName: "D").EmitToImageReference();
2943
var eRef = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public interface E : B { }", new[] {
MscorlibRef
, b1Ref }, options: s_signedDll, assemblyName: "E").EmitToImageReference();
2951
var aRef = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public interface A : D, E { }", new[] {
MscorlibRef
, dRef, eRef },
2962
var c = CreateEmptyCompilation("public class C : A { }", new[] {
MscorlibRef
, aRef, b2Ref },
2999
var b1Ref = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public interface B { }", new[] {
MscorlibRef
}, options: s_signedDll, assemblyName: "B").EmitToImageReference();
3000
var b2Ref = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""2.0.0.0"")] public interface B { }", new[] {
MscorlibRef
}, options: s_signedDll, assemblyName: "B").EmitToImageReference();
3002
var dRef = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public interface D : B { }", new[] {
MscorlibRef
, b2Ref }, options: s_signedDll, assemblyName: "D").EmitToImageReference();
3003
var eRef = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public interface E : B { }", new[] {
MscorlibRef
, b1Ref }, options: s_signedDll, assemblyName: "E").EmitToImageReference();
3005
var aRef = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public interface A : D, E { }", new[] {
MscorlibRef
, dRef, eRef, b1Ref, b2Ref },
3043
var b1Ref = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public interface B { }", new[] {
MscorlibRef
}, options: s_signedDll, assemblyName: "B").EmitToImageReference();
3044
var b2Ref = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""2.0.0.0"")] public interface B { }", new[] {
MscorlibRef
}, options: s_signedDll, assemblyName: "B").EmitToImageReference();
3045
var b3Ref = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""3.0.0.0"")] public interface B { }", new[] {
MscorlibRef
}, options: s_signedDll, assemblyName: "B").EmitToImageReference();
3046
var b4Ref = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""4.0.0.0"")] public interface B { }", new[] {
MscorlibRef
}, options: s_signedDll, assemblyName: "B").EmitToImageReference();
3048
var dRef = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public interface D : B { }", new[] {
MscorlibRef
, b2Ref }, options: s_signedDll, assemblyName: "D").EmitToImageReference();
3049
var eRef = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public interface E : B { }", new[] {
MscorlibRef
, b1Ref }, options: s_signedDll, assemblyName: "E").EmitToImageReference();
3051
var aRef = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public interface A : D, E { }", new[] {
MscorlibRef
, dRef, eRef, b1Ref, b2Ref },
3062
var c = CreateEmptyCompilation("public class C : A { }", new[] {
MscorlibRef
, aRef },
3109
var b1Ref = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public interface B { }", new[] {
MscorlibRef
}, options: s_signedDll, assemblyName: "B").EmitToImageReference();
3110
var b2Ref = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""2.0.0.0"")] public interface B { }", new[] {
MscorlibRef
}, options: s_signedDll, assemblyName: "B").EmitToImageReference();
3111
var b3Ref = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""3.0.0.0"")] public interface B { }", new[] {
MscorlibRef
}, options: s_signedDll, assemblyName: "B").EmitToImageReference();
3112
var b4Ref = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""4.0.0.0"")] public interface B { }", new[] {
MscorlibRef
}, options: s_signedDll, assemblyName: "B").EmitToImageReference();
3114
var dRef = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public interface D : B { }", new[] {
MscorlibRef
, b2Ref }, options: s_signedDll, assemblyName: "D").EmitToImageReference();
3115
var eRef = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public interface E : B { }", new[] {
MscorlibRef
, b1Ref }, options: s_signedDll, assemblyName: "E").EmitToImageReference();
3117
var aRef = CreateEmptyCompilation(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public interface A : D, E { }", new[] {
MscorlibRef
, dRef, eRef, b1Ref, b2Ref },
3218
var aRef = CreateEmptyCompilation(@"public interface A { C CA { get; } }", new[] {
MscorlibRef
, TestReferences.SymbolsTests.Versioning.C2 },
3221
var bRef = CreateEmptyCompilation(@"public interface B { C CB { get; } }", new[] {
MscorlibRef
, TestReferences.SymbolsTests.Versioning.C1 },
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (3)
2756
references: new[] {
MscorlibRef
});
3105
new[] {
MscorlibRef
, ref1 });
3734
new[] {
MscorlibRef
});
DocumentationComments\CrefTests.cs (1)
5874
new[] {
MscorlibRef
},
DocumentationComments\DocumentationCommentCompilerTests.cs (1)
3660
var comp = CSharpCompilation.Create("Test", new[] { tree }, new[] {
MscorlibRef
}, TestOptions.ReleaseDll.WithXmlReferenceResolver(resolver));
SymbolDisplay\SymbolDisplayTests.cs (4)
5487
var compA = CreateEmptyCompilation(sourceA, new[] {
MscorlibRef
});
5493
var compB = CreateVisualBasicCompilation(GetUniqueName(), "", referencedAssemblies: new[] {
MscorlibRef
, refA });
5672
var compB = CreateVisualBasicCompilation(GetUniqueName(), "", referencedAssemblies: new[] {
MscorlibRef
, refA });
5697
var compB = CreateVisualBasicCompilation(GetUniqueName(), "", referencedAssemblies: new[] {
MscorlibRef
, refA });
Symbols\CompilationCreationTests.cs (2)
2551
MscorlibRef
,
2862
var compilation = CSharpCompilation.Create("foo", references: new[] {
MscorlibRef
, r }, syntaxTrees: new[] { st });
Symbols\ConversionTests.cs (1)
386
.AddReferences(
MscorlibRef
)
Symbols\ExtensionMethodTests.cs (3)
2429
references: new[] {
MscorlibRef
, LinqAssemblyRef });
3270
var reference1 = BasicCompilationUtils.CompileToMetadata(source1, references: new[] {
MscorlibRef
, SystemCoreRef, MsvbRef });
3808
var references = new[] {
MscorlibRef
, SystemCoreRef };
Symbols\ImplicitClassTests.cs (1)
29
", new[] {
MscorlibRef
});
Symbols\IndexedPropertyTests.cs (1)
2179
var reference2 = BasicCompilationUtils.CompileToMetadata(source2, references: new[] {
MscorlibRef
, reference1 });
Symbols\Metadata\MetadataMemberTests.cs (2)
186
var compilation = CreateEmptyCompilation(text, new[] {
MscorlibRef
});
238
var compilation = CreateEmptyCompilation(text, new[] {
MscorlibRef
});
Symbols\Metadata\MetadataTypeTests.cs (4)
27
var compilation = CreateEmptyCompilation(text, new[] {
MscorlibRef
});
67
var compilation = CreateEmptyCompilation(text, new[] {
MscorlibRef
});
117
var compilation = CreateEmptyCompilation(text, new[] {
MscorlibRef
}, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
216
new[] {
MscorlibRef
},
Symbols\Retargeting\NoPia.cs (33)
283
var LocalTypes1 = CreateEmptyCompilation(s_sourceLocalTypes1_IL, new[] {
MscorlibRef
}, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes1");
286
var LocalTypes2 = CreateEmptyCompilation(s_sourceLocalTypes2_IL, new[] {
MscorlibRef
}, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2");
291
new MetadataReference[] {
MscorlibRef
});
362
MscorlibRef
,
404
MscorlibRef
479
MscorlibRef
,
492
MscorlibRef
528
MscorlibRef
557
MscorlibRef
588
MscorlibRef
619
MscorlibRef
629
MscorlibRef
,
663
MscorlibRef
,
705
MscorlibRef
780
MscorlibRef
,
793
MscorlibRef
829
MscorlibRef
858
MscorlibRef
889
MscorlibRef
920
MscorlibRef
930
MscorlibRef
,
967
MscorlibRef
,
1009
MscorlibRef
1084
MscorlibRef
,
1097
MscorlibRef
1133
MscorlibRef
1162
MscorlibRef
1193
MscorlibRef
1224
MscorlibRef
1234
MscorlibRef
,
1365
MscorlibRef
1918
MscorlibRef
1968
MscorlibRef
Symbols\Source\CustomModifierCopyTests.cs (22)
958
var comp = CreateEmptyCompilation(source, new[] {
MscorlibRef
, SystemCoreRef, ilRef });
1002
var comp1 = CreateEmptyCompilation(source1, new[] {
MscorlibRef
, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef });
1034
var comp2 = CreateEmptyCompilation(source2, new[] {
MscorlibRef
, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef });
1058
var comp3 = CreateEmptyCompilation(source3, new[] {
MscorlibRef
, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef });
1079
var comp4 = CreateEmptyCompilation(source4, new[] {
MscorlibRef
, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef });
1132
var comp1 = CreateEmptyCompilation(source1, new[] {
MscorlibRef
, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef });
1156
var comp2 = CreateEmptyCompilation(source2, new[] {
MscorlibRef
, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef });
1170
var comp3 = CreateEmptyCompilation(source3, new[] {
MscorlibRef
, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef });
1279
var comp1 = CreateEmptyCompilation(source1, new[] {
MscorlibRef
, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef });
1320
var comp2 = CreateEmptyCompilation(source2, new[] {
MscorlibRef
, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef });
1348
var comp3 = CreateEmptyCompilation(source3, new[] {
MscorlibRef
, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef });
1395
var comp = CreateEmptyCompilation(source, new[] {
MscorlibRef
, SystemCoreRef, ilRef });
1435
var comp = CreateEmptyCompilation(source, new[] {
MscorlibRef
, SystemCoreRef, ilRef });
1480
var comp = CreateEmptyCompilation(source, new[] {
MscorlibRef
, SystemCoreRef, ilRef });
1524
var comp = CreateEmptyCompilation(source, new[] {
MscorlibRef
, SystemCoreRef, ilRef });
1579
var comp = CreateEmptyCompilation(source, new[] {
MscorlibRef
, SystemCoreRef, ilRef });
1633
var comp = CreateEmptyCompilation(source, new[] {
MscorlibRef
, SystemCoreRef, ilRef });
1683
var comp = CreateEmptyCompilation(source, new[] {
MscorlibRef
, SystemCoreRef, ilRef });
1768
var comp = CreateEmptyCompilation(source, new[] {
MscorlibRef
, SystemCoreRef, ilRef });
1885
var comp = CreateEmptyCompilation(source, new[] {
MscorlibRef
, SystemCoreRef, ilRef });
1982
var comp = CreateEmptyCompilation(source, new[] {
MscorlibRef
, SystemCoreRef, ilRef });
2084
var comp = CreateEmptyCompilation(source, new[] {
MscorlibRef
, SystemCoreRef, ilRef });
Symbols\Source\EnumTests.cs (1)
933
var compilation = CreateEmptyCompilation(text, new[] {
MscorlibRef
});
Symbols\Source\EventTests.cs (3)
370
var comp = CreateEmptyCompilation(source, new[] {
MscorlibRef
, SystemCoreRef });
382
var libComp = CreateEmptyCompilation(source, new[] {
MscorlibRef
}).VerifyDiagnostics(
399
var libComp = CreateEmptyCompilation(source, references: new[] {
MscorlibRef
}).VerifyDiagnostics(
Symbols\Source\ExternAliasTests.cs (1)
113
references: new MetadataReference[] {
MscorlibRef
, ExternAliasTests.Goo1, ExternAliasTests.Goo2 });
Symbols\Source\LocationTests.cs (1)
26
var comp = CreateEmptyCompilation(text, new[] {
MscorlibRef
});
Symbols\Source\PropertyTests.cs (2)
2607
references: new MetadataReference[] {
MscorlibRef
});
2699
references: new[] {
MscorlibRef
});
Symbols\Source\SourcePlusMetadataTests.cs (5)
187
var compilation = CreateEmptyCompilation(text, new[] {
MscorlibRef
});
191
var comp2 = CSharpCompilation.Create("Compilation2", references: new MetadataReference[] { ref2,
MscorlibRef
});
203
var compilation = CreateEmptyCompilation(text, new[] {
MscorlibRef
});
207
var comp2 = CSharpCompilation.Create("Compilation2", references: new MetadataReference[] { ref2,
MscorlibRef
});
235
var comp2 = CSharpCompilation.Create("Compilation2", references: new MetadataReference[] { ref2,
MscorlibRef
});
Symbols\SymbolDistinguisherTests.cs (1)
316
var validType = CreateEmptyCompilation("", new[] {
MscorlibRef
}).GetSpecialType(SpecialType.System_Int32);
Symbols\TypeResolutionTests.cs (1)
121
MscorlibRef
,
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
BasicCompilationUtils.cs (1)
23
references = new[] { TestBase.
MscorlibRef
};
DiagnosticTestUtilities.cs (1)
77
return VerifyErrorsAndGetCompilation(trees, refs.Concat(CSharpTestBase.
MscorlibRef
), expectedErrorDesp);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (3)
PdbTests.cs (3)
77
new[] {
MscorlibRef
});
93
new[] {
MscorlibRef
});
110
new[] {
MscorlibRef
});
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Semantics\SpeculationAnalyzerTestsBase.cs (1)
23
MscorlibRef
,
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Diagnostics\SuppressMessageAttributeWorkspaceTests.cs (1)
51
references: [TestBase.
MscorlibRef
]).EmitToImageReference();
Microsoft.CodeAnalysis.Test.Utilities (2)
CommonTestBase.cs (2)
374
references.Add(
MscorlibRef
);
461
references.Add(
MscorlibRef
);
Microsoft.CodeAnalysis.UnitTests (12)
Diagnostics\AnalysisContextInfoTests.cs (1)
118
references: new[] { TestBase.
MscorlibRef
});
Diagnostics\SuppressMessageAttributeCompilerTests.cs (2)
61
references: new[] { TestBase.
MscorlibRef
}).EmitToImageReference();
63
return ImmutableArray.Create(TestBase.
MscorlibRef
, compRef, TestBase.ValueTupleRef);
Diagnostics\SuppressMessageTargetSymbolResolverTests.cs (2)
1434
references: new[] { TestBase.
MscorlibRef
});
1442
references: new[] { TestBase.
MscorlibRef
});
GivesAccessTo.cs (4)
44
var csc = (Compilation)CSharpCompilation.Create("CS", new[] { csharpTree }, new MetadataReference[] { TestBase.
MscorlibRef
});
47
var csc2 = (Compilation)CSharpCompilation.Create("CS2", new[] { csharpTree2 }, new MetadataReference[] { TestBase.
MscorlibRef
});
50
var vbc = VisualBasicCompilation.Create("VB", new[] { vbTree }, new MetadataReference[] { TestBase.
MscorlibRef
});
53
var vbc2 = VisualBasicCompilation.Create("VB2", new[] { vbTree2 }, new MetadataReference[] { TestBase.
MscorlibRef
});
IsSymbolAccessibleWithinTests.cs (2)
28
var csc = CSharpCompilation.Create("CS", new[] { csharpTree }, new MetadataReference[] { TestBase.
MscorlibRef
}) as Compilation;
31
var vbc = VisualBasicCompilation.Create("VB", new[] { vbTree }, new MetadataReference[] { TestBase.
MscorlibRef
}) as Compilation;
MetadataReferences\MetadataReferenceTests.cs (1)
526
var f1 =
MscorlibRef
;
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (5)
Attributes\InternalsVisibleToAndStrongNameTests.vb (5)
80
{
MscorlibRef
},
110
{
MscorlibRef
},
139
references:={
MscorlibRef
},
197
Dim references = {
MscorlibRef
}
255
Dim references = {
MscorlibRef
}
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (16)
Compilation\CompilationAPITests.vb (16)
657
{
MscorlibRef
, MsvbRef},
1477
Dim comp = VisualBasicCompilation.Create("test", references:={
MscorlibRef
}) ' no ValueTuple
1493
Dim comp = VisualBasicCompilation.Create("test", references:={
MscorlibRef
}) ' no ValueTuple
2066
Dim c = VisualBasicCompilation.Create(assemblyName:=Nothing, options:=TestOptions.ReleaseModule, syntaxTrees:={Parse(source)}, references:={
MscorlibRef
})
2073
c = VisualBasicCompilation.Create(assemblyName:=Nothing, options:=TestOptions.ReleaseModule, syntaxTrees:={Parse(source)}, references:={
MscorlibRef
})
2080
c = VisualBasicCompilation.Create(assemblyName:="ModuleAssemblyName", options:=TestOptions.ReleaseModule, syntaxTrees:={Parse(source)}, references:={
MscorlibRef
})
2173
references:={
MscorlibRef
},
2197
references:={
MscorlibRef
},
2305
Dim c2 = c1.WithReferences({
MscorlibRef
})
2308
Dim c3 = c2.WithReferences({
MscorlibRef
, SystemCoreRef})
2317
c3 = c2.ReplaceReference(
MscorlibRef
, SystemCoreRef)
2320
c3 = c2.RemoveReferences(
MscorlibRef
)
2455
Dim c5 = c4.WithReferences({
MscorlibRef
, reference})
2476
Dim c = VisualBasicCompilation.Create("Goo", references:={
MscorlibRef
, mdModule.GetReference(display:="ModuleCS00")}, options:=TestOptions.ReleaseDll)
2600
VisualBasicCompilation.Create(assemblyName, {tree1, tree2}, {
MscorlibRef
}, CompilationOptions)
2601
Assert.Throws(Of ArgumentException)(Function() VisualBasicCompilation.Create(assemblyName, {tree1, tree3}, {
MscorlibRef
}, CompilationOptions))
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
BasicTestBase.vb (1)
383
Dim compilation = CreateEmptyCompilationWithReferences(source, {
MscorlibRef
, MsvbRef, reference}, options)
CompilationTestUtils.vb (1)
219
Dim references = {
MscorlibRef
, SystemRef, MsvbRef}
Microsoft.CodeAnalysis.Workspaces.UnitTests (26)
FindAllDeclarationsTests.cs (5)
137
.AddMetadataReference(csharpId,
MscorlibRef
);
142
.AddMetadataReference(vbId,
MscorlibRef
);
163
.AddMetadataReference(submission0Id,
MscorlibRef
)
178
.AddMetadataReference(submission1Id,
MscorlibRef
)
701
.AddMetadataReference(pid,
MscorlibRef
);
FindAllDeclarationsTests.TestSolutionsAndProject.cs (2)
98
.AddMetadataReference(pid,
MscorlibRef
);
118
.AddMetadataReference(pid,
MscorlibRef
);
FindReferencesTests.cs (7)
65
.AddMetadataReference(pid,
MscorlibRef
)
75
.AddMetadataReference(pid,
MscorlibRef
);
124
.AddMetadataReference(pid,
MscorlibRef
)
125
.AddMetadataReference(pid, ((PortableExecutableReference)
MscorlibRef
).WithAliases(["X"]))
174
.AddMetadataReference(prj1Id,
MscorlibRef
)
213
.AddMetadataReference(prj1Id,
MscorlibRef
)
277
.AddMetadataReference(prj1Id,
MscorlibRef
)
SolutionTests\SolutionTests.cs (12)
4023
metadataReferences: [
MscorlibRef
]));
4031
metadataReferences: [
MscorlibRef
],
4051
metadataReferences: [
MscorlibRef
]));
4061
metadataReferences: [
MscorlibRef
],
4224
metadataReferences: [
MscorlibRef
]));
4233
metadataReferences: [
MscorlibRef
],
5329
metadataReferences: [
MscorlibRef
]).WithHasAllInformation(hasAllInformation: false));
5338
metadataReferences: [
MscorlibRef
]));
5347
metadataReferences: [
MscorlibRef
],
5357
metadataReferences: [
MscorlibRef
],
5367
metadataReferences: [
MscorlibRef
],
5377
metadataReferences: [
MscorlibRef
],