772 references to CreateCompilationWithMscorlib40AndSystemCore
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (62)
CodeGen\CodeGenCheckedTests.cs (4)
2687var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 2710var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 2734var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 2757var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe);
CodeGen\CodeGenClosureLambdaTests.cs (3)
4715var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll); 4807var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll); 4936var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll);
CodeGen\CodeGenConstructorInitTests.cs (1)
737CreateCompilationWithMscorlib40AndSystemCore(source).VerifyEmitDiagnostics(
CodeGen\CodeGenDynamicTests.cs (1)
223CreateCompilationWithMscorlib40AndSystemCore(source).VerifyEmitDiagnostics(
CodeGen\CodeGenExprLambdaTests.cs (13)
470CreateCompilationWithMscorlib40AndSystemCore(program).Emit(new System.IO.MemoryStream()).Diagnostics 762CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 841CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(source), Parse(ExpressionTestLibrary) }).VerifyDiagnostics( 1537var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll); 2420CreateCompilationWithMscorlib40AndSystemCore(source) 2452var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll); 2615CreateCompilationWithMscorlib40AndSystemCore(text) 3322CreateCompilationWithMscorlib40AndSystemCore(text) 3461CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 3537CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 3553CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 4317CreateCompilationWithMscorlib40AndSystemCore(source) 4385CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(
CodeGen\CodeGenImplicitlyTypeArraysTests.cs (3)
480var compilation = CreateCompilationWithMscorlib40AndSystemCore(testSrc); 522var compilation = CreateCompilationWithMscorlib40AndSystemCore(testSrc); 555var compilation = CreateCompilationWithMscorlib40AndSystemCore(testSrc);
CodeGen\CodeGenInParametersTests.cs (1)
3735var compilation = CreateCompilationWithMscorlib40AndSystemCore(code, options: TestOptions.ReleaseExe);
CodeGen\CodeGenLockTests.cs (2)
478var compilation = CreateCompilationWithMscorlib40AndSystemCore(text); 651var compilation = CreateCompilationWithMscorlib40AndSystemCore(text);
CodeGen\CodeGenRefOutTests.cs (3)
350var compilation = CreateCompilationWithMscorlib40AndSystemCore(code, options: TestOptions.ReleaseExe); 412var compilation = CreateCompilationWithMscorlib40AndSystemCore(code, options: TestOptions.ReleaseExe); 474var compilation = CreateCompilationWithMscorlib40AndSystemCore(code, options: TestOptions.ReleaseExe);
CodeGen\CodeGenTests.cs (9)
9453CreateCompilationWithMscorlib40AndSystemCore(@" 10535CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 10793var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 10913var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 10993var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 11067var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 12701CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 14842var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 14868var comp = CreateCompilationWithMscorlib40AndSystemCore(source);
CodeGen\CodeGenTupleTest.cs (14)
5507var comp1 = CreateCompilationWithMscorlib40AndSystemCore(source1, assemblyName: "comp1"); 5509var comp2 = CreateCompilationWithMscorlib40AndSystemCore(source2, assemblyName: "comp2"); 16838var comp1 = CreateCompilationWithMscorlib40AndSystemCore(source1, assemblyName: "comp1"); 16840var comp2 = CreateCompilationWithMscorlib40AndSystemCore(source2, assemblyName: "comp2"); 16910var comp1 = CreateCompilationWithMscorlib40AndSystemCore(source1, assemblyName: "comp1"); 16912var comp2 = CreateCompilationWithMscorlib40AndSystemCore(source2, assemblyName: "comp2"); 16999var comp1 = CreateCompilationWithMscorlib40AndSystemCore(source1, 17003var comp2 = CreateCompilationWithMscorlib40AndSystemCore(source2, 17105var comp1 = CreateCompilationWithMscorlib40AndSystemCore(source1, assemblyName: "comp1"); 17107var comp2 = CreateCompilationWithMscorlib40AndSystemCore(source2, assemblyName: "comp2"); 17160var comp1 = CreateCompilationWithMscorlib40AndSystemCore(source1, assemblyName: "comp1"); 17162var comp2 = CreateCompilationWithMscorlib40AndSystemCore(source2, assemblyName: "comp2"); 22377var comp1 = CreateCompilationWithMscorlib40AndSystemCore(source1, assemblyName: "comp1", 22379var comp2 = CreateCompilationWithMscorlib40AndSystemCore(source2, assemblyName: "comp2",
CodeGen\CodeGenUsingStatementTests.cs (2)
2709CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(Diagnostic(ErrorCode.ERR_NoConvToIDisp, "from x in new int[] { 1 } select x").WithArguments("System.Collections.Generic.IEnumerable<int>")); 2854CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics();
CodeGen\ForeachTest.cs (1)
1398var comp = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.ReleaseExe);
Emit\EntryPointTests.cs (5)
1160CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe).VerifyDiagnostics(// (8,24): warning CS0028: 'Extension.Main(B, string[])' has the wrong signature to be an entry point 1180CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe).VerifyDiagnostics(// (8,23): warning CS0028: 'Extension.Main(B)' has the wrong signature to be an entry point 1197CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe).VerifyDiagnostics(// (5,23): warning CS0028: 'Extension.Main(string)' has the wrong signature to be an entry point 1488CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe.WithMainTypeName("B")).VerifyDiagnostics( 1493CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe.WithMainTypeName("extension")).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (151)
PDB\CSharpPDBTestBase.cs (1)
27var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: compilationOptions, parseOptions: parseOptions);
PDB\PDBConstantTests.cs (3)
34var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 100var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 209var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll);
PDB\PDBDynamicLocalsTests.cs (30)
49var c = CreateCompilationWithMscorlib40AndSystemCore(source, references: new[] { CSharpRef }, options: TestOptions.DebugDll); 147var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 213var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 272var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 337var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 393var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 451var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 527var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 609var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 676var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 764var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 844var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 926var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1012var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1138var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1286var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1535var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1778var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1832var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1882var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1940var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1998var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2057var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2117var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2171var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2226var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2290var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2352var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2412var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2497var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll);
PDB\PDBIteratorTests.cs (7)
34var c = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.DebugDll); 79var c = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.DebugDll); 124var c = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.DebugDll); 339var c = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.DebugDll); 437var c = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.ReleaseExe); 552var c = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.DebugExe); 1587var c = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.DebugDll);
PDB\PDBLambdaTests.cs (21)
35var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 109var compilation = CreateCompilationWithMscorlib40AndSystemCore(source.Tree, options: TestOptions.DebugDll); 129var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 203var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 319var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 439var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 553var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 638var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 748var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 827var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 912var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 992var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1068var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1156var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1229var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1301var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1377var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1447var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1523var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1599var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1675var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll);
PDB\PDBLocalFunctionTests.cs (5)
42var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 157var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 235var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 326var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 407var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll);
PDB\PDBTests.cs (84)
745var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 802var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 838var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 879var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 933var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 998var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1066var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1240var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1327var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1423var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1491var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1829var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1943var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 2023var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2074var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2116var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2168var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 2226var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 3195var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 3428var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 3519var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 3618var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 3719var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe); 3773c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 3841var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_1); 3935c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); 4007var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_1); 4039c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); 4535var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 4621var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 4726var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 4897var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 5109var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 5150var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 5282var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 5316var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 5399var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 5548var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 5626var v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll)); 5775var v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll)); 5864var v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll)); 5953var v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll)); 6035var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 6347var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 6440var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 6527var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 6588var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 6652var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 7064var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 7105var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 7159var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); 7218var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugDll); 7277var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); 7352var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); 7418var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugDll); 7486var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); 7568var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugDll); 7646var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); 7692var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); 7854var c = CreateCompilationWithMscorlib40AndSystemCore(src, references: new[] { CSharpRef, ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.DebugDll); 7901var c = CreateCompilationWithMscorlib40AndSystemCore(src, references: new[] { CSharpRef, ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.DebugExe); 7955var c = CreateCompilationWithMscorlib40AndSystemCore(src, references: new[] { CSharpRef, ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.DebugDll); 8619var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 10840var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 10970var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11147var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, references: s_valueTupleRefs); 11249var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, references: s_valueTupleRefs); 11320var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, references: s_valueTupleRefs); 11344var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, references: s_valueTupleRefs); 11368var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, references: s_valueTupleRefs); 11423var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11438var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11487var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11533var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11575var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11620var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11676var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11732var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11848var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11908var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11975var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 12032var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 12068var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 12468var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (52)
Attributes\AttributeTests.cs (2)
1371var source = CreateCompilationWithMscorlib40AndSystemCore(code); 5842var compilation = CreateCompilationWithMscorlib40AndSystemCore(@"
Attributes\AttributeTests_Dynamic.cs (2)
1018CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 1045CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics(
Attributes\AttributeTests_Experimental.cs (11)
207var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(DeprecatedAttributeSource), Parse(ExperimentalAttributeSource), Parse(source) }); 306var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(DeprecatedAttributeSource), Parse(ExperimentalAttributeSource), Parse(source) }); 348var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(DeprecatedAttributeSource), Parse(ExperimentalAttributeSource), Parse(source) }); 368var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(ExperimentalAttributeSource), Parse(source) }); 397var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(ExperimentalAttributeSource), Parse(source) }); 426var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(ExperimentalAttributeSource), Parse(source) }); 457var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(ExperimentalAttributeSource), Parse(source) }); 494var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(ExperimentalAttributeSource), Parse(source) }); 533var comp1 = CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(DeprecatedAttributeSource), Parse(ExperimentalAttributeSource), Parse(source1) }); 559var comp2 = CreateCompilationWithMscorlib40AndSystemCore(source2, references: new[] { comp1.EmitToImageReference() }); 634var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(ExperimentalAttributeSource), Parse(source) });
Attributes\AttributeTests_WellKnownAttributes.cs (10)
3820var compDll = CreateCompilationWithMscorlib40AndSystemCore(source, assemblyName: "NewOnInterface_FromMetadata"); 3937var compDll = CreateCompilationWithMscorlib40AndSystemCore(source, assemblyName: "NewOnInterface_GenericTypeCoClass"); 4014var compDll = CreateCompilationWithMscorlib40AndSystemCore(source, assemblyName: "NewOnInterface_InaccessibleInterface"); 4092var compDll = CreateCompilationWithMscorlib40AndSystemCore(source, assemblyName: "NewOnInterface_InaccessibleCoClass"); 4170var compDll = CreateCompilationWithMscorlib40AndSystemCore(source, assemblyName: "NewOnInterface_CoClass_Without_ComImport"); 4256var compDll = CreateCompilationWithMscorlib40AndSystemCore(source, assemblyName: "NewOnInterface_StructTypeInCoClassAttribute"); 9964var compilation1 = CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(DeprecatedAttributeSourceTH1), Parse(source1) }); 9979var compilation2 = CreateCompilationWithMscorlib40AndSystemCore(source2, new[] { compilation1.EmitToImageReference() }); 10047var compilation1 = CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(DeprecatedAttributeSourceTH2), Parse(source1) }); 10062var compilation2 = CreateCompilationWithMscorlib40AndSystemCore(source2, new[] { compilation1.EmitToImageReference() });
FlowAnalysis\FlowDiagnosticTests.cs (9)
2387CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source); 2414CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular10); 2427comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular11); 2464CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source); 2501CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source); 2523CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source); 2546CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source); 2571CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular10); 2584comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular11);
Semantics\OutVarTests.cs (4)
32944var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular); 35584var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 35612var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 35639var comp = CreateCompilationWithMscorlib40AndSystemCore(source);
Semantics\PatternMatchingTests.cs (7)
4245var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular); 4284var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe); 4339CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 4347CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 4379var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 4418var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe); 4462var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugDll);
Semantics\PatternMatchingTests4.cs (5)
240var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 275var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 866var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 903var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 940var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe);
Semantics\PatternSwitchTests.cs (2)
218var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe); 245var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests_IAnonymousFunctionExpression.cs (2)
405var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 485var compilation = CreateCompilationWithMscorlib40AndSystemCore(source);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (398)
Semantics\ArglistTests.cs (2)
136var comp = CreateCompilationWithMscorlib40AndSystemCore(text); 872CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics();
Semantics\BindingTests.cs (3)
2826var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceText, options: TestOptions.DebugDll); 3794var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3904var comp = CreateCompilationWithMscorlib40AndSystemCore(source);
Semantics\ColorColorTests.cs (5)
725var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { tree }); 1521var comp = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.DebugExe); 1738var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 1760CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll) 1809var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll);
Semantics\ConditionalOperatorTests.cs (1)
1174var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe);
Semantics\ConstantTests.cs (1)
1582var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe);
Semantics\DeconstructionTests.cs (1)
4087var comp = CreateCompilationWithMscorlib40AndSystemCore(source,
Semantics\DynamicTests.cs (68)
58CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 95CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 171CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 205CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 225CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 315CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 339CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 363CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 392CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 422CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 455CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 831var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll); 907CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 1278var comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 1281comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll); 1782var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 1819var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 1843CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 1865CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 1891CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1907CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 1929CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 1953CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 1974CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 1999CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 2023CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 2048CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 2068CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 2088CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 2114CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 2152var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll); 2181var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 2214CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 2237CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 2261CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 2284CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 2306CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 2336CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2366CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2842var comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 2845comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll); 2876CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3037CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(source, options: TestOptions.RegularPreview) }).VerifyDiagnostics( 3107CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(source, options: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5)) }).VerifyDiagnostics( 3224CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(source, options: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5)) }).VerifyDiagnostics( 3285CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 3311CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 3336CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 3360CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 3387CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 3412CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 3452var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 3477var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 3494var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 3511var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 3531var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 3552var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 3570var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 3587var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 3606CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 3627CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 3646CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 3669var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 3688var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 3711var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 3729CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 3774CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp4)).VerifyDiagnostics(); 3775CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp3)).VerifyDiagnostics(
Semantics\ForEachTests.cs (2)
1019CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 3254var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { tree });
Semantics\ForLoopErrorTests.cs (1)
171CreateCompilationWithMscorlib40AndSystemCore(text).
Semantics\InheritanceBindingTests.cs (4)
3611CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 3631CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 3651CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 3670CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics(
Semantics\InterpolationTests.cs (3)
1549CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 1578CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 1617CreateCompilationWithMscorlib40AndSystemCore(text).VerifyEmitDiagnostics(
Semantics\LambdaTests.cs (35)
70var comp = CreateCompilationWithMscorlib40AndSystemCore(src); 81var comp = CreateCompilationWithMscorlib40AndSystemCore(@" 1017var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1071var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1117var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1639var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1669var compilation = CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 1695var compilation = CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 1721var compilation = CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 1747var compilation = CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 1774var compilation = CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 1799var compilation = CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics(); 1820var compilation = CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 1845var compilation = CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 2000CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 2020CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 2037CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 2060CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 2077CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 2110var compilation = CreateCompilationWithMscorlib40AndSystemCore(source) 2159var compilation = CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 2205var compilation = CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 2251var compilation = CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 2297var compilation = CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 2331var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 2358var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 2412var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 2458var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 2504var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 2537var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 2570var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 2607var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 2659var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 2788var comp = CreateCompilationWithMscorlib40AndSystemCore(src, options: TestOptions.DebugExe); 2975var comp = CreateCompilationWithMscorlib40AndSystemCore(src, options: TestOptions.DebugExe);
Semantics\LockTests.cs (1)
558var compilation = CreateCompilationWithMscorlib40AndSystemCore(
Semantics\LookupTests.cs (6)
1559var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1591var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 2005var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 2036var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 2066var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 2094var comp = CreateCompilationWithMscorlib40AndSystemCore(source);
Semantics\MethodTypeInferenceTests.cs (1)
513CreateCompilationWithMscorlib40AndSystemCore(source, new[] { CSharpRef }).VerifyEmitDiagnostics(
Semantics\NameCollisionTests.cs (5)
1199CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 1271CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 1300CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 1696CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 1722CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(
Semantics\NameOfTests.cs (14)
241CreateCompilationWithMscorlib40AndSystemCore(source, options: option).VerifyDiagnostics( 738var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 785var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 822var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 855var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 904var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 937var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1285var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1315var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1347var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1364var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1390var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1418var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1692var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe);
Semantics\NullableReferenceTypesTests.cs (4)
1721var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3331var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3401var comp = CreateCompilationWithMscorlib40AndSystemCore(src); 3560CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Semantics\OperatorTests.cs (9)
1414CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 1436CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 1477CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 1589CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 1629CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 1686CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 5256var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 5281comp = CreateCompilationWithMscorlib40AndSystemCore(source); 5290comp = CreateCompilationWithMscorlib40AndSystemCore(source);
Semantics\OverloadResolutionPerfTests.cs (7)
40var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 66var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 91var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 114var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 136var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 158var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 187var comp = CreateCompilationWithMscorlib40AndSystemCore(source);
Semantics\OverloadResolutionTests.cs (21)
43var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 1344CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 6693var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 6724var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 6765var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 6802var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 6832CreateCompilationWithMscorlib40AndSystemCore(source, new[] { libRef }).VerifyDiagnostics(); 7002CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 7081CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 7119CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 7188CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 7227CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 7499var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 7527var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 7609var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 7831var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 9172CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 9294var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 9333var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 9368var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 9409var comp = CreateCompilationWithMscorlib40AndSystemCore(source);
Semantics\QueryTests.cs (43)
2173var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2203var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2229var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2268var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2296var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2321var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2353var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2380var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2424var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2480var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2518var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2544var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2574var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2607Assert.False(CreateCompilationWithMscorlib40AndSystemCore(sourceCode).Emit(output).Success); 2629Assert.False(CreateCompilationWithMscorlib40AndSystemCore(sourceCode).Emit(output).Success); 2659var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2687var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2713var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode, parseOptions: TestOptions.Script); 2739var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode, parseOptions: TestOptions.Script); 2893var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2926var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2996var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 3039var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3108var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3131var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3159var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3288var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3335var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3364var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3507var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 3546var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 3590var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 3767var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 3806var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 3846var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 3880var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode, options: TestOptions.DebugExe); 3914CreateCompilationWithMscorlib40AndSystemCore(csSource, parseOptions: TestOptions.Regular7_2).VerifyDiagnostics( 3953CreateCompilationWithMscorlib40AndSystemCore(csSource).VerifyDiagnostics(); 3985CreateCompilationWithMscorlib40AndSystemCore(csSource, parseOptions: TestOptions.Regular7_2).VerifyDiagnostics( 4024CreateCompilationWithMscorlib40AndSystemCore(csSource).VerifyDiagnostics(); 4070CreateCompilationWithMscorlib40AndSystemCore(csSource, parseOptions: TestOptions.Regular7_2) 4112CreateCompilationWithMscorlib40AndSystemCore(csSource) 4443var comp = CreateCompilationWithMscorlib40AndSystemCore(code);
Semantics\RawInterpolationTests.cs (3)
1222CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 1250CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics(); 1282CreateCompilationWithMscorlib40AndSystemCore(text).VerifyEmitDiagnostics(
Semantics\RefExtensionMethodsTests.cs (57)
39CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 206CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 238CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 332CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 355CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 364var reference = CreateCompilationWithMscorlib40AndSystemCore(@" 420var reference = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 464var reference = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 508var reference = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 534var reference = CreateCompilationWithMscorlib40AndSystemCore(@" 590var reference = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 634var reference = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 721CreateCompilationWithMscorlib40AndSystemCore(code, references: new[] { reference }).VerifyDiagnostics( 757CreateCompilationWithMscorlib40AndSystemCore(code, references: new[] { reference }).VerifyDiagnostics( 793CreateCompilationWithMscorlib40AndSystemCore(code, references: new[] { reference }).VerifyDiagnostics( 864CreateCompilationWithMscorlib40AndSystemCore(code, references: new[] { reference }).VerifyDiagnostics( 900CreateCompilationWithMscorlib40AndSystemCore(code, references: new[] { reference }).VerifyDiagnostics( 909var reference = CreateCompilationWithMscorlib40AndSystemCore(@" 965var reference = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 1009var reference = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 1053var reference = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 1097var reference = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 1141var reference = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 1185var reference = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 1277CreateCompilationWithMscorlib40AndSystemCore(code, references: new[] { reference }).VerifyDiagnostics( 1316CreateCompilationWithMscorlib40AndSystemCore(code, references: new[] { reference }).VerifyDiagnostics( 1355CreateCompilationWithMscorlib40AndSystemCore(code, references: new[] { reference }).VerifyDiagnostics( 1394CreateCompilationWithMscorlib40AndSystemCore(code, references: new[] { reference }).VerifyDiagnostics( 1433CreateCompilationWithMscorlib40AndSystemCore(code, references: new[] { reference }).VerifyDiagnostics( 1472CreateCompilationWithMscorlib40AndSystemCore(code, references: new[] { reference }).VerifyDiagnostics( 1498CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 1526var compilation = CreateCompilationWithMscorlib40AndSystemCore(code, options: TestOptions.ReleaseExe); 1582var compilation = CreateCompilationWithMscorlib40AndSystemCore(code, options: TestOptions.ReleaseExe); 1631CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 1660CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 1693CreateCompilationWithMscorlib40AndSystemCore(code, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }).VerifyDiagnostics( 1726CreateCompilationWithMscorlib40AndSystemCore(code, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }).VerifyDiagnostics( 1757CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 1791CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 1825CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 1856CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 2068CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 2104CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 2126CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 2141var comp = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics(); 2160var comp = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics(); 2179var comp = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics(); 2198var comp = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics(); 2233CreateCompilationWithMscorlib40AndSystemCore(test).GetDeclarationDiagnostics().Verify( 2292CreateCompilationWithMscorlib40AndSystemCore(code, parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp7_1)).VerifyDiagnostics( 2306var reference = CreateCompilationWithMscorlib40AndSystemCore(@" 2325CreateCompilationWithMscorlib40AndSystemCore( 2333CreateCompilationWithMscorlib40AndSystemCore( 2372CreateCompilationWithMscorlib40AndSystemCore(code, parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp7_1)).VerifyDiagnostics( 2410var reference = CreateCompilationWithMscorlib40AndSystemCore(@" 2429CreateCompilationWithMscorlib40AndSystemCore( 2437CreateCompilationWithMscorlib40AndSystemCore(
Semantics\RefLocalsAndReturnsTests.cs (11)
2885CreateCompilationWithMscorlib40AndSystemCore(text) 3017CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 3040CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 3087CreateCompilationWithMscorlib40AndSystemCore(code).VerifyEmitDiagnostics( 3120CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 3783CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 4359CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 4393CreateCompilationWithMscorlib40AndSystemCore(text).VerifyEmitDiagnostics( 5042CreateCompilationWithMscorlib40AndSystemCore(code).VerifyEmitDiagnostics( 5080CreateCompilationWithMscorlib40AndSystemCore(code).VerifyEmitDiagnostics( 5115CreateCompilationWithMscorlib40AndSystemCore(code).VerifyEmitDiagnostics(
Semantics\SemanticAnalyzerTests.cs (1)
34CreateCompilationWithMscorlib40AndSystemCore(source)
Semantics\SemanticErrorTests.cs (73)
2377CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 3945CreateCompilationWithMscorlib40AndSystemCore(@" 5964CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 6012CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 6050CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 7027CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 7035CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 7061CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 7069CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 7100CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 7174CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 7270var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 8194CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 12097CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 12507CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 12530CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 12605CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 12903CreateCompilationWithMscorlib40AndSystemCore( 13039CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 13106CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 13130CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 13158CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 13197CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 13270var compilation2 = CreateCompilationWithMscorlib40AndSystemCore(source2, new[] { reference1 }); 13665CreateCompilationWithMscorlib40AndSystemCore( 13697CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 17008CreateCompilationWithMscorlib40AndSystemCore(@" 17028CreateCompilationWithMscorlib40AndSystemCore(@" 17053CreateCompilationWithMscorlib40AndSystemCore(@" 17074CreateCompilationWithMscorlib40AndSystemCore(@" 17095CreateCompilationWithMscorlib40AndSystemCore(@" 17116CreateCompilationWithMscorlib40AndSystemCore(@" 17139CreateCompilationWithMscorlib40AndSystemCore(@" 17166CreateCompilationWithMscorlib40AndSystemCore(@" 17187CreateCompilationWithMscorlib40AndSystemCore(@" 17209CreateCompilationWithMscorlib40AndSystemCore(@" 17255CreateCompilationWithMscorlib40AndSystemCore(@" 17279CreateCompilationWithMscorlib40AndSystemCore(@" 17346CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 17356CreateCompilationWithMscorlib40AndSystemCore(@" 17395var comp = CreateCompilationWithMscorlib40AndSystemCore(text); 17406CreateCompilationWithMscorlib40AndSystemCore(@" 17431CreateCompilationWithMscorlib40AndSystemCore(@" 17473CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 17498CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 17521CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 17551CreateCompilationWithMscorlib40AndSystemCore(@" 17583CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 17605CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 17625CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 17652CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 17676CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 18415CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 18474var comp = CreateCompilationWithMscorlib40AndSystemCore(text); 18509var comp = CreateCompilationWithMscorlib40AndSystemCore(text); 18596var comp = CreateCompilationWithMscorlib40AndSystemCore(text); 18621CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 18642CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 18659var comp = CreateCompilationWithMscorlib40AndSystemCore(text); 18678var comp = CreateCompilationWithMscorlib40AndSystemCore(text); 18710var comp = CreateCompilationWithMscorlib40AndSystemCore(source, new[] { CSharpRef }); 18782var comp = CreateCompilationWithMscorlib40AndSystemCore(source, new[] { CSharpRef }, options: TestOptions.UnsafeReleaseDll); 18830var comp = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll); 22386CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 22439CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 22528CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 22736var comp = CreateCompilationWithMscorlib40AndSystemCore(text); 22768var comp = CreateCompilationWithMscorlib40AndSystemCore(text); 24492var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe); 24724CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 24753CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 24774CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 24799CreateCompilationWithMscorlib40AndSystemCore(text, parseOptions: TestOptions.RegularWithRecursivePatterns).VerifyDiagnostics(
Semantics\SuppressAccessibilityChecksTests.cs (1)
135var compilationA = CreateCompilationWithMscorlib40AndSystemCore(@"
Semantics\TargetTypedDefaultTests.cs (5)
2768var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular7_1); 2792var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2810var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular7_1); 3028var comp = CreateCompilationWithMscorlib40AndSystemCore(text, parseOptions: TestOptions.Regular7_1); 3049var comp = CreateCompilationWithMscorlib40AndSystemCore(text, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe);
Semantics\UnsafeTests.cs (5)
5188var compilation = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll); 6497CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6543CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7233CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 7750CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Semantics\UserDefinedConversionTests.cs (2)
521CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 541CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics();
Semantics\UsingStatementTests.cs (3)
1606var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1635var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1663var compilation = CreateCompilationWithMscorlib40AndSystemCore(source);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (91)
Compilation\GetSemanticInfoTests.cs (17)
1946var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { tree }); 1982var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { tree }); 2018var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { tree }); 2053var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { tree }); 2219var comp = (Compilation)CreateCompilationWithMscorlib40AndSystemCore(new[] { tree }); 4032var comp = (Compilation)CreateCompilationWithMscorlib40AndSystemCore(source); 4102var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 4157var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 4868var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 4905var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 5466var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 5517var comp = (Compilation)CreateCompilationWithMscorlib40AndSystemCore(source); 5531var comp = (Compilation)CreateCompilationWithMscorlib40AndSystemCore(source); 5573var comp = (Compilation)CreateCompilationWithMscorlib40AndSystemCore(source); 5614var comp = (Compilation)CreateCompilationWithMscorlib40AndSystemCore(source); 5658var comp = (Compilation)CreateCompilationWithMscorlib40AndSystemCore(source); 5711var comp = (Compilation)CreateCompilationWithMscorlib40AndSystemCore(source);
Compilation\ReferenceManagerTests.cs (2)
2060var libBv1 = CreateCompilationWithMscorlib40AndSystemCore(string.Format(libBTemplate, "1"), assemblyName: "B", options: s_signedDll); 2061var libBv2 = CreateCompilationWithMscorlib40AndSystemCore(string.Format(libBTemplate, "2"), assemblyName: "B", options: s_signedDll);
Compilation\SemanticModelAPITests.cs (6)
289var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { tree }); 308var comp1 = CreateCompilationWithMscorlib40AndSystemCore(new[] { tree }); 309var comp2 = CreateCompilationWithMscorlib40AndSystemCore(new[] { tree }); 1937var compilation = CreateCompilationWithMscorlib40AndSystemCore(@" 2656var compilation = CreateCompilationWithMscorlib40AndSystemCore(@" 3811var comp = CreateCompilationWithMscorlib40AndSystemCore(source);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (3)
1925var compilation = (Compilation)CreateCompilationWithMscorlib40AndSystemCore(source); 1966compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3844var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode, parseOptions: TestOptions.Script);
Compilation\SemanticModelGetSemanticInfoTests.cs (1)
8265var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode);
DocumentationComments\CrefTests.cs (3)
4968var compilation = (Compilation)CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.RegularWithDocumentationComments); 5123var compilation = (Compilation)CreateCompilationWithMscorlib40AndSystemCore(new[] { tree }); 5229var compilation = (Compilation)CreateCompilationWithMscorlib40AndSystemCore(new[] { tree });
DocumentationComments\DocumentationCommentCompilerTests.cs (1)
6011var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { tree }, assemblyName: "Test");
DocumentationComments\DocumentationCommentIDTests.cs (1)
306var comp = CreateCompilationWithMscorlib40AndSystemCore(source);
Symbols\AnonymousTypesSymbolTests.cs (1)
583var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe);
Symbols\ConversionTests.cs (12)
2020var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 2230CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyDiagnostics( 2235CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 2336CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2369var comp = CreateCompilationWithMscorlib40AndSystemCore( 2404var comp = CreateCompilationWithMscorlib40AndSystemCore(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 2439var comp = CreateCompilationWithMscorlib40AndSystemCore(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 2480var comp = CreateCompilationWithMscorlib40AndSystemCore(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 2534var comp = CreateCompilationWithMscorlib40AndSystemCore(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 2600var comp = CreateCompilationWithMscorlib40AndSystemCore(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 2669var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 2719var comp = CreateCompilationWithMscorlib40AndSystemCore(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef });
Symbols\ExtensionMethodTests.cs (19)
2723var compilation = CreateCompilationWithMscorlib40AndSystemCore(code); 2771CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 2794var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 2917CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 2947var compilation = (Compilation)CreateCompilationWithMscorlib40AndSystemCore(source); 3005var compilation = (Compilation)CreateCompilationWithMscorlib40AndSystemCore(source); 3044CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 3071CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 3102var libCompilation = CreateCompilationWithMscorlib40AndSystemCore(lib, assemblyName: Guid.NewGuid().ToString()); 3295var compilation1 = CreateCompilationWithMscorlib40AndSystemCore(source1, assemblyName: "A"); 3308var compilation2 = CreateCompilationWithMscorlib40AndSystemCore(source2, assemblyName: "B"); 3361var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3398var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3506var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3574var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3661var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3695var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3730var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 4088var compilation = CreateCompilationWithMscorlib40AndSystemCore(source);
Symbols\GenericConstraintTests.cs (7)
2643CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 6014CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 6569CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 6576var compilation = CreateCompilationWithMscorlib40AndSystemCore("public interface I<W> where W : struct {}").VerifyDiagnostics(); 6628CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 6652CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 6682CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(
Symbols\IndexedPropertyTests.cs (2)
2706var compilation2 = CreateCompilationWithMscorlib40AndSystemCore(source2, new[] { reference1, CSharpRef }, TestOptions.ReleaseExe); 2765var compilation2 = CreateCompilationWithMscorlib40AndSystemCore(source2, new[] { reference1, CSharpRef }, TestOptions.ReleaseExe);
Symbols\Metadata\PE\TypeForwarders.cs (1)
94var compilation = CreateCompilationWithMscorlib40AndSystemCore(new SyntaxTree[0]);
Symbols\Source\ClsComplianceTests.cs (3)
2915CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 2935CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3758CreateCompilationWithMscorlib40AndSystemCore(source, new[] { libRef }).GetDiagnostics();
Symbols\Source\PropertyTests.cs (1)
2106var compilation3 = CreateCompilationWithMscorlib40AndSystemCore(source3, new[] { reference1 });
Symbols\SymbolErrorTests.cs (11)
1300CreateCompilationWithMscorlib40AndSystemCore( 2782CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 3043CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics(); 11884CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 16716CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 16736CreateCompilationWithMscorlib40AndSystemCore(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 16759CreateCompilationWithMscorlib40AndSystemCore(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 16770CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 16784CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 16834CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics(); 18283CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
Parsing\ParserErrorMessageTests.cs (11)
3283CreateCompilationWithMscorlib40AndSystemCore(test).GetDeclarationDiagnostics().Verify( 3328CreateCompilationWithMscorlib40AndSystemCore(test).GetDeclarationDiagnostics().Verify( 3405CreateCompilationWithMscorlib40AndSystemCore(test).GetDeclarationDiagnostics().Verify( 3468CreateCompilationWithMscorlib40AndSystemCore(test).GetDeclarationDiagnostics().Verify( 3521CreateCompilationWithMscorlib40AndSystemCore(test).GetDeclarationDiagnostics().Verify( 3566CreateCompilationWithMscorlib40AndSystemCore(test).GetDeclarationDiagnostics().Verify( 3605CreateCompilationWithMscorlib40AndSystemCore(test).GetDeclarationDiagnostics().Verify( 3647CreateCompilationWithMscorlib40AndSystemCore(test).VerifyDiagnostics(); 3671CreateCompilationWithMscorlib40AndSystemCore(test).GetDeclarationDiagnostics().Verify( 3713CreateCompilationWithMscorlib40AndSystemCore(test).GetDeclarationDiagnostics().Verify( 5004CreateCompilationWithMscorlib40AndSystemCore(test).GetDeclarationDiagnostics().Verify(
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Emit\CompilationOutputFilesTests.cs (1)
31var compilation = CSharpTestBase.CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, assemblyName: "lib");
Emit\CompilationOutputsTests.cs (1)
54var compilation = CSharpTestBase.CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, assemblyName: "lib");
Microsoft.CodeAnalysis.Features.UnitTests (1)
EditAndContinue\EditAndContinueMethodDebugInfoReaderTests.cs (1)
64var compilation = CSharpTestBase.CreateCompilationWithMscorlib40AndSystemCore(tree, options: TestOptions.DebugDll);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
ProjectSystemShim\VisualStudioCompilationOutputFilesTests.cs (2)
38var compilation = CSharpTestBase.CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, assemblyName: "lib"); 87var compilation = CSharpTestBase.CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, assemblyName: "lib");