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