3 instantiations of CompilationVerifier
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\Source\FieldTests.cs (1)
477
var verifier = new
CompilationVerifier
(compilation);
Microsoft.CodeAnalysis.Test.Utilities (1)
CommonTestBase.cs (1)
188
var verifier = new
CompilationVerifier
(compilation, VisualizeRealIL, dependencies);
Roslyn.Test.PdbUtilities (1)
EditAndContinue\EditAndContinueTest.cs (1)
48
var verifier = new
CompilationVerifier
(compilation);
6208 references to CompilationVerifier
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2641)
BreakingChanges.cs (5)
1134
var
verifier = CompileAndVerify(source, expectedOutput: " ++ EX 1");
1411
var
cs1Verifier = CompileAndVerify(cs1Compilation);
1418
var
cs2Verifier = CompileAndVerify(cs2Compilation);
1425
var
cs3Verifier = CompileAndVerify(cs3Compilation);
1630
var
verifier = CompileAndVerify(comp, expectedOutput: "3");
CodeGen\CodeGenAsyncEHTests.cs (33)
27
private
CompilationVerifier
CompileAndVerify(string source, string expectedOutput = null, IEnumerable<MetadataReference> references = null, CSharpCompilationOptions options = null)
149
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expected, isRuntimeAsync: true), verify: Verification.FailsPEVerify);
584
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expected, isRuntimeAsync: true),
633
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("3", isRuntimeAsync: true), verify: Verification.Fails with
682
var
verifier = CompileAndVerify(
736
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expected, isRuntimeAsync: true), verify: Verification.Fails with
899
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expected, isRuntimeAsync: true),
1005
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expected, isRuntimeAsync: true), verify: Verification.Fails with
1101
var
v = CompileAndVerify(source, s_asyncRefs, targetFramework: TargetFramework.Empty, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: expected, symbolValidator: module =>
1364
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expected, isRuntimeAsync: true), verify: Verification.Fails with
1484
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expected, isRuntimeAsync: true),
1604
var
verifier = CompileAndVerify(source, expectedOutput: expected);
1875
var
verifier = CompileAndVerify(source, expectedOutput: expected);
2128
var
verifier = CompileAndVerify(source, expectedOutput: expected);
2382
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expected, isRuntimeAsync: true), verify: Verification.Fails with
2509
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expected, isRuntimeAsync: true),
2597
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expected, isRuntimeAsync: true),
2689
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expected, isRuntimeAsync: true),
2852
var
verifier = CompileAndVerify(
2969
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expected, isRuntimeAsync: true),
3049
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expected, isRuntimeAsync: true),
3134
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expected, isRuntimeAsync: true),
3199
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expected, isRuntimeAsync: true),
3379
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expected, isRuntimeAsync: true),
3471
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expected, isRuntimeAsync: true),
3566
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expected, isRuntimeAsync: true),
3613
var
verifier = CompileAndVerify(
3691
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true),
3802
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true),
3900
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with { ILVerifyMessage = ilVerifyMessage });
4008
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with { ILVerifyMessage = ilVerifyMessage });
4069
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
4784
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Skipped);
CodeGen\CodeGenAsyncIteratorTests.cs (26)
184
var
v = CompileAndVerify(comp, expectedOutput: "hello world");
363
var
v = CompileAndVerify(comp, expectedOutput: "hello world!");
721
var
verifier = CompileAndVerify(comp, expectedOutput: "123", verify: Verification.FailsILVerify);
880
var
verifier = CompileAndVerify(comp, expectedOutput: "123", verify: Verification.FailsILVerify);
2652
var
verifier = CompileAndVerify(comp, expectedOutput: "0 1 2 3 4 5");
3209
var
verifier = CompileAndVerify(comp);
3477
var
verifier = CompileAndVerify(comp);
3746
var
verifier = CompileAndVerify(comp);
4010
var
verifier = CompileAndVerify(comp);
4785
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput,
7354
var
verifier = CompileAndVerify(comp, expectedOutput: "42 43 Cancelled");
7487
var
verifier = CompileAndVerify(comp, expectedOutput: "42 43 Cancelled");
8444
var
v = CompileAndVerify(comp, expectedOutput: "BEFORE INSIDE INSIDE2 AFTER");
8493
var
v = CompileAndVerify(comp, expectedOutput: "BEFORE INSIDE INSIDE2 AFTER");
8542
var
v = CompileAndVerify(comp, expectedOutput: "BEFORE INSIDE INSIDE2 AFTER");
9066
var
verifier = CompileAndVerify(comp,
9264
var
verifier = CompileAndVerify(comp,
9305
var
verifier = CompileAndVerify(comp,
9350
var
verifier = CompileAndVerify(comp,
9391
var
verifier = CompileAndVerify(comp,
9587
var
verifier = CompileAndVerify(comp,
9633
var
verifier = CompileAndVerify(comp,
9685
var
verifier = CompileAndVerify(src, expectedOutput: ExpectedOutput("value value True"), verify: Verification.Skipped, targetFramework: TargetFramework.Net80).VerifyDiagnostics();
10124
var
verifier = CompileAndVerify(src, expectedOutput: ExpectedOutput("4242"), references: [libComp.EmitToImageReference()],
10505
var
verifier = CompileAndVerify(src, expectedOutput: ExpectedOutput("False 0 False 1 True"),
10889
var
verifier = CompileAndVerify(
CodeGen\CodeGenAsyncLocalsTests.cs (10)
28
private
CompilationVerifier
CompileAndVerify(string source, string expectedOutput = null, IEnumerable<MetadataReference> references = null, CSharpCompilationOptions options = null, Verification verify = default)
34
private string GetFieldLoadsAndStores(
CompilationVerifier
c, string qualifiedMethodName)
307
var
vd = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
523
var
verifier = CompileAndVerify(source, expectedOutput: expected);
653
var
verifier = CompileAndVerify(source, expectedOutput: expected);
1003
var
c = CompileAndVerify(source, expectedOutput: null, options: TestOptions.ReleaseDll);
1161
var
c = CompileAndVerify(source, expectedOutput: null, options: TestOptions.ReleaseDll);
1312
var
verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"1", verify: Verification.Fails);
1569
var
verifier = CompileAndVerify(text, options: TestOptions.ReleaseExe, expectedOutput: @"2");
1894
var
verifier = CompileAndVerify(text, options: TestOptions.ReleaseExe, expectedOutput: @"2");
CodeGen\CodeGenAsyncMainTests.cs (8)
450
var
verifier = CompileAndVerify(c, expectedOutput: "hello async main", expectedReturnCode: 0);
490
var
verifier = CompileAndVerify(c, expectedOutput: "hello async main", expectedReturnCode: 10);
509
var
verifier = CompileAndVerify(c, expectedOutput: "hello async main", expectedReturnCode: 10);
527
var
verifier = CompileAndVerify(c, expectedOutput: "hello async main", expectedReturnCode: 0);
567
var
verifier = CompileAndVerify(c, expectedOutput: "hello async main", expectedReturnCode: 10, args: new string[] { "async main" });
585
var
verifier = CompileAndVerify(c, expectedOutput: "hello async main", expectedReturnCode: 0, args: new string[] { "async main" });
1567
var
verifier = CompileAndVerify(comp, expectedOutput: "");
1809
var
verifier = CompileAndVerify(comp, expectedOutput: "");
CodeGen\CodeGenAsyncMethodBuilderOverrideTests.cs (5)
131
var
verifier = CompileAndVerify(compilation, expectedOutput: "M F G 3");
537
var
verifier = CompileAndVerify(compilation, expectedOutput: "M F G 3");
844
var
verifier = CompileAndVerify(compilation, expectedOutput: "M F 3");
943
var
verifier = CompileAndVerify(compilation, expectedOutput: "Overload1 Lambda1 Overload2 Lambda2");
2137
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
CodeGen\CodeGenAsyncSpillTests.cs (105)
24
private
CompilationVerifier
CompileAndVerify(string source, string expectedOutput = null, IEnumerable<MetadataReference> references = null, CSharpCompilationOptions options = null)
84
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
177
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
316
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
457
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
531
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
604
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
710
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
799
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
894
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
981
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
1068
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
1121
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
1261
var
verifier = CompileAndVerify(comp, verify: Verification.Fails with
1348
var
v = CompileAndVerify(source, options: TestOptions.ReleaseDll);
1476
var
verifier = CompileAndVerify(comp, verify: Verification.Fails with
1576
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
1713
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
1822
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
1883
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
1945
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
2021
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
2097
var
verifier = CompileAndVerify(comp, verify: Verification.Fails with
2334
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
2607
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
2782
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
2966
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
3164
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
3377
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
3621
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
3850
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
4202
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("", isRuntimeAsync: true), verify: Verification.Fails with
4276
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
4384
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
4544
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
4640
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
4719
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
4825
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
4958
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
5175
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
5400
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
5727
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
6049
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
6101
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
6199
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
6279
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
6345
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
6520
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
6720
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
6906
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("0", isRuntimeAsync: true), verify: Verification.Fails with
7104
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("0", isRuntimeAsync: true), verify: Verification.Fails with
7343
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("0", isRuntimeAsync: true), verify: Verification.Fails with
7617
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("0", isRuntimeAsync: true), verify: Verification.Fails with
7742
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
7950
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("0", isRuntimeAsync: true), verify: Verification.Fails with
8180
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
8266
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
8332
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
8411
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
8506
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
8578
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
8747
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
8818
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
8895
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
8961
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
9028
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
9098
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
9166
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
9273
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
9379
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
9479
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
9567
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
9654
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
9749
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
9991
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
10062
var
verifier = CompileAndVerify(source, expectedOutput: expectedOutput,
10211
var
v = CompileAndVerify(source, expectedOutput);
10214
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
10280
var
v = CompileAndVerify(source, expectedOutput);
10283
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
10405
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
10482
var
v = CompileAndVerify(source + span, options: TestOptions.DebugExe);
10586
var
verifier = CompileAndVerify(comp, verify: Verification.Fails with
10637
var
v = CompileAndVerify(
10651
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
10728
var
v = CompileAndVerify(
10742
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
10883
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
11030
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
11117
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
11308
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
11581
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
11838
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
12059
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
12291
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
12523
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
12739
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
12986
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
13251
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
13539
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
13835
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
13997
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
14051
var
verifier = CompileAndVerify(source, expectedOutput: expectedOutput);
14113
var
verifier = CompileAndVerify(source, expectedOutput: expectedOutput);
14170
var
verifier = CompileAndVerify(source, expectedOutput: expectedOutput);
CodeGen\CodeGenAsyncTests.cs (50)
49
private
CompilationVerifier
CompileAndVerify(string source, string expectedOutput, IEnumerable<MetadataReference> references = null, CSharpCompilationOptions options = null, Verification verify = default)
149
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
305
var
verifier = CompileAndVerify(comp, expectedOutput: ExpectedOutput(expected, isRuntimeAsync: true), verify: Verification.Fails with
371
var
verifier = CompileAndVerify(comp, expectedOutput: ExpectedOutput(expected, isRuntimeAsync: true), verify: Verification.Fails with
432
var
verifier = CompileAndVerify(comp, expectedOutput: ExpectedOutput(expected, isRuntimeAsync: true), verify: Verification.Fails with
492
var
verifier = CompileAndVerify(comp, expectedOutput: ExpectedOutput(expected, isRuntimeAsync: true), verify: Verification.Fails with
569
var
verifier = CompileAndVerify(comp, expectedOutput: ExpectedOutput("42", isRuntimeAsync: true), verify: Verification.Fails with
708
var
verifier = CompileAndVerify(comp, expectedOutput: ExpectedOutput("42", isRuntimeAsync: true), verify: Verification.Fails with
832
var
verifier = CompileAndVerify(comp, expectedOutput: ExpectedOutput("42", isRuntimeAsync: true), verify: Verification.Fails with
945
var
verifier = CompileAndVerify(comp, expectedOutput: ExpectedOutput("42", isRuntimeAsync: true), verify: Verification.Fails with
1076
var
verifier = CompileAndVerify(comp, expectedOutput: ExpectedOutput("42", isRuntimeAsync: true), verify: Verification.Fails with
1189
var
verifier = CompileAndVerify(comp, expectedOutput: ExpectedOutput("42", isRuntimeAsync: true), verify: Verification.Fails with
1327
var
verifier = CompileAndVerify(comp, expectedOutput: ExpectedOutput("0", isRuntimeAsync: true), verify: Verification.Fails with
2368
var
verifier = CompileAndVerify(comp, expectedOutput: null, verify: Verification.Fails with
3475
var
verifier = CompileAndVerify(comp, expectedOutput: ExpectedOutput("0", isRuntimeAsync: true), verify: Verification.Fails with
3604
var
verifier = CompileAndVerify(comp, expectedOutput: ExpectedOutput("0", isRuntimeAsync: true), verify: Verification.Fails with
3720
var
c = CompileAndVerify(source, expectedOutput: expected);
3865
var
c = CompileAndVerify(source, options: TestOptions.ReleaseDebugExe, expectedOutput: expected);
4013
var
c = CompileAndVerify(source, expectedOutput: expected, options: TestOptions.DebugExe);
4168
var
c = CompileAndVerify(source, expectedOutput: expected);
5047
var
v = CompileAndVerify(source, null, options: TestOptions.ReleaseDll);
5510
var
v = CompileAndVerify(source, null, options: TestOptions.ReleaseDll);
5832
var
v = CompileAndVerify(source, null, options: TestOptions.DebugDll);
7391
var
verifier = CompileAndVerify(comp, expectedOutput: ExpectedOutput(expected, isRuntimeAsync: true), verify: Verification.Fails with
7454
var
verifier = CompileAndVerify(comp, expectedOutput: ExpectedOutput(expected, isRuntimeAsync: true), verify: Verification.Fails with
7592
var
verifier = CompileAndVerify(comp);
7792
var
verifier = CompileAndVerify(src, expectedOutput: ExpectedOutput("4242"), references: [libComp.EmitToImageReference()],
8021
var
verifier = CompileAndVerify(comp, verify: Verification.Fails with { ILVerifyMessage = ReturnValueMissing("<Main>$", "0xa") });
8045
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
8088
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
8138
var
verifier = CompileAndVerify(comp, verify: Verification.Fails with { ILVerifyMessage = ReturnValueMissing("Main", "0xa") });
8178
var
verifier = CompileAndVerify(comp, verify: Verification.Fails with { ILVerifyMessage = ReturnValueMissing("Main", "0xa") });
8240
var
verifier = CompileAndVerify(comp, verify: Verification.Fails with { ILVerifyMessage = ReturnValueMissing("Main", "0x26") });
8299
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
8344
var
verifier = CompileAndVerify(comp, verify: Verification.Fails with { ILVerifyMessage = ReturnValueMissing("<Main>g__LocalFunc|0_0", "0xa") });
8399
var
verifier = CompileAndVerify(comp, verify: Verification.Fails with { ILVerifyMessage = ReturnValueMissing("<Main>b__0_0", "0xa") });
8467
var
verifier = CompileAndVerify(comp, expectedOutput: ExpectedOutput("42", isRuntimeAsync: true), verify: Verification.Fails with { ILVerifyMessage = ReturnValueMissing("<Main>$", "0x1f") });
8524
var
verifier = CompileAndVerify(comp, expectedOutput: ExpectedOutput("42", isRuntimeAsync: true), verify: Verification.Fails with { ILVerifyMessage = ReturnValueMissing("<Main>$", "0x24") });
8583
var
verifier = CompileAndVerify(comp, expectedOutput: ExpectedOutput("55", isRuntimeAsync: true), verify: Verification.Fails with
8662
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
8785
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
8831
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
8879
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
8928
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
9222
var
verifier = CompileAndVerify(comp, expectedOutput: ExpectedOutput("42", isRuntimeAsync: true), verify: Verification.Fails with
9329
var
verifier = CompileAndVerify(comp, expectedOutput: ExpectedOutput("42", isRuntimeAsync: true), verify: Verification.Fails with
9415
var
verifier = CompileAndVerify(comp, verify: Verification.Fails with
9459
var
verifier = CompileAndVerify(comp, verify: Verification.Fails with
9503
var
verifier = CompileAndVerify(comp, expectedOutput: ExpectedOutput("1", isRuntimeAsync: true), verify: Verification.Fails with
9549
var
verifier = CompileAndVerify(comp, expectedOutput: ExpectedOutput("1", isRuntimeAsync: true), verify: Verification.Fails with
CodeGen\CodeGenAwaitForeachTests.cs (105)
187
var
verifierChecked = CompileAndVerify(runtimeAsyncCompChecked, expectedOutput: CodeGenAsyncTests.ExpectedOutput("overflow", isRuntimeAsync: true), verify: Verification.Fails with
275
var
verifierUnchecked = CompileAndVerify(runtimeAsyncCompUnchecked, expectedOutput: CodeGenAsyncTests.ExpectedOutput("0xFFFFFFFF", isRuntimeAsync: true), verify: Verification.Fails with
998
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("MoveNextAsync 1", isRuntimeAsync: true), verify: Verification.Fails with
1066
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("MoveNextAsync 0", isRuntimeAsync: true), verify: Verification.Fails with
1289
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
1410
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("Got(1) Got(2) Captured(1)", isRuntimeAsync: true), verify: Verification.Fails with
1561
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
1680
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("exception", isRuntimeAsync: true), verify: Verification.Fails with
1794
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("dispose exception", isRuntimeAsync: true), verify: Verification.Fails with
1913
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("wait dispose exception", isRuntimeAsync: true), verify: Verification.Fails with
2025
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("wait exception", isRuntimeAsync: true), verify: Verification.Fails with
2378
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("MoveNextAsync", isRuntimeAsync: true), verify: Verification.Fails with
2590
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
2930
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("1 2 Done", isRuntimeAsync: true), verify: Verification.Fails with
3167
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("1 2 Done", isRuntimeAsync: true), verify: Verification.Fails with
3276
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("2 4 -1 Done", isRuntimeAsync: true), verify: Verification.Fails with
3457
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
3595
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
3770
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("1 2 3 Done", isRuntimeAsync: true), verify: Verification.Fails);
3857
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
3975
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
4275
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
4413
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
4553
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("Item(1) Dispose Done", isRuntimeAsync: true), verify: Verification.Fails with
4901
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
5029
var
verifier = CompileAndVerify(comp,
5229
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
5483
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
5611
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput);
5832
var
runtimeAsyncVerifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
5966
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("NextAsync(2) Current(3) Got(3) NextAsync(3) Dispose(4) Done", isRuntimeAsync: true), verify: Verification.Fails with
6101
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
6268
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
6444
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
6613
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("Success", isRuntimeAsync: true), verify: Verification.Fails with
6746
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
6958
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
7113
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
7236
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("Success", isRuntimeAsync: true), verify: Verification.Fails with
7392
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
7582
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
7738
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
8077
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
8197
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput);
8458
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput);
8468
var
verifier2 = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
8768
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("MoveNextAsync", isRuntimeAsync: true), verify: Verification.Fails with
8893
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("MoveNextAsync DisposeAsync Done", isRuntimeAsync: true), verify: Verification.Fails with
9039
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("MoveNextAsync Done", isRuntimeAsync: true), verify: Verification.Fails with
9117
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("MoveNextAsync Done", isRuntimeAsync: true), verify: Verification.Fails with
9191
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("MoveNextAsync DisposeAsync Done", isRuntimeAsync: true), verify: Verification.Fails with
9383
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("MoveNextAsync DisposeAsync Done", isRuntimeAsync: true), verify: Verification.Fails with
9494
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("MoveNextAsync DisposeAsync Done", isRuntimeAsync: true), verify: Verification.Fails with
9598
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("MoveNextAsync DisposeAsync Done", isRuntimeAsync: true), verify: Verification.Fails with
9702
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("MoveNextAsync DisposeAsync 1 Done", isRuntimeAsync: true), verify: Verification.Fails with
9816
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("StructAwaitable1StructAwaitable2", isRuntimeAsync: true), verify: Verification.Fails with
9990
var
verifier = CompileAndVerify(runtimeAsyncComp, verify: Verification.Fails with
10080
var
verifier = CompileAndVerify(runtimeAsyncComp, verify: Verification.Fails with
10241
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
10298
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
10355
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
10412
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
10657
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
10721
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
10781
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
10840
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
10966
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
11028
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
11085
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
11151
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
11208
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
11268
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
11325
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
11388
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
11478
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
11574
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
11794
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
11908
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
12158
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
12305
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
12408
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
12506
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("23", isRuntimeAsync: true), verify: Verification.Fails with
12601
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
12765
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
12828
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
12921
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
12978
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
13154
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
13214
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
13274
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123Disposed", isRuntimeAsync: true), verify: Verification.Fails with
13360
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123Disposed", isRuntimeAsync: true), verify: Verification.Fails with
13446
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123Disposed", isRuntimeAsync: true), verify: Verification.Fails with
13528
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
13604
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123Disposed", isRuntimeAsync: true), verify: Verification.Fails with
13692
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
13837
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
13916
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
14085
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
14147
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123", isRuntimeAsync: true), verify: Verification.Fails with
14244
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("123123", isRuntimeAsync: true), verify: Verification.Fails with
14339
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("RAN", isRuntimeAsync: true), verify: Verification.Fails with
14476
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("RAN", isRuntimeAsync: true), verify: Verification.Fails with
14615
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("RAN", isRuntimeAsync: true), verify: Verification.Fails with
14811
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("RAN", isRuntimeAsync: true), verify: Verification.Fails with
14977
var
verifier = CompileAndVerify(runtimeAsyncComp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
CodeGen\CodeGenAwaitUsingTests.cs (32)
220
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
461
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
648
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
759
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
853
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
1241
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
1529
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput);
1763
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput);
1998
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput);
2233
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
2300
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
2399
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput);
2627
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput);
2867
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("True", isRuntimeAsync: true), verify: Verification.Fails with
2948
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("body DisposeAsync", isRuntimeAsync: true), verify: Verification.Fails with
3043
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("body", isRuntimeAsync: true), verify: Verification.Fails with
3182
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
3322
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
3460
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
3691
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
3803
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
3886
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("using dispose_start dispose_end return", isRuntimeAsync: true), verify: Verification.Fails with
3972
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
4055
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
4139
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
4302
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput);
4569
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with { ILVerifyMessage = """
4656
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with
4739
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput(expectedOutput, isRuntimeAsync: true), verify: Verification.Fails with { ILVerifyMessage = """
4856
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("StructAwaitable", isRuntimeAsync: true), verify: Verification.Fails with
4937
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("DISPOSED", isRuntimeAsync: true), verify: Verification.Fails with
5492
var
verifier = CompileAndVerify(comp, expectedOutput: CodeGenAsyncTests.ExpectedOutput("DISPOSED", isRuntimeAsync: true), verify: Verification.Fails with
CodeGen\CodeGenCheckedTests.cs (38)
46
var
verifier = CompileAndVerify(source);
120
var
verifier = CompileAndVerify(source);
218
var
verifier = CompileAndVerify(source);
391
var
verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
611
var
verifier = CompileAndVerify(source);
680
var
verifier = CompileAndVerify(source);
766
var
verifier = CompileAndVerify(source);
847
var
verifier = CompileAndVerify(source);
904
var
verifier = CompileAndVerify(source);
991
var
verifier = CompileAndVerify(source);
1045
var
verifier = CompileAndVerify(source);
1201
var
verifier = CompileAndVerify(source);
1297
var
verifier = CompileAndVerify(source);
1338
var
verifier = CompileAndVerify(@"
1367
var
verifier = CompileAndVerify(@"
1395
var
verifier = CompileAndVerify(@"
1420
var
verifier = CompileAndVerify(@"
1447
var
verifier = CompileAndVerify(@"
1473
var
verifier = CompileAndVerify(@"
1499
var
verifier = CompileAndVerify(@"
1526
var
verifier = CompileAndVerify(@"
1554
var
verifier = CompileAndVerify(@"
1582
var
verifier = CompileAndVerify(@"
1610
var
verifier = CompileAndVerify(@"
1639
var
verifier = CompileAndVerify(@"
1667
var
verifier = CompileAndVerify(@"
1695
var
verifier = CompileAndVerify(@"
1723
var
verifier = CompileAndVerify(@"
1751
var
verifier = CompileAndVerify(@"
1775
var
verifier = CompileAndVerify(@"
1798
var
verifier = CompileAndVerify(@"
1821
var
verifier = CompileAndVerify(@"
1846
var
verifier = CompileAndVerify(@"
2026
var
verifier = CompileAndVerify(source);
2340
var
verifier = CompileAndVerify(source);
2701
var
verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2748
var
verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2850
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN1 RAN2 RAN3");
CodeGen\CodeGenClosureLambdaTests.cs (31)
22
var
verifier = CompileAndVerify(@"
131
var
compilation = CompileAndVerify(source, expectedOutput: @"12");
188
var
compilation = CompileAndVerify(source, expectedOutput: @"12
256
var
compilation = CompileAndVerify(source, expectedOutput: @"12");
801
var
verifier = CompileAndVerify(source, expectedOutput: "pass");
866
var
verifier = CompileAndVerify(source, expectedOutput: "pass");
946
var
verifier = CompileAndVerify(source, expectedOutput: "pass");
968
var
verifier = CompileAndVerify(source, expectedOutput: "pass");
1043
var
verifier = CompileAndVerify(source, expectedOutput: "pass");
1115
var
verifier = CompileAndVerify(source, expectedOutput: "pass_xy");
1219
var
verifier = CompileAndVerify(source, expectedOutput: "pass_xy");
3248
var
verifier = CompileAndVerify(source, expectedOutput: "42",
4409
var
verifier = CompileAndVerify(
4432
var
compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"True
4454
var
compilation = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"True
4480
var
verifier = CompileAndVerify(
4538
var
verifier = CompileAndVerify(
4613
var
verifier = CompileAndVerify(
4640
var
verifier = CompileAndVerify(
4682
var
compilation = CompileAndVerify(source, expectedOutput: "0");
4716
var
verifier = CompileAndVerify(comp, expectedSignatures: new[]
4808
var
verifier = CompileAndVerify(comp);
4937
var
verifier = CompileAndVerify(comp);
5065
var
compilation = CompileAndVerify(source, expectedOutput: "success");
5122
var
compilation = CompileAndVerify(source);
5153
var
compilation = CompileAndVerify(source);
5358
var
compilation = CompileAndVerify(source, expectedOutput: @"True");
5584
var
compilation = CompileAndVerify(source, expectedOutput: @"0-System.String;");
5642
var
compilation = CompileAndVerify(source, expectedOutput: @"0-System.String;");
5724
var
compilation = CompileAndVerify(source, expectedOutput: @"0-System.String;");
5781
var
compilation = CompileAndVerify(source, expectedOutput: @"0-System.String;");
CodeGen\CodeGenConditionalOperatorTests.cs (35)
41
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput);
171
var
verifier = CompileAndVerify(source,
373
var
verifier = CompileAndVerify(source,
456
var
verifier = CompileAndVerify(source,
569
var
verifier = CompileAndVerify(comp, expectedOutput: """
624
var
verify = CompileAndVerify(src,
748
var
verify = CompileAndVerify(src,
874
var
verify = CompileAndVerify(src,
1003
var
verify = CompileAndVerify(src,
1152
var
verify = CompileAndVerify(src,
1236
var
verify = CompileAndVerify(src,
1326
var
verify = CompileAndVerify(src,
1432
var
verify = CompileAndVerify(src,
1519
var
comp = CompileAndVerify(source, expectedOutput: "1");
1548
var
comp = CompileAndVerify(source, expectedOutput: @"
1581
var
comp = CompileAndVerify(source);
1621
var
comp = CompileAndVerify(source);
1687
var
comp = CompileAndVerify(source, parseOptions: TestOptions.Regular10);
1733
var
comp = CompileAndVerify(source, expectedOutput: "00");
1782
var
comp = CompileAndVerify(source, expectedOutput: @"
1842
var
comp = CompileAndVerify(source);
1888
var
comp = CompileAndVerify(source);
1930
var
comp = CompileAndVerify(source);
2008
var
comp = CompileAndVerify(source);
2777
var
verify = CompileAndVerify(src,
3058
var
comp = CompileAndVerify(@"
3289
var
verify = CompileAndVerify(source, expectedOutput: expectedOutput);
3386
var
verify = CompileAndVerify(source, expectedOutput: @"0
3465
var
verify = CompileAndVerify(source, expectedOutput: @"0
3540
var
verify = CompileAndVerify(source, expectedOutput: @"0
3613
var
verify = CompileAndVerify(source, expectedOutput: @"0
3680
var
verifier = CompileAndVerify(source, expectedOutput: @"abc
3742
var
verifier = CompileAndVerify(source, expectedOutput: @"abc
3800
var
verifier = CompileAndVerify(source, expectedOutput: "11True").VerifyDiagnostics();
3861
var
verifier = CompileAndVerify(source, expectedOutput: "11True").VerifyDiagnostics();
CodeGen\CodeGenConversionTests.cs (20)
81
var
compilationVerifier = CompileAndVerify(source, expectedOutput: @"");
116
var
compilationVerifier = CompileAndVerify(source, expectedOutput: @"Goo<T>(J<T> x)
174
var
compilation = CompileAndVerify(text);
281
var
verifier1 = CompileAndVerify(source1 + source2, expectedOutput: expectedOutput);
379
var
verifier1 = CompileAndVerify(source1 + source2, expectedOutput: expectedOutput);
404
var
compilation = CompileAndVerify(text);
450
var
compilation = CompileAndVerify(text);
498
var
compilation = CompileAndVerify(text);
542
var
compilation = CompileAndVerify(text, expectedOutput: "Value is: 1");
601
var
compilation = CompileAndVerify(text, expectedOutput: "Value is: 1");
649
var
compilation = CompileAndVerify(text, expectedOutput: "Value is: 1");
711
var
compilation = CompileAndVerify(source, expectedOutput: "TrueTrue");
777
var
compilation = CompileAndVerify(source);
869
var
compilation = CompileAndVerify(source);
904
var
compilation = CompileAndVerify(source);
939
var
compilation = CompileAndVerify(source);
975
var
compilation = CompileAndVerify(source);
1012
var
compilation = CompileAndVerify(source);
1118
var
comp = CompileAndVerify(source);
1159
var
comp = CompileAndVerify(source);
CodeGen\CodeGenDeconstructTests.cs (133)
108
var
comp = CompileAndVerifyWithMscorlib40(source, expectedOutput: "1 hello", references: s_valueTupleRefs, sourceSymbolValidator: validator);
196
var
comp = CompileAndVerify(source, expectedOutput: "1 hello");
250
var
comp = CompileAndVerify(source, expectedOutput: "1 hello");
390
var
comp = CompileAndVerify(source, expectedOutput: expected);
436
var
comp = CompileAndVerify(source, expectedOutput: expected);
481
var
comp = CompileAndVerify(source, expectedOutput: expected);
527
var
comp = CompileAndVerify(source, expectedOutput: expected);
587
var
comp = CompileAndVerify(source, expectedOutput: expected);
648
var
comp = CompileAndVerify(source, expectedOutput: expected);
681
var
comp = CompileAndVerify(source, expectedOutput: "1 hello world");
709
var
comp = CompileAndVerify(source, expectedOutput: "1 hello", references: new[] { CSharpRef });
748
var
comp = CompileAndVerify(source, expectedOutput: "initial modified 1 hello", references: new[] { CSharpRef });
781
var
comp = CompileAndVerify(source, expectedOutput: "2 hello");
836
var
comp = CompileAndVerify(source, expectedOutput: "1 hello", references: new[] { CSharpRef });
868
var
comp = CompileAndVerify(source, expectedOutput: "1 hello world");
899
var
comp = CompileAndVerify(source, expectedOutput: "2 3");
939
var
comp = CompileAndVerify(source, expectedOutput: expected);
981
var
comp = CompileAndVerify(source, expectedOutput: expected);
1029
var
comp = CompileAndVerify(source, expectedOutput: expected);
1085
var
comp = CompileAndVerify(source, expectedOutput: expected);
1106
var
comp = CompileAndVerify(source, expectedOutput: "1 hello");
1156
var
comp = CompileAndVerify(source, expectedOutput: "1 hello");
1177
var
comp = CompileAndVerify(source, expectedOutput: "4 2");
1215
var
comp = CompileAndVerify(source, expectedOutput: "9 10");
1267
var
comp = CompileAndVerify(source, expectedOutput: "4 2");
1288
var
comp = CompileAndVerify(source, expectedOutput: "hello");
1324
var
comp = CompileAndVerify(source);
1372
var
comp = CompileAndVerify(source, sourceSymbolValidator: validator);
1429
var
comp = CompileAndVerify(source,
1684
var
comp = CompileAndVerify(source,
1896
var
comp = CompileAndVerify(source, expectedOutput: "(1, 2)");
1931
var
comp = CompileAndVerify(source, expectedOutput: expected);
1959
var
comp = CompileAndVerify(source, expectedOutput: expected);
2026
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
2084
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
2175
var
comp = CompileAndVerify(source, expectedOutput: "4 2");
2210
var
comp = CompileAndVerify(source, expectedOutput: "(1, 1) 2");
2234
var
comp = CompileAndVerify(source, expectedOutput: "(1, 1) 2", parseOptions: TestOptions.Regular.WithRefsFeature());
2260
var
comp = CompileAndVerify(source, expectedOutput: "1 2", parseOptions: TestOptions.Regular.WithRefsFeature());
2282
var
comp = CompileAndVerify(source, expectedOutput: "1 hello world", parseOptions: TestOptions.Regular.WithRefsFeature());
2374
var
comp = CompileAndVerify(source, expectedOutput: "override", parseOptions: TestOptions.Regular.WithRefsFeature());
2402
var
comp = CompileAndVerify(source, expectedOutput: expected, parseOptions: TestOptions.Regular.WithRefsFeature());
2432
var
comp = CompileAndVerify(source, expectedOutput: "1 hello");
2495
var
comp = CompileAndVerify(source, expectedOutput: "1 hello");
2560
var
comp = CompileAndVerify(source, expectedOutput: "Deconstructed");
2592
var
comp = CompileAndVerify(source, expectedOutput: "Deconstructed");
2661
var
comp = CompileAndVerify(source, expectedOutput: "2 hello");
2694
var
comp = CompileAndVerify(source, expectedOutput: "1 a b", sourceSymbolValidator: validator);
2713
var
comp = CompileAndVerify(source, expectedOutput: "nothing");
2749
var
comp = CompileAndVerify(source, expectedOutput: "1 a b");
2776
var
comp = CompileAndVerify(source, expectedOutput: "1 2 3");
2804
var
comp = CompileAndVerify(source, expectedOutput: "1 a b");
2863
var
comp = CompileAndVerify(source, expectedOutput: expected);
2923
var
comp = CompileAndVerify(source, expectedOutput: expected);
2971
var
comp = CompileAndVerify(source, expectedOutput: expected);
3000
var
comp = CompileAndVerify(source, expectedOutput: "1 hello");
3034
var
comp = CompileAndVerify(source, expectedOutput: "1 hello");
3068
var
comp = CompileAndVerify(source, expectedOutput: "2 hello");
3087
var
comp = CompileAndVerify(source, expectedOutput: "1 hello");
3153
var
comp = CompileAndVerify(source, expectedOutput: "1 2 hello", sourceSymbolValidator: validator);
3215
var
comp = CompileAndVerify(source, expectedOutput: "1 2 3 hello 5",
3254
var
comp = CompileAndVerify(source, expectedOutput: "1 2 3",
3305
var
comp = CompileAndVerify(source, expectedOutput: "1 2 hello", sourceSymbolValidator: validator);
3342
var
comp = CompileAndVerify(source, sourceSymbolValidator: validator,
3381
var
comp = CompileAndVerify(source, expectedOutput: "1 2 hello", sourceSymbolValidator: validator);
3401
var
comp = CompileAndVerify(source, expectedOutput: "var");
3418
var
comp = CompileAndVerify(source, expectedOutput: " 1 2");
3454
var
comp = CompileAndVerify(source, expectedOutput: " 2 3", sourceSymbolValidator: validator);
3496
var
comp = CompileAndVerify(source, expectedOutput: " (1, 2)", sourceSymbolValidator: validator);
3514
var
comp = CompileAndVerify(source, expectedOutput: " 2 3 4");
3557
var
comp = CompileAndVerify(source, expectedOutput: expected, parseOptions: TestOptions.Regular,
3709
var
comp = CompileAndVerify(source, expectedOutput: "var 2", sourceSymbolValidator: validator);
3762
var
comp = CompileAndVerify(source, expectedOutput: "1 2 3 4", sourceSymbolValidator: validator);
3815
var
comp = CompileAndVerify(source, expectedOutput: "var 2", sourceSymbolValidator: validator);
3856
var
comp = CompileAndVerify(source, expectedOutput: "1 2", sourceSymbolValidator: validator);
3897
var
comp = CompileAndVerify(source, expectedOutput: @"1
3951
var
comp = CompileAndVerify(source, expectedOutput: "1 var", sourceSymbolValidator: validator);
3997
var
comp = CompileAndVerify(source, expectedOutput: "1 2", sourceSymbolValidator: validator);
4060
var
comp = CompileAndVerify(source, expectedOutput: "1 2", sourceSymbolValidator: validator);
4063
var
comp7_1 = CompileAndVerify(source, expectedOutput: "1 2",
4149
var
comp = CompileAndVerify(source, expectedOutput: "1 2 - 3 4 -", sourceSymbolValidator: validator);
4232
var
comp = CompileAndVerify(source, expectedOutput: "1 2 - 3 4 - 5 6 - 7 8 -", sourceSymbolValidator: validator);
4343
var
comp = CompileAndVerify(source, expectedOutput: "1 1 - 2 2 - 3 3 - ", sourceSymbolValidator: validator);
4464
var
comp = CompileAndVerify(source, expectedOutput: "1 2 3 4 5 - 6 7 8 9 10 -", sourceSymbolValidator: validator);
4485
var
comp = CompileAndVerify(source, expectedOutput: "1 2 3 4 5 - 6 7 8 9 10 -");
4506
var
comp = CompileAndVerify(source, expectedOutput: "1 2 3 4 5 - 6 7 8 9 10 -");
4535
var
comp = CompileAndVerify(source, expectedOutput: "1 1 1 - 2 2 2 - ");
4562
var
comp = CompileAndVerify(source, expectedOutput: "42 hello");
4618
var
comp = CompileAndVerify(source, expectedOutput: expected, sourceSymbolValidator: validator);
4702
var
comp = CompileAndVerify(source, expectedOutput: expected);
4731
var
comp = CompileAndVerify(source, expectedOutput: expected);
4749
var
comp = CompileAndVerify(source, expectedOutput: "1 2 - 3 4 -");
4774
var
comp = CompileAndVerify(source, expectedOutput: "0 10 ");
4797
var
comp = CompileAndVerify(source, expectedOutput: "hello world", references: new[] { CSharpRef });
4820
var
comp = CompileAndVerify(source, expectedOutput: "3 4", references: new[] { CSharpRef });
4849
var
comp = CompileAndVerify(source, expectedOutput: "hello world", references: new[] { CSharpRef });
4872
var
comp = CompileAndVerify(source, expectedOutput: "hello world", references: new[] { CSharpRef });
4901
var
comp = CompileAndVerify(source, expectedOutput: "hello world", references: new[] { CSharpRef });
4925
var
comp = CompileAndVerify(source, expectedOutput: "3 4", references: new[] { CSharpRef });
4947
var
comp = CompileAndVerify(source, expectedOutput: "1 2 3");
5049
var
verifier = CompileAndVerify(comp, expectedOutput: "hello 42", sourceSymbolValidator: validator);
5140
var
verifier = CompileAndVerify(comp, expectedOutput: "hello 42 43");
5154
var
verifier = CompileAndVerify(comp, expectedOutput: "hello 42");
5200
var
verifier = CompileAndVerify(comp, expectedOutput: "hello 42 43", sourceSymbolValidator: validator);
5215
var
verifier = CompileAndVerify(comp, expectedOutput: "1 2 3");
5324
var
verifier = CompileAndVerify(comp, expectedOutput: "hello 42 world", sourceSymbolValidator: validator);
5360
var
verifier = CompileAndVerify(comp, expectedOutput: "hello 42 world", sourceSymbolValidator: validator);
6449
var
comp = CompileAndVerify(source, expectedOutput: @"2", sourceSymbolValidator: validator);
6527
var
comp = CompileAndVerify(source, expectedOutput: "ctor");
7618
var
comp = CompileAndVerify(source, expectedOutput: "5 (Goo, 34983490)");
7640
var
comp = CompileAndVerify(source, expectedOutput: "42", verify: Verification.Passes);
7783
var
comp = CompileAndVerify(source, expectedOutput:
7817
var
comp = CompileAndVerify(source, expectedOutput:
7862
var
comp2 = CompileAndVerify(source2, targetFramework: TargetFramework.Empty, expectedOutput:
7921
var
comp2 = CompileAndVerify(source2, targetFramework: TargetFramework.Empty, expectedOutput:
8007
var
comp = CompileAndVerify(source, expectedOutput: "1 hello");
8059
var
comp = CompileAndVerify(source, expectedOutput: "1 hello");
8109
var
comp = CompileAndVerify(source, expectedOutput: "1 hello 2");
8162
var
comp = CompileAndVerify(source, expectedOutput: "1 2");
8209
var
verifier = CompileAndVerify(comp, expectedOutput: "3");
8710
var
verifier = CompileAndVerify(comp);
8732
var
verifier = CompileAndVerify(comp);
9096
var
comp = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: "102030405060");
9154
var
comp = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: "102030405060");
9212
var
comp = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: "102030405060");
9298
var
comp = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expected);
9389
var
comp = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput);
9406
var
comp = CompileAndVerify(source);
9525
var
comp = CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: @"1 hello
9653
var
comp = CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: @"1 hello True
9817
var
comp = CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: @"1 hello
9902
var
comp = CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: @"1 hello
10067
var
comp = CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: @"1 hello True
CodeGen\CodeGenDisplayClassOptimisationTests.cs (52)
16
private static void VerifyTypeIL(
CompilationVerifier
compilation, string typeName, string expected)
45
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"3", options: TestOptions.ReleaseExe);
129
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"3", options: TestOptions.DebugExe);
260
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"three
435
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
587
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
733
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"three
952
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"one
1132
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"one
1367
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
1733
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "one");
1842
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "one");
1994
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "one");
2159
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"Program+Disposable
2313
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"Program+Disposable
2516
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"Program+Disposable
2849
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"one
3052
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"two
3255
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"one");
3451
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"one");
3588
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"one");
3732
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"three
3943
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1");
4033
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"");
4121
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1");
4225
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1");
4328
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1");
4424
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1");
4524
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1");
4617
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1");
4735
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1");
4852
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1");
4971
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1");
5091
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1");
5221
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1");
5338
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1");
5467
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1");
5567
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1");
5664
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1");
5798
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"4");
5941
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"2");
6094
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"3");
6229
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"3");
6361
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1
6553
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1
6751
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"3
6919
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"3
7087
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"3
7265
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
7401
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
7603
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
8055
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
CodeGen\CodeGenDynamicTests.cs (15)
26
private
CompilationVerifier
CompileAndVerifyIL(
44
var
unoptimizedVerifier = CompileAndVerify(unoptimizedCompilation, verify: verify);
45
var
optimizedVerifier = CompileAndVerify(optimizedCompilation, verify: verify);
310
var
c = CompileAndVerifyWithMscorlib40(source, new[] { systemCoreRef, csrtRef, funcRef });
584
var
verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: peModule =>
640
var
verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: peModule =>
675
var
verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: peModule =>
801
var
verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: peModule =>
821
var
verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: peModule =>
2281
var
verifier = CompileAndVerifyWithCSharp(source, symbolValidator: module =>
3378
var
verifier = CompileAndVerifyIL(source, "C.M", expectedUnoptimizedIL: @"
7496
var
verifier = CompileAndVerify(script);
14427
var
comp = CompileAndVerifyWithMscorlib40(source, expectedOutput: "hello!", references: new[] { ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef, SystemCoreRef });
15857
var
comp = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "321 123", references: new[] { CSharpRef });
16410
private static void VerifyTypeIL(
CompilationVerifier
compilation, string typeName, string expected)
CodeGen\CodeGenExplicitImplementationTests.cs (7)
435
var
comp = CompileAndVerify(source,
589
var
comp = CompileAndVerify(source,
670
var
comp = CompileAndVerify(source,
748
var
comp = CompileAndVerify(source, expectedOutput: @"
813
var
comp = CompileAndVerify(source, expectedOutput: @"
960
var
comp = CompileAndVerify(source, expectedSignatures: new[]
1062
var
verifier2 = CompileAndVerify(comp2, expectedSignatures: new[]
CodeGen\CodeGenExprLambdaTests.cs (32)
20
protected
CompilationVerifier
CompileAndVerifyUtil(
36
var
verifier = CompileAndVerify(new[] { ExpressionTestLibrary, @"
61
var
verifier = CompileAndVerify(@"
292
var
compilation = CompileAndVerifyUtil(
314
var
compilation = CompileAndVerifyUtil(
340
var
compilation = CompileAndVerifyUtil(
365
var
compilation = CompileAndVerifyUtil(
387
var
compilation = CompileAndVerifyUtil(
433
var
compilation = CompileAndVerifyUtil(
455
var
compilation = CompileAndVerifyUtil(
563
var
compilation = CompileAndVerifyUtil(
618
var
compilation = CompileAndVerifyUtil(
670
var
compilation = CompileAndVerifyUtil(
722
var
compilation = CompileAndVerifyUtil(
774
var
compilation = CompileAndVerifyUtil(
826
var
compilation = CompileAndVerifyUtil(
878
var
compilation = CompileAndVerifyUtil(
924
var
compilation = CompileAndVerifyUtil(
973
var
compilation = CompileAndVerifyUtil(
1035
var
compilation = CompileAndVerifyUtil(
1057
var
compilation = CompileAndVerifyUtil(
1159
var
compilation = CompileAndVerifyUtil(
1210
var
compilation = CompileAndVerifyUtil(
1278
var
compilation = CompileAndVerifyUtil(
1307
var
compilation = CompileAndVerifyUtil(
1357
var
compilation = CompileAndVerifyUtil(
1395
var
compilation = CompileAndVerifyUtil(
1458
var
compilation = CompileAndVerifyUtil(
2271
var
verifier = CompileAndVerify(comp, expectedOutput: "() => ModAdd2(3, 4, new [] {})");
2871
var
c = CompileAndVerifyUtil(text,
3699
var
verifier = CompileAndVerifyUtil(
3850
var
verifier = CompileAndVerifyUtil(
CodeGen\CodeGenForEachTests.cs (36)
39
var
compilation = CompileAndVerify(source, expectedOutput: @"
107
var
compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"
216
var
compilation = CompileAndVerify(source, expectedOutput: @"
381
var
compilation = CompileAndVerify(source, expectedOutput: @"
442
var
compilation = CompileAndVerify(source, expectedOutput: @"
510
var
compilation = CompileAndVerify(source, expectedOutput: @"
577
var
compilation = CompileAndVerify(source, expectedOutput: @"
640
var
compilation = CompileAndVerify(source, expectedOutput: @"
702
var
compilation = CompileAndVerify(source, expectedOutput: @"
844
var
compilation = CompileAndVerify(source, expectedOutput: @"
889
var
compilation = CompileAndVerify(source, expectedOutput: @"
954
var
compilation = CompileAndVerify(source, expectedOutput: @"
1018
var
compilation = CompileAndVerify(source, expectedOutput: @"
1088
var
compilation = CompileAndVerify(source, expectedOutput: @"
1149
var
compilation = CompileAndVerify(source, expectedOutput: @"
1219
var
compilation = CompileAndVerify(source, expectedOutput: @"
1281
var
compilation = CompileAndVerify(source, expectedOutput: @"
1357
var
compilation = CompileAndVerify(source, expectedOutput: @"
1398
var
verifier = CompileAndVerify(compilation, verify: Verification.FailsILVerify, expectedOutput: @"
1462
var
compilation = CompileAndVerify(source, verify: Verification.FailsILVerify, expectedOutput: @"
1497
var
compilation = CompileAndVerify(source, verify: Verification.FailsILVerify, expectedOutput: @"
1683
var
compilation = CompileAndVerify(source, expectedOutput: @"
1716
var
compilation = CompileAndVerify(source, expectedOutput: @"
1793
var
compilation = CompileAndVerify(source, expectedOutput: @"
1899
var
compilation = CompileAndVerify(source, expectedOutput: @"
1943
var
compilation = CompileAndVerify(source, expectedOutput: @"
1985
var
compilation = CompileAndVerify(source, expectedOutput: "1");
2011
var
compilation = CompileAndVerify(source, expectedOutput: "1");
2035
var
compilation = CompileAndVerify(source, expectedOutput: @"
2108
var
compilation = CompileAndVerify(source, expectedOutput: @"
2173
var
compilation = CompileAndVerify(source, expectedOutput: @"
2360
var
compilation = CompileAndVerify(source);
4355
var
verifier = CompileAndVerify(source, expectedOutput: "9123");
4407
var
verifier = CompileAndVerify(source, expectedOutput: "1235", verify: Verification.FailsILVerify);
5634
var
verifier = CompileAndVerify(comp);
5704
var
verifier = CompileAndVerify(comp);
CodeGen\CodeGenFunctionPointersTests.cs (113)
28
private
CompilationVerifier
CompileAndVerifyFunctionPointers(
59
private
CompilationVerifier
CompileAndVerifyFunctionPointersWithIl(string source, string ilStub, Action<ModuleSymbol>? symbolValidator = null, string? expectedOutput = null)
87
var
verifier = CompileAndVerifyFunctionPointers($@"
110
var
comp = CompileAndVerifyFunctionPointers(@"
131
var
verifier = CompileAndVerifyFunctionPointers(@"
155
var
verifier = CompileAndVerifyFunctionPointers(@"
179
var
verifier = CompileAndVerifyFunctionPointers(@"
214
var
verifier = CompileAndVerifyFunctionPointers(@"
469
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, il, expectedOutput: "12345678");
595
var
verifier = CompileAndVerifyFunctionPointers(@"
633
var
verifier = CompileAndVerifyFunctionPointers(@"
725
var
verifier = CompileAndVerifyFunctionPointers(@"
755
var
verifier = CompileAndVerifyFunctionPointers(@"
808
var
verifier = CompileAndVerifyFunctionPointers(@"
859
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub: ilSource, symbolValidator: symbolValidator);
1064
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: "Called");
1129
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: "Called");
1194
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: "Called");
1250
var
verifier = CompileAndVerifyFunctionPointers(source, expectedOutput: "Hello World");
1273
var
verifier = CompileAndVerifyFunctionPointers(new[] { $@"
1338
var
verifier = CompileAndVerifyFunctionPointers(source);
1358
var
verifier = CompileAndVerifyFunctionPointers(@"
1481
var
verifier = CompileAndVerifyFunctionPointers(new[] { @"
1574
var
verifier = CompileAndVerifyFunctionPointers(@"
1815
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: @"
1910
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: @"
1979
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: @"
2060
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: @"
2139
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: @"
2210
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: @"Ref set");
2281
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: @"Field");
2346
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: @"Field");
2435
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: @"
2480
var
verifier = CompileAndVerifyFunctionPointers(@"
2677
var
verifier = CompileAndVerifyFunctionPointers(@"
2702
var
verifier = CompileAndVerifyFunctionPointers(@"
2732
var
verifier = CompileAndVerifyFunctionPointers(@"
2783
var
verifier = CompileAndVerifyFunctionPointers(@"
2823
var
verifier = CompileAndVerifyFunctionPointers(@"
2860
var
verifier = CompileAndVerifyFunctionPointers(@"
2895
var
verifier = CompileAndVerifyFunctionPointers(@"
2937
var
verifier = CompileAndVerifyFunctionPointers(@"
2972
var
verifier = CompileAndVerifyFunctionPointers($@"
3017
var
verifier = CompileAndVerifyFunctionPointers(@"
3285
var
verifier = CompileAndVerifyFunctionPointers(@"
3519
var
verifier = CompileAndVerifyFunctionPointers(@"
3805
var
verifier = CompileAndVerifyFunctionPointers(@"
3867
var
verifier = CompileAndVerifyFunctionPointers(@"
3931
var
verifier = CompileAndVerifyFunctionPointers(@"
4143
var
verifier = CompileAndVerifyFunctionPointers(@"
4179
var
verifier = CompileAndVerifyFunctionPointers(@"
4240
var
verifier = CompileAndVerifyFunctionPointers(@"
4308
var
verifier = CompileAndVerifyFunctionPointers(@"
4345
var
verifier = CompileAndVerifyFunctionPointers(@"
4417
var
verifier = CompileAndVerifyFunctionPointers(@"
4482
var
verifier = CompileAndVerifyFunctionPointers(@"
4528
var
verifier = CompileAndVerifyFunctionPointers(@"
4586
var
verifier = CompileAndVerifyFunctionPointers(@"
4645
var
verifier = CompileAndVerifyFunctionPointers(@"
4700
var
verifier = CompileAndVerifyFunctionPointers(@"
4756
var
verifier = CompileAndVerifyFunctionPointers(@"
4818
var
verifier = CompileAndVerifyFunctionPointers(@"
4888
var
verifier = CompileAndVerifyFunctionPointers(@"
4932
var
verifier = CompileAndVerifyFunctionPointers(@"
4964
var
verifier = CompileAndVerifyFunctionPointers(@"
5038
var
verifier = CompileAndVerifyFunctionPointers(@"
5057
var
verifier = CompileAndVerifyFunctionPointers(@"
5088
var
verifier = CompileAndVerifyFunctionPointers(@"
5353
var
verifier = CompileAndVerifyFunctionPointers(@"
5455
var
comp = CompileAndVerifyFunctionPointers($@"
5485
var
comp = CompileAndVerifyFunctionPointers(@"
5601
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, il, symbolValidator: symbolValidator);
5780
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, il, expectedOutput: "LL");
5856
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, il, expectedOutput: "LL");
5881
var
verifier = CompileAndVerifyFunctionPointers(@"
5922
var
verifier = CompileAndVerifyFunctionPointers(@"
6013
var
verifier = CompileAndVerifyFunctionPointers(@"
6051
var
verifier = CompileAndVerifyFunctionPointers(@"
6970
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, il, expectedOutput: @"
7146
var
comp = CompileAndVerifyFunctionPointers(@"
7184
var
verifier = CompileAndVerifyFunctionPointers(@"
7211
var
verifier = CompileAndVerifyFunctionPointers(@"
7257
var
verifier = CompileAndVerifyFunctionPointers(@"
7467
var
verifier = CompileAndVerifyFunctionPointers(source, expectedOutput: "", options: TestOptions.UnsafeReleaseExe);
10707
var
verifier = CompileAndVerifyFunctionPointers(new[] { @"
10741
var
verifier = CompileAndVerifyFunctionPointers(new[] { @"
10827
var
verifier = CompileAndVerifyFunctionPointers(@"
10867
var
verifier = CompileAndVerifyFunctionPointers(@"
10917
var
verifier = CompileAndVerifyFunctionPointers(@"
11022
var
verifier = CompileAndVerify(comp, expectedOutput: "2", verify: Verification.Skipped);
11066
var
verifier = CompileAndVerifyFunctionPointers(@"
11098
var
verifier = CompileAndVerifyFunctionPointers(@"
11135
var
verifier = CompileAndVerifyFunctionPointers(@"
11173
var
verifier = CompileAndVerifyFunctionPointers(@"
11206
var
verifier = CompileAndVerifyFunctionPointers(@"
11248
var
verifier = CompileAndVerifyFunctionPointers(@"
11314
var
verifier = CompileAndVerifyFunctionPointers(@"
11363
var
verifier = CompileAndVerifyFunctionPointers(@"
11422
var
verifier = CompileAndVerifyFunctionPointers(@"
11673
var
verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.UnsafeDebugExe, symbolValidator: static module =>
11736
var
verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.UnsafeDebugExe, symbolValidator: static module =>
11799
var
verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.UnsafeDebugExe, symbolValidator: static module =>
11858
var
verifier = CompileAndVerify(source, options: TestOptions.UnsafeDebugExe, expectedOutput: "True", symbolValidator: static module =>
11890
var
verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe,
12133
var
verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.UnsafeDebugExe, symbolValidator: static module =>
12276
var
verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.UnsafeDebugExe, symbolValidator: static module =>
12315
var
verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.UnsafeDebugExe, symbolValidator: static module =>
12363
var
verifier = CompileAndVerify(source, expectedOutput: expectedOutput, options: TestOptions.UnsafeDebugExe, symbolValidator: module =>
12424
var
verifier = CompileAndVerifyFunctionPointers(code, expectedOutput: "true");
12470
var
verifier = CompileAndVerifyFunctionPointers(code, expectedOutput: "true");
12516
var
verifier = CompileAndVerifyFunctionPointers(code, expectedOutput: "true");
12562
var
verifier = CompileAndVerifyFunctionPointers(code, expectedOutput: "true");
12767
private static ModuleSymbol GetSourceModule(
CompilationVerifier
verifier)
CodeGen\CodeGenImplicitImplementationTests.cs (12)
959
var
comp = CompileAndVerify(source,
1214
var
comp = CompileAndVerify(source, expectedOutput: @"
1358
var
comp = CompileAndVerify(source, expectedOutput: @"
1431
var
comp = CompileAndVerify(source,
1491
var
comp = CompileAndVerify(source,
1551
var
comp = CompileAndVerify(source, expectedOutput: @"
1613
var
comp = CompileAndVerify(source, expectedOutput: @"
1678
var
comp = CompileAndVerify(source, expectedOutput: @"
1743
var
comp = CompileAndVerify(source, expectedOutput: @"
1811
var
comp = CompileAndVerify(source, expectedOutput: @"
1857
var
comp = CompileAndVerify(text,
2054
var
comp = CompileAndVerify(source, expectedOutput: @"
CodeGen\CodeGenImplicitlyTypeArraysTests.cs (2)
254
var
compilation = CompileAndVerify(
435
var
compilation = CompileAndVerify(
CodeGen\CodeGenIncrementTests.cs (1)
443
var
compilation = CompileAndVerify(source);
CodeGen\CodeGenInParametersTests.cs (51)
21
var
comp = CompileAndVerify(@"
83
var
comp = CompileAndVerify(@"
147
var
comp = CompileAndVerify(@"
180
var
comp = CompileAndVerify(@"
215
var
comp = CompileAndVerify(@"
254
var
comp = CompileAndVerify(@"
291
var
comp = CompileAndVerify(@"
334
var
comp = CompileAndVerify(@"
367
var
comp = CompileAndVerify(@"
397
var
comp = CompileAndVerify(@"
449
var
comp = CompileAndVerify(@"
502
var
verifier = CompileAndVerify(@"
561
var
verifier = CompileAndVerify(@"
643
var
comp = CompileAndVerify(@"
691
var
comp = CompileAndVerify(@"
752
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails);
800
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: @"42
854
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: @"42
918
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: "42");
978
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: "42");
1039
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: "42");
1090
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: @"hi
1127
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails);
1334
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails);
1377
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails);
1447
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"42");
1480
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"42");
1617
var
verifier = CompileAndVerify(text, verify: Verification.Fails, expectedOutput: "6");
1753
var
result = CompileAndVerify(comp, verify: Verification.Fails, expectedOutput: @"47");
2345
var
v = CompileAndVerify(comp, verify: Verification.Fails, expectedOutput: @"
2575
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"0");
2633
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"");
2725
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"4242420");
3737
var
verifier = CompileAndVerify(compilation, expectedOutput: "XX");
3775
var
verifier = CompileAndVerify(compilation, expectedOutput: "5050");
3826
var
verifier = CompileAndVerify(compilation, expectedOutput: "5050");
3884
var
verifier = CompileAndVerify(compilation, expectedOutput: "5050");
3948
var
verifier = CompileAndVerify(compilation, expectedOutput: "555555");
4012
var
verifier = CompileAndVerify(compilation, expectedOutput: "0011", verify: Verification.FailsPEVerify);
4090
var
verifier = CompileAndVerify(compilation, expectedOutput: "");
4146
var
verifier = CompileAndVerify(compilation, expectedOutput: "hihi");
4204
var
verifier = CompileAndVerify(compilation, expectedOutput: "hihi");
4267
var
verifier = CompileAndVerify(compilation, expectedOutput: "11");
4340
var
verifier = CompileAndVerify(compilation, expectedOutput: "TestTest");
4397
var
verifier = CompileAndVerify(compilation, expectedOutput: "TestTestDerivedDerived");
4454
var
verifier = CompileAndVerify(source, expectedOutput: "00");
4526
var
verifier = CompileAndVerify(source, expectedOutput: "00");
4604
var
verifier = CompileAndVerify(source, expectedOutput: "00", verify: Verification.FailsPEVerify);
4688
var
verifier = CompileAndVerify(source, expectedOutput: "12");
4755
var
comp = CompileAndVerify(text, expectedOutput: "00");
4871
var
verifier = CompileAndVerify(libUser);
CodeGen\CodeGenInterfaceImplementation.cs (30)
140
var
comp = CompileAndVerify(source,
253
var
comp = CompileAndVerify(source,
434
var
comp = CompileAndVerify(source,
517
var
comp = CompileAndVerify(source,
594
var
comp = CompileAndVerify(source,
677
var
comp = CompileAndVerify(source,
756
var
comp = CompileAndVerify(source,
854
var
comp = CompileAndVerify(source,
945
var
comp = CompileAndVerify(source,
1028
var
comp = CompileAndVerify(source,
1105
var
comp = CompileAndVerify(source,
1188
var
comp = CompileAndVerify(source,
1265
var
comp = CompileAndVerify(source,
1348
var
comp = CompileAndVerify(source,
1426
var
comp = CompileAndVerify(source,
1511
var
comp = CompileAndVerify(source,
1590
var
comp = CompileAndVerify(source,
1675
var
comp = CompileAndVerify(source,
1753
var
comp = CompileAndVerify(source,
1835
var
comp = CompileAndVerify(source,
1928
var
comp = CompileAndVerify(source,
2033
var
comp = CompileAndVerify(source,
2100
var
comp = CompileAndVerify(source,
2242
var
comp = CompileAndVerify(source, expectedOutput: @"
2361
var
comp = CompileAndVerify(source, expectedOutput: @"
2425
var
comp = CompileAndVerify(source, expectedOutput: @"
2481
var
comp = CompileAndVerify(source, expectedOutput: @"
2561
var
comp = CompileAndVerify(source, expectedSignatures: new[]
2641
var
verifier = CompileAndVerify(comp, expectedSignatures: new[]
2748
var
verifier = CompileAndVerify(comp, expectedSignatures: new[]
CodeGen\CodeGenInterpolatedString.cs (5)
75
var
comp = CompileAndVerify(source, expectedOutput: @"
123
var
comp = CompileAndVerify(source, expectedOutput: @"True
165
var
comp = CompileAndVerify(source, expectedOutput: @"a: a
240
var
comp = CompileAndVerify(source, expectedOutput: @"a
282
var
comp = CompileAndVerify(source, expectedOutput: @"a => Format(""a: {0}"", a)");
CodeGen\CodeGenIterators.cs (35)
88
var
compilation = CompileAndVerify(source, expectedOutput: "123456789X");
125
var
compilation = CompileAndVerify(source, expectedOutput: "0123456789");
171
var
compilation = CompileAndVerifyWithMscorlib40(source, expectedOutput: "12324565");
305
var
compilation = CompileAndVerify(source, expectedOutput: "0|01Z|012XZ|012X3Z|012X34YZ|012X34Y5Z|012X34Y5Z6");
1180
var
rel = CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
1197
var
dbg = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
1944
var
verifier = this.CompileAndVerify(comp);
1977
var
verifier = this.CompileAndVerify(comp);
2396
var
verifier = CompileAndVerify(compilation, verify: Verification.FailsPEVerify);
2573
var
v = CompileAndVerify(source, options: TestOptions.ReleaseDll);
2922
var
compilation = CompileAndVerify(source, expectedOutput: "FalseTrueFalseTrue", options: TestOptions.ReleaseExe);
3029
var
verifier = CompileAndVerify(src, expectedOutput: "42 42").VerifyDiagnostics();
3065
var
verifier = CompileAndVerify(src, expectedOutput: "ran ran True").VerifyDiagnostics();
3105
var
verifier = CompileAndVerify(src, expectedOutput: "ran ran True").VerifyDiagnostics();
3146
var
verifier = CompileAndVerify(comp, expectedOutput: "100 100 True").VerifyDiagnostics();
3202
var
verifier = CompileAndVerify(src, expectedOutput: "42 value value True").VerifyDiagnostics();
3258
var
verifier = CompileAndVerify(src, expectedOutput: "42 value value True").VerifyDiagnostics();
3336
var
verifier = CompileAndVerify(src, expectedOutput: "42 4242").VerifyDiagnostics();
3369
var
verifier = CompileAndVerify(src, expectedOutput: "value value value").VerifyDiagnostics();
3409
var
verifier = CompileAndVerify(src, expectedOutput: "42 42").VerifyDiagnostics();
3450
var
verifier = CompileAndVerify(src, expectedOutput: "42").VerifyDiagnostics();
3493
var
verifier = CompileAndVerify(src, expectedOutput: "value value ran True").VerifyDiagnostics();
3569
var
verifier = CompileAndVerify(src, expectedOutput: "value value exception True").VerifyDiagnostics();
3720
var
verifier = CompileAndVerify(src, expectedOutput: "10 42 42").VerifyDiagnostics();
3782
var
verifier = CompileAndVerify(src, expectedOutput: "10 42 42", references: [libComp.EmitToImageReference()]).VerifyDiagnostics();
3902
var
verifier = CompileAndVerify(src, expectedOutput: "values2 values2 values3 values3 True").VerifyDiagnostics();
3936
var
verifier = CompileAndVerify(src, expectedOutput: "ran ran").VerifyDiagnostics();
3986
var
verifier = CompileAndVerify(src, expectedOutput: "value value outer True").VerifyDiagnostics();
4086
var
verifier = CompileAndVerify(comp, expectedOutput: "FalseTrue", verify: Verification.Skipped).VerifyDiagnostics();
4128
var
verifier = CompileAndVerify(src, expectedOutput: "ran ran True").VerifyDiagnostics();
4247
var
verifier = CompileAndVerify(src, expectedOutput: "True two disposing disposed False two").VerifyDiagnostics();
4289
var
verifier = CompileAndVerify(src, expectedOutput: "True one disposed False one").VerifyDiagnostics();
4392
var
verifier = CompileAndVerify(src, expectedOutput: "True one disposed disposed2 False one").VerifyDiagnostics();
4627
var
verifier = CompileAndVerify(src, expectedOutput: "True one disposing exception disposed False one").VerifyDiagnostics();
4907
var
verifier = CompileAndVerify(src, expectedOutput: "True one finally exception one False one").VerifyDiagnostics();
CodeGen\CodeGenLocalFunctionTests.cs (35)
23
public static IMethodSymbol FindLocalFunction(this
CompilationVerifier
verifier, string localFunctionName)
73
var
verifier = CompileAndVerify(src, expectedOutput: @"
390
var
verifier = CompileAndVerify(comp, expectedOutput: "5");
461
var
verifier = CompileAndVerify(@"
827
var
verifier = CompileAndVerify(@"
1030
var
comp = CompileAndVerify(@"
1545
var
comp = CompileAndVerify(src);
2592
var
verify = VerifyOutputInMain(source, "2", "System");
2609
var
verify = VerifyOutputInMain(source, "2", "System");
2716
var
verify = VerifyOutputInMain(source, "2", "System");
3131
var
verify = VerifyOutputInMain(source, "2", "System");
3156
var
verify = VerifyOutputInMain(source, "4", "System");
3200
var
verify = VerifyOutputInMain(source, "2", "System");
3249
var
verify = VerifyOutput(source, "2");
3274
var
verify = VerifyOutputInMain(source, "2", "System");
3308
var
verify = VerifyOutputInMain(source, "2", "System");
3396
var
verify = VerifyOutput(source, "2");
4238
var
verify = VerifyOutputInMain(source, "2", "System");
5133
var
c = CompileAndVerify(@"
5316
var
verifier = CompileAndVerify(
5349
var
verifier = CompileAndVerify(
5383
var
verifier = CompileAndVerify(
5416
var
verifier = CompileAndVerify(
5671
var
verifier = CompileAndVerify(
5737
var
verifier = CompileAndVerify(
5812
var
verifier = CompileAndVerify(
5887
var
verifier = CompileAndVerify(
5955
var
verifier = CompileAndVerify(
5993
var
verifier = CompileAndVerify(
6049
var
verifier = CompileAndVerify(
6106
var
verifier = CompileAndVerify(
6284
var
verifier = CompileAndVerify([src, CompilerLoweringPreserveAttributeDefinition]).VerifyDiagnostics();
6338
internal
CompilationVerifier
VerifyOutput(string source, string output, CSharpCompilationOptions options, Verification verify = default)
6344
internal
CompilationVerifier
VerifyOutput(string source, string output)
6350
internal
CompilationVerifier
VerifyOutputInMain(string methodBody, string output, params string[] usings)
CodeGen\CodeGenLockTests.cs (16)
37
var
verifier = CompileAndVerify(text);
92
var
verifier = CompileAndVerify(text);
146
var
verifier = CompileAndVerify(text);
202
var
verifier = CompileAndVerify(text);
259
var
verifier = CompileAndVerify(text);
313
var
verifier = CompileAndVerify(text);
367
var
verifier = CompileAndVerify(text);
421
var
verifier = CompileAndVerify(text);
1363
var
verifier = CompileAndVerify(compilation);
1413
var
verifier = CompileAndVerify(compilation);
1462
var
verifier = CompileAndVerify(compilation);
1513
var
verifier = CompileAndVerify(compilation);
1565
var
verifier = CompileAndVerify(compilation);
1614
var
verifier = CompileAndVerify(compilation);
1663
var
verifier = CompileAndVerify(compilation);
1712
var
verifier = CompileAndVerify(compilation);
CodeGen\CodeGenMscorlib.cs (1)
1041
var
c = CompileAndVerify(comp, verify: Verification.Skipped);
CodeGen\CodeGenNullCoalescingAssignmentTests.cs (15)
59
var
verifier = CompileAndVerify(source, expectedOutput: @"
151
var
verifier = CompileAndVerify(@"
246
var
verifier = CompileAndVerify(@"
408
var
verifier = CompileAndVerify(source, expectedOutput: @"
442
var
verifier = CompileAndVerify(@"
771
var
verifier = CompileAndVerify(@"
1025
var
verifier = CompileAndVerify(@"
1325
var
verifier = CompileAndVerify(source, expectedOutput: "Test String");
1411
var
verifier = CompileAndVerify(@"
1703
var
verifier = CompileAndVerify(@"
2159
var
verifier = CompileAndVerify(@"
2222
var
verifier = CompileAndVerify(@"
2379
var
verifier = CompileAndVerify(source, expectedOutput: "1");
2535
var
verifier = CompileAndVerify(testSource, references: new[] { reference1 });
2808
var
verifier = CompileAndVerify(@"
CodeGen\CodeGenOperators.cs (97)
37
var
compilation = CompileAndVerify(source, expectedOutput: "False", options: TestOptions.ReleaseExe);
88
var
compilation = CompileAndVerify(source, expectedOutput: "False", options: TestOptions.ReleaseExe);
156
var
compilation = CompileAndVerify(source, expectedOutput: "False", options: TestOptions.ReleaseExe);
227
var
compilation = CompileAndVerify(source, expectedOutput: "False Branch not taken-True Branch taken", options: TestOptions.ReleaseExe);
299
var
compilation = CompileAndVerify(source, expectedOutput: "True Branch taken", options: TestOptions.ReleaseExe);
352
var
compilation = CompileAndVerify(source, expectedOutput: "True Branch taken", options: TestOptions.ReleaseExe);
427
var
compilation = CompileAndVerify(source, expectedOutput: expectedOutput);
493
var
compilation = CompileAndVerify(source, expectedOutput: expectedOutput);
548
var
compilation = CompileAndVerify(source);
582
var
compilation = CompileAndVerify(source);
601
var
comp = CompileAndVerify(text, expectedOutput: "False");
634
var
comp = CompileAndVerify(text, expectedOutput: "False");
666
var
comp = CompileAndVerify(text, expectedOutput: "False");
696
var
comp = CompileAndVerify(text, expectedOutput: "False");
729
var
comp = CompileAndVerify(text, expectedOutput: @"False
817
var
comp = CompileAndVerify(text, expectedOutput: @"123456");
906
var
compilation = CompileAndVerify(source);
953
var
compilation = CompileAndVerify(source);
1026
var
comp = CompileAndVerify(source,
1088
var
compilation = CompileAndVerify(source, expectedOutput: string.Empty);
1221
var
compilation = CompileAndVerify(source, expectedOutput: string.Empty);
1295
var
compilation = CompileAndVerify(source, expectedOutput: string.Empty);
1362
var
compilation = CompileAndVerify(source, expectedOutput: string.Empty);
1431
var
comp = CompileAndVerify(source, expectedOutput: @"
1512
var
comp = CompileAndVerify(source, expectedOutput: @"
1564
var
compilation = CompileAndVerify(source, expectedOutput: "Goo");
1627
var
comp = CompileAndVerify(source, expectedOutput: "System.Collections.Generic.IEnumerable`1[System.Int32]");
1674
var
comp = CompileAndVerify(source, expectedOutput: "System.Collections.Generic.IEnumerable`1[System.Int32]");
1721
var
comp = CompileAndVerify(source, expectedOutput: "System.Collections.Generic.IEnumerable`1[System.Int32]System.Collections.Generic.IEnumerable`1[System.Int32]");
1768
var
comp = CompileAndVerify(source, expectedOutput: "System.Collections.Generic.IEnumerable`1[System.Int32]");
1817
var
comp = CompileAndVerify(source);
1864
var
verify = CompileAndVerify(src,
2005
var
comp = CompileAndVerify(source);
2064
var
comp = CompileAndVerify(source);
2130
var
comp = CompileAndVerify(source);
2193
var
comp = CompileAndVerify(source);
2568
var
verifier = CompileAndVerify(source,
2660
var
verifier = CompileAndVerify(source,
2767
var
verifier = CompileAndVerify(source, expectedOutput: @"0");
2794
var
verifier = CompileAndVerify(source, expectedOutput: @"PASS");
2819
var
verifier = CompileAndVerify(source, expectedOutput: @"0");
2857
var
verifier = CompileAndVerify(source, expectedOutput: @"01");
2892
var
verifier = CompileAndVerify(source, expectedOutput: @"10");
2928
var
verifier = CompileAndVerify(source, expectedOutput: @"0");
3047
var
compilation = CompileAndVerify(source, expectedOutput: expectedOutput);
3097
var
compilation = CompileAndVerify(source, expectedOutput: expectedOutput);
3116
var
comp = CompileAndVerify(text, expectedOutput: "");
3251
var
verifier = CompileAndVerify(source: source, expectedOutput: "Pass");
3420
var
comp = CompileAndVerify(text, expectedOutput: @"False
3480
var
comp = CompileAndVerify(text, options: TestOptions.DebugExe, expectedOutput: @"True
3543
var
comp = CompileAndVerify(text, expectedOutput: @"one");
3661
var
comp = CompileAndVerify(text, expectedOutput: @"
3793
var
comp = CompileAndVerify(text, expectedOutput: @"ttff");
3827
var
comp = CompileAndVerify(text, expectedOutput: expectedOutput);
3861
var
comp = CompileAndVerify(text).VerifyIL("C.M", @"
3901
var
comp = CompileAndVerify(text, expectedOutput: @"True
3933
var
comp = CompileAndVerify(text, expectedOutput: @"
3972
var
comp = CompileAndVerify(text, expectedOutput: @"
4013
var
comp = CompileAndVerify(text, expectedOutput: @"
4168
var
comp = CompileAndVerify(source, expectedOutput: "System.Collections.Generic.IEnumerable`1[System.Int32]");
4220
var
comp = CompileAndVerify(source, expectedOutput: "System.Collections.Generic.IEnumerable`1[System.Int32]System.Collections.Generic.IEnumerable`1[System.Int32]");
4274
var
comp = CompileAndVerify(source, expectedOutput: "System.Collections.Generic.IEnumerable`1[System.Int32]");
4321
var
comp = CompileAndVerify(source);
4369
var
comp = CompileAndVerify(source);
4430
var
comp = CompileAndVerify(source);
4501
var
comp = CompileAndVerify(source);
4567
var
comp = CompileAndVerify(new string[] { source }, expectedOutput: @"");
4636
var
comp = CompileAndVerify(source);
4703
var
comp = CompileAndVerify(source);
4760
var
comp = CompileAndVerify(source);
4822
var
comp = CompileAndVerify(source);
4864
var
comp = CompileAndVerify(source);
4921
var
comp = CompileAndVerify(source);
4995
var
comp = CompileAndVerify(source);
5022
var
comp = CompileAndVerify(source);
5060
var
comp = CompileAndVerify(source);
5102
var
comp = CompileAndVerify(source);
5140
var
comp = CompileAndVerify(source);
5227
var
compilation = CompileAndVerify(source, expectedOutput: @"3
5304
var
result = CompileAndVerify(source, options: TestOptions.ReleaseExe);
5359
var
result = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: "True");
5407
var
result = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: "11461640193");
5559
var
result = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"5180801
5764
var
result = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput);
5864
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
5922
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
5985
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
6057
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
6088
var
verifier = CompileAndVerify(comp);
6144
var
verifier = CompileAndVerify(comp);
6331
var
cv = CompileAndVerify(comp, expectedOutput: @"TrueFalse");
6417
var
verifier = CompileAndVerify(code, expectedOutput: "Run");
6499
var
verifier = CompileAndVerify(code, expectedOutput: "Run");
6659
var
verifier = CompileAndVerify(code, expectedOutput: "Run");
6727
var
verifier = CompileAndVerify(code, expectedOutput: "Run");
6801
var
verifier = CompileAndVerify(code, expectedOutput: "12");
6884
var
verifier = CompileAndVerify(code, expectedOutput: "12");
CodeGen\CodeGenOptimizedNullableOperators.cs (82)
66
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
111
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
144
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
177
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
213
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
282
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
316
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
359
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
395
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
437
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
566
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
739
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
783
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput);
922
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput);
985
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput);
1131
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
1176
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
1293
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
1420
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
1593
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
1793
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
1919
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
1955
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
2002
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
2131
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
2233
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
2281
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
2356
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
2408
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
2496
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
2526
var
comp = CompileAndVerify(source, expectedOutput: @"
2682
var
comp = CompileAndVerify(source, expectedOutput: @"
2753
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
2799
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
2842
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
2879
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
2927
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
2972
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
3009
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
3046
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
3083
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
3121
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
3159
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
3199
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
3246
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
3290
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
3337
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
3386
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
3434
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
3482
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
3532
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
3582
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
3638
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
3691
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
3747
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
3800
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
3857
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
3911
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
3961
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
4016
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
4076
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
4129
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
4190
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
4251
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
4298
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
4336
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
4396
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
4449
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
4509
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
4562
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
4610
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
4649
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
4697
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
4736
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
4784
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
4823
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
4871
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
4910
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
4970
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
5023
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
5072
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
5112
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
CodeGen\CodeGenOverridingAndHiding.cs (50)
109
var
comp = CompileAndVerify(source,
191
var
comp = CompileAndVerify(source,
314
var
comp = CompileAndVerify(source,
388
var
comp = CompileAndVerify(source,
472
var
comp = CompileAndVerify(source,
576
var
comp = CompileAndVerify(source,
671
var
comp = CompileAndVerify(source, expectedOutput: @"
758
var
comp = CompileAndVerify(source, expectedOutput: @"
825
var
comp = CompileAndVerify(source);
936
var
comp = CompileAndVerify(source,
1028
var
comp = CompileAndVerify(source, expectedOutput: @"
1115
var
comp = CompileAndVerify(source, expectedOutput: @"2545571191011111114151617");
1264
var
verifier = CompileAndVerify(compilation, expectedOutput: substitutedExpected);
1315
var
comp = CompileAndVerify(source,
1372
var
comp = CompileAndVerify(source,
1415
var
comp = CompileAndVerify(source,
1481
var
comp = CompileAndVerify(source,
1561
var
comp = CompileAndVerify(source,
1715
var
comp = CompileAndVerify(source, expectedOutput: @"
1896
var
comp = CompileAndVerify(source, expectedOutput: @"Derived2.Method()
1966
var
comp = CompileAndVerify(text, expectedSignatures: new[]
2007
var
comp = CompileAndVerify(source, expectedSignatures: new[]
2043
var
comp = CompileAndVerify(source, expectedSignatures: new[]
2080
var
comp = CompileAndVerify(source, expectedSignatures: new[]
2114
var
comp = CompileAndVerify(source, expectedSignatures: new[]
2159
var
comp = CompileAndVerify(source, expectedSignatures: new[]
2213
var
comp = CompileAndVerify(source, expectedSignatures: new[]
2260
var
comp = CompileAndVerify(source2, new[] { new CSharpCompilationReference(compilation1) }, expectedSignatures: new[]
2298
var
comp = CompileAndVerify(source, expectedSignatures: new[]
2338
var
comp = CompileAndVerify(source, expectedSignatures: new[]
2378
var
comp = CompileAndVerify(source, expectedSignatures: new[]
2443
var
comp = CompileAndVerify(source,
2656
var
comp = CompileAndVerify(
2761
var
comp = CompileAndVerify(
3225
var
verifier = CompileAndVerify(
3293
var
comp = CompileAndVerify(source,
3525
var
verifier = CompileAndVerify(
3559
var
verifier = CompileAndVerify(text,
3586
var
verifier = CompileAndVerify(text,
3651
var
comp = CompileAndVerify(source,
3703
var
verifier = CompileAndVerify(text,
4017
var
verifier = CompileAndVerify(
4132
var
verifier = CompileAndVerify(source, symbolValidator: validator(true), sourceSymbolValidator: validator(false), expectedOutput: @"System.Int32[]");
4181
var
comp = CompileAndVerify(source2, references: new[] { new CSharpCompilationReference(compref) }, expectedOutput: "M");
4205
var
cs1Verifier = CompileAndVerify(cs1Compilation);
4247
var
cs2Verifier = CompileAndVerify(cs2Compilation,
4274
var
cs1Verifier = CompileAndVerify(cs1Compilation);
4319
var
cs2Verifier = CompileAndVerify(cs2Compilation, expectedOutput: @"C4
4349
var
comp = CompileAndVerify(source, expectedOutput:
4422
var
cs1Verifier = CompileAndVerify(cs1Compilation);
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (36)
581
var
cv = CompileAndVerify(comp, expectedOutput: "", verify: Verification.Passes);
649
var
cv = CompileAndVerify(comp, expectedOutput: "100", verify: Verification.Passes);
688
var
verifier = CompileAndVerify(compilation, expectedOutput: "10;20;", verify: Verification.Skipped);
727
var
verifier = CompileAndVerify(compilation, expectedOutput: "10;20;", verify: Verification.Skipped);
822
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
869
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
950
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
974
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
1017
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
1096
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
1240
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
1292
var
verifier = CompileAndVerify(compilation, expectedOutput: "AF2D4567", verify: Verification.Skipped);
1405
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
1439
var
verifier = CompileAndVerify(compilation, verify: Verification.Passes);
1472
var
verifier = CompileAndVerify(compilation, expectedOutput: "000000", verify: Verification.Passes);
1549
var
verifier = CompileAndVerify(compilation, expectedOutput: "3402", verify: Verification.Fails with { ILVerifyMessage = ilVerifyMessage, PEVerifyMessage = peVerifyMessage });
2330
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
2437
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
2490
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
2538
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
2589
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
2660
var
verifier = CompileAndVerify(compilation, expectedOutput: "ran",
2730
var
verifier = CompileAndVerify(compilation, expectedOutput: "2 hello world",
2802
var
verifier = CompileAndVerify(compilation, expectedOutput: "2 hello world",
2847
var
verifier = CompileAndVerify(compilation, expectedOutput: "hello world",
2915
var
verifier = CompileAndVerify(compilation, expectedOutput: "1 1",
2960
var
verifier = CompileAndVerify(compilation, expectedOutput: "1 2147483647", verify: Verification.FailsILVerify);
3008
var
verifier = CompileAndVerify(compilation, expectedOutput: "1 1",
3053
var
verifier = CompileAndVerify(compilation, expectedOutput: "1 4294967295", verify: Verification.Skipped);
3098
var
verifier = CompileAndVerify(compilation, expectedOutput: "1 1",
3167
var
verifier = CompileAndVerify(compilation, expectedOutput: "1 1",
3210
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
3309
var
verifier = CompileAndVerify(compilation, expectedOutput: "2 True False", verify: Verification.Skipped).VerifyDiagnostics();
3334
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
3357
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
3451
var
verifier = CompileAndVerify(compilation, verify: Verification.Passes);
CodeGen\CodeGenReadonlyStructTests.cs (25)
51
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: @"12");
122
var
comp = CompileAndVerify(text, new[] { ref1 }, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: @"12");
188
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.FailsPEVerify, expectedOutput: @"12");
262
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.FailsPEVerify, expectedOutput: @"hello2");
343
var
comp = CompileAndVerify(text, new[] { ref1 }, parseOptions: TestOptions.Regular, verify: Verification.FailsPEVerify, expectedOutput: @"hello2");
416
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"12");
462
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"12");
513
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"Program+S1Program+S1");
570
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"4242");
1720
var
verifier = CompileAndVerify(csharp, expectedOutput: "123");
1786
var
verifier = CompileAndVerify(csharp, expectedOutput: "123");
1860
var
verifier = CompileAndVerify(csharp, references: new[] { image }, expectedOutput: "1123");
1936
var
verifier = CompileAndVerify(csharp, references: new[] { image }, expectedOutput: "1123");
1984
var
comp = CompileAndVerify(csharp);
2010
var
comp = CompileAndVerify(csharp);
2035
var
comp = CompileAndVerify(csharp);
2061
var
comp = CompileAndVerify(csharp);
2095
var
comp = CompileAndVerify(csharp);
2133
var
comp = CompileAndVerify(csharp);
2168
var
comp = CompileAndVerify(csharp);
2233
var
verifier = CompileAndVerify(csharp);
2318
var
verifier = CompileAndVerify(csharp);
2386
var
verifier = CompileAndVerify(csharp);
2484
var
verifier = CompileAndVerify(csharp);
2580
var
verifier = CompileAndVerify(csharp, parseOptions: parseOptions, verify: verify);
CodeGen\CodeGenRefConditionalOperatorTests.cs (22)
41
var
comp = CompileAndVerify(source, expectedOutput: "3344");
93
var
comp = CompileAndVerify(source, expectedOutput: "44", verify: Verification.Fails);
129
var
comp = CompileAndVerify(source, expectedOutput: "44", verify: Verification.Passes);
165
var
comp = CompileAndVerify(source, expectedOutput: "55", verify: Verification.Passes);
203
var
comp = CompileAndVerify(source, expectedOutput: "5555", verify: Verification.Passes);
250
var
comp = CompileAndVerify(source, expectedOutput: "67", verify: Verification.Fails);
304
var
comp = CompileAndVerify(source, expectedOutput: "446767", verify: Verification.Passes);
364
var
comp = CompileAndVerify(source, expectedOutput: "1");
438
var
comp = CompileAndVerify(source, expectedOutput: @"False
844
var
comp = CompileAndVerify(source, expectedOutput: "1", verify: Verification.Passes);
888
var
comp = CompileAndVerify(source, expectedOutput: "1", verify: Verification.Passes);
919
var
comp = CompileAndVerify(source, expectedOutput: "1", verify: Verification.Passes);
1007
var
comp = CompileAndVerify(source, expectedOutput: "1");
1072
var
comp = CompileAndVerifyWithMscorlib40(source, references: new[] { Net40.References.System, ValueTupleRef, Net40.References.SystemCore }, expectedOutput: "00", verify: Verification.FailsPEVerify);
1160
var
comp = CompileAndVerify(source, expectedOutput: "00", verify: Verification.FailsPEVerify);
1275
var
verifier = CompileAndVerify(comp, expectedOutput: "run", verify: verify);
1362
var
verifier = CompileAndVerify(comp, expectedOutput: "0run", verify: Verification.Fails);
1411
var
comp = CompileAndVerify(source, expectedOutput: "0123-1230", options: TestOptions.ReleaseExe);
1546
var
comp = CompileAndVerify(source, expectedOutput: "0123-1230", options: TestOptions.ReleaseExe);
1691
var
comp = CompileAndVerify(source, expectedOutput: "0123-1230", options: TestOptions.ReleaseExe);
1844
var
comp = CompileAndVerify(source, expectedOutput: "0123-1230", options: TestOptions.ReleaseExe);
2067
var
comp = CompileAndVerify(source, expectedOutput: "124-123", options: TestOptions.ReleaseExe);
CodeGen\CodeGenRefLocalTests.cs (64)
37
var
verifier = CompileAndVerify(src, verify: Verification.Fails);
74
var
verifier = CompileAndVerify(@"
138
var
verifier = CompileAndVerify(@"
163
var
verifier = CompileAndVerify(@"
204
var
verifier = CompileAndVerify(@"
245
var
verifier = CompileAndVerify(@"
278
var
verifier = CompileAndVerify(@"
378
var
verifier = CompileAndVerify(@"
547
var
comp = CompileAndVerify(@"
580
var
comp = CompileAndVerify(@"
610
var
comp = CompileAndVerify(@"
655
var
comp = CompileAndVerify(@"
705
var
comp = CompileAndVerify(@"
794
var
comp = CompileAndVerify(@"
879
var
comp = CompileAndVerify(@"
933
var
comp = CompileAndVerify(@"
956
var
comp = CompileAndVerify(@"
1040
var
comp = CompileAndVerify(@"
1069
var
comp = CompileAndVerify(@"
1121
var
comp = CompileAndVerify(@"
1149
var
comp = CompileAndVerify(@"
1186
var
comp = CompileAndVerify(@"
1260
var
comp = CompileAndVerify(@"
1331
var
comp = CompileAndVerify(@"
1376
var
comp = CompileAndVerify(@"
1429
var
comp = CompileAndVerify(@"
1478
var
comp = CompileAndVerify(@"
1519
var
comp = CompileAndVerify(@"
1614
var
comp = CompileAndVerify(@"
2214
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
2285
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
2375
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll);
2437
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
2504
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
2586
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll);
2681
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll);
2757
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll);
2808
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll);
2889
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
2960
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
3057
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
3167
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
3244
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
3350
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
3495
var
verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "22" : null,
3535
var
verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "32" : null,
3572
var
verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "2" : null,
3620
var
verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null,
3673
var
verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null,
3710
var
verifier = CompileAndVerify(source, expectedOutput: "22");
3747
var
verifier = CompileAndVerify(source, expectedOutput: "32");
3785
var
verifier = CompileAndVerify(source, expectedOutput: "22");
3830
var
verifier = CompileAndVerify(source, expectedOutput: "32");
4252
var
verifier = CompileAndVerify(comp, expectedOutput: "run", verify: verify);
4324
var
verifier = CompileAndVerify(comp, expectedOutput: "0", verify: Verification.Fails);
4392
var
verifier = CompileAndVerify(comp, expectedOutput: "run", verify: verify);
4445
var
verifier = CompileAndVerify(comp, expectedOutput: "run", verify: verify);
4502
var
verifier = CompileAndVerify(comp, expectedOutput: "run", verify: verify);
4526
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "");
4579
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "");
4631
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "");
4682
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "");
4731
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "");
4767
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "");
CodeGen\CodeGenRefOutTests.cs (8)
351
var
verifier = CompileAndVerify(compilation, expectedOutput: "042");
413
var
verifier = CompileAndVerify(compilation, expectedOutput: "Q");
475
var
verifier = CompileAndVerify(compilation, expectedOutput: "Q");
543
var
verifier = CompileAndVerify(comp, expectedOutput: "run", verify: Verification.Fails);
630
var
verifier = CompileAndVerify(comp, expectedOutput: "run", verify: Verification.Fails);
692
var
verifier = CompileAndVerify(comp, expectedOutput: "run", verify: Verification.Fails);
778
var
verifier = CompileAndVerify(comp, expectedOutput: "0run", verify: Verification.Fails);
830
var
verifier = CompileAndVerify(comp, expectedOutput: "run", verify: Verification.Fails);
CodeGen\CodeGenRefReadonlyReturnTests.cs (12)
62
var
comp = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), verify: Verification.Fails);
116
var
comp = CompileAndVerify(@"
238
var
comp = CompileAndVerify(@"
286
var
comp = CompileAndVerify(@"
307
var
comp = CompileAndVerify(@"
358
var
verifier = CompileAndVerify(@"
385
var
verifier = CompileAndVerify(@"
412
var
verifier = CompileAndVerify(@"
466
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular);
805
var
comp = CompileAndVerifyWithMscorlib40(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, parseOptions: TestOptions.Regular, verify: Verification.Passes);
883
var
comp = CompileAndVerifyWithMscorlib40(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, parseOptions: TestOptions.Regular, verify: Verification.Fails);
1201
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular);
CodeGen\CodeGenRefReturnTests.cs (22)
21
private
CompilationVerifier
CompileAndVerifyRef(
194
var
v = CompileAndVerifyRef(text, expectedOutput: "42");
246
var
compilation = CompileAndVerifyRef(text);
310
var
compilation = CompileAndVerifyRef(text, verify: Verification.Passes);
388
var
compilation = CompileAndVerifyRef(text);
441
var
compilation = CompileAndVerifyRef(text);
502
var
compilation = CompileAndVerifyRef(text, verify: Verification.Passes);
575
var
compilation = CompileAndVerifyRef(text);
658
var
compilation = CompileAndVerifyRef(text);
721
var
compilation = CompileAndVerifyRef(text);
765
var
compilation = CompileAndVerifyRef(text, verify: Verification.Fails);
825
var
compilation = CompileAndVerifyRef(text);
877
var
compilation = CompileAndVerifyRef(text);
947
var
compilation = CompileAndVerifyRef(text);
1022
var
compilation = CompileAndVerifyRef(text);
1080
var
compilation = CompileAndVerifyRef(text);
1159
var
compilation = CompileAndVerifyRef(text);
2589
var
v = CompileAndVerify(text, expectedOutput: "12345");
2709
var
v = CompileAndVerify(source, expectedOutput: "2");
2787
var
v = CompileAndVerify(source, expectedOutput: "23");
2969
var
v = CompileAndVerify(comp, verify: Verification.Fails, expectedOutput: "2");
3082
var
v = CompileAndVerify(comp, verify: Verification.Fails, expectedOutput: "2");
CodeGen\CodeGenScriptTests.cs (2)
497
var
verifier = CompileAndVerify(compilation, expectedOutput: @"complete");
557
var
verifier = CompileAndVerify(s0, verify: Verification.FailsPEVerify);
CodeGen\CodeGenShortCircuitOperatorTests.cs (100)
57
var
compilation = CompileAndVerify(source, expectedOutput: @"
209
var
compilation = CompileAndVerify(source, expectedOutput: @"
376
var
compilation = CompileAndVerify(source, expectedOutput: @"
964
var
comp = CompileAndVerify(source, expectedOutput: "NULL#System.Int32[]");
1013
var
comp = CompileAndVerify(source, expectedOutput: "NULL#System.Int32[]");
1057
var
comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: "NULL#System.Int32[]");
1203
var
comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: "NULL#y");
1226
var
comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: "NULL#-1");
1250
var
comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: "NULL#y");
1274
var
comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: "NULL#3");
1298
var
comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: "NULL#3");
1316
var
comp = CompileAndVerify(source, expectedOutput: "");
1356
var
comp = CompileAndVerify(source, expectedOutput: "");
1406
var
comp = CompileAndVerify(source, expectedOutput: "");
1452
var
comp = CompileAndVerify(source, expectedOutput: @"3
1516
var
comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: "");
1573
var
comp = CompileAndVerify(source, expectedOutput: "");
1634
var
comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: @"3
1709
var
comp = CompileAndVerify(source, expectedOutput: @"3
1777
var
comp = CompileAndVerify(source, expectedOutput: @"System.Exception: a
1847
var
comp = CompileAndVerify(source, expectedOutput: @"print0
1914
var
comp = CompileAndVerify(source, expectedOutput: @"print0
2016
var
comp = CompileAndVerify(source, targetFramework: TargetFramework.Empty, references: new[] { MscorlibRef_v4_0_30316_17626 }, expectedOutput: @"print0
2073
var
comp = CompileAndVerify(source, targetFramework: TargetFramework.Empty, references: new[] { MscorlibRef_v4_0_30316_17626 }, expectedOutput: @"print0
2125
var
comp = CompileAndVerify(source, expectedOutput: @"False
2217
var
comp = CompileAndVerify(source, expectedOutput: @"False
2313
var
comp = CompileAndVerify(source, expectedOutput: @"False
2390
var
comp = CompileAndVerify(source, expectedOutput: @"False
2462
var
comp = CompileAndVerify(source, expectedOutput: @"False
2544
var
comp = CompileAndVerify(source, expectedOutput: @"False
2631
var
comp = CompileAndVerify(source, references: new MetadataReference[] { CSharpRef }, expectedOutput: @"False
2690
var
comp = CompileAndVerify(source, references: new MetadataReference[] { CSharpRef }, expectedOutput: @"False
2756
var
comp = CompileAndVerify(c, expectedOutput: @"False
2825
var
comp = CompileAndVerify(c, expectedOutput: @"False
2906
var
comp = CompileAndVerify(c, expectedOutput: @"False
2976
var
comp = CompileAndVerify(c, expectedOutput: @"False
3059
var
comp = CompileAndVerify(c, expectedOutput: @"False
3142
var
comp = CompileAndVerify(c, expectedOutput: @"False
3191
var
comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: @"System.Nullable`1[System.Int64]");
3248
var
comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: @"System.Nullable`1[System.Int64]");
3302
var
comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: @"");
3459
var
comp = CompileAndVerify(source, expectedOutput: @"0
3530
var
comp = CompileAndVerify(source, expectedOutput: @"0
3609
var
comp = CompileAndVerify(source, expectedOutput: @"0
3684
var
comp = CompileAndVerify(source, expectedOutput: @"0
3767
var
comp = CompileAndVerify(source, expectedOutput: @"0
3842
var
comp = CompileAndVerify(source, expectedOutput: @"
3900
var
comp = CompileAndVerify(source, expectedOutput: @"False
3998
var
comp = CompileAndVerify(source, expectedOutput: @"True
4123
var
comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: @" >
4234
var
comp = CompileAndVerify(source, expectedOutput: @"");
4304
var
comp = CompileAndVerify(source, expectedOutput: @"");
4395
var
comp = CompileAndVerify(source, expectedOutput: @"Success");
4468
var
comp = CompileAndVerify(source, expectedOutput: @"Success");
4506
var
comp = CompileAndVerify(source, expectedOutput: @"");
4583
var
comp = CompileAndVerify(source, expectedOutput: @"");
4666
var
comp = CompileAndVerify(source, expectedOutput: @"not empty
4895
var
comp = CompileAndVerify(source, expectedOutput: @"1");
4952
var
verifier = CompileAndVerify(source, expectedOutput: @"0
4993
var
verifier = CompileAndVerify(source, expectedOutput: @"0
5036
var
verifier = CompileAndVerify(source, expectedOutput: @"01/01/0001 00:00:00
5085
var
verifier = CompileAndVerify(source, expectedOutput: @"0
5135
var
verifier = CompileAndVerify(source, expectedOutput: @"---
5181
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), verify: Verification.Fails, expectedOutput: @"---
5232
var
verifier = CompileAndVerify(source, verify: Verification.FailsILVerify, options: TestOptions.DebugExe.WithAllowUnsafe(true), expectedOutput: @"---
5289
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"---
5416
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"---
5543
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), verify: Verification.Fails, expectedOutput: @"---
5669
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @" ---
5718
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"---
5807
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"---
5886
var
verifier = CompileAndVerify(source, expectedOutput: @"False");
5923
var
verifier = CompileAndVerify(source, expectedOutput: @"False");
5977
var
verifier = CompileAndVerify(source, expectedOutput: @"False
6045
var
verifier = CompileAndVerify(source, expectedOutput: @"FalseTrueTrue");
6085
var
verifier = CompileAndVerify(source, expectedOutput: @"TrueTrueFalse");
6128
var
verifier = CompileAndVerify(source, expectedOutput: @"TrueTrueFalseFalse");
6192
var
comp = CompileAndVerify(c, expectedOutput: @"FalseTrueTrue");
6229
var
comp = CompileAndVerify(c, expectedOutput: @"FalseTrueTrue");
6272
var
comp = CompileAndVerify(c, expectedOutput: @"FalseTrueTrue");
6308
var
comp = CompileAndVerify(c, expectedOutput: @"#
6351
var
comp = CompileAndVerify(c, expectedOutput: @"False
6386
var
comp = CompileAndVerify(c, expectedOutput: @"False
6441
var
verifier = CompileAndVerify(source, expectedOutput: @"==True
6520
var
verifier = CompileAndVerify(source, expectedOutput: @"==True
6598
var
verifier = CompileAndVerify(source, expectedOutput: @"False
6672
var
verifier = CompileAndVerify(source, expectedOutput: @"False
6737
var
comp = CompileAndVerify(source, expectedOutput: @"1
6790
var
verifier = CompileAndVerify(source, expectedOutput: @"TrueTrueFalse");
6839
var
verifier = CompileAndVerify(source, expectedOutput: @"TrueTrueFalseFalse");
6889
var
verifier = CompileAndVerify(source, expectedOutput: @"0");
6947
var
verifier = CompileAndVerify(source, expectedOutput: @"42");
6992
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput:
7052
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput:
7119
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput:
7179
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput:
7234
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput:
7278
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput:
7324
var
comp = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"", verify: Verification.Fails);
7392
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"");
CodeGen\CodeGenStackAllocInitializerTests.cs (14)
913
var
verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "" : null,
951
var
verifier = CompileAndVerify(source, expectedOutput: expectedOutput,
1004
var
verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "" : null,
1107
var
verifier = CompileAndVerify(source, expectedOutput: expectedOutput,
1161
var
verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "123" : null,
1206
var
verifier = CompileAndVerify(source, expectedOutput: expectedOutput,
1263
var
verifier = CompileAndVerify(source, expectedOutput: expectedOutput,
1318
var
verifier = CompileAndVerify(source, expectedOutput: expectedOutput,
1371
var
verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "12" : null,
1418
var
verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "" : null,
1456
var
verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "" : null,
1497
var
verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsCoreClr ? output : null,
1579
var
verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "123" : null,
1636
var
verifier = CompileAndVerify(source, expectedOutput: expectedOutput,
CodeGen\CodeGenStringConcat.cs (34)
41
var
comp = CompileAndVerify(source, expectedOutput: @"AB
99
var
comp = CompileAndVerify(source, expectedOutput: "A");
117
var
comp = CompileAndVerify(source);
147
var
comp = CompileAndVerify(source, expectedOutput: @"AB
204
var
comp = CompileAndVerify(source, expectedOutput: @"qqqqqqqq"
243
var
comp = CompileAndVerify(source, expectedOutput: @"FABF
408
var
comp = CompileAndVerify(source, targetFramework: TargetFramework.NetFramework, expectedOutput: ExecutionConditionUtil.IsWindowsDesktop ? @"test_field: 2" : null);
455
var
comp = CompileAndVerify(source, expectedOutput: @"FFABFF");
510
var
comp = CompileAndVerify(source, expectedOutput: @"O
576
var
comp = CompileAndVerify(source, expectedOutput: @"Y
642
var
comp = CompileAndVerify(source, expectedOutput: @"O
687
var
comp = CompileAndVerify(source, expectedOutput: @"O
738
var
comp = CompileAndVerify(source, expectedOutput: @"Start
786
var
comp = CompileAndVerify(source);
830
var
comp = CompileAndVerify(source, expectedOutput: @"A0
971
var
comp = CompileAndVerify(source, expectedOutput: @"A
1062
var
comp = CompileAndVerify(source, expectedOutput: @"PPFF
1152
var
comp = CompileAndVerify(source, expectedOutput: @"PPFF
1236
var
comp = CompileAndVerify(source, expectedOutput: @"1111
1296
var
comp = CompileAndVerify(source, expectedOutput: @"abcdefbye");
1338
var
comp = CompileAndVerify(source, expectedOutput: "\"\"");
1376
var
comp = CompileAndVerify(source, expectedOutput: "\"\"");
1418
var
comp = CompileAndVerify(source, expectedOutput: @"1111");
1517
var
comp = CompileAndVerify(source, expectedOutput: @"RRRR");
1569
var
comp = CompileAndVerify(source, expectedOutput: @"RRRR");
1618
var
comp = CompileAndVerify(source, expectedOutput: @"SSSS");
1663
var
comp = CompileAndVerify(source, expectedOutput: @"ST");
1696
var
comp = CompileAndVerify(source, expectedOutput: @"S");
1752
var
comp = CompileAndVerify(source, expectedOutput: @"a1
1966
var
comp = CompileAndVerify(source, expectedOutput: "3+4=7");
2036
var
comp = CompileAndVerify(source, expectedOutput: "S13O1S24O2");
2122
var
verifier = CompileAndVerify(source, expectedOutput: "ab");
2156
var
verifier = CompileAndVerify(source, expectedOutput: "abcd");
2189
var
verifier = CompileAndVerify(source, expectedOutput: "a");
CodeGen\CodeGenStructsAndEnum.cs (29)
46
var
compilation = CompileAndVerify(source, expectedOutput: "0427");
103
var
compilation = CompileAndVerify(source, expectedOutput: "042");
151
var
compilation = CompileAndVerify(source, expectedOutput: "0708589934592");
203
var
compilation = CompileAndVerify(source, expectedOutput: @"0");
262
var
compilation = CompileAndVerify(source, expectedOutput: @"");
337
var
compilation = CompileAndVerify(source, expectedOutput: @"Program+S1");
383
var
compilation = CompileAndVerify(source, expectedOutput: @"S::M
451
var
compilation = CompileAndVerify(source, expectedOutput: @"
661
var
compilation = CompileAndVerify(source, expectedOutput: "");
742
var
compilation = CompileAndVerify(source, expectedOutput: "");
842
var
compilation = CompileAndVerify(source, expectedOutput: "");
955
var
compilation = CompileAndVerify(source, expectedOutput: "");
1093
var
compilation = CompileAndVerify(source, expectedOutput: "1111");
1192
var
compilation = CompileAndVerify(source, expectedOutput: "1111");
1284
var
compilation = CompileAndVerify(source, expectedOutput: "11");
1371
var
compilation = CompileAndVerify(source, expectedOutput: "");
1479
var
compilation = CompileAndVerify(source, expectedOutput: "");
1553
var
compilation = CompileAndVerify(source, expectedOutput: "S1", verify: Verification.Skipped);
1631
var
compilation = CompileAndVerify(source);
1660
var
compilation = CompileAndVerify(source, expectedOutput: "B");
1729
var
compilation = CompileAndVerify(source, expectedOutput: @"ca761232-ed42-11ce-bacd-00aa0057b223
1828
var
compilation = CompileAndVerify(source, expectedOutput: "False");
1884
var
compilation = CompileAndVerify(source, expectedOutput: "False");
1952
var
compilation = CompileAndVerify(source, expectedOutput: "False");
2006
var
compilation = CompileAndVerify(source, expectedOutput: "False");
2099
var
compilation = CompileAndVerify(source, verify: Verification.Fails, expectedOutput: "True");
2214
var
compilation = CompileAndVerify(source, verify: Verification.Fails, expectedOutput: @"353
2286
var
compilation = CompileAndVerify(source);
2369
var
compilation = CompileAndVerify(source, expectedOutput: "0");
CodeGen\CodeGenTests.cs (196)
81
var
result = CompileAndVerify(source, verify: Verification.FailsILVerify, options: TestOptions.DebugDll);
169
var
result = CompileAndVerify(source, verify: Verification.FailsILVerify, options: TestOptions.DebugDll);
239
var
result = CompileAndVerify(source, options: TestOptions.DebugDll);
300
var
result = CompileAndVerify(source, options: TestOptions.DebugDll);
335
var
result = CompileAndVerify(source, options: TestOptions.ReleaseDll);
383
var
result = CompileAndVerify(source, options: TestOptions.ReleaseDll);
436
var
result = CompileAndVerify(source, options: TestOptions.ReleaseDll);
535
var
result = CompileAndVerify(compilation);
609
var
result = CompileAndVerify(compilation);
712
var
compilation = CompileAndVerify(source, expectedOutput: @"
752
var
compilation = CompileAndVerify(source, expectedOutput: @"
868
var
result = CompileAndVerify(compilation, expectedOutput: "Struct1 Struct2 ");
903
var
compilation = CompileAndVerify(source);
953
var
compilation = CompileAndVerify(source);
1109
var
compilation = CompileAndVerify(source);
1510
var
compilation = CompileAndVerify(source);
1537
var
compilation = CompileAndVerify(source);
1582
var
compilation = CompileAndVerify(source);
1621
var
compilation = CompileAndVerify(source);
1666
var
compilation = CompileAndVerify(source, expectedOutput: "42");
1695
var
compilation = CompileAndVerify(source, expectedOutput: "42");
1724
var
compilation = CompileAndVerify(source, expectedOutput: "42");
1756
var
compilation = CompileAndVerify(source, expectedOutput: "123");
1814
var
v = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "42123");
1865
var
compilation = CompileAndVerify(source, expectedOutput: "");
1907
var
compilation = CompileAndVerify(source, expectedOutput: @"
1954
var
compilation = CompileAndVerify(source, expectedOutput: @"
1990
var
compilation = CompileAndVerify(source, expectedOutput: @"System.Exception: hello");
2028
var
compilation = CompileAndVerify(source, expectedOutput: @"hi");
2053
var
compilation = CompileAndVerify(source);
2087
var
compilation = CompileAndVerify(source);
2125
var
compilation = CompileAndVerify(source, expectedOutput: "S");
2155
var
compilation = CompileAndVerify(source, expectedOutput: "2");
2183
var
compilation = CompileAndVerify(source, expectedOutput: "S");
2219
var
compilation = CompileAndVerify(source, expectedOutput: "T2");
2256
var
compilation = CompileAndVerify(source, expectedOutput: "C<int>.S;C<string>.S;C<string>.T2");
2287
var
compilation = CompileAndVerify(source, expectedOutput: "p, q");
2347
var
compilation = CompileAndVerify(source);
2397
var
compilation = CompileAndVerify(source);
3006
var
compilation = CompileAndVerify(source, expectedOutput: "1System.Reflection.Missing");
3033
var
compilation = CompileAndVerify(source, expectedOutput: "2147483647");
3070
var
compilation = CompileAndVerify(source, expectedOutput: "42");
3111
var
compilation = CompileAndVerify(source, expectedOutput: "0427");
3165
var
compilation = CompileAndVerify(source, options: TestOptions.ReleaseDebugExe, expectedOutput: "0427");
3219
var
compilation = CompileAndVerify(source, expectedOutput: "042");
3270
var
compilation = CompileAndVerify(source, expectedOutput: "123123123123123");
3335
var
compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: "222333");
3389
var
compilation = CompileAndVerify(source, expectedOutput: "222333");
3482
var
compilation = CompileAndVerify(source, expectedOutput: "03450");
3566
var
compilation = CompileAndVerify(source, expectedOutput: "03450");
3656
var
compilation = CompileAndVerify(source, expectedOutput: @"
3837
var
compilation = CompileAndVerify(source, expectedOutput: "hihi4242123123");
3956
var
compilation = CompileAndVerify(source, expectedOutput: "D+BooSystem.Int32123");
4044
var
compilation = CompileAndVerify(source, expectedOutput: "B ctor-D ctor");
4111
var
compilation = CompileAndVerify(source, expectedOutput: @"
4214
var
compilation = CompileAndVerify(source, expectedOutput: @"
4272
var
compilation = CompileAndVerify(source, expectedOutput: @"abcdef");
4315
var
verifier = CompileAndVerify(@"
4514
var
compilation = CompileAndVerify(source, expectedOutput: @"123");
4570
var
compilation = CompileAndVerify(source, expectedOutput: @"0123401234");
4678
var
compilation = CompileAndVerify(source, expectedOutput: @"
4720
var
compilation = CompileAndVerify(source, expectedOutput: @"012344321");
4763
var
compilation = CompileAndVerify(source, expectedOutput: @"-100-11-1");
4830
var
compilation = CompileAndVerify(source, expectedOutput: @"2 8 16 24 576 288");
4915
var
compilation = CompileAndVerify(source, expectedOutput: @"True False True True");
4982
var
compilation = CompileAndVerify(source, expectedOutput: @"-25 4294967295 1073741823");
5048
var
compilation = CompileAndVerify(source, expectedOutput: @"
5101
var
compilation = CompileAndVerify(source, expectedOutput: @"PASS", verify: Verification.Passes);
5162
var
compilation = CompileAndVerify(source, expectedOutput: @"hi", verify: Verification.Fails);
5254
var
compilation = CompileAndVerify(source, expectedOutput: @"hihi", verify: Verification.Fails);
5311
var
compilation = CompileAndVerify(source, expectedOutput: @"
5502
var
compilation = CompileAndVerify(source, expectedOutput: @"42123");
5541
var
compilation = CompileAndVerify(source, expectedOutput: @"True");
5582
var
compilation = CompileAndVerify(source, expectedOutput: @"True");
5685
var
v = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"1");
5789
var
compilation = CompileAndVerify(source, expectedOutput: @"1");
5842
var
compilation = CompileAndVerify(source, expectedOutput: @"True");
5902
var
compilation = CompileAndVerify(source, expectedOutput: @"TrueTrueTrueTrueTrue");
5962
var
compilation = CompileAndVerify(source, expectedOutput: @"12");
5999
var
compilation = CompileAndVerify(source, expectedOutput: @"onetwo");
6057
var
compilation = CompileAndVerify(source, expectedOutput: @"23");
6103
var
compilation = CompileAndVerify(source, expectedOutput: @"onetwo");
6142
var
compilation = CompileAndVerify(source, expectedOutput: @"A#A##");
6195
var
compilation = CompileAndVerify(source, expectedOutput: @"12");
6236
var
compilation = CompileAndVerify(source, expectedOutput: @"CurrentCultureIgnoreCaseInvariantCulture");
6275
var
compilation = CompileAndVerify(source, expectedOutput: @"12");
6366
var
compilation = CompileAndVerify(source, expectedOutput: @"BCDE2442");
6439
var
compilation = CompileAndVerify(source, expectedOutput: @"hi");
6576
var
compilation = CompileAndVerify(source, expectedOutput: @"hi");
6670
var
compilation = CompileAndVerifyWithMscorlib40(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"
6793
var
compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"3-5");
6855
var
compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"30");
6927
var
compilation = CompileAndVerifyWithMscorlib40(source, expectedOutput: @"
7010
var
verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
7066
var
compilation = CompileAndVerify(source, expectedOutput: @"0");
7122
var
compilation = CompileAndVerify(source, options: TestOptions.ReleaseDebugExe, expectedOutput: @"0");
7172
var
compilation = CompileAndVerify(source, expectedOutput: @"123");
7211
var
compilation = CompileAndVerify(source);
7249
var
compilation = CompileAndVerify(source);
7290
var
compilation = CompileAndVerify(source);
7328
var
compilation = CompileAndVerify(source, expectedOutput: @"");
7366
var
compilation = CompileAndVerify(source, expectedOutput: @"123");
7406
var
compilation = CompileAndVerify(source, expectedOutput: @"Program+Shade
7491
var
compilation = CompileAndVerify(source, expectedOutput: @"2");
7593
var
compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"
7692
var
compilation = CompileAndVerify(source, expectedOutput: "True6False");
7743
var
compilation = CompileAndVerify(source, expectedOutput: "6");
7803
var
compilation = CompileAndVerify(source, expectedOutput: @"
7876
var
compilation = CompileAndVerify(source, options: TestOptions.DebugExe.WithModuleName("MODULE"));
7972
var
compilation = CompileAndVerify(source, expectedOutput: "Hello");
8033
var
compilation = CompileAndVerify(source, expectedOutput: @"224");
8107
var
compilation = CompileAndVerify(source, expectedOutput: @"result=One,Two");
8186
var
compilation = CompileAndVerify(source, expectedOutput: @"6");
8392
var
compilation = CompileAndVerify(source, expectedOutput: @"
8506
var
compilation = CompileAndVerify(source, expectedOutput: @"first
8552
var
compilation = CompileAndVerify(source, expectedOutput: @"1
8626
var
compilation = CompileAndVerify(source, expectedOutput: @"2
8697
var
compilation = CompileAndVerify(source, expectedOutput: @"2
8743
var
compilation = CompileAndVerify(source, expectedOutput: @"2
8784
var
compilation = CompileAndVerify(source, expectedOutput: @"2
8863
var
compilation = CompileAndVerify(source, expectedOutput: @"2
8937
var
compilation = CompileAndVerify(source, expectedOutput: @"2
9006
var
compilation = CompileAndVerify(source, options: TestOptions.ReleaseDebugExe, expectedOutput: @"2
9078
var
compilation = CompileAndVerify(source, expectedOutput: @"1");
9123
var
compilation = CompileAndVerify(source, expectedOutput: @"42");
9170
var
compilation = CompileAndVerify(source, expectedOutput: @"42", options: TestOptions.ReleaseDebugExe);
9220
var
compilation = CompileAndVerify(source, expectedOutput: @"42");
9546
var
compilation = CompileAndVerify(source, expectedOutput: @"M() Called!M() Called!");
9595
var
compilation = CompileAndVerify(source, expectedOutput: @"123");
9667
var
compilation = CompileAndVerify(source, expectedOutput: @"12");
9786
var
compilation = CompileAndVerify(source, expectedOutput: @"6");
9883
var
compilation = CompileAndVerify(source, expectedOutput: "0").
10015
var
compilation = CompileAndVerify(source, expectedOutput: @"1");
10045
var
comp = CompileAndVerify(source, expectedOutput: @"False");
10568
var
compilation = CompileAndVerify(source);
10717
var
compilation = CompileAndVerify(source, expectedOutput:
10732
var
compilation = CompileAndVerify(source, expectedOutput:
11119
var
compilation = CompileAndVerify(source, expectedOutput: "101");
11155
var
compilation = CompileAndVerify(source, expectedOutput: "99.9");
11197
var
compilation = CompileAndVerify(source);
11220
var
compilation = CompileAndVerify(source, expectedOutput: "11");
11253
var
compilation = CompileAndVerify(source, expectedOutput: @"
11286
var
compilation = CompileAndVerify(source, expectedOutput: @"
11318
var
compilation = CompileAndVerify(source, expectedOutput: @"
11337
var
compilation = CompileAndVerify(source, expectedOutput: "79228162514264337593543950335");
11366
var
compilation = CompileAndVerify(source, expectedOutput: "79228162514264337593543950334-1");
11422
var
compilation = CompileAndVerify(source, expectedOutput: @"
11489
var
compilation = CompileAndVerify(source, expectedOutput: @"
11564
var
compilation = CompileAndVerify(source, expectedOutput: @"
11685
var
compilation = CompileAndVerify(source, expectedOutput: @"
11895
var
compilation = CompileAndVerify(source, expectedOutput: @"bye");
11950
var
compilation = CompileAndVerify(source, expectedOutput: @"0");
12013
var
compilation = CompileAndVerify(source, expectedOutput: @"1A");
12045
var
compilation = CompileAndVerify(source, expectedOutput: @"1A");
12086
var
compilation = CompileAndVerify(source, expectedOutput: "null;null;C1;");
12117
var
compilation = CompileAndVerify(source, expectedOutput: @"1A");
12146
var
compilation = CompileAndVerify(source, expectedOutput: @"00");
12182
var
compilation = CompileAndVerify(source, expectedOutput: @"0");
12211
var
compilation = CompileAndVerify(source, expectedOutput: @"0");
12299
var
comp = CompileAndVerify(source, expectedOutput: @"42", parseOptions: TestOptions.Regular7_2, verify: Verification.FailsPEVerify);
12453
var
comp = CompileAndVerify(source, expectedOutput: @"-10", verify: Verification.FailsPEVerify);
12525
var
compilation = CompileAndVerify(source, expectedOutput: @"123");
12583
var
compilation = CompileAndVerify(source, expectedOutput: @"");
12637
var
compilation = CompileAndVerify(source, expectedOutput: @"notequal1
12766
var
compilation = CompileAndVerify(source, expectedOutput: @"True
13007
var
compilation = CompileAndVerify(source, expectedOutput: expectedOutput);
13044
var
compilation = CompileAndVerify(source, expectedOutput: expectedOutput);
13223
var
compilation = CompileAndVerify(source, expectedOutput: expectedOutput);
13347
var
compilation = CompileAndVerify(
13410
var
compilation = CompileAndVerifyWithMscorlib40(code, expectedOutput: "4");
13435
var
comp = CompileAndVerify(code, expectedOutput: "5", options: TestOptions.DebugExe);
13657
var
v = CompileAndVerify(comp);
13962
var
compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"False
14985
var
compilation = CompileAndVerify(source, expectedOutput: @"42
15040
var
compilation = CompileAndVerify(source, expectedOutput: @"42");
15089
var
compilation = CompileAndVerify(source, expectedOutput: @"42");
15135
var
compilation = CompileAndVerify(source, references: new[] { testReference });
15177
var
compilation = CompileAndVerify(source, expectedOutput: "2");
15231
var
compilation = CompileAndVerify(source, expectedOutput: "True");
15277
var
compilation = CompileAndVerify(source, expectedOutput: "hi");
15324
var
compilation = CompileAndVerify(source, expectedOutput: "o");
15377
var
compilation = CompileAndVerify(source, expectedOutput: "hi");
15462
var
compilation = CompileAndVerify(source, expectedOutput: "");
15560
var
compilation = CompileAndVerifyWithMscorlib40(source, new[] { SystemCoreRef, CSharpRef }, expectedOutput: "2");
15631
var
compilation = CompileAndVerifyWithMscorlib40(source, new[] { SystemCoreRef, CSharpRef }, expectedOutput: "2");
15744
var
compilation = CompileAndVerifyWithMscorlib40(source, new[] { SystemCoreRef, CSharpRef }, expectedOutput: "long.ex caught");
15790
var
compilation = CompileAndVerifyWithMscorlib40(source, new[] { SystemCoreRef, CSharpRef }, expectedOutput: "long.ex caught");
16115
var
compilation = CompileAndVerify(source, expectedOutput: @"
16257
var
compilation = CompileAndVerify(source);
16796
var
verifier = CompileAndVerify(source, expectedOutput: "B");
16835
var
verifier = CompileAndVerify(source, expectedOutput: "AB");
16881
var
verifier = CompileAndVerify(source, expectedOutput: "3");
16925
var
verifier = CompileAndVerify(source, expectedOutput: "Object[]AString[]B");
16975
var
verifier = CompileAndVerify(source, expectedOutput: "2");
17241
var
compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithAllowUnsafe(true), verify: Verification.Skipped, expectedOutput: @"");
17313
var
verifier = CompileAndVerify(comp, expectedOutput: "System.Int32").VerifyDiagnostics();
CodeGen\CodeGenThrowTests.cs (10)
27
var
compilation = CompileAndVerifyException<Exception>(source, "TestThrowNewExpression");
51
var
compilation = CompileAndVerifyException<Exception>(source, "TestThrowLocalExpression");
74
var
compilation = CompileAndVerifyException<NullReferenceException>(source);
103
var
compilation = CompileAndVerify(source);
140
var
compilation = CompileAndVerify(source);
168
var
compilation = CompileAndVerify(source);
205
var
compilation = CompileAndVerify(source);
233
var
compilation = CompileAndVerify(source);
340
var
compilation = CompileAndVerify(source);
365
var
compilation = CompileAndVerify(source);
CodeGen\CodeGenTryFinally.cs (46)
46
var
compilation = CompileAndVerify(source);
118
var
compilation = CompileAndVerify(source);
201
var
compilation = CompileAndVerify(source, expectedOutput: "1, 3, 4, 1, 2, 3, ");
261
var
compilation = CompileAndVerify(source, expectedOutput: "before, catch, before, after,");
319
var
compilation = CompileAndVerify(source, expectedOutput: "");
387
var
compilation = CompileAndVerify(source, expectedOutput: "");
462
var
compilation = CompileAndVerify(source, expectedOutput: "hellobyebye");
547
var
compilation = CompileAndVerify(source);
634
var
compilation = CompileAndVerify(source);
701
var
compilation = CompileAndVerify(source);
765
var
compilation = CompileAndVerify(source);
901
var
compilation = CompileAndVerify(source, expectedOutput: "");
980
var
compilation = CompileAndVerify(source, expectedOutput:
1072
var
compilation = CompileAndVerify(source, expectedOutput: @"
1161
var
compilation = CompileAndVerify(source, expectedOutput: @"
1268
var
compilation = CompileAndVerify(source, expectedOutput: @"
1387
var
compilation = CompileAndVerify(source, expectedOutput: @"
1524
var
compilation = CompileAndVerify(source, expectedOutput: @"
1657
var
compilation = CompileAndVerify(source, expectedOutput: @"
1791
var
compilation = CompileAndVerify(source, expectedOutput: @"
1917
var
compilation = CompileAndVerify(source);
2083
var
compilation = CompileAndVerify(source);
2290
var
comp = CompileAndVerify(src,
2496
var
comp = CompileAndVerify(src, expectedOutput: "TryCatchS1Finally");
2573
var
comp = CompileAndVerify(src);
2611
var
comp = CompileAndVerify(src);
2649
var
comp = CompileAndVerify(src);
2716
var
comp = CompileAndVerify(src, expectedOutput: "ExceptionFilter");
2798
var
comp = CompileAndVerify(src, expectedOutput: "FinallyOuterCatch");
2871
var
compilation = CompileAndVerify(source, expectedOutput: "M(0)=-4, M(1)=11, M(2)=6");
2956
var
compilation = CompileAndVerify(source);
3028
var
compilation = CompileAndVerify(source, expectedOutput:
3151
var
compilation = CompileAndVerify(source, expectedOutput: "");
3212
var
compilation = CompileAndVerify(source, expectedOutput: "0");
3266
var
compilation = CompileAndVerify(source, expectedOutput: "hello");
3321
var
compilation = CompileAndVerify(source, expectedOutput: "0");
3393
var
compilation = CompileAndVerify(source, expectedOutput: "0");
3476
var
compilation = CompileAndVerify(source, expectedOutput: "0");
3552
var
compilation = CompileAndVerify(source, expectedOutput: @"2
3629
var
compilation = CompileAndVerify(source, expectedOutput: @"2
3682
var
compilation = CompileAndVerify(source, expectedOutput: @"");
3826
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: "M1M4M1M2Catch",
3924
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseDll).VerifyDiagnostics();
4085
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseDll).VerifyDiagnostics(
4149
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseDll).VerifyDiagnostics(
4212
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseDll).VerifyDiagnostics(
CodeGen\CodeGenTupleEqualityTests.cs (34)
193
var
comp = CompileAndVerify(source);
239
var
comp = CompileAndVerify(source);
280
var
comp = CompileAndVerify(source);
328
var
comp = CompileAndVerify(source, expectedOutput: "True False False");
410
var
comp = CompileAndVerify(source, expectedOutput: "True");
450
var
comp = CompileAndVerify(source, expectedOutput: "TrueFalse");
493
var
comp = CompileAndVerify(source, expectedOutput: "FalseTrue");
533
var
comp = CompileAndVerify(source, expectedOutput: "FalseTrue");
569
var
comp = CompileAndVerify(source, expectedOutput: "True");
629
var
comp = CompileAndVerify(source, expectedOutput: "1 == 1, 2 == 2, True");
661
var
comp = CompileAndVerify(source, expectedOutput: "2 == 2, 2 == 2, True");
676
var
comp = CompileAndVerify(source);
707
var
comp = CompileAndVerify(source);
3273
var
verifier = CompileAndVerify(comp, expectedOutput: "True False False True False");
3358
var
verifier = CompileAndVerify(comp, expectedOutput: "True");
3393
var
verifier = CompileAndVerify(comp, expectedOutput: "True");
3428
var
verifier = CompileAndVerify(comp, expectedOutput: "True");
3644
var
verifier = CompileAndVerify(comp, expectedOutput: "True");
3679
var
verifier = CompileAndVerify(comp, expectedOutput: "False True True False True");
3803
var
verifier = CompileAndVerify(comp, expectedOutput: "True False False True False");
3906
var
verifier = CompileAndVerify(comp, expectedOutput: "True False False Convert4 Convert4 True Convert5 False Convert6 Convert20 False ");
4000
var
verifier = CompileAndVerify(comp, expectedOutput: "FalseTrueFalse");
4078
var
verifier = CompileAndVerify(comp, expectedOutput: "False False Convert1 True Convert1 True Convert10 False Convert10 False");
4119
var
verifier = CompileAndVerify(comp, expectedOutput: "FalseTrueFalse");
4335
var
verifier = CompileAndVerify(comp, expectedOutput: "TrueFalse");
4383
var
verifier = CompileAndVerify(comp, expectedOutput: "True");
5587
var
comp = CompileAndVerify(source, expectedOutput: "True");
5606
var
comp = CompileAndVerify(source, expectedOutput: "False");
5634
var
comp = CompileAndVerify(source, expectedOutput: "True");
5662
var
comp = CompileAndVerify(source, expectedOutput: "True");
5682
var
comp = CompileAndVerify(source, expectedOutput: "1").VerifyDiagnostics();
5747
var
comp = CompileAndVerify(source, expectedOutput: "M11").VerifyDiagnostics();
5799
var
comp = CompileAndVerify(source, expectedOutput: "1").VerifyDiagnostics();
5879
var
comp = CompileAndVerify(source, expectedOutput: "1").VerifyDiagnostics();
CodeGen\CodeGenTupleTest.cs (181)
1032
var
comp = CompileAndVerify(source, expectedOutput: "{1, 2}");
1216
var
comp = CompileAndVerify(source, expectedOutput: "2");
1249
var
comp = CompileAndVerify(source, expectedOutput: "{, }");
1282
var
comp = CompileAndVerify(source, expectedOutput: "{1, {2, {3, 4}}}");
1326
var
comp = CompileAndVerify(source, expectedOutput: @"2
1372
var
comp = CompileAndVerify(source, expectedOutput: @"2
1418
var
comp = CompileAndVerify(source, expectedOutput: @"2
1464
var
comp = CompileAndVerify(source, expectedOutput: @"2
1518
var
comp = CompileAndVerify(source, expectedOutput: @"{1, hello, 2}");
1638
var
comp = CompileAndVerify(source, expectedOutput: @"1
1656
var
comp = CompileAndVerify(source, expectedOutput: @"1 hello hello 3");
1716
var
comp = CompileAndVerify(source, expectedOutput: @"1 hello 3");
1748
var
comp = CompileAndVerify(source, expectedOutput: @"4");
1805
var
comp = CompileAndVerify(source, expectedOutput: @"42");
1843
var
comp = CompileAndVerify(source, expectedOutput: @"{42, 42}");
1908
var
comp = CompileAndVerify(source, targetFramework: TargetFramework.Mscorlib46Extended, expectedOutput: @"42");
1974
var
comp = CompileAndVerify(source, expectedOutput: @"42");
2042
var
comp = CompileAndVerify(source, expectedOutput: @"42");
2171
var
comp = CompileAndVerify(source, expectedOutput:
2213
var
verifier = CompileAndVerify(source, expectedOutput: @"42", options: TestOptions.ReleaseExe);
2333
var
verifier = CompileAndVerify(source, expectedOutput: @"{42, 42}", options: TestOptions.ReleaseExe);
2480
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Mscorlib46Extended, expectedOutput: @"42", options: TestOptions.ReleaseExe);
2622
var
verifier = CompileAndVerify(source, expectedOutput: @"42", options: TestOptions.ReleaseExe);
2764
var
verifier = CompileAndVerify(source, expectedOutput: @"42", options: TestOptions.ReleaseExe);
2881
var
comp = CompileAndVerify(source,
3080
var
comp = CompileAndVerify(source, expectedOutput: @"0
3194
var
verifier = CompileAndVerify(source, expectedOutput: @"1 2 3 4 5");
3227
var
verifier = CompileAndVerify(source, expectedOutput: @"1 2 3 4 5 6 7 Alice 2 3 4 5", sourceSymbolValidator: validator);
3260
var
verifier = CompileAndVerify(source, expectedOutput: @"1 2 3 4 5 6 7 Alice 2 3 4 5", sourceSymbolValidator: validator);
3440
var
comp = CompileAndVerify(source,
3474
var
verifier = CompileAndVerifyWithMscorlib40(source, expectedOutput: @"1 2 3 4 5 6 7 Alice 2 3 4 5 6 7 Bob 2 3", references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, sourceSymbolValidator: validator);
3492
var
comp = CompileAndVerify(source,
3511
var
comp = CompileAndVerify(source,
3531
var
comp = CompileAndVerify(source,
3611
var
comp = CompileAndVerify(source,
3652
var
verifier = CompileAndVerify(source, expectedOutput: @"1 2 3 4 5 6 7 Alice 2 3 4 5 6 7 Bob 2 3", sourceSymbolValidator: validator);
3709
var
verifier = CompileAndVerify(source, sourceSymbolValidator: validator);
3945
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1),
4029
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1),
4050
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1),
4084
var
verifier7_1 = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1),
4130
var
verifier = CompileAndVerify(source, expectedOutput: @"1 4 7 Alice 7 Bob 3");
4160
var
verifier = CompileAndVerify(source, expectedOutput: @"Alice 1", sourceSymbolValidator: validator);
4182
var
comp = CompileAndVerify(source,
4229
var
comp = CompileAndVerify(source,
4278
var
v = CompileAndVerify(comp, expectedOutput: @"
4426
var
comp = CompileAndVerifyWithMscorlib40(source, expectedOutput: @"1 1 2 2 3 3 4 4 5 5 6 6 True", references: new[] { new CSharpCompilationReference(comp1), new CSharpCompilationReference(comp2) });
4743
var
comp = CompileAndVerify(source, expectedOutput: @"5 3");
4772
var
comp = CompileAndVerify(source, expectedOutput: @"1 7 8");
4801
var
comp = CompileAndVerify(source, expectedOutput: @"5 3");
4875
var
comp = CompileAndVerify(source, expectedOutput: @"5 3");
4910
var
comp = CompileAndVerify(source, expectedOutput: @"CB CA CC");
5240
var
comp = CompileAndVerify(source,
5296
var
comp = CompileAndVerify(source,
5322
var
comp = CompileAndVerify(source,
5349
var
comp = CompileAndVerify(source,
5374
var
comp = CompileAndVerify(source,
5397
var
comp = CompileAndVerify(source,
5590
var
comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: expectedOutput);
5650
var
comp = CompileAndVerify(source, expectedOutput: "Item1: 2 Rest: (2, 2)", references: new[] { CSharpRef });
5672
var
comp = CompileAndVerify(source, expectedOutput: "a:1, h:8, i:9, Item9:9, Rest:(8, 9)", references: new[] { CSharpRef });
5696
var
comp = CompileAndVerify(source, expectedOutput: "done", references: new[] { CSharpRef });
5731
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput, references: new[] { CSharpRef });
5782
var
comp = CompileAndVerify(source, expectedOutput: "12345678901234567890123456789012345");
6995
var
comp = CompileAndVerify(source, expectedOutput: @"
7677
var
comp = CompileAndVerify(source,
7756
var
comp = CompileAndVerify(source,
7795
var
comp = CompileAndVerify(source,
7828
var
comp = CompileAndVerify(source,
7867
var
comp = CompileAndVerify(source, expectedOutput: @"
7901
var
comp = CompileAndVerify(source,
7933
var
comp = CompileAndVerify(source, expectedOutput:
7975
var
comp = CompileAndVerify(source, expectedOutput: @"
9397
var
comp = CompileAndVerify(source,
9436
var
comp = CompileAndVerify(source,
9473
var
comp = CompileAndVerify(source,
9510
var
comp = CompileAndVerify(source,
9544
var
comp = CompileAndVerify(source,
9582
var
comp = CompileAndVerify(source,
9618
var
comp = CompileAndVerify(source, expectedOutput: @"
9653
var
comp = CompileAndVerify(source,
9697
var
comp = CompileAndVerify(source, expectedOutput: @"
9748
var
comp = CompileAndVerify(source, expectedOutput: @"
9781
var
comp = CompileAndVerify(source, expectedOutput: @"
10163
var
comp = CompileAndVerify(source,
10200
var
comp = CompileAndVerify(source,
10299
var
comp = CompileAndVerify(source,
10332
var
comp = CompileAndVerify(source,
10792
var
comp = CompileAndVerify(source,
10825
var
comp = CompileAndVerify(source,
10855
var
comp = CompileAndVerify(source,
10885
var
comp = CompileAndVerify(source,
11009
var
comp = CompileAndVerify(source,
11343
var
comp = CompileAndVerify(source,
11723
var
comp = CompileAndVerify(source,
11862
var
comp = CompileAndVerify(source,
12139
var
comp = CompileAndVerify(source,
12674
var
comp = CompileAndVerify(source, expectedOutput: @"1
13960
var
comp = CompileAndVerify(source,
14206
var
comp = CompileAndVerify(source,
15092
var
comp = CompileAndVerify(source,
15156
var
comp = CompileAndVerify(source,
15710
var
comp = CompileAndVerify(source,
15782
var
comp = CompileAndVerify(source,
15997
var
comp = CompileAndVerify(source, expectedOutput:
16642
var
comp = CompileAndVerify(source,
16661
var
comp = CompileAndVerify(source,
16687
var
comp = CompileAndVerify(source, expectedOutput: "(1, Alice, 2, Brenda, 3, Chloe, 4, Dylan)");
16709
var
comp = CompileAndVerify(source, expectedOutput: "1 1 (8) 8 8");
17480
var
comp = CompileAndVerifyWithMscorlib40(source, expectedOutput: "(1, 2)", references: new[] { tupleComp.ToMetadataReference() });
17525
var
comp = CompileAndVerify(source, expectedOutput: @"
17574
var
comp = CompileAndVerify(source, expectedOutput: @"
17614
var
comp = CompileAndVerify(source,
17703
var
comp = CompileAndVerify(source,
17792
var
comp = CompileAndVerify(source,
17832
var
comp = CompileAndVerify(source,
17892
var
comp = CompileAndVerify(source,
18020
var
comp = CompileAndVerify(source,
18078
var
comp = CompileAndVerify(source,
18287
var
comp = CompileAndVerify(source, expectedOutput: @"
18319
var
comp = CompileAndVerify(source, expectedOutput: @"
18343
var
comp = CompileAndVerify(source, expectedOutput: @"
18413
var
comp = CompileAndVerify(source, expectedOutput: @"
18483
var
comp = CompileAndVerify(source, parseOptions: TestOptions.Regular, expectedOutput: @"
18598
var
comp = CompileAndVerify(source, expectedOutput: @"
18706
var
comp = CompileAndVerify(source,
18739
var
comp = CompileAndVerify(source,
18777
var
comp = CompileAndVerify(source,
19339
var
verifier = CompileAndVerify(comp, expectedOutput: "(42, 43)");
21451
var
comp = CompileAndVerify(source,
21478
var
comp = CompileAndVerify(source,
21502
var
comp = CompileAndVerify(source,
21544
var
comp = CompileAndVerify(source,
21586
var
comp = CompileAndVerify(source,
21628
var
comp = CompileAndVerify(source,
21670
var
comp = CompileAndVerify(source,
21705
var
comp = CompileAndVerify(source,
21750
var
comp = CompileAndVerify(source,
21788
var
comp = CompileAndVerify(source,
22141
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Mscorlib46, expectedOutput: @"5", options: TestOptions.ReleaseExe);
23297
var
comp = CompileAndVerify(source);
23335
var
comp = CompileAndVerify(source,
23446
var
comp = CompileAndVerify(source, expectedOutput: "42qq", references: new[] { libComp.ToMetadataReference() }, options: TestOptions.DebugExe, verify: Verification.Fails);
23502
var
comp = CompileAndVerifyWithMscorlib40(source, expectedOutput: "42qq", references: s_valueTupleRefs.Concat(new[] { libCompRef }).ToArray(), options: TestOptions.DebugExe, verify: Verification.Fails);
23544
var
comp = CompileAndVerify(source,
23584
var
comp = CompileAndVerify(source,
23628
var
comp = CompileAndVerify(source,
23663
var
comp = CompileAndVerify(source,
23694
var
comp = CompileAndVerify(source,
23740
var
comp = CompileAndVerify(source,
23901
var
comp = CompileAndVerify(source, expectedOutput: "42qq", references: new[] { libCompRef }, options: TestOptions.DebugExe, verify: Verification.Passes);
23961
var
comp = CompileAndVerify(source,
25124
var
comp = CompileAndVerify(source,
25158
var
comp = CompileAndVerify(source,
25549
var
verifier = CompileAndVerify(comp, expectedOutput: @"(-1, 255)(-1, 255)overflow");
25616
var
comp = CompileAndVerify(source,
25941
var
comp = CompileAndVerify(source, expectedOutput: "24");
25960
var
comp = CompileAndVerify(source, expectedOutput: "4");
25984
var
comp = CompileAndVerify(source,
26009
var
comp = CompileAndVerify(source,
26035
var
comp = CompileAndVerify(source,
26061
var
comp = CompileAndVerify(source,
26084
var
comp = CompileAndVerify(source,
26105
var
comp = CompileAndVerify(source,
26152
var
comp = CompileAndVerify(source,
26174
var
comp = CompileAndVerify(source, expectedOutput: "3");
27337
var
verifier = CompileAndVerify(comp1, verify: Verification.Skipped); // unsafe code
27655
var
verifier = CompileAndVerify(comp, expectedOutput: @"Done.");
27951
var
verifier = CompileAndVerify(comp, symbolValidator: verifyModule, sourceSymbolValidator: verifyModule);
28027
var
verifier = CompileAndVerify(comp, symbolValidator: verifyModule, sourceSymbolValidator: verifyModule);
28390
var
verifier = CompileAndVerify(comp, symbolValidator: verifyModule, sourceSymbolValidator: verifyModule);
28485
var
verifier = CompileAndVerify(comp, symbolValidator: verifyModule, sourceSymbolValidator: verifyModule);
28958
var
comp = CompileAndVerify($@"
29096
var
verifier = CompileAndVerify(source + trivial2uple, expectedOutput:
29179
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseDll);
29229
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: """
29352
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: """
29457
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: """
29573
var
verifier = CompileAndVerify(source, expectedOutput: "(2, 3, 1)");
29666
var
verifier = CompileAndVerify(source, expectedOutput: "(2, 3, 4, 5, 6, 7, 8, 9, 1)");
29746
var
verifier = CompileAndVerify(source, expectedOutput: """
CodeGen\CodeGenTypeofTests.cs (11)
30
var
comp = CompileAndVerify(source, expectedOutput: "C");
77
var
comp = CompileAndVerify(source, expectedOutput: @"
150
var
comp = CompileAndVerify(source, expectedOutput: @"
207
var
comp = CompileAndVerify(source, expectedOutput: @"
259
var
comp = CompileAndVerify(source, expectedOutput: @"
332
var
comp = CompileAndVerify(source, expectedOutput: expected);
391
var
comp = CompileAndVerify(source, expectedOutput: expected);
436
var
comp = CompileAndVerify(source, expectedOutput: "");
462
var
comp = CompileAndVerify(source, expectedOutput: @"
532
var
comp = CompileAndVerify(source, expectedOutput: @"
618
var
comp = CompileAndVerify(source, expectedOutput: @"
CodeGen\CodeGenUsingStatementTests.cs (21)
71
var
verifier = CompileAndVerify(text, expectedOutput: @"Before
108
var
verifier = CompileAndVerify(text, expectedOutput: @"Before
144
var
verifier = CompileAndVerify(text, expectedOutput: @"Before
198
var
verifier = CompileAndVerify(text, expectedOutput: @"Before
274
var
verifier = CompileAndVerify(text, expectedOutput: expected);
330
var
verifier = CompileAndVerify(text, expectedOutput: @"Creating A
382
var
verifier = CompileAndVerify(text, expectedOutput: @"Before
419
var
verifier = CompileAndVerify(text, expectedOutput: @"Before
455
var
verifier = CompileAndVerify(text, expectedOutput: @"Before
509
var
verifier = CompileAndVerify(text, expectedOutput: @"Before
585
var
verifier = CompileAndVerify(text, expectedOutput: expected);
641
var
verifier = CompileAndVerify(text, expectedOutput: @"Creating A
693
var
verifier = CompileAndVerify(text, expectedOutput: @"Before
781
var
verifier = CompileAndVerify(text, expectedOutput: @"Before
867
var
verifier = CompileAndVerify(text, expectedOutput: @"Before
939
var
verifier = CompileAndVerify(text, expectedOutput: @"Before
2041
var
comp = CompileAndVerify(source, expectedOutput: @"InUsing");
2097
var
comp = CompileAndVerify(source, expectedOutput: "");
2165
var
comp = CompileAndVerify(source, expectedOutput: expected);
2830
var
comp = CompileAndVerify(source, expectedOutput: @"");
3126
var
verifier = CompileAndVerify(source, expectedOutput: "12");
CodeGen\DestructorTests.cs (8)
51
var
compVerifier = CompileAndVerify(text,
105
var
compVerifier = CompileAndVerify(text,
164
var
compVerifier = CompileAndVerify(text,
250
var
compVerifier = CompileAndVerify(text,
351
var
compVerifier = CompileAndVerify(text,
406
var
compVerifier = CompileAndVerify(text,
463
var
compVerifier = CompileAndVerify(text,
498
var
compVerifier = CompileAndVerify(text);
CodeGen\EventTests.cs (8)
36
var
compVerifier = CompileAndVerify(text,
70
var
compVerifier = CompileAndVerify(text,
100
var
compVerifier = CompileAndVerify(text,
163
var
compVerifier = CompileAndVerify(text,
434
var
compVerifier = CompileAndVerify(text,
711
var
verifier = CompileAndVerify(compilation,
783
var
verifier = CompileAndVerify(compilation,
843
var
verifier = CompileAndVerify(compilation);
CodeGen\FixedSizeBufferTests.cs (3)
26
var
verifier = CompileAndVerify(@"
1091
var
verifier = CompileAndVerify(@"
1120
var
verifier = CompileAndVerify(@"
CodeGen\ForLoopsTests.cs (18)
35
var
compilation = CompileAndVerify(source, expectedOutput: "81");
87
var
compilation = CompileAndVerify(source, expectedOutput: "1, 1");
144
var
compilation = CompileAndVerify(source, expectedOutput: "1, 0");
188
var
compilation = CompileAndVerify(source, expectedOutput: "0, 0");
235
var
compilation = CompileAndVerify(source, expectedOutput: "5, 3, 4, 4");
318
var
compilation = CompileAndVerify(source, expectedOutput: "6");
363
var
compilation = CompileAndVerify(source, expectedOutput: "6");
726
var
c = CompileAndVerify(source, options: TestOptions.ReleaseDll);
907
var
c = CompileAndVerify(source, options: TestOptions.ReleaseDll);
961
var
c = CompileAndVerify(source, options: TestOptions.ReleaseDll);
1265
var
c = CompileAndVerify(source, options: TestOptions.ReleaseDll);
1621
var
comp = CompileAndVerify(text, expectedOutput: @"1
1657
var
comp = CompileAndVerify(text, expectedOutput: @"1
1706
var
comp = CompileAndVerify(text, expectedOutput: @"1
1813
var
comp = CompileAndVerify(text, expectedOutput: @"1
1836
var
comp = CompileAndVerify(text, expectedOutput: @"1
1863
var
comp = CompileAndVerify(text, expectedOutput: @"-1
1916
var
c = CompileAndVerify(text, options: TestOptions.DebugExe);
CodeGen\GotoTest.cs (5)
223
var
c = CompileAndVerify(text);
319
var
c = CompileAndVerify(text);
360
var
c = CompileAndVerify(text);
394
var
c = CompileAndVerify(text, expectedOutput: @"a
504
var
c = CompileAndVerify(source, options: TestOptions.ReleaseDll);
CodeGen\IndexAndRangeTests.cs (28)
20
private
CompilationVerifier
CompileAndVerifyWithIndexAndRange(string s, string expectedOutput = null)
126
var
verifier = CompileAndVerifyWithIndexAndRange(src);
191
var
verifier = CompileAndVerify(comp, expectedOutput: @"0
281
var
verifier = CompileAndVerify(comp, expectedOutput: @"0
413
var
verifier = CompileAndVerify(comp, expectedOutput: @"0
510
var
verifier = CompileAndVerify(comp, expectedOutput: @"
677
var
verifier = CompileAndVerify(comp, expectedOutput: @"
830
var
verifier = CompileAndVerify(comp, expectedOutput: @"
952
var
verifier = CompileAndVerify(comp, expectedOutput: @"0
1025
var
verifier = CompileAndVerify(comp, expectedOutput: @"5
1099
var
verifier = CompileAndVerify(comp, expectedOutput: @"f
1184
var
verifier = CompileAndVerify(comp, expectedOutput: @"5
1276
var
verifier = CompileAndVerifyWithIndexAndRange(src, expectedOutput: @"
1298
var
verifier = CompileAndVerifyWithIndexAndRange(src, expectedOutput: @"5
1356
var
verifier = CompileAndVerifyWithIndexAndRange(src, @"
1447
var
verifier = CompileAndVerifyWithIndexAndRange(src, @"
1473
var
verifier = CompileAndVerifyWithIndexAndRange(@"
1628
var
verifier = CompileAndVerifyWithIndexAndRange(@"
1753
var
verifier = CompileAndVerifyWithIndexAndRange(@"
1779
var
verifier = CompileAndVerifyWithIndexAndRange(@"
1823
var
verifier = CompileAndVerify(comp);
1900
var
verifier = CompileAndVerify(comp, expectedOutput: @"2
1965
var
verifier = CompileAndVerifyWithIndexAndRange(@"
2048
var
verifier = CompileAndVerifyWithIndexAndRange(@"
2100
var
verifier = CompileAndVerify(comp, verify: Verification.Passes, expectedOutput: @"3
3362
var
verifier = CompileAndVerify(comp, expectedOutput:
4152
var
verifier = CompileAndVerifyWithIndexAndRange(src, expectedOutput: "1").VerifyDiagnostics();
4204
var
verifier = CompileAndVerifyWithIndexAndRange(src, expectedOutput: "1").VerifyDiagnostics();
CodeGen\IndexerTests.cs (17)
32
var
compVerifier = CompileAndVerify(text,
51
var
compVerifier = CompileAndVerify(text,
69
var
compVerifier = CompileAndVerify(text,
87
var
compVerifier = CompileAndVerify(text,
106
var
compVerifier = CompileAndVerify(text,
125
var
compVerifier = CompileAndVerify(text,
171
var
compVerifier = CompileAndVerify(text, symbolValidator: validator, expectedSignatures: new[]
193
var
compVerifier = CompileAndVerify(text,
217
var
compVerifier = CompileAndVerify(text,
241
var
compVerifier = CompileAndVerify(text,
423
var
compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE"));
571
var
compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE"));
675
var
compVerifier = CompileAndVerify(text, expectedOutput: @"
719
var
compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE"));
944
var
compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE"));
1110
var
verifier = CompileAndVerify(text, expectedOutput: @"2");
1330
var
verifier = CompileAndVerify(comp1, expectedOutput: @"
CodeGen\ITuplePatternTests.cs (3)
56
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
140
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
229
var
verifier = CompileAndVerify(CreatePatternCompilation(source, TestOptions.DebugDll));
CodeGen\ObjectAndCollectionInitializerTests.cs (38)
38
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
79
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
134
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
191
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
244
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
289
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
328
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
371
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
434
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
517
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
585
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
668
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
756
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
813
var
compVerifier = CompileAndVerify(source, expectedOutput: "");
851
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
894
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
951
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
1041
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
1326
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
1522
var
compVerifier = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: expectedOutput);
1660
var
compVerifier = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: expectedOutput);
1873
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
1988
var
compVerifier = CompileAndVerify(source, targetFramework: TargetFramework.StandardAndCSharp, expectedOutput: expectedOutput);
2044
var
compVerifier = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: expectedOutput);
2100
var
compVerifier = CompileAndVerify(source, targetFramework: TargetFramework.StandardAndCSharp, expectedOutput: expectedOutput);
2397
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
2455
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
2537
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
2641
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
2727
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
2824
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
2909
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
3002
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
3115
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
3210
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
3303
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
3425
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
3581
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), verify: Verification.Fails, expectedOutput:
CodeGen\PatternTests.cs (87)
238
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
335
var
compVerifier = CompileAndVerify(compilation);
408
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
505
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
637
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
773
var
compVerifier = CompileAndVerify(compilation);
834
var
compVerifier = CompileAndVerify(compilation);
859
var
compVerifier = CompileAndVerify(compilation);
895
var
compVerifier = CompileAndVerify(compilation);
934
var
compVerifier = CompileAndVerify(compilation);
970
var
compVerifier = CompileAndVerify(compilation);
1010
var
compVerifier = CompileAndVerify(compilation);
1057
var
compVerifier = CompileAndVerify(compilation);
1108
var
compVerifier = CompileAndVerify(compilation);
1143
var
compVerifier = CompileAndVerify(compilation);
1181
var
compVerifier = CompileAndVerify(compilation);
1225
var
compVerifier = CompileAndVerify(compilation);
1284
var
compVerifier = CompileAndVerify(compilation);
1341
var
compVerifier = CompileAndVerify(compilation);
1401
var
compVerifier = CompileAndVerify(compilation);
1473
var
compVerifier = CompileAndVerify(compilation);
1537
var
compVerifier = CompileAndVerify(compilation);
1600
var
compVerifier = CompileAndVerify(compilation);
1659
var
compVerifier = CompileAndVerify(compilation);
1714
var
compVerifier = CompileAndVerify(compilation);
1775
var
compVerifier = CompileAndVerify(compilation);
1842
var
compVerifier = CompileAndVerify(compilation);
1906
var
compVerifier = CompileAndVerify(compilation);
1978
var
compVerifier = CompileAndVerify(compilation);
2040
var
compVerifier = CompileAndVerify(compilation);
2103
var
verifier = CompileAndVerify(source);
2175
var
compVerifier = CompileAndVerify(compilation);
2269
var
compVerifier = CompileAndVerify(compilation);
2406
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2540
var
compVerifier = CompileAndVerify(compilation);
2616
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2651
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2670
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2729
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2795
var
compVerifier = CompileAndVerify(compilation);
2841
var
compVerifier = CompileAndVerify(compilation, expectedOutput: "TrueFalse");
2908
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
3003
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
3060
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
3101
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
3135
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
3240
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
3268
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
3298
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
3387
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
3473
var
v = CompileAndVerify(source, options: TestOptions.DebugExe);
3553
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
3635
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
3707
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
3783
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
4060
var
compVerifier = CompileAndVerify(compilation, expectedOutput: "TrueFalse");
4096
var
compVerifier = CompileAndVerify(compilation, expectedOutput: "TrueFalse");
4123
var
compVerifier = CompileAndVerify(compilation);
4175
var
compVerifier = CompileAndVerify(compilation);
4215
var
compVerifier = CompileAndVerify(compilation);
4250
var
compVerifier = CompileAndVerify(compilation);
4331
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
4510
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
4547
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
4581
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
4613
var
verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput:
4670
var
verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput:
4716
var
verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput:
4776
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
4809
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
4883
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
4919
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
4956
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput, verify: Verification.Skipped);
5458
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
5510
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
5610
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
5718
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
5882
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
6026
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
6195
var
verifier = CompileAndVerify(source, expectedOutput: "012323", options: TestOptions.DebugExe);
6280
var
verifier = CompileAndVerify(source, expectedOutput: " 0 1 2 3 2 3", options: TestOptions.DebugExe);
6369
var
verifier = CompileAndVerify(source, expectedOutput: "0123452345", options: TestOptions.DebugExe);
6465
var
verifier = CompileAndVerify(source, expectedOutput: "0123233", options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview);
6550
var
verifier = CompileAndVerify(source, options: TestOptions.DebugDll);
6650
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "012");
6745
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: """
6852
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "System.ActionSystem.Action");
CodeGen\PropertyTests.cs (1)
31
var
verifier = CompileAndVerify(compilation);
CodeGen\SwitchTests.cs (88)
42
var
compVerifier = CompileAndVerify(text, expectedOutput: "0");
80
var
compVerifier = CompileAndVerify(text, expectedOutput: "0");
118
var
compVerifier = CompileAndVerify(text, expectedOutput: "0");
156
var
compVerifier = CompileAndVerify(text, expectedOutput: "0");
191
var
compVerifier = CompileAndVerify(text, expectedOutput: "0");
240
var
compVerifier = CompileAndVerify(text, expectedOutput: "0");
313
var
compVerifier = CompileAndVerify(text, expectedOutput: "0");
376
var
compVerifier = CompileAndVerify(text, expectedOutput: "1");
429
var
compVerifier = CompileAndVerify(text, expectedOutput: "1", options: TestOptions.DebugExe);
493
var
compVerifier = CompileAndVerify(text, expectedOutput: "1");
543
var
compVerifier = CompileAndVerify(text, expectedOutput: "1");
590
var
compVerifier = CompileAndVerify(text, expectedOutput: "1");
641
var
compVerifier = CompileAndVerify(text, expectedOutput: "1");
705
var
compVerifier = CompileAndVerify(text, expectedOutput: "4");
796
var
compVerifier = CompileAndVerify(text, expectedOutput: "4");
902
var
compVerifier = CompileAndVerify(text, expectedOutput: "1");
955
var
compVerifier = CompileAndVerify(text, expectedOutput: "1");
1003
var
compVerifier = CompileAndVerify(text, expectedOutput: "1");
1067
var
compVerifier = CompileAndVerify(text, expectedOutput: "0");
1154
var
compVerifier = CompileAndVerify(text, expectedOutput: "194");
1243
var
compVerifier = CompileAndVerify(text, expectedOutput: "maxminonedefault");
1312
var
compVerifier = CompileAndVerify(text, expectedOutput: "42");
1408
var
compVerifier = CompileAndVerify(text, expectedOutput: "0");
1512
var
compVerifier = CompileAndVerify(text, expectedOutput: "0");
1604
var
compVerifier = CompileAndVerify(text, expectedOutput: "0");
1651
var
compVerifier = CompileAndVerify(text, expectedOutput: "0");
1700
var
compVerifier = CompileAndVerify(text, expectedOutput: "0");
1766
var
compVerifier = CompileAndVerify(text, expectedOutput: "0");
1809
var
compVerifier = CompileAndVerify(text, expectedOutput: "0");
1863
var
compVerifier = CompileAndVerify(text, expectedOutput: "0");
1973
var
compVerifier = CompileAndVerify(text, expectedOutput: expectedOutput);
2110
var
compVerifier = CompileAndVerify(text, expectedOutput: "0");
2197
var
compVerifier = CompileAndVerify(text, expectedOutput: "0");
2309
var
verifier = CompileAndVerify(text, expectedOutput: "null 1");
2432
var
verifier = CompileAndVerify(text, expectedOutput: "null default 100 default ");
2582
var
compVerifier = CompileAndVerify(text, expectedOutput: "True");
2684
var
compVerifier = CompileAndVerify(text, expectedOutput: "True");
2740
var
compVerifier = CompileAndVerify(text, expectedOutput: "0");
2801
var
compVerifier = CompileAndVerify(text, expectedOutput: "0");
2899
var
compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE"),
3348
var
compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE"),
4032
var
compVerifier = CompileAndVerify(text, expectedOutput: "1", parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch());
4040
private static void VerifySynthesizedStringHashMethod(
CompilationVerifier
compVerifier, bool expected)
4125
var
verifier = CompileAndVerify(source, expectedOutput: @"0");
4519
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
5991
var
compVerifier = CompileAndVerify(text);
7161
var
compVerifier = CompileAndVerify(text, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch(), expectedOutput: "3");
7330
var
compVerifier = CompileAndVerify(text, expectedOutput: "0");
7416
var
compVerifier = CompileAndVerify(text, expectedOutput: "0");
7518
var
compVerifier = CompileAndVerify(text, expectedOutput: "0");
7578
var
compVerifier = CompileAndVerify(text);
7622
var
compVerifier = CompileAndVerify(text, expectedOutput: "0");
7671
var
compVerifier = CompileAndVerify(text, expectedOutput: "0");
7721
var
compVerifier = CompileAndVerify(text, expectedOutput: "0");
7760
var
compVerifier = CompileAndVerify(text, expectedOutput: "0");
7801
var
compVerifier = CompileAndVerify(text, expectedOutput: "0");
8475
var
compVerifier = CompileAndVerify(text, expectedOutput: "");
8523
var
compVerifier = CompileAndVerify(text, expectedOutput: "");
8569
var
compVerifier = CompileAndVerify(text, expectedOutput: "");
8619
var
compVerifier = CompileAndVerify(text, expectedOutput: "");
8677
var
compVerifier = CompileAndVerify(text, expectedOutput: "In DEFAULT case");
8756
var
compVerifier = CompileAndVerify(text, expectedOutput: "In DEFAULT case");
8795
var
compVerifier = CompileAndVerify(source,
8862
var
compVerifier = CompileAndVerify(source,
8938
var
compVerifier = CompileAndVerify(source,
9002
var
compVerifier = CompileAndVerify(source,
9076
var
compVerifier = CompileAndVerify(source,
9149
var
compVerifier = CompileAndVerify(source,
9224
var
compVerifier = CompileAndVerify(source,
9299
var
compVerifier = CompileAndVerify(source,
9368
var
compVerifier = CompileAndVerify(source,
9449
var
compVerifier = CompileAndVerify(source,
9580
var
compVerifier = CompileAndVerify(source,
9722
var
compVerifier = CompileAndVerify(source,
9773
var
compVerifier = CompileAndVerify(source,
9828
var
compVerifier = CompileAndVerify(source,
9885
var
compVerifier = CompileAndVerify(compilation,
9937
var
compVerifier = CompileAndVerify(compilation,
10029
var
compVerifier = CompileAndVerify(compilation,
10121
var
compVerifier = CompileAndVerify(compilation,
10169
var
compVerifier = CompileAndVerify(source,
10522
var
compVerifier = CompileAndVerify(compilation, expectedOutput: "abc");
10609
var
compVerifier = CompileAndVerify(compilation, expectedOutput: "Yep, all good!");
10804
var
compVerifier = CompileAndVerify(compilation, expectedOutput: "123333456");
11027
var
compVerifier = CompileAndVerify(source,
11285
var
compVerifier = CompileAndVerify(source,
11543
var
compVerifier = CompileAndVerify(source,
11972
var
compVerifier = CompileAndVerify(source,
CodeGen\UnsafeTests.cs (77)
32
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes);
59
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
219
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes);
244
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
291
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
338
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
372
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "123", verify: Verification.Fails);
409
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "456", verify: Verification.Fails);
437
var
compVerifierOptimized = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "2", verify: Verification.Fails);
456
var
compVerifierUnoptimized = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: "2", verify: Verification.Fails);
500
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "1", verify: Verification.Fails);
552
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"Before: 2 7
599
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"ab", verify: Verification.Fails);
647
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"12", verify: Verification.Fails);
970
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"3", verify: Verification.Fails);
1028
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"34", verify: Verification.Fails);
1103
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"123", verify: Verification.Fails);
1179
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"123", verify: Verification.Fails);
1246
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"34", verify: Verification.Fails);
1360
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails);
1480
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails);
1524
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"
1553
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "210", verify: Verification.Fails);
1573
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "1", verify: Verification.Fails).VerifyIL("C.Main", @"
1614
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"1", verify: Verification.Fails);
1672
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"123", verify: Verification.Fails);
1730
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"12", verify: Verification.Fails);
1800
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"12", verify: Verification.Fails);
1862
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
1935
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"12", verify: Verification.Fails);
2001
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"a", verify: Verification.Fails);
2046
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: @"a", verify: Verification.Fails);
2090
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: @"h", verify: Verification.Fails);
2147
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: @"hTrue", verify: Verification.Fails);
2232
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"hTrue", verify: Verification.Fails);
2303
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"01", verify: Verification.Fails);
2371
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"01", verify: Verification.Fails);
2439
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"01", verify: Verification.Fails);
2510
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"970104", verify: Verification.Fails);
4433
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Fails);
4493
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Fails);
4581
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"0", verify: Verification.Fails);
4632
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Fails);
4694
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Fails);
4934
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"20", verify: Verification.Fails);
5008
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"5456");
5068
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"5456");
5160
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"2123
5249
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"5456");
5309
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"23", verify: Verification.Fails);
5387
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"3", verify: Verification.Fails);
5815
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"");
5942
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"00", verify: Verification.Fails);
7805
var
comp = CompileAndVerify(text, options: TestOptions.UnsafeDebugDll, verify: Verification.Fails);
10140
var
verifier = CompileAndVerify(@"
10184
var
verifier = CompileAndVerify(@"
10470
var
verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails);
10616
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11103
var
c = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.FailsPEVerify with
11125
var
c = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.FailsPEVerify with
11226
var
comp = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyDiagnostics();
11279
var
comp = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "ABC", verify: Verification.Fails).VerifyDiagnostics();
11390
var
verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "hello", verify: Verification.Fails);
11459
var
verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"
11539
var
verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"
11591
var
verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll.WithConcurrentBuild(false), verify: Verification.Passes);
11615
var
verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll.WithConcurrentBuild(false), verify: Verification.FailsPEVerify);
11655
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F6543210", verify: Verification.Fails);
11701
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F6543210", verify: Verification.Fails);
11750
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F6543210", verify: Verification.Fails);
11792
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F654320F", verify: Verification.Fails);
11835
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "0", verify: Verification.Passes);
11889
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "System.Byte[]", verify: Verification.Fails);
11962
var
v = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: "System.Byte[]", verify: Verification.Fails);
12086
var
result = CompileAndVerify(compilation, expectedOutput: "5");
12133
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, expectedOutput: "0", verify: Verification.FailsPEVerify);
12165
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, expectedOutput: "0");
CodeGen\WinMdDelegateTests.cs (2)
52
var
verifier = CompileAndVerify(
274
var
comp = CompileAndVerify(
Emit\CompilationEmitTests.cs (4)
1061
var reference =
CompilationVerifier
.LoadTestEmittedExecutableForSymbolValidation(image, OutputKind.DynamicallyLinkedLibrary);
1143
var reference =
CompilationVerifier
.LoadTestEmittedExecutableForSymbolValidation(image, OutputKind.DynamicallyLinkedLibrary);
1611
var
verifier = CompileAndVerify(comp);
1688
var
verifier = CompileAndVerify(comp);
Emit\DeterministicTests.cs (1)
437
var
cv = CompileAndVerify(source: new string[] { x1, x2, x3 }, expectedOutput: expectedOutput1);
Emit\DynamicAnalysis\DynamicInstrumentationTests.cs (52)
275
CompilationVerifier
verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput);
471
CompilationVerifier
verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput);
678
CompilationVerifier
verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput, options: TestOptions.ReleaseExe);
744
CompilationVerifier
verifier = CompileAndVerify(source, expectedOutput: checker.ExpectedOutput, options: TestOptions.ReleaseExe);
854
CompilationVerifier
verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput, options: TestOptions.ReleaseExe);
948
CompilationVerifier
verifier = CompileAndVerify(source, expectedOutput: checker.ExpectedOutput, options: TestOptions.ReleaseExe);
1029
CompilationVerifier
verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput, options: TestOptions.ReleaseExe);
1128
CompilationVerifier
verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput);
1225
CompilationVerifier
verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.UnsafeDebugExe, expectedOutput: expectedOutput, verify: Verification.Fails);
1414
CompilationVerifier
verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput);
1506
CompilationVerifier
verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput);
1661
CompilationVerifier
verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput);
1750
CompilationVerifier
verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput);
1827
CompilationVerifier
verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput);
1932
CompilationVerifier
verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput);
2020
CompilationVerifier
verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput);
2131
CompilationVerifier
verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput);
2282
CompilationVerifier
verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput);
2407
CompilationVerifier
verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput);
2478
var
verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll);
2499
var
verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll);
2519
var
verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll);
2538
var
verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll);
2567
var
verifier = CompileAndVerify(source + InstrumentationHelperSource,
2597
var
verifier = CompileAndVerify(source + InstrumentationHelperSource,
2644
var
verifier = CompileAndVerify(source + InstrumentationHelperSource,
2677
var
verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll);
2711
var
verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll);
2749
var
verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview);
2794
var
verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll);
2863
var
verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll);
2893
var
verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll);
2922
var
verifier = CompileAndVerify(source + InstrumentationHelperSource + IsExternalInitTypeDefinition,
2961
var
verifier = CompileAndVerify(c, emitOptions: EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage)));
2997
var
verifier = CompileAndVerify(c, emitOptions: EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage)));
3097
var
verifier = CompileAndVerify(source, expectedOutput, options: TestOptions.ReleaseExe);
3243
var
verifier = CompileAndVerify(source, expectedOutput, options: TestOptions.ReleaseExe);
3369
var
verifier = CompileAndVerify(sources, expectedOutput, options: TestOptions.ReleaseExe);
3495
var
verifier = CompileAndVerify(sources, expectedOutput, options: TestOptions.ReleaseExe);
3569
var
verifier = CompileAndVerify(source, expectedOutput, options: TestOptions.ReleaseExe);
3618
var
verifier = CompileAndVerify(source, expectedOutput, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9);
3646
var
verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll);
3674
var
verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll);
3733
var
verifier = CompileAndVerify(source, expectedOutput, options: TestOptions.ReleaseExe);
3830
var
verifier = CompileAndVerify(source, expectedOutput, options: TestOptions.ReleaseExe);
3892
var
verifier = CompileAndVerify(source, expectedOutput, options: TestOptions.ReleaseExe);
3953
var
verifier = CompileAndVerify(source, expectedOutput, options: TestOptions.ReleaseExe);
4034
var
verifier = CompileAndVerify(source, expectedOutput, options: TestOptions.ReleaseExe);
4112
private static void AssertNotInstrumented(
CompilationVerifier
verifier, string qualifiedMethodName)
4115
private static void AssertInstrumented(
CompilationVerifier
verifier, string qualifiedMethodName, bool expected = true)
4126
private
CompilationVerifier
CompileAndVerify(string source, string expectedOutput = null, CSharpCompilationOptions options = null, CSharpParseOptions parseOptions = null, Verification verify = default)
4137
private
CompilationVerifier
CompileAndVerify((string Path, string Content)[] sources, string expectedOutput = null, CSharpCompilationOptions options = null)
Emit\EmitErrorTests.cs (3)
115
var
compilation2 = CompileAndVerify(
149
var
compilation2 = CompileAndVerify(
188
var
compilation2 = CompileAndVerify(
Emit\EmitMetadataTests.cs (4)
1544
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput:
3015
var
verifier = CompileAndVerify(source, expectedOutput: expectedOutput)
3129
var
verifier = CompileAndVerify(
3295
var
verifier = CompileAndVerify(source,
Emit\EntryPointTests.cs (2)
32
var
verifier = CompileAndVerify(compilation, expectedOutput: "2");
51
var
verifier = CompileAndVerify(compilation);
Emit\InAttributeModifierTests.cs (1)
42
var
verifier = CompileAndVerify(code, references: new[] { reference.ToMetadataReference() }, expectedOutput: "5");
PrivateProtected.cs (1)
594
var
verifier = CompileAndVerify(
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (867)
CodeGen\CodeGenCallTests.cs (187)
78
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
176
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
251
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
350
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
432
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
692
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
844
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
1186
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
1380
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
1668
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
1853
var
verifier = CompileAndVerify(
2014
var
verifier = CompileAndVerify(
2132
var
verifier = CompileAndVerify(
2294
var
verifier = CompileAndVerify(
2391
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
2550
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
2717
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
3046
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
3456
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
3587
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
3676
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
3808
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
3904
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
4206
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
4377
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
4761
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
4963
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
5108
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
5207
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
5353
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
5459
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
5767
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
5941
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
6331
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
6536
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
6677
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
6774
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
6916
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
7020
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
7312
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
7481
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
7855
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
8055
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
8196
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
8293
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
8435
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
8539
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
8837
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
9009
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
9389
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
9597
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
9744
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
9854
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
10186
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
10376
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
10523
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
10633
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
10971
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
11159
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
11328
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
11439
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
11609
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
11727
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
12047
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
12230
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
12632
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
12846
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
12981
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
13075
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
13211
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
13312
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
13618
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
13782
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
13925
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
14023
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
14167
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
14272
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
14596
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
14776
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
15072
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
15241
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
15638
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
15847
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
16010
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
16118
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
16282
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
16397
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
16711
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
16882
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
17053
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
17165
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
17337
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
17456
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
17784
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
17969
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
18293
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
18476
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
18882
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
19097
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
19218
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
19304
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
19426
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
19519
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
19787
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
19950
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
20096
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
20199
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
20346
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
20456
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
20756
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
20927
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
21091
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
21207
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
21372
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
21495
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
21823
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
22003
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
22161
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
22274
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
22433
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
22553
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
22898
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
23086
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
23252
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
23369
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
23536
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
23660
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
24015
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
24215
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
24547
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
24736
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
25169
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
25398
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
25590
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
25720
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
25913
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
26050
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
26406
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
26600
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
26786
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
26913
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
27100
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
27234
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
27588
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
27781
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
27975
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
28106
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
28301
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
28439
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
28803
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
29008
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
29368
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
29571
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
30007
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
30239
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
30387
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
30494
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
30643
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
30757
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
31073
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
31243
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
31384
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
31484
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
31626
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
31733
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
32028
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
32191
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
32366
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
32483
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
32659
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
32783
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
33118
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
33285
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
33391
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
33558
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, verify: Verification.Fails, expectedOutput: expectedOutput).VerifyDiagnostics();
33745
var
verifier = CompileAndVerify(comp, expectedOutput: "123123124:123123124:123123124").VerifyDiagnostics();
33952
var
verifier = CompileAndVerify(comp, expectedOutput: "123123124:123123124:123123124").VerifyDiagnostics();
34159
var
verifier = CompileAndVerify(comp, expectedOutput: "123123124:123123124:123123124").VerifyDiagnostics();
34315
var
verifier = CompileAndVerify(comp, expectedOutput: null, verify: Verification.Fails with
34565
var
verifier = CompileAndVerify(comp, expectedOutput: "123123124:123123124:123123124").VerifyDiagnostics();
34721
var
verifier = CompileAndVerify(comp, expectedOutput: null, verify: Verification.Fails with
35204
var
verifier = CompileAndVerify(comp, expectedOutput: null, verify: Verification.Fails with
35396
var
verifier = CompileAndVerify(comp, expectedOutput: null, verify: Verification.Fails with
35608
var
verifier = CompileAndVerify(comp, expectedOutput: null, verify: Verification.Fails with
35906
var
verifier = CompileAndVerify(comp, expectedOutput: "123123125:123123125:123123125").VerifyDiagnostics();
36079
var
verifier = CompileAndVerify(comp, expectedOutput: null, verify: Verification.Fails with
36308
var
verifier = CompileAndVerify(comp, expectedOutput: null, verify: Verification.Fails with
CodeGen\CodeGenLengthBasedSwitchTests.cs (24)
79
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
831
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN", verify: Verification.Skipped);
1368
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
1649
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
1831
var
verifier = CompileAndVerify(comp);
1983
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
2089
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
2320
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
2636
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
3170
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
4386
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
6752
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
9056
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
9368
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
9827
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
9964
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
10805
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
11136
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
11335
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
11992
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
12336
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
12987
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
13304
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
13912
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
CodeGen\CodeGenMethodGroupConversionCachingTests.cs (81)
36
var
verifier = CompileAndVerify(source, expectedOutput: PASS, symbolValidator: VerifyNoCacheContainersIn("C"));
70
var
verifier = CompileAndVerify(source, expectedOutput: PASS, symbolValidator: VerifyNoCacheContainersIn("C"));
108
var
verifier = CompileAndVerify(source, expectedOutput: PASS, symbolValidator: VerifyNoCacheContainersIn("C"));
150
var
verifier = CompileAndVerify(source, expectedOutput: PASS, symbolValidator: VerifyNoCacheContainersIn("C"));
192
var
verifier = CompileAndVerify(source, expectedOutput: PASS, symbolValidator: VerifyNoCacheContainersIn("C"));
234
var
verifier = CompileAndVerify(source, expectedOutput: PASS, symbolValidator: VerifyNoCacheContainersIn("C"));
269
var
verifier = CompileAndVerify(source
346
var
verifier = CompileAndVerify(source
416
var
verifier = CompileAndVerify(source, symbolValidator: VerifyNoCacheContainersIn("C"));
446
var
verifier = CompileAndVerify(source, symbolValidator: VerifyNoCacheContainersIn("C"));
471
var
verifier = CompileAndVerify(source, expectedOutput: PASS, symbolValidator: VerifyNoCacheContainersIn("Program"));
497
var
verifier = CompileAndVerify(source, expectedOutput: PASS, symbolValidator: VerifyNoCacheContainersIn("Program"));
519
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular10, symbolValidator: VerifyNoCacheContainersIn("Program"));
553
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
596
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
640
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
685
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
731
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
777
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
822
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
865
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
908
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
953
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
998
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1043
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1089
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1135
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1183
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1228
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1273
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1323
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1368
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1406
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1450
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1494
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1538
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1585
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1632
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1679
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1727
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1779
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1822
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1867
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1912
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1961
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
2017
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
2588
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
2626
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
2672
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
2719
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
2764
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
2810
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
2844
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<>O", arity: 0
2887
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<>O", arity: 0
2931
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<>O", arity: 0
2975
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<>O", arity: 0
3018
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<>O", arity: 0
3064
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<>O", arity: 0
3123
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<Test>O__0_0", arity: 1
3165
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<Test>O__0_0", arity: 1
3209
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<Test>O__2_0", arity: 1
3251
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<Test>O__0_0", arity: 1
3293
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<Test>O__0_0", arity: 1
3393
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("A.B.<>O", arity: 0
3546
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<Test>O__0_0", arity: 1
3613
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("E.<Test>O__0_0", arity: 1
3687
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("E.<Test>O__0_0", arity: 1
3768
var
verifier = CompileAndVerify(source, expectedOutput: PASS, symbolValidator: VerifyCacheContainer("E.<Owner>O__0_0", arity: 2
3825
var
verifier = CompileAndVerify(source, symbolValidator: static module =>
3875
var
verifier = CompileAndVerify(source, symbolValidator: static module =>
3928
var
verifier = CompileAndVerify(source, symbolValidator: static module =>
3976
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("Program.<>O", arity: 0
4032
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<Owner>O__0_0", arity: 1
4090
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<Owner>O__0_0", arity: 1
4140
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<>O", arity: 0
5621
var
comp = CompileAndVerify(source, parseOptions: TestOptions.Regular11);
5704
var
verifier = CompileAndVerifyWithWinRt(source, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseWinMD);
5821
var
verifier = CompileAndVerifyWithWinRt(source, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseWinMD);
6029
var
verifier = CompileAndVerify(comp, expectedOutput:
6170
var
verifier = CompileAndVerify(compilation, expectedOutput: PASS);
6326
var
verifier = CompileAndVerify(compilation, expectedOutput: PASS, symbolValidator: containerValidator);
CodeGen\CodeGenSpanBasedStringConcatTests.cs (65)
37
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "sccs" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
93
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "sccs" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
169
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? expectedOutput : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
230
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "ab" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
282
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "ab" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
336
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "cc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
389
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "sccs" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
444
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "ab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
488
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "ab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
538
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "sccs" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
590
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "sccs" : null, verify: Verification.FailsPEVerify);
676
var
verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
751
var
verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
825
var
verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
875
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "sc" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1029
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "sccs" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1098
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "cssscsssccsc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1208
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "cssscsssccsc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1312
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "scs" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1388
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? expectedOutput : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1499
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "aab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1562
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "aab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1624
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "scscsc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1685
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "cssscsssccsc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1765
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1811
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1870
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "cssscsssccsc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1957
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abccab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
2010
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abccab" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
2078
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abccab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
2139
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "cssscsssccsc" : null, verify: Verification.FailsPEVerify);
2267
var
verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
2345
var
verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
2422
var
verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
2473
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "scs" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
2672
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "cssscsssccsc" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
2789
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "csssscsssscssssccscsscsccssc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
2977
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "csssscsssscssssccscsscsccssc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3165
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "scss" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3253
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? expectedOutput : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3438
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "aaab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3510
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3586
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "scsscsscsscsscsscs" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3659
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "csssscsssscssssccscsscsccssc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3780
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcd" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3828
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcd" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3898
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "csssscsssscssssccscsscsccssc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4032
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abccccabcabc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4103
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abccccabcabc" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4208
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcdabdccdabdcabcabddabc" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4364
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcd" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4417
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcddabc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4473
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcddabc" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4546
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abccccabcabc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4636
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcdabdccdabdcabcabddabc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4760
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcddabc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4830
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "csssscsssscssssccscsscsccssc" : null, verify: Verification.FailsPEVerify);
5036
var
verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
5117
var
verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
5197
var
verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
5249
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "sccs" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
5496
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "csssscsssscssssccscsscsccssc" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
5677
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "scsssssssc" : null, verify: ExecutionConditionUtil.IsCoreClr ? default : Verification.Skipped);
5796
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "sscss" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
5867
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcde" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
CodeGen\IndexAndRangeTests.cs (40)
58
var
verifier = CompileAndVerify(comp, expectedOutput: "Index(^1) Length Index=9 Value=1, Index(^1) Length 2 Index=9 Value=2, Index(^1) Length 3 Index=9 Value=3,");
234
var
verifier = CompileAndVerify(comp, expectedOutput: "Index(^1)");
276
var
verifier = CompileAndVerify(comp, expectedOutput: "Index(^1) Id(1) Id(2)");
313
var
verifier = CompileAndVerify(comp, expectedOutput: "Index(^1)");
396
var
verifier = CompileAndVerify(comp, expectedOutput: "Index(^1)");
487
var
verifier = CompileAndVerify(comp, expectedOutput: "Index(^1)");
569
var
verifier = CompileAndVerify(comp, expectedOutput: "Index(^1) Id(42) Index(^2) Id(43) Result=42,43");
824
var
verifier = CompileAndVerify(comp, expectedOutput: "Id(1) Id(42) Id(2) Id(43) Result=42,43");
871
var
verifier = CompileAndVerify(comp);
919
var
verifier = CompileAndVerify(comp, expectedOutput: "Index(^1) Index(^2) Id(42) Index(^3) Id(43) Result=42,43");
1015
var
verifier = CompileAndVerify(comp, expectedOutput: "Index(^1) Length Id(1) Index=9 Value=1 Index(^2) Length Id(2) Index=8 Value=2");
1218
var
verifier = CompileAndVerify(comp, expectedOutput: "Length Index=9 Length Index=9 Result=42");
1264
var
verifier = CompileAndVerify(comp, expectedOutput: "Index(^1) ContainerLength Index(^2) ContainerIndex=9 Length ContainerIndex=9 Index=8 Id(42)" +
1340
var
verifier = CompileAndVerify(comp, expectedOutput: "Index(^1)");
1400
var
verifier = CompileAndVerify(comp, expectedOutput: "Index(^1) ContainerLength Index(^2) ContainerIndex=9 Length ContainerIndex=9 Index=8 Id(42)" +
1476
var
verifier = CompileAndVerify(comp, expectedOutput: "Index(^1)");
1568
var
verifier = CompileAndVerify(comp, expectedOutput: "ContainerLength ContainerIndex=9 Length ContainerIndex=9 Index=8 Value=42 ContainerIndex=9 Length ContainerIndex=9 Index=7 Value=43");
1760
var
verifier = CompileAndVerify(comp, expectedOutput: "Index(^1)");
1803
var
verifier = CompileAndVerify(comp, expectedOutput: "Id(^1) Length Index=9 Id(1) X=1 Id(^2) Id(^3) Length Index=7 Id(2) X=2");
1977
var
verifier = CompileAndVerify(comp, expectedOutput: "42 43 44");
2199
var
verifier = CompileAndVerify(comp, expectedOutput: "Range(3..^6) Length Id(1) Slice(3, 1) Id(42) Id(2) Slice(3, 1) Id(43) Results=42,43");
2535
var
verifier = CompileAndVerify(comp, expectedOutput: "Range(1..^1) ContainerLength ContainerSlice(1, 8) Range(2..^2) Length Id(2) Slice(2, 6) Id(42) Id(3) Slice(2, 6) Id(43) Results=42,43");
2659
var
verifier = CompileAndVerify(comp, expectedOutput: "Range(1..^1) Range(2..^2)");
2756
var
verifier = CompileAndVerify(comp, expectedOutput: "Range(1..^1) ContainerLength Range(2..^2) ContainerSlice(1, 8) Range(3..^3) Length Id(4) Slice(3, 4) Id(5)");
3000
var
verifier = CompileAndVerify(comp, expectedOutput: "Id(1) Id(2)");
3095
var
verifier = CompileAndVerify(comp, expectedOutput: "Id(1) Id(2) Id(3) Id(4) Id(5)");
3285
var
verifier = CompileAndVerify(comp, expectedOutput: "Range(1..^1) Range(2..^2)");
3425
var
verifier = CompileAndVerify(comp, expectedOutput: "Range(1..^1) Id(0) Id(42) X=42");
3546
var
verifier = CompileAndVerify(comp, expectedOutput: "Range(1..^1) Id(0) Id(42) X=42 Id(1) Id(43) X=43");
3621
var
verifier = CompileAndVerify(comp, expectedOutput: "Id(0) Id(1)", verify: Verification.Skipped);
3712
var
verifier = CompileAndVerify(comp, expectedOutput: "Id(0) Id(1)");
3798
var
verifier = CompileAndVerify(comp, expectedOutput: "Id(0) Id(1)");
3885
var
verifier = CompileAndVerify(comp, expectedOutput: "Id(0) Id(1) Id(2) Id(3)");
4025
var
verifier = CompileAndVerify(comp, expectedOutput: "Range(3..^6)");
4052
var
verifier = CompileAndVerify(comp, expectedOutput: "3 6");
4177
var
verifier = CompileAndVerify(comp, expectedOutput: "Index=9 Value=2");
4226
var
verifier = CompileAndVerify(comp, expectedOutput: "Index=1 Value=2");
4265
var
verifier = CompileAndVerify(comp, expectedOutput: "Index=2 Value=2");
4416
var
verifier = CompileAndVerify(comp, expectedOutput: "++ Length Index=7 X=42 Index=7 Y=43 Index=7 Z=44", verify: Verification.Skipped);
4459
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped,
Emit\EditAndContinue\AssemblyReferencesTests.cs (11)
223
var
v0 = CompileAndVerify(compilation0);
224
var
v1 = CompileAndVerify(compilation1);
225
var
v2 = CompileAndVerify(compilation2);
327
var
v0 = CompileAndVerify(compilation0);
328
var
v1 = CompileAndVerify(compilation1);
329
var
v2 = CompileAndVerify(compilation2);
410
var
v0 = CompileAndVerify(compilation0);
411
var
v1 = CompileAndVerify(compilation1);
412
var
v2 = CompileAndVerify(compilation2);
494
var
v0 = CompileAndVerify(compilation0, verify: Verification.FailsILVerify);
598
var
v0 = CompileAndVerify(compilation0, verify: Verification.Passes);
Emit\EditAndContinue\EditAndContinueClosureTests.cs (46)
248
var
v0 = CompileAndVerify(compilation0);
309
var
v0 = CompileAndVerify(compilation0);
381
var
v0 = CompileAndVerify(compilation0);
439
var
v0 = CompileAndVerify(compilation0);
491
var
v0 = CompileAndVerify(compilation0);
551
var
v0 = CompileAndVerify(compilation0);
605
var
v0 = CompileAndVerify(compilation0);
660
var
v0 = CompileAndVerify(compilation0);
716
var
v0 = CompileAndVerify(compilation0);
771
var
v0 = CompileAndVerify(compilation0);
839
var
v0 = CompileAndVerify(compilation0);
914
var
v0 = CompileAndVerify(compilation0);
988
var
v0 = CompileAndVerify(compilation0);
1055
var
v0 = CompileAndVerify(compilation0);
1114
var
v0 = CompileAndVerify(compilation0);
1202
var
v0 = CompileAndVerify(compilation0);
1291
var
v0 = CompileAndVerify(compilation0);
1375
var
v0 = CompileAndVerify(compilation0);
1466
var
v0 = CompileAndVerify(compilation0);
1548
var
v0 = CompileAndVerify(compilation0);
1625
var
v0 = CompileAndVerify(compilation0);
1724
var
v0 = CompileAndVerify(compilation0);
1815
var
v0 = CompileAndVerify(compilation0);
1923
var
v0 = CompileAndVerify(compilation0);
2121
var
v0 = CompileAndVerify(compilation0);
2332
var
v0 = CompileAndVerify(compilation0);
2470
var
v0 = CompileAndVerify(compilation0);
2587
var
v0 = CompileAndVerify(compilation0);
2725
var
v0 = CompileAndVerify(compilation0);
2793
var
v0 = CompileAndVerify(compilation0);
2863
var
v0 = CompileAndVerify(compilation0);
2969
var
v0 = CompileAndVerify(compilation0);
3089
var
v0 = CompileAndVerify(compilation0);
3185
var
v0 = CompileAndVerify(compilation0);
3246
var
v0 = CompileAndVerify(compilation0);
3485
var
v0 = CompileAndVerify(compilation0);
3730
var
v0 = CompileAndVerify(compilation0);
3851
var
v0 = CompileAndVerify(compilation0);
3931
var
v0 = CompileAndVerify(compilation0);
4124
var
v0 = CompileAndVerify(compilation0);
4209
var
v0 = CompileAndVerify(compilation0);
4291
var
v0 = CompileAndVerify(compilation0);
4364
var
v0 = CompileAndVerify(compilation0);
4446
var
v0 = CompileAndVerify(compilation0);
4629
var
v0 = CompileAndVerify(compilation0);
4688
var
v0 = CompileAndVerify(compilation0);
Emit\EditAndContinue\EditAndContinueDelegateCacheTests.cs (5)
53
var
v0 = CompileAndVerify(compilation0);
117
var
v0 = CompileAndVerify(compilation0);
181
var
v0 = CompileAndVerify(compilation0);
245
var
v0 = CompileAndVerify(compilation0);
309
var
v0 = CompileAndVerify(compilation0);
Emit\EditAndContinue\EditAndContinuePdbTests.cs (1)
129
var
v0 = CompileAndVerify(compilation0, emitOptions: EmitOptions.Default.WithDebugInformationFormat(format));
Emit\EditAndContinue\EditAndContinueStateMachineTests.cs (50)
232
var
v0 = CompileAndVerify(compilation0, emitOptions: EmitOptions.Default.WithDebugInformationFormat(format));
349
var
v0 = CompileAndVerify(compilation0);
451
var
v0 = CompileAndVerify(compilation0);
524
var
v0 = CompileAndVerify(compilation0);
575
var
v0 = CompileAndVerify(compilation0);
1123
var
v0 = CompileAndVerify(compilation0);
1548
var
v0 = CompileAndVerify(compilation0);
1989
var
v0 = CompileAndVerify(compilation0);
2567
var
v0 = CompileAndVerify(compilation0);
2736
var
v0 = CompileAndVerify(compilation0);
3275
var
v0 = CompileAndVerify(compilation0);
3659
var
v0 = CompileAndVerify(compilation0);
3764
var
v0 = CompileAndVerify(compilation0);
3873
var
v0 = CompileAndVerify(compilation0);
3979
var
v0 = CompileAndVerify(compilation0);
4081
var
v0 = CompileAndVerify(compilation0, symbolValidator: module =>
4244
var
v0 = CompileAndVerify(compilation0);
4478
var
v0 = CompileAndVerify(compilation0);
4638
var
v0 = CompileAndVerify(compilation0);
5101
var
v0 = CompileAndVerify(compilation0);
5449
var
v0 = CompileAndVerify(compilation0);
5786
var
v0 = CompileAndVerify(compilation0);
6428
var
v0 = CompileAndVerify(compilation0);
6971
var
v0 = CompileAndVerify(compilation0);
7410
var
v0 = CompileAndVerify(compilation0, symbolValidator: module =>
7732
var
v0 = CompileAndVerify(compilation0);
8159
var
v0 = CompileAndVerify(compilation0, emitOptions: EmitOptions.Default.WithDebugInformationFormat(format), symbolValidator: module =>
8703
var
v0 = CompileAndVerify(compilation0);
8780
var
v0 = CompileAndVerify(compilation0);
8869
var
v0 = CompileAndVerify(compilation0, symbolValidator: module =>
9024
var
v0 = CompileAndVerify(compilation0);
9145
var
v0 = CompileAndVerify(compilation0);
9294
var
v0 = CompileAndVerify(compilation0);
9454
var
v0 = CompileAndVerify(compilation0);
9566
var
v0 = CompileAndVerify(compilation0);
9742
var
v0 = CompileAndVerify(compilation0);
9976
var
v0 = CompileAndVerify(compilation0);
10624
var
v0 = CompileAndVerify(compilation0);
10691
var
v0 = CompileAndVerify(compilation0);
10755
var
v0 = CompileAndVerify(compilation0);
10824
var
v0 = CompileAndVerify(compilation0);
10878
var
v0 = CompileAndVerify(compilation0, verify: Verification.FailsPEVerify);
10940
var
v0 = CompileAndVerify(compilation0, verify: Verification.FailsPEVerify);
11006
var
v0 = CompileAndVerify(compilation0, verify: Verification.FailsPEVerify);
11059
var
v0 = CompileAndVerify(compilation0, verify: Verification.Passes);
11110
var
v0 = CompileAndVerify(compilation0, verify: Verification.FailsPEVerify);
11164
var
v0 = CompileAndVerify(compilation0, verify: Verification.Passes);
11225
var
v0 = CompileAndVerify(compilation0, verify: Verification.Passes);
11280
var
v0 = CompileAndVerify(compilation0, verify: Verification.Passes);
11347
var
v0 = CompileAndVerify(compilation0, verify: Verification.Passes);
Emit\EditAndContinue\EditAndContinueTestBase.cs (1)
250
internal static void SaveImages(string outputDirectory,
CompilationVerifier
baseline, params CompilationDifference[] diffs)
Emit\EditAndContinue\EditAndContinueTests.cs (50)
355
var
v0 = CompileAndVerify(compilation0);
408
var
v0 = CompileAndVerify(compilation0);
476
var
v0 = CompileAndVerify(compilation0);
1825
var
v0 = CompileAndVerify(compilation0);
1918
var
v0 = CompileAndVerify(compilation0);
2003
var
v0 = CompileAndVerify(compilation0, verify: Verification.Skipped);
2078
var
v0 = CompileAndVerify(compilation0, verify: Verification.Skipped);
2143
var
v0 = CompileAndVerify(compilation0, verify: Verification.Skipped);
2221
var
v0 = CompileAndVerify(compilation0, verify: Verification.Skipped);
6670
var
v0 = CompileAndVerify(compilation0);
7100
var
v0 = CompileAndVerify(compilation0);
9130
var
v0 = CompileAndVerify(compilation0, verify: Verification.Skipped);
10214
var
v0 = CompileAndVerify(compilation0);
10316
var
v0 = CompileAndVerify(compilation0);
10707
var
v0 = CompileAndVerify(compilation0);
11080
var
v0 = CompileAndVerify(compilation0);
11177
var
v0 = CompileAndVerify(compilation0);
11300
var
v0 = CompileAndVerify(compilation0);
11532
var
v0 = CompileAndVerify(compilation0);
12209
var
v0 = CompileAndVerify(compilation0);
12391
var
v0 = CompileAndVerify(compilation0);
12513
var
v0 = CompileAndVerify(compilation0);
12566
var
v0 = CompileAndVerify(compilation0);
13491
var
v0 = CompileAndVerify(compilation0);
13607
var
v0 = CompileAndVerify(compilation0);
13653
var
v0 = CompileAndVerify(compilation0);
13802
var
v0 = CompileAndVerify(compilation0);
13936
var
v0 = CompileAndVerify(compilation0);
14045
var
v0 = CompileAndVerify(compilation0);
14163
var
v0 = CompileAndVerify(compilation0);
14354
var
v0 = CompileAndVerify(compilation0);
14483
var
v0 = CompileAndVerify(compilation0);
14631
var
v0 = CompileAndVerify(compilation0);
14827
var
v0 = CompileAndVerify(compilation0);
14936
var
v0 = CompileAndVerify(compilation0);
15046
var
v0 = CompileAndVerify(compilation0);
15210
var
v0 = CompileAndVerify(compilation0);
15355
var
v0 = CompileAndVerify(compilation0);
15460
var
v0 = CompileAndVerify(compilation0);
15623
var
v0 = CompileAndVerify(compilation0);
15827
var
v0 = CompileAndVerify(compilation0);
16075
var
v0 = CompileAndVerify(compilation0);
16259
var
v0 = CompileAndVerify(compilation0);
16332
var
v0 = CompileAndVerify(compilation0, verify: Verification.Skipped);
16438
var
v0 = CompileAndVerify(compilation0, verify: Verification.Skipped);
16868
var
v0 = CompileAndVerify(compilation0, verify: Verification.Skipped);
19553
var
v0 = CompileAndVerify(compilation0, verify: Verification.Skipped);
19629
var
v0 = CompileAndVerify(compilation0, verify: Verification.Skipped);
19723
var
v0 = CompileAndVerify(compilation0, verify: Verification.Skipped);
19812
var
v0 = CompileAndVerify(compilation0, verify: Verification.Skipped);
Emit\EditAndContinue\LocalSlotMappingTests.cs (21)
50
var
v0 = CompileAndVerify(compilation0);
125
var
v0 = CompileAndVerify(compilation0);
533
var
v0 = CompileAndVerify(compilation0);
645
var
v0 = CompileAndVerify(compilation0);
755
var
v0 = CompileAndVerify(compilation0);
846
var
v0 = CompileAndVerify(compilation0);
1666
var
v0 = CompileAndVerify(compilation0);
2150
var
v0 = CompileAndVerify(compilation0);
2343
var
v0 = CompileAndVerify(compilation0);
2884
var
v0 = CompileAndVerify(compilation0);
2993
var
v0 = CompileAndVerify(compilation0);
3120
var
v0 = CompileAndVerify(compilation0);
3334
var
v0 = CompileAndVerify(compilation0);
3441
var
v0 = CompileAndVerify(compilation0);
3554
var
v0 = CompileAndVerify(compilation0);
3662
var
v0 = CompileAndVerify(compilation0);
3754
var
v0 = CompileAndVerify(compilation0);
3896
var
v0 = CompileAndVerify(compilation0);
3973
var
v0 = CompileAndVerify(compilation0);
4082
var
v0 = CompileAndVerify(compilation0);
5061
var
v0 = CompileAndVerify(compilation0);
Emit\LocalStateTracing\LocalStateTracingTests.cs (59)
193
private
CompilationVerifier
CompileAndVerify(string source, string? ilVerifyMessage = null, string? expectedOutput = null, TargetFramework targetFramework = s_targetFramework)
203
public
CompilationVerifier
CompileAndVerifyFails(string source, string? ilVerifyMessage = null, string? expectedOutput = null)
212
private static void AssertNotInstrumented(
CompilationVerifier
verifier, string qualifiedMethodName)
215
private static void AssertInstrumented(
CompilationVerifier
verifier, string qualifiedMethodName, bool expected = true)
238
var
verifier = CompileAndVerify(
371
var
verifier = CompileAndVerify(
525
var
verifier = CompileAndVerify(source);
665
var
verifier = CompileAndVerify(source);
711
var
verifier = CompileAndVerify(source);
763
var
verifier = CompileAndVerify(source);
813
var
verifier = CompileAndVerify(source);
831
var
verifier = CompileAndVerify(source);
854
var
verifier = CompileAndVerify(source);
1010
var
verifier = CompileAndVerify(
1098
var
verifier = CompileAndVerify(source, expectedOutput: $@"
1187
var
verifier = CompileAndVerify(source);
1259
var
verifier = CompileAndVerify(source);
1359
var
verifier = CompileAndVerify(
1452
var
verifier = CompileAndVerify(source, expectedOutput: $@"
1545
var
verifier = CompileAndVerify(source, expectedOutput: @"
1618
var
verifier = CompileAndVerify(source, expectedOutput: @"
1713
var
verifier = CompileAndVerify(
1787
var
verifier = CompileAndVerify(
1871
var
verifier = CompileAndVerify(source, expectedOutput: @"
1963
var
verifier = CompileAndVerify(source);
2037
var
verifier = CompileAndVerify(source, expectedOutput: @"
2315
var
verifier = CompileAndVerify(source, expectedOutput: @"
2433
var
verifier = CompileAndVerify(source, expectedOutput: @"
2537
var
verifier = CompileAndVerify(source, expectedOutput: @"
2635
var
verifier = CompileAndVerify(source);
2707
var
verifier = CompileAndVerify(source);
2795
var
verifier = CompileAndVerify(source);
2889
var
verifier = CompileAndVerify(source, ilVerifyMessage: @"
2956
var
verifier = CompileAndVerify(source, ilVerifyMessage: """
3046
var
verifier = CompileAndVerify(source, expectedOutput: @"
3142
var
verifier = CompileAndVerify(source, expectedOutput: expectedOutput);
3232
var
verifier = CompileAndVerify(source, expectedOutput: @"
3316
var
verifier = CompileAndVerify(source, expectedOutput: @"
3471
var
verifier = CompileAndVerify(source);
3553
var
verifier = CompileAndVerify(source, expectedOutput: @"
3802
var
verifier = CompileAndVerify(source, expectedOutput: @"
3919
var
verifier = CompileAndVerify(source, expectedOutput: @"
4129
var
verifier = CompileAndVerify(source, expectedOutput: @"
4371
var
verifier = CompileAndVerify(source, expectedOutput: @"
4567
var
verifier = CompileAndVerify(source, expectedOutput: @"
4841
var
verifier = CompileAndVerify(source, expectedOutput: @"
5020
var
verifier = CompileAndVerify(source, expectedOutput: @"
5155
var
verifier = CompileAndVerify(source, expectedOutput: @"
5390
var
verifier = CompileAndVerify(source, expectedOutput: @"
5605
var
verifier = CompileAndVerify(source, expectedOutput: @"
5734
var
verifier = CompileAndVerify(source, expectedOutput: @"
5808
var
verifier = CompileAndVerify(source, expectedOutput: @"
5886
var
verifier = CompileAndVerify(source, expectedOutput: @"
5983
var
verifier = CompileAndVerify(source);
6075
var
verifier = CompileAndVerify(source, expectedOutput: @"
6182
var
verifier = CompileAndVerify(source, expectedOutput: @"
6300
var
verifier = CompileAndVerify(source, expectedOutput: @"
6444
var
verifier = CompileAndVerify(source, expectedOutput: @"
6892
var
verifier = CompileAndVerify(source, expectedOutput: """
Emit\ManagedAddressTests.cs (1)
66
var
verifier = CompileAndVerify(comp, expectedOutput: "012", verify: Verification.Fails with
Emit\NumericIntPtrTests.cs (30)
1054
var
verifier = CompileAndVerify(comp);
1102
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
1140
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
1336
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput($"{size}{size}{size}{size}"), verify: Verification.FailsPEVerify);
1463
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(@"1"), verify: Verification.FailsPEVerify);
1498
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
1654
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
1765
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
2489
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(expectedOutput), verify: Verification.FailsPEVerify);
2623
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(expectedOutput), verify: Verification.FailsPEVerify);
3133
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
3301
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
6028
var
verifier = CompileAndVerify(comp, verify: useUnsafeContext ? Verification.Skipped : Verification.FailsPEVerify);
6257
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(expectedResult));
6633
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(expectedResult));
6865
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(expectedResult));
6905
var
verifier = CompileAndVerify(comp, emitOptions: EmitOptions.Default.WithRuntimeMetadataVersion("0.0.0.0"), verify: Verification.Skipped);
8190
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
8416
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
8620
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
8696
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
9435
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
9540
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(expectedOutput));
9840
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
10031
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
10993
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
11633
CompilationVerifier
compileAndVerify(CSharpTestSource source)
11694
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput("RAN"));
11712
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("63"), verify: Verification.FailsPEVerify);
11760
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("00"));
Emit\RuntimeProbing\ModuleCancellationTests.cs (68)
19
private
CompilationVerifier
CompileAndVerify(string source, string? expectedOutput = null, CSharpCompilationOptions? options = null, Verification? verification = null)
28
private static void AssertNotInstrumented(
CompilationVerifier
verifier, string qualifiedMethodName)
31
private static void AssertNotInstrumentedWithTokenLoad(
CompilationVerifier
verifier, string qualifiedMethodName)
34
private static void AssertNotInstrumented(
CompilationVerifier
verifier, string qualifiedMethodName, string instrumentationIndicator)
63
var
verifier = CompileAndVerify(source);
139
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe);
226
var
verifier = CompileAndVerify(source);
271
var
verifier = CompileAndVerify(source);
321
var
verifier = CompileAndVerify(source);
369
var
verifier = CompileAndVerify(source);
418
var
verifier = CompileAndVerify(source);
434
var
verifier = CompileAndVerify(source);
492
var
verifier = CompileAndVerify(source);
534
var
verifier = CompileAndVerify(source);
558
var
verifier = CompileAndVerify(source);
649
var
verifier = CompileAndVerify(source);
781
var
verifier = CompileAndVerify(source, verification: Verification.FailsPEVerify);
877
var
verifier = CompileAndVerify(source);
927
var
verifier = CompileAndVerify(source);
975
var
verifier = CompileAndVerify(source);
1018
var
verifier = CompileAndVerify(source);
1089
var
verifier = CompileAndVerify(source);
1166
var
verifier = CompileAndVerify(source);
1210
var
verifier = CompileAndVerify(source);
1282
var
verifier = CompileAndVerify(source);
1335
var
verifier = CompileAndVerify(source);
1378
var
verifier = CompileAndVerify(source);
1421
var
verifier = CompileAndVerify(source);
1465
var
verifier = CompileAndVerify(source);
1519
var
verifier = CompileAndVerify(source);
1548
var
verifier = CompileAndVerify(source);
1600
var
verifier = CompileAndVerify(source);
1648
var
verifier = CompileAndVerify(source);
1679
var
verifier = CompileAndVerify(source);
1721
var
verifier = CompileAndVerify(source);
1745
var
verifier = CompileAndVerify(source);
1769
var
verifier = CompileAndVerify(source);
1792
var
verifier = CompileAndVerify(source);
1834
var
verifier = CompileAndVerify(source);
1868
var
verifier = CompileAndVerify(source);
1909
var
verifier = CompileAndVerify(source);
1958
var
verifier = CompileAndVerify(source);
2010
var
verifier = CompileAndVerify(source);
2038
var
verifier = CompileAndVerify(source);
2084
var
verifier = CompileAndVerify(source);
2133
var
verifier = CompileAndVerify(source);
2157
var
verifier = CompileAndVerify(source);
2180
var
verifier = CompileAndVerify(source);
2203
var
verifier = CompileAndVerify(source);
2231
var
verifier = CompileAndVerify(source);
2287
var
verifier = CompileAndVerify(source);
2315
var
verifier = CompileAndVerify(source);
2341
var
verifier = CompileAndVerify(source);
2368
var
verifier = CompileAndVerify(source);
2391
var
verifier = CompileAndVerify(source);
2433
var
verifier = CompileAndVerify(source);
2476
var
verifier = CompileAndVerify(source);
2500
var
verifier = CompileAndVerify(source);
2533
var
verifier = CompileAndVerify(source);
2563
var
verifier = CompileAndVerify(source);
2590
var
verifier = CompileAndVerify(source);
2617
var
verifier = CompileAndVerify(source);
2647
var
verifier = CompileAndVerify(source);
2694
var
verifier = CompileAndVerify(source);
2716
var
verifier = CompileAndVerify(source);
2738
var
verifier = CompileAndVerify(source);
2759
var
verifier = CompileAndVerify(source, verification: Verification.FailsPEVerify);
2777
var
verifier = CompileAndVerify(source);
Emit\RuntimeProbing\StackOverflowProbingTests.cs (15)
18
private
CompilationVerifier
CompileAndVerify(string source, string? expectedOutput = null, CSharpCompilationOptions? options = null, Verification? verification = null)
27
private static void AssertNotInstrumented(
CompilationVerifier
verifier, string qualifiedMethodName)
56
var
verifier = CompileAndVerify(source);
129
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe);
181
var
verifier = CompileAndVerify(source);
214
var
verifier = CompileAndVerify(source);
249
var
verifier = CompileAndVerify(source);
297
var
verifier = CompileAndVerify(source);
346
var
verifier = CompileAndVerify(source);
362
var
verifier = CompileAndVerify(source);
416
var
verifier = CompileAndVerify(source);
437
var
verifier = CompileAndVerify(source);
484
var
verifier = CompileAndVerify(source);
571
var
verifier = CompileAndVerify(source);
687
var
verifier = CompileAndVerify(source, verification: Verification.FailsPEVerify);
Emit\UnmanagedTypeModifierTests.cs (16)
629
var
reference = CompileAndVerify(@"
668
var
parent = CompileAndVerify(@"
681
var
child = CompileAndVerify(@"
710
var
reference = CompileAndVerify(@"
746
var
parent = CompileAndVerify(@"
759
var
child = CompileAndVerify(@"
785
var
reference = CompileAndVerify(@"
821
var
parent = CompileAndVerify(@"
834
var
child = CompileAndVerify(@"
860
var
reference = CompileAndVerify(@"
896
var
parent = CompileAndVerify(@"
909
var
child = CompileAndVerify(@"
935
var
reference = CompileAndVerify(@"
972
var
parent = CompileAndVerify(@"
985
var
child = CompileAndVerify(@"
1054
var
reference = CompileAndVerify(@"
PDB\PDBAsyncTests.cs (15)
71
var
v = CompileAndVerify(compilation);
621
var
v = CompileAndVerify(CreateCompilationWithMscorlib461(text, options: TestOptions.DebugDll));
759
var
v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
847
var
v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
952
var
v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
1039
var
v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
1155
var
v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
1259
var
v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
1366
var
v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
1464
var
v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
1550
var
v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
1658
var
v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
1694
var
v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
1948
var
v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
2018
var
v = CompileAndVerify(compilation);
PDB\PDBConstantTests.cs (5)
337
var
c = CompileAndVerify(text, options: TestOptions.DebugDll);
409
var
v = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
609
var
c = CompileAndVerify(text, options: TestOptions.DebugDll);
666
var
c = CompileAndVerify(text, options: TestOptions.DebugDll);
726
var
c = CompileAndVerify(text, options: TestOptions.DebugDll);
PDB\PDBDynamicLocalsTests.cs (1)
1709
var
v = CompileAndVerify(c);
PDB\PDBIteratorTests.cs (11)
180
var
c = CompileAndVerify(text, options: TestOptions.ReleaseDll, symbolValidator: module =>
251
var
c = CompileAndVerify(text, options: TestOptions.DebugDll, symbolValidator: module =>
736
var
v = CompileAndVerify(text, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
807
var
v = CompileAndVerify(text, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
931
var
v = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
1027
var
v = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
1101
var
v = CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
1225
var
v = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
1371
var
v = CompileAndVerify(source, new[] { CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
1457
var
v = CompileAndVerify(source, new[] { CSharpRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
1519
var
v = CompileAndVerify(source, new[] { CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
PDB\PDBLambdaTests.cs (3)
1759
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
1801
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
2146
var
c = CompileAndVerify(source, options: TestOptions.DebugDll);
PDB\PDBTests.cs (56)
1147
var
c = CompileAndVerify(source);
1567
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
1622
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
1677
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
1699
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
1732
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
2297
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
2393
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
2531
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
2589
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
2671
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
2721
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
2866
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
2978
var
v = CompileAndVerify(source, options: TestOptions.DebugDll.WithModuleName("MODULE"));
3106
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
3268
var
v = CompileAndVerify(c);
3721
var
verifier = CompileAndVerify(c, expectedOutput: "1M2");
3843
var
verifier = CompileAndVerify(c, expectedOutput: "1234");
4009
var
verifier = CompileAndVerify(c, expectedOutput: "66");
4079
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
4169
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
4413
var
v = CompileAndVerify(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));
6105
var
v = CompileAndVerify(c);
6222
var
v = CompileAndVerify(c);
6348
var
v = CompileAndVerify(c);
6441
var
v = CompileAndVerify(c);
6528
var
v = CompileAndVerify(c);
6589
var
v = CompileAndVerify(c);
6653
var
v = CompileAndVerify(c);
6737
var
v = CompileAndVerify(c);
6852
var
v = CompileAndVerify(c);
6954
var
v = CompileAndVerify(c);
8695
var
verifier = CompileAndVerify(c, verify: Verification.Skipped);
9092
var
verifier = CompileAndVerify(c, verify: Verification.Skipped);
9459
var
verifier = CompileAndVerify(c, verify: Verification.Skipped);
9688
var
verifier = CompileAndVerify(c);
10082
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll);
10291
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll);
10530
var
verifier = CompileAndVerify(c);
10701
var
verifier = CompileAndVerify(c);
10884
var
verifier = CompileAndVerify(c);
11148
var
cv = CompileAndVerify(c);
11287
var
v = CompileAndVerify(c);
11734
var
v = CompileAndVerify(c);
12116
var
c = CompileAndVerify(source);
12156
var
c = CompileAndVerify(source);
12189
var
c = CompileAndVerify(source, verify: Verification.Skipped);
12260
var
c = CompileAndVerify(source, verify: Verification.Skipped);
12541
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
12625
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
12706
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
12798
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
PDB\PDBTupleTests.cs (1)
311
var
v = CompileAndVerify(c);
PDB\PDBUsingTests.cs (4)
2558
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
2974
var
v = CompileAndVerify(comp, validator: (peAssembly) =>
3155
var
v = CompileAndVerify(compilation);
3228
var
v = CompileAndVerify(compilation);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1448)
Attributes\AttributeTests.cs (28)
1572
var
verifier = CompileAndVerify(compilation);
1836
var
comp = CompileAndVerify(source, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
1870
var
comp = CompileAndVerify(source, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
1931
var
comp = CompileAndVerify(source, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
1994
var
comp = CompileAndVerify(source, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
2213
var
comp = CompileAndVerify(source, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
2279
var
comp = CompileAndVerify(source, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
2350
var
comp = CompileAndVerify(source, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
2482
var
comp = CompileAndVerify(source, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
3552
var
compVerifier = CompileAndVerify(
4642
var
verifier = CompileAndVerify(source, symbolValidator: static module =>
4674
var
verifier = CompileAndVerify(source, symbolValidator: static module =>
4707
var
verifier = CompileAndVerify(source, symbolValidator: static module =>
4739
var
verifier = CompileAndVerify(source, symbolValidator: static module =>
4775
var
verifier = CompileAndVerify(source, symbolValidator: static module =>
4806
var
verifier = CompileAndVerify(source, symbolValidator: static module =>
4832
var
verifier = CompileAndVerify(source, symbolValidator: static module =>
4864
var
verifier = CompileAndVerify(source, symbolValidator: static module =>
6671
var
compilation = CompileAndVerify(source, expectedOutput: "");
10641
var
verifier = CompileAndVerify(source, expectedOutput: "Attr`1[System.Int32]");
10693
var
verifier = CompileAndVerify(source, expectedOutput: "Attr`1[System.Int32] Attr`1[System.Object] Attr`1[System.Int32]");
10757
var
verifier = CompileAndVerify(
11010
var
verifier = CompileAndVerify(source, symbolValidator: validateMetadata, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
11147
var
verifier = CompileAndVerify(source, sourceSymbolValidator: verify, symbolValidator: verify, expectedOutput: "Prop = a");
11219
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), sourceSymbolValidator: verify, symbolValidator: verify, expectedOutput: "a");
11291
var
verifier = CompileAndVerify(source, symbolValidator: verify, sourceSymbolValidator: verifySource);
11347
var
verifier = CompileAndVerify(source, expectedOutput: "Attr`1[System.String]");
11362
var
verifier = CompileAndVerify(source, symbolValidator: verify, sourceSymbolValidator: verify);
Attributes\AttributeTests_CallerInfoAttributes.cs (2)
5882
var
verifier = CompileAndVerify(source, expectedOutput: "1");
5941
var
verifier = CompileAndVerify(source, expectedOutput: "0", symbolValidator: verify);
Attributes\AttributeTests_Embedded.cs (2)
235
var
verifier = CompileAndVerify(code, targetFramework: TargetFramework.NetStandard20, expectedOutput: "M", symbolValidator: module =>
345
var
verifier = CompileAndVerify(code, targetFramework: TargetFramework.NetStandard20, symbolValidator: module =>
Attributes\AttributeTests_IsByRefLike.cs (1)
461
var
comp1 = CompileAndVerify(code1, options: options, verify: Verification.Passes, symbolValidator: module =>
Attributes\AttributeTests_IsUnmanaged.cs (1)
730
var
comp1 = CompileAndVerify(code1, options: options, symbolValidator: module =>
Attributes\AttributeTests_MarshalAs.cs (13)
26
private void VerifyFieldMetadataDecoding(
CompilationVerifier
verifier, Dictionary<string, byte[]> blobs)
58
private void VerifyParameterMetadataDecoding(
CompilationVerifier
verifier, Dictionary<string, byte[]> blobs)
265
var
verifier = CompileAndVerifyFieldMarshal(source, blobs);
338
var
verifier = CompileAndVerifyFieldMarshal(source, blobs);
385
var
verifier = CompileAndVerifyFieldMarshal(source, blobs);
472
var
verifier = CompileAndVerifyFieldMarshal(source, blobs);
604
var
verifier = CompileAndVerifyFieldMarshal(source, blobs);
772
var
verifier = CompileAndVerifyFieldMarshal(source, blobs);
806
var
verifier = CompileAndVerifyFieldMarshal(source, blobs);
919
var
verifier = CompileAndVerifyFieldMarshal(source, blobs);
1050
var
verifier = CompileAndVerifyFieldMarshal(source, blobs);
1149
var
verifier = CompileAndVerifyFieldMarshal(source, blobs, isField: false);
1194
var
verifier = CompileAndVerifyFieldMarshal(source, blobs, isField: false);
Attributes\AttributeTests_NativeInteger.cs (2)
1506
var
comp = CompileAndVerify(@"
1547
var
comp = CompileAndVerify(@"
Attributes\AttributeTests_ReadOnlyStruct.cs (1)
453
var
comp1 = CompileAndVerify(code1, options: options, verify: Verification.Passes, symbolValidator: module =>
Attributes\AttributeTests_RefReadOnly.cs (1)
1178
var
comp1 = CompileAndVerify(code1, options: options, verify: Verification.Fails, symbolValidator: module =>
Attributes\AttributeTests_Synthesized.cs (1)
937
var
verifier = CompileAndVerify(comp, symbolValidator: validate);
Attributes\AttributeTests_WellKnownAttributes.cs (76)
30
public static bool? HasLocalsInit(this
CompilationVerifier
verifier, string qualifiedMethodName, bool realIL = false)
535
var
comp = CompileAndVerify(source, symbolValidator: verifier);
678
var
comp = CompileAndVerify(source, expectedOutput: "0");
709
var
comp = CompileAndVerify(source, expectedOutput: "0");
2063
var
comp = CompileAndVerify(source, expectedSignatures: new[]
2089
var
comp = CompileAndVerify(source, expectedSignatures: new[]
5061
var
comp = CompileAndVerify(
5657
var
verifier = CompileAndVerify(source, sourceSymbolValidator: sourceValidator, symbolValidator: metadataValidator, verify: Verification.FailsPEVerify, targetFramework: TargetFramework.Mscorlib40);
5757
var
verifier = CompileAndVerify(
10412
private
CompilationVerifier
CompileAndVerifyWithSkipLocalsInit(string src, CSharpCompilationOptions options, CSharpParseOptions parseOptions = null, Verification? verify = null)
10426
private
CompilationVerifier
CompileAndVerifyWithSkipLocalsInit(string src, CSharpParseOptions parseOptions = null, Verification? verify = null)
10502
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
10537
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
10570
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularWithExtendedPartialMethods, verify: Verification.Fails);
10603
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularWithExtendedPartialMethods, verify: Verification.Fails);
10632
var
verifier = CompileAndVerifyWithSkipLocalsInit(src);
10790
var
comp = CompileAndVerify(source);
10820
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
10850
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
10910
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
10955
var
verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9);
10997
var
verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9);
11039
var
verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9);
11081
var
verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9);
11123
var
verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9);
11165
var
verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9);
11217
var
verifier = CompileAndVerifyWithSkipLocalsInit(source);
11258
var
verifier = CompileAndVerifyWithSkipLocalsInit(source);
11307
var
verifier = CompileAndVerifyWithSkipLocalsInit(source);
11348
var
verifier = CompileAndVerifyWithSkipLocalsInit(source);
11376
var
verifier = CompileAndVerifyWithSkipLocalsInit(source);
11405
var
verifier = CompileAndVerifyWithSkipLocalsInit(source);
11431
var
verifier = CompileAndVerifyWithSkipLocalsInit(source, parseOptions: TestOptions.RegularPreview, verify: Verification.Skipped);
11456
var
verifier = CompileAndVerifyWithSkipLocalsInit(source, parseOptions: TestOptions.RegularPreview, verify: Verification.Skipped);
11487
var
verifier = CompileAndVerifyWithSkipLocalsInit(source, parseOptions: TestOptions.RegularPreview, verify: Verification.Skipped);
11518
var
verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.UnsafeReleaseExe);
11537
var
verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.UnsafeReleaseExe, verify: Verification.Passes);
11576
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11617
var
comp1 = CompileAndVerify(source1, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11621
var
comp2 = CompileAndVerify(source2, references: new[] { reference }, verify: Verification.Passes);
11653
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11701
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11735
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11772
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11803
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11848
var
comp_init = CompileAndVerify(source_init, options: TestOptions.UnsafeReleaseDll);
11849
var
comp_skip = CompileAndVerify(source_skip, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11886
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll);
11929
var
comp_init = CompileAndVerify(source_init, options: TestOptions.UnsafeReleaseDll);
11930
var
comp_skip = CompileAndVerify(source_skip, options: TestOptions.UnsafeReleaseDll);
11972
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12024
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12096
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12131
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12204
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12265
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12294
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll);
12340
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll);
12458
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12508
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12563
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12621
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12668
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12697
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12725
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeDebugExe, verify: Verification.Fails);
12753
var
comp = CompileAndVerify(source, options: TestOptions.DebugModule.WithAllowUnsafe(true), verify: Verification.Fails);
12784
var
comp = CompileAndVerify(source, references: new[] { metadata_comp.EmitToImageReference() });
12838
var
verifier = CompileAndVerify(src, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12905
var
verifier = CompileAndVerify(comp, verify: Verification.Fails);
12959
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
12978
var
verifier = CompileAndVerifyWithSkipLocalsInit(src);
12997
var
verifier = CompileAndVerifyWithSkipLocalsInit(src);
13033
var
verifier = CompileAndVerifyWithSkipLocalsInit(src);
13079
var
verifier = CompileAndVerify(src, options: TestOptions.UnsafeReleaseDll, verify: Verification.Skipped);
13125
var
verifier = CompileAndVerify(src, options: TestOptions.UnsafeReleaseDll, verify: Verification.Skipped);
13153
var
verifier = CompileAndVerify(comp, verify: Verification.Fails);
Attributes\InternalsVisibleToAndStrongNameTests.cs (3)
2098
var
verifier = CompileAndVerify(comp3);
2222
var
verifier = CompileAndVerify(comp4);
2800
var
verifier = CompileAndVerify(ca, symbolValidator: module =>
FieldKeywordTests.cs (35)
49
var
verifier = CompileAndVerify(source, expectedOutput: """
119
var
verifier = CompileAndVerify(source, expectedOutput: "(1, 2)");
537
var
verifier = CompileAndVerify(source, expectedOutput: """
755
var
verifier = CompileAndVerify(source, expectedOutput: """
857
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(""));
996
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1611
var
verifier = CompileAndVerify(
1700
var
verifier = CompileAndVerify(source, verify: Verification.Skipped, expectedOutput: """
1763
var
verifier = CompileAndVerify(
1855
var
verifier = CompileAndVerify(
1919
var
verifier = CompileAndVerify(
2027
var
verifier = CompileAndVerify(
2260
var
verifier = CompileAndVerify(
2470
var
verifier = CompileAndVerify(
2599
var
verifier = CompileAndVerify(
3184
var
verifier = CompileAndVerify(
3334
var
verifier = CompileAndVerify(
3520
var
verifier = CompileAndVerify(
3724
var
verifier = CompileAndVerify(
4097
var
verifier = CompileAndVerify(source, expectedOutput: "(1, 2, 3, 0)");
4176
var
verifier = CompileAndVerify(
4327
var
verifier = CompileAndVerify(
4459
var
verifier = CompileAndVerify(
4593
var
verifier = CompileAndVerify(
4985
var
verifier = CompileAndVerify(
5078
var
verifier = CompileAndVerify(comp, expectedOutput: $$"""
8143
var
verifier = CompileAndVerify(
8555
var
verifier = CompileAndVerify(
9105
var
verifier = CompileAndVerify(
9345
var
verifier = CompileAndVerify(
10185
var
verifier = CompileAndVerify(
10335
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("""
10419
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("""
10516
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("""
10698
var
verifier = CompileAndVerify(source, expectedOutput: """
FirstClassSpanTests.cs (67)
80
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput).VerifyDiagnostics();
223
var
verifier = CompileAndVerify(comp, expectedOutput: "3").VerifyDiagnostics();
744
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput);
771
var
verifier = CompileAndVerify(comp, expectedOutput: "ab");
805
var
verifier = CompileAndVerify(comp, expectedOutput: "InvalidCastException", verify: Verification.FailsILVerify);
835
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.FailsILVerify);
891
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.FailsILVerify);
917
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.FailsILVerify);
972
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.FailsILVerify);
998
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.FailsILVerify);
1025
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput);
1070
var
verifier = CompileAndVerify(comp, expectedOutput: "False");
1133
var
verifier = CompileAndVerify(comp, expectedOutput: "False");
1196
var
verifier = CompileAndVerify(comp, expectedOutput: "False");
1783
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
1836
var
verifier = CompileAndVerify(source);
1926
var
verifier = CompileAndVerify(comp, expectedOutput: "12").VerifyDiagnostics();
1997
var
verifier = CompileAndVerify([source, TestSources.Span],
2061
var
verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: "Internal");
2114
var
verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: "External");
2162
var
verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: "Internal");
2206
var
verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: "External");
2275
var
verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: "Span2");
2350
var
verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: """
2400
var
verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: "Internal");
2443
var
verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: "External");
2586
var
verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: "Span2");
2633
var
verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: "Internal");
2677
var
verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: "External");
2741
var
verifier = CompileAndVerify(comp, expectedOutput: "Span2");
4162
var
verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify).VerifyDiagnostics();
4227
var
verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify).VerifyDiagnostics();
4299
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
4487
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
4519
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), verify: Verification.FailsILVerify);
4550
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
4583
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
4624
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
4704
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
4751
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
4791
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
4831
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
5203
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput).VerifyDiagnostics();
5313
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
5398
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
5420
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
5581
var
verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify).VerifyDiagnostics();
5613
var
verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify).VerifyDiagnostics();
5727
var
verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify).VerifyDiagnostics();
5781
var
verifier = CompileAndVerify(comp, expectedOutput: "C", verify: Verification.FailsILVerify).VerifyDiagnostics();
5825
var
verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify).VerifyDiagnostics();
6430
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput).VerifyDiagnostics();
6471
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput).VerifyDiagnostics();
6513
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput).VerifyDiagnostics();
6554
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput).VerifyDiagnostics();
6595
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput).VerifyDiagnostics();
6660
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput).VerifyDiagnostics();
6741
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
6790
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
6840
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
6890
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
6940
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
7034
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput).VerifyDiagnostics();
7125
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
7233
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput).VerifyDiagnostics();
7297
var
verifier = CompileAndVerify(comp);
7334
var
verifier = CompileAndVerify(comp);
FlowAnalysis\FlowDiagnosticTests.cs (2)
1237
var
verifier = CompileAndVerify(program, parseOptions: TestOptions.Regular11);
1297
var
verifier = CompileAndVerify(program, parseOptions: TestOptions.Regular11);
FlowAnalysis\RegionAnalysisTests.cs (1)
5615
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "42");
OverloadResolutionPriorityTests.cs (6)
903
var
verifier = CompileAndVerify([source, OverloadResolutionPriorityAttributeDefinition]).VerifyDiagnostics();
985
var
verifier = CompileAndVerify(comp, expectedOutput: "1").VerifyDiagnostics();
1097
var
verifier = CompileAndVerify([source, OverloadResolutionPriorityAttributeDefinition],
1140
var
verifier = CompileAndVerify([source, OverloadResolutionPriorityAttributeDefinition],
1889
var
verifier = CompileAndVerify(executable, references: [attrRef.EmitToImageReference(), vbRef]).VerifyDiagnostics();
2118
var
verifier = CompileAndVerify([handler, executable, OverloadResolutionPriorityAttributeDefinition, InterpolatedStringHandlerAttribute], expectedOutput: "12").VerifyDiagnostics();
RefReadonlyParameterTests.cs (55)
122
var
verifier = CompileAndVerify(source, sourceSymbolValidator: verify, symbolValidator: verify);
150
var
verifier = CompileAndVerify(source, sourceSymbolValidator: verify, symbolValidator: verify);
325
var
verifier = CompileAndVerify(source, sourceSymbolValidator: verify, symbolValidator: verify);
542
var
verifier = CompileAndVerify(source, sourceSymbolValidator: verify, symbolValidator: verify);
563
var
verifier = CompileAndVerify(source, sourceSymbolValidator: verify, symbolValidator: verify);
584
var
verifier = CompileAndVerify(source, sourceSymbolValidator: verify, symbolValidator: verify);
633
var
verifier = CompileAndVerify(source, sourceSymbolValidator: verify, symbolValidator: verify);
654
var
verifier = CompileAndVerify(source, sourceSymbolValidator: verify, symbolValidator: verify);
677
var
verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition },
699
var
verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition },
815
var
verifier = CompileAndVerify(source, sourceSymbolValidator: verify, symbolValidator: verify);
834
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
858
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
884
var
verifier = CompileAndVerify(source, sourceSymbolValidator: verify, symbolValidator: verify,
911
var
verifier = CompileAndVerify(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeReleaseDll,
1396
var
verifier3v1 = CompileAndVerify(source3, new[] { comp1v1Ref, comp2Ref }, expectedOutput: "F123").VerifyDiagnostics();
1419
var
verifier3v2 = CompileAndVerify(source3, new[] { comp1v2Ref, comp2Ref, comp4Ref }, expectedOutput: "True").VerifyDiagnostics();
1599
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetStandard20);
2307
var
verifier = CompileAndVerify(source, expectedOutput: "5");
2340
var
verifier = CompileAndVerify(source, expectedOutput: "5");
2370
var
verifier = CompileAndVerify(source, expectedOutput: "5", verify: Verification.Fails);
2420
var
verifier = CompileAndVerify(source, expectedOutput: "5", verify: Verification.Fails);
2446
var
verifier = CompileAndVerify(source, expectedOutput: "5");
2531
var
verifier = CompileAndVerify(source, expectedOutput: "5");
2581
var
verifier = CompileAndVerify(source, expectedOutput: "5");
2612
var
verifier = CompileAndVerify(source, expectedOutput: "5");
2667
var
verifier = CompileAndVerify(source, expectedOutput: "5");
2698
var
verifier = CompileAndVerify(source, expectedOutput: "5");
2756
var
verifier = CompileAndVerify(source, expectedOutput: "5");
2999
var
verifier = CompileAndVerify(source, expectedOutput: """
3068
var
verifier = CompileAndVerify(source, expectedOutput: """
3113
var
verifier = CompileAndVerify(source, verify: Verification.FailsILVerify, expectedOutput: """
3308
var
verifier = CompileAndVerify(new[] { source, RequiresLocationAttributeDefinition },
4546
var
verifier = CompileAndVerify(comp, expectedOutput: "1222");
4597
var
verifier = CompileAndVerify(comp, expectedOutput: "1222");
4735
var
verifier = CompileAndVerify(comp, expectedOutput: """
4836
var
verifier = CompileAndVerify(comp, expectedOutput: "100");
4950
var
verifier = CompileAndVerify(source, expectedOutput: "111");
4985
var
verifier = CompileAndVerify(source, expectedOutput: "C111");
5016
var
verifier = CompileAndVerify(source, expectedOutput: "111");
5054
var
verifier = CompileAndVerify(source, expectedOutput: "111");
5087
var
verifier = CompileAndVerify(new[] { source, RequiresLocationAttributeDefinition },
5222
var
verifier = CompileAndVerify(source, expectedOutput: "1");
5260
var
verifier = CompileAndVerify(source2, new[] { comp1Ref }, expectedOutput: "1");
5384
var
verifier = CompileAndVerify(source, expectedOutput: "5");
5476
var
verifier = CompileAndVerify(source, expectedOutput: "1",
5582
var
verifier = CompileAndVerify(source, expectedOutput: "111");
5636
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.StandardAndCSharp, expectedOutput: "exception2");
5704
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.StandardAndCSharp, expectedOutput: "exception2");
5870
var
verifier = CompileAndVerify(source, expectedOutput: """
5910
var
verifier = CompileAndVerify(source, expectedOutput: """
5969
var
verifier = CompileAndVerify(source, expectedOutput: """
6015
var
verifier = CompileAndVerify(source, expectedOutput: """
7538
var
verifier = CompileAndVerify(source, expectedOutput: "CC");
7577
var
verifier = CompileAndVerify(source,
RefStructInterfacesTests.cs (100)
2976
var
verifier = CompileAndVerify(new[] { source, UnscopedRefAttributeDefinition }, expectedOutput: (tS1IsClass == ThreeState.True || tS2IsClass == ThreeState.True ? null : "12"), verify: Verification.Fails);
5987
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"S1.M1 S1.M1" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics();
6067
var
verifier = CompileAndVerify(
6598
var
verifier = CompileAndVerify(
6734
var
verifier = CompileAndVerify(
6851
var
verifier = CompileAndVerify(
6972
var
verifier = CompileAndVerify(
7111
var
verifier = CompileAndVerify(
7435
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics();
7625
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics();
7843
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123456" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics();
8040
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics();
8233
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics();
8508
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics(
8892
var
verifier = CompileAndVerify(
9096
var
verifier = CompileAndVerify(
9459
var
verifier = CompileAndVerify(
9671
var
verifier = CompileAndVerify(
9895
var
verifier = CompileAndVerify(
10107
var
verifier = CompileAndVerify(
10503
var
verifier = CompileAndVerify(
10700
var
verifier = CompileAndVerify(
10939
var
verifier = CompileAndVerify(
11155
var
verifier = CompileAndVerify(
11382
var
verifier = CompileAndVerify(
12424
var
verifier = CompileAndVerify(
12691
var
verifier = CompileAndVerify(
12937
var
verifier = CompileAndVerify(
13196
var
verifier = CompileAndVerify(
13466
var
verifier = CompileAndVerify(
13725
var
verifier = CompileAndVerify(
14367
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics();
14708
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics();
15069
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123456" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics();
15420
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics();
15768
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics();
16198
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics(
18012
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics();
18209
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics();
18431
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123456" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics();
18634
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics();
18835
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics();
19115
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics(
19497
var
verifier = CompileAndVerify(
19668
var
verifier = CompileAndVerify(
19993
var
verifier = CompileAndVerify(
20178
var
verifier = CompileAndVerify(
20801
var
verifier = CompileAndVerify(
20848
var
verifier = CompileAndVerify(
20893
var
verifier = CompileAndVerify(
20938
var
verifier = CompileAndVerify(
22232
var
verifier = CompileAndVerify(
22874
var
verifier = CompileAndVerify(
22930
var
verifier = CompileAndVerify(
23178
var
verifier = CompileAndVerify(
23224
var
verifier = CompileAndVerify(
23239
var
verifier = CompileAndVerify(source,
23263
var
verifier = CompileAndVerify(source,
23290
var
verifier = CompileAndVerify(source,
23320
var
verifier = CompileAndVerify(source,
23351
var
verifier = CompileAndVerify(source,
23382
var
verifier = CompileAndVerify(source,
23413
var
verifier = CompileAndVerify(source,
23445
var
verifier = CompileAndVerify(source,
23476
var
verifier = CompileAndVerify(source,
23507
var
verifier = CompileAndVerify(source,
23532
var
verifier = CompileAndVerify(source,
23561
var
verifier = CompileAndVerify(source,
23592
var
verifier = CompileAndVerify(source,
23617
var
verifier = CompileAndVerify(source,
24018
var
verifier = CompileAndVerify(
24071
var
verifier = CompileAndVerify(
24133
var
verifier = CompileAndVerify(
24430
var
verifier = CompileAndVerify(
24533
var
verifier = CompileAndVerify(
24591
var
verifier = CompileAndVerify(
24666
var
verifier = CompileAndVerify(
24765
var
verifier = CompileAndVerify(
24928
var
verifier = CompileAndVerify(
25047
var
verifier = CompileAndVerify(
25190
var
verifier = CompileAndVerify(
25282
var
verifier = CompileAndVerify(
25426
var
verifier = CompileAndVerify(
25510
var
verifier = CompileAndVerify(
25724
var
verifier = CompileAndVerify(
25974
var
verifier = CompileAndVerify(
27579
var
verifier = CompileAndVerify(
27689
var
verifier = CompileAndVerify(
27923
var
verifier = CompileAndVerify(
28108
var
verifier = CompileAndVerify(
28218
var
verifier = CompileAndVerify(
28350
var
verifier = CompileAndVerify(
28484
var
verifier = CompileAndVerify(
28659
var
verifier = CompileAndVerify(
28717
var
verifier = CompileAndVerify(
28786
var
verifier = CompileAndVerify(
28894
var
verifier = CompileAndVerify(
28954
var
verifier = CompileAndVerify(
29029
var
verifier = CompileAndVerify(
29285
var
verifier = CompileAndVerify(
Semantics\CollectionExpressionTests.cs (194)
4637
var
verifier = CompileAndVerify(
5172
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: "[], [1, 2], [3, 4, 5], [null, 7], ");
5258
var
verifier = CompileAndVerify(source, expectedOutput: """
5403
var
verifier = CompileAndVerify(
6207
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net80, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("1010"));
6299
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net80, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("10200"));
6432
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: "[], [1, 2], [3, 4, 5], [null, 7], ");
6824
var
verifier = CompileAndVerify(source);
7286
var
verifier = CompileAndVerify(new[] { sourceA, sourceB2, s_collectionExtensions }, expectedOutput: "[3], ");
8986
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: "[], [null, 2], ");
9052
var
verifier = CompileAndVerify(comp, expectedOutput: "[], [], [42, 43], [44, 45],");
9390
var
verifier = CompileAndVerify(
9508
var
verifier = CompileAndVerify(
9628
var
verifier = CompileAndVerify(
9788
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: "[1, 2, 3, 4], ");
9882
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: "[1, 2, 3], [1, 2, 3], [1, 2, 3], ");
10140
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe, expectedOutput: "[1, 2, 3], ");
10368
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe, expectedOutput: "[1, 2, 3], ");
10552
var
verifier = CompileAndVerify([source, s_collectionExtensions], targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[1, 2, 3], "), verify: Verification.Skipped);
10606
var
verifier = CompileAndVerify([source, s_collectionExtensions], targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[1, 2, 3], "), verify: Verification.Skipped);
10694
var
verifier = CompileAndVerify([source, s_collectionExtensions], targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[1, 2, 3], "), verify: Verification.Skipped);
10750
var
verifier = CompileAndVerify([source, s_collectionExtensions], targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[(1, 1), (2, 2), (3, 3)], "), verify: Verification.Skipped);
10804
var
verifier = CompileAndVerify([source, s_collectionExtensions], targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[(1, 1), (2, 2), (3, 3)], "), verify: Verification.Skipped);
10903
var
verifier = CompileAndVerify([source, s_collectionExtensions], targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[[1], [2], [3]], "), verify: Verification.Skipped);
11264
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: "[1, 2, 3], [1, 2, 3],", verify: Verification.Skipped);
11317
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],"), targetFramework: TargetFramework.Net80, verify: Verification.Skipped);
11395
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: "[1, 2, 3], [1, 2, 3],", verify: Verification.Skipped);
11531
var
verifier = CompileAndVerify(
11623
var
verifier = CompileAndVerify(
11969
var
verifier = CompileAndVerify(
12256
var
verifier = CompileAndVerify(
12326
var
verifier = CompileAndVerify(
12381
var
verifier = CompileAndVerify(
12425
var
verifier = CompileAndVerify(comp, expectedOutput: "[], [], ");
12546
var
verifier = CompileAndVerify(
12926
var
verifier = CompileAndVerify(
13335
var
verifier = CompileAndVerify(
13433
var
verifier = CompileAndVerify(
13709
var
verifier = CompileAndVerify(
14233
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.FailsPEVerify);
14303
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"),
14444
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.FailsPEVerify);
14558
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.FailsPEVerify);
14616
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[[1], [2]],"), verify: Verification.FailsPEVerify);
14720
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[[1], [2]],"), verify: Verification.Fails);
14909
var
verifier = CompileAndVerify(comp, expectedOutput: "[1, 2], [2], ");
14960
var
verifier = CompileAndVerify(comp, verify: Verification.Fails, expectedOutput: "[1, 2], [2], ");
15020
var
verifier = CompileAndVerify(comp, expectedOutput: "[2, 3], [3], ");
15223
var
verifier = CompileAndVerify(
15404
var
verifier = CompileAndVerify(
15528
var
verifier = CompileAndVerify(
15712
var
verifier = CompileAndVerify(
17176
var
verifier = CompileAndVerify(
20035
var
verifier = CompileAndVerify(
20395
var
verifier = CompileAndVerify(
20496
var
verifier = CompileAndVerify(
20621
var
verifier = CompileAndVerify(
20702
var
verifier = CompileAndVerify(
20831
var
verifier = CompileAndVerify(
20876
var
verifier = CompileAndVerify(
20984
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
21132
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
21232
var
verifier = CompileAndVerify(
21365
var
verifier = CompileAndVerify(
21519
var
verifier = CompileAndVerify(
21616
var
verifier = CompileAndVerify(
21730
var
verifier = CompileAndVerify(
21838
var
verifier = CompileAndVerify(
21946
var
verifier = CompileAndVerify(
22257
var
verifier = CompileAndVerify(
22357
var
verifier = CompileAndVerify(
22409
var
verifier = CompileAndVerify(
22482
var
verifier = CompileAndVerify(
22612
var
verifier = CompileAndVerify(comp,
22764
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net80, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("12"));
22850
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("11"));
22963
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("11"));
23074
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net80, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("12"));
23156
var
verifier = CompileAndVerify(
23282
var
verifier = CompileAndVerify(
23349
var
verifier = CompileAndVerify(
23460
var
verifier = CompileAndVerify(
23562
var
verifier = CompileAndVerify(
23632
var
verifier = CompileAndVerify(
23697
var
verifier = CompileAndVerify(
23800
var
verifier = CompileAndVerify(
23874
var
verifier = CompileAndVerify(
23983
var
verifier = CompileAndVerify(
24043
var
verifier = CompileAndVerify(
24166
var
verifier = CompileAndVerify(
24241
var
verifier = CompileAndVerify(
24296
var
verifier = CompileAndVerify(
24358
var
verifier = CompileAndVerify(
24454
var
verifier = CompileAndVerify(
24528
var
verifier = CompileAndVerify(
24616
var
verifier = CompileAndVerify(
24671
var
verifier = CompileAndVerify(
24755
var
verifier = CompileAndVerify(
24810
var
verifier = CompileAndVerify(
24865
var
verifier = CompileAndVerify(
24932
var
verifier = CompileAndVerify(
25070
var
verifier = CompileAndVerify(
25203
var
verifier = CompileAndVerify(
25291
var
verifier = CompileAndVerify(
25369
var
verifier = CompileAndVerify(
25436
var
verifier = CompileAndVerify(
25500
var
verifier = CompileAndVerify(
25567
var
verifier = CompileAndVerify(
25692
var
verifier = CompileAndVerify(
25778
var
verifier = CompileAndVerify(
25815
var
verifier = CompileAndVerify(
25875
var
verifier = CompileAndVerify(
25900
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput("[1, 2, 3], "));
29391
var
verifier = CompileAndVerify(comp, verify: Verification.Fails, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"));
30097
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.Skipped);
30168
var
verifier = CompileAndVerify(new[] { sourceA, s_collectionExtensions }, targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.Skipped);
30226
var
verifier = CompileAndVerify(new[] { sourceA, s_collectionExtensions }, targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[[1, 2, 3]],"), verify: Verification.Skipped);
30268
var
verifier = CompileAndVerify([sourceA, s_collectionExtensions], targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[],"), verify: Verification.Skipped);
30302
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[],"), verify: Verification.Skipped);
30335
var
verifier = CompileAndVerify(new[] { sourceA, s_collectionExtensions }, targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.Skipped);
30374
var
verifier = CompileAndVerify(new[] { sourceA, s_collectionExtensions }, targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.Skipped);
30575
var
verifier = CompileAndVerify(
30703
var
verifier = CompileAndVerify(new[] { sourceA, s_collectionExtensions }, targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.Skipped);
30750
var
verifier = CompileAndVerify([sourceA, s_collectionExtensions], targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.Skipped);
30781
var
verifier = CompileAndVerify([sourceA, s_collectionExtensions], targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.Skipped);
30843
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify: Verification.Skipped, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning));
33552
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: "[1, 2, 3], [1, 2, 3],");
33598
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],"), targetFramework: TargetFramework.Net80, verify: Verification.Skipped);
33662
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],"), targetFramework: TargetFramework.Net80, verify: Verification.Skipped);
33706
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [4, 5, 6], [1, 2, 3, 4, 5, 6],"), verify: Verification.Skipped, targetFramework: TargetFramework.Net80);
33803
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[D, D],"), verify: Verification.Skipped, targetFramework: TargetFramework.Net80);
33911
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, verify: Verification.Fails, expectedOutput: IncludeExpectedOutput("[1, 2, 3, 4, 5, 6],"), targetFramework: TargetFramework.Net80);
33995
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput("[1, 2, 3, 4, 5, 6],"), targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe);
34078
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput("[1, 2, 3, 4, 5, 6],"), targetFramework: TargetFramework.Net80);
34176
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput("[Derived], [Derived], "));
34227
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput("[Derived], [Derived, Derived],"), targetFramework: TargetFramework.Net80);
34335
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput("[1, 2, 3, 4, 5, 6],"), targetFramework: TargetFramework.Net80);
34496
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[1, 2, 3, 4, 5, 6],"), targetFramework: TargetFramework.Net80, verify: Verification.Skipped);
34595
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: expectedOutput, targetFramework: TargetFramework.Net80, verify: Verification.Skipped);
34738
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],"));
34779
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],"));
34826
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],"));
34899
var
verifier = CompileAndVerify(source, expectedOutput: "a");
34936
var
verifier = CompileAndVerify([source, s_collectionExtensionsWithSpan], expectedOutput: IncludeExpectedOutput("[a], [a], "), targetFramework: TargetFramework.Net80, verify: Verification.Skipped);
34981
var
verifier = CompileAndVerify([source, s_collectionExtensionsWithSpan], expectedOutput: IncludeExpectedOutput("[a], [a], "), targetFramework: TargetFramework.Net80, verify: Verification.Skipped);
35019
var
verifier = CompileAndVerify(source, expectedOutput: "a");
35085
var
verifier = CompileAndVerify(source, expectedOutput: "a");
35150
var
verifier = CompileAndVerify(source, expectedOutput: "1");
35216
var
verifier = CompileAndVerify(source, expectedOutput: "a");
35247
var
verifier = CompileAndVerify(source, expectedOutput: "a");
35280
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("[1, 2], [1, 2, 1, 2],"));
35375
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("[1, 2], [1, 2, 1, 2],"));
35502
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net80, verify: Verification.Skipped);
35559
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[1, 2, 2],"), targetFramework: TargetFramework.Net80, verify: Verification.Skipped);
35788
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],"), targetFramework: TargetFramework.Net80, verify: Verification.Skipped);
35836
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],"), targetFramework: TargetFramework.Net80, verify: Verification.Skipped);
35879
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],"), targetFramework: TargetFramework.Net80, verify: Verification.Skipped);
35991
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: IncludeExpectedOutput("[1, 2, 3], "));
36063
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: IncludeExpectedOutput("[1, 2, 3], "));
36138
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: IncludeExpectedOutput("[1, 2, 3], "));
36186
var
verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[1, 2, 3],", verify: Verification.Skipped);
36217
var
verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[a, b, c],", verify: Verification.Skipped);
36255
var
verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[a, b, c], [1, 2, 3], [a, b, c], [1, 2, 3], ", verify: Verification.Skipped);
36369
var
verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[a, b, c],", verify: Verification.Skipped);
36403
var
verifier = CompileAndVerify(comp, expectedOutput: "[1, 2, 3],", verify: Verification.Skipped);
36437
var
verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[a, b, c],", verify: Verification.Skipped);
36508
var
verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[1, 2, 3],", verify: Verification.Skipped);
36545
var
verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[1, 2, 3],", verify: Verification.Skipped);
36577
var
verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), targetFramework: TargetFramework.Net80, verify: Verification.Skipped);
36649
var
verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[1, 2, 3],", verify: Verification.Skipped);
36704
var
verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: expectedOutput, verify: Verification.Skipped);
36757
var
verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[1, 2, 3],", verify: Verification.Skipped);
36811
var
verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[1, 2, 3],", verify: Verification.Skipped);
36895
var
verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[1, 2, 3],", verify: Verification.Skipped);
36987
var
verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[1, 2, 3],", verify: Verification.Skipped);
37069
var
verifier = CompileAndVerify(source, expectedOutput: IncludeExpectedOutput("1234"), targetFramework: TargetFramework.Net80, verify: Verification.Skipped);
37116
var
verifier = CompileAndVerify(comp, expectedOutput: "[1, 2, 3],", verify: Verification.Skipped);
37198
var
verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[1, 2, 3, 4, 5, 6],", verify: Verification.Skipped);
37303
var
verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[1, 2, 3], [1, 2, 3], [1, 2, 3], ", verify: Verification.Skipped);
37400
var
verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[a, b, c], [a, b, c], [a, b, c], [a, b, c], ", verify: Verification.Skipped);
37514
var
verifier = CompileAndVerify(
37641
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3, 4],"), targetFramework: TargetFramework.Net80, verify: Verification.Skipped);
37692
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[a, b, c], [a, b, c, d],"), targetFramework: TargetFramework.Net80, verify: Verification.Skipped);
37758
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[a, b, c], [a, b, c],"), targetFramework: TargetFramework.Net80, verify: Verification.Skipped);
37826
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[a, b, c], [a, b, c, a, b, c],"), targetFramework: TargetFramework.Net80, verify: Verification.Skipped);
37864
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3, 4],"), targetFramework: TargetFramework.Net80, verify: Verification.Skipped);
38304
var
verifier = CompileAndVerify(comp, expectedOutput: "(a, b), (c, d), ");
40176
var
verifier = CompileAndVerify([sourceB, sourceA, s_collectionExtensions], expectedOutput: "[null], [a], [a, b],");
42401
var
verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
42629
var
verifier = CompileAndVerify(
43436
var
verifier = CompileAndVerify(
43548
var
verifier = CompileAndVerify(
43671
var
verifier = CompileAndVerify(
43762
var
verifier = CompileAndVerify(
Semantics\ExpressionOptionalAndNamedArgumentsTests.cs (30)
128
var
verifier = CompileAndVerify(
169
var
verifier = CompileAndVerify(
210
var
verifier = CompileAndVerify(
277
var
verifier = CompileAndVerify(
328
var
verifier = CompileAndVerify(
383
var
verifier = CompileAndVerify(
433
var
verifier = CompileAndVerify(
481
var
verifier = CompileAndVerify(
549
var
verifier = CompileAndVerify(
627
var
verifier = CompileAndVerify(
666
var
verifier = CompileAndVerify(
749
var
verifier = CompileAndVerify(
799
var
verifier = CompileAndVerify(
856
var
verifier = CompileAndVerify(
896
var
verifier = CompileAndVerify(
991
var
verifier = CompileAndVerify(
1074
var
verifier = CompileAndVerify(
1148
var
verifier = CompileAndVerify(
1191
var
verifier = CompileAndVerify(
1314
var
verifier = CompileAndVerify(
1409
var
verifier = CompileAndVerify(
1504
var
verifier = CompileAndVerify(
1550
var
verifier = CompileAndVerify(
1598
var
verifier = CompileAndVerify(
1685
var
verifier = CompileAndVerify(
1726
var
verifier = CompileAndVerify(
1784
var
verifier = CompileAndVerify(
1833
var
verifier = CompileAndVerify(
1888
var
verifier = CompileAndVerify(
1930
var
verifier = CompileAndVerify(
Semantics\ExtensionOperatorsTests.cs (12)
3641
var
verifier = CompileAndVerify(source).VerifyDiagnostics();
3720
var
verifier = CompileAndVerify(source, verify: Verification.FailsPEVerify with { PEVerifyMessage = """
3809
var
verifier = CompileAndVerify(source).VerifyDiagnostics();
9903
var
verifier = CompileAndVerify(source).VerifyDiagnostics();
9987
var
verifier = CompileAndVerify(source, verify: Verification.FailsPEVerify with { PEVerifyMessage = """
10081
var
verifier = CompileAndVerify(source).VerifyDiagnostics();
18461
var
verifier = CompileAndVerify(source).VerifyDiagnostics();
18542
var
verifier = CompileAndVerify(source, verify: Verification.FailsPEVerify with { PEVerifyMessage = """
18633
var
verifier = CompileAndVerify(source).VerifyDiagnostics();
26587
var
verifier = CompileAndVerify(source).VerifyDiagnostics();
26674
var
verifier = CompileAndVerify(source, verify: Verification.FailsPEVerify with { PEVerifyMessage = """
26771
var
verifier = CompileAndVerify(source).VerifyDiagnostics();
Semantics\ExtensionTests.cs (91)
133
var
verifier = CompileAndVerify(comp);
231
var
verifier = CompileAndVerify(comp);
319
var
verifier = CompileAndVerify(comp);
601
var
verifier = CompileAndVerify(comp);
860
var
verifier = CompileAndVerify(comp);
1160
var
verifier = CompileAndVerify(comp, expectedOutput: """
1334
var
verifier = CompileAndVerify(comp, expectedOutput: """
1511
var
verifier = CompileAndVerify(comp, expectedOutput: """
1819
var
verifier = CompileAndVerify(comp);
1939
var
verifier = CompileAndVerify(comp);
2077
var
verifier = CompileAndVerify(comp);
2268
var
verifier = CompileAndVerify(comp);
4831
var
verifier = CompileAndVerify(comp);
5116
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
5217
var
verifier1 = CompileAndVerify(comp1, sourceSymbolValidator: verifySymbols, symbolValidator: verifySymbols).VerifyDiagnostics();
5356
var
verifier2 = CompileAndVerify(comp2, expectedOutput: "1234").VerifyDiagnostics();
5500
var
verifier4 = CompileAndVerify(comp4, expectedOutput: "1234").VerifyDiagnostics();
5566
var
verifier1 = CompileAndVerify(comp1).VerifyDiagnostics();
5596
var
verifier1 = CompileAndVerify(comp1).VerifyDiagnostics();
5632
var
verifier1 = CompileAndVerify(comp1).VerifyDiagnostics();
5826
var
verifier1 = CompileAndVerify(comp1).VerifyDiagnostics();
6024
var
verifier1 = CompileAndVerify(comp1, symbolValidator: (m) =>
6382
var
verifier3 = CompileAndVerify(comp3, expectedOutput: "1234").VerifyDiagnostics();
6439
var
verifier1 = CompileAndVerify(comp1, symbolValidator: (m) =>
6757
var
verifier1 = CompileAndVerify(comp1).VerifyDiagnostics();
6865
var
verifier3 = CompileAndVerify(comp3, expectedOutput: "132465").VerifyDiagnostics();
7012
var
verifier1 = CompileAndVerify(comp1).VerifyDiagnostics();
7301
var
verifier1 = CompileAndVerify(comp1).VerifyDiagnostics();
7570
var
verifier1 = CompileAndVerify(comp1, symbolValidator: (m) =>
7973
var
verifier1 = CompileAndVerify(comp1, symbolValidator: (m) =>
8288
var
verifier1 = CompileAndVerify(comp1, sourceSymbolValidator: verifySymbols, symbolValidator: verifySymbols).VerifyDiagnostics();
8416
var
verifier2 = CompileAndVerify(comp2, expectedOutput: "1234").VerifyDiagnostics();
8803
var
verifier1 = CompileAndVerify(comp1).VerifyDiagnostics();
9215
var
verifier1 = CompileAndVerify(comp1).VerifyDiagnostics();
9411
var
verifier1 = CompileAndVerify(comp1, symbolValidator: (m) =>
9790
var
verifier1 = CompileAndVerify(comp1, symbolValidator: (m) =>
10098
var
verifier1 = CompileAndVerify(comp1).VerifyDiagnostics();
10203
var
verifier3 = CompileAndVerify(comp3, expectedOutput: "12").VerifyDiagnostics();
10406
var
verifier1 = CompileAndVerify(comp1).VerifyDiagnostics();
10508
var
verifier3 = CompileAndVerify(comp3, expectedOutput: "PP").VerifyDiagnostics();
10636
var
verifier1 = CompileAndVerify(comp1).VerifyDiagnostics();
10738
var
verifier3 = CompileAndVerify(comp3, expectedOutput: "12").VerifyDiagnostics();
10804
var
verifier = CompileAndVerify(comp, expectedOutput: "(System.Int32, System.String, System.Int64)").VerifyDiagnostics();
10969
var
verifier = CompileAndVerify(comp, expectedOutput: "System.Int32").VerifyDiagnostics();
11130
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
11284
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
11440
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
11603
var
verifier = CompileAndVerify(comp, expectedOutput: "(System.Int32, System.String, System.Int64)").VerifyDiagnostics();
11810
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
11987
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
18844
var
verifier = CompileAndVerify(comp, expectedOutput: "E.M(42)").VerifyDiagnostics();
18963
var
verifier = CompileAndVerify(comp, expectedOutput: "42.M(43)").VerifyDiagnostics();
21542
var
verifier = CompileAndVerify(exeSource, references: [useMetadataRef ? comp1.ToMetadataReference() : comp1.EmitToImageReference()], targetFramework: TargetFramework.Net90, expectedOutput: expectedOutput, verify: Verification.FailsPEVerify)
21731
var
verifier = CompileAndVerify(exeSource, references: [useMetadataRef ? comp1.ToMetadataReference() : comp1.EmitToImageReference()], targetFramework: TargetFramework.Net90, expectedOutput: expectedOutput, verify: Verification.FailsPEVerify)
21860
var
verifier = CompileAndVerify([exeSource, src], targetFramework: TargetFramework.Net90, expectedOutput: expectedOutput, verify: Verification.FailsPEVerify).VerifyDiagnostics();
22037
var
verifier = CompileAndVerify([exeSource, src, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute], expectedOutput: expectedOutput).VerifyDiagnostics();
22182
var
verifier = CompileAndVerify([exeSource, src, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute], expectedOutput: expectedOutput).VerifyDiagnostics();
22279
var
verifier = CompileAndVerify([exeSource, src], targetFramework: TargetFramework.Net90, expectedOutput: expectedOutput, verify: Verification.FailsPEVerify).VerifyDiagnostics();
22360
var
verifier = CompileAndVerify([exeSource, src], targetFramework: TargetFramework.Net90, expectedOutput: expectedOutput, verify: Verification.FailsPEVerify).VerifyDiagnostics();
22585
var
verifier = CompileAndVerify([exeSource, src], targetFramework: TargetFramework.Net90, expectedOutput: expectedOutput, verify: Verification.FailsPEVerify)
22666
var
verifier = CompileAndVerify([exeSource, src, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute], expectedOutput: expectedOutput)
22780
var
verifier = CompileAndVerify([exeSource, src, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute], expectedOutput: expectedOutput)
22881
var
verifier = CompileAndVerify([exeSource, src, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute], expectedOutput: expectedOutput)
22991
var
verifier = CompileAndVerify([exeSource, src, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute], expectedOutput: expectedOutput)
23093
var
verifier = CompileAndVerify([exeSource, src, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute], expectedOutput: expectedOutput)
23183
var
verifier = CompileAndVerify([exeSource, src], targetFramework: TargetFramework.Net90, verify: Verification.Fails).VerifyDiagnostics();
23523
var
verifier = CompileAndVerify([exeSource, src], targetFramework: TargetFramework.Net90, verify: Verification.Fails).VerifyDiagnostics();
27564
var
verify = CompileAndVerify(comp, expectedOutput: ExpectedOutput("property method"), verify: Verification.Skipped).VerifyDiagnostics();
27652
var
verify = CompileAndVerify(comp, expectedOutput: ExpectedOutput("property method"), verify: Verification.Skipped).VerifyDiagnostics();
27699
var
verify = CompileAndVerify(comp, expectedOutput: ExpectedOutput("property method"), verify: Verification.Skipped).VerifyDiagnostics();
27744
var
verify = CompileAndVerify(comp, expectedOutput: ExpectedOutput("property method"), verify: Verification.Skipped).VerifyDiagnostics();
27810
var
verify = CompileAndVerify(comp, expectedOutput: "property method").VerifyDiagnostics();
27851
var
verify = CompileAndVerify(comp, expectedOutput: ExpectedOutput("property method"), verify: Verification.Skipped).VerifyDiagnostics();
28921
var
verifier = CompileAndVerify(comp, expectedOutput: "ran", verify: Verification.Fails with { ILVerifyMessage = "[Main]: ImportCalli not implemented" });
35902
var
verifier = CompileAndVerify(comp);
35985
var
verifier = CompileAndVerify(comp);
40839
var
verifier = CompileAndVerify(source, expectedOutput: "23");
40946
var
verifier = CompileAndVerify(source, expectedOutput: "23");
41970
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
42072
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
42173
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
42244
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
42901
var
verifier = CompileAndVerify(source).VerifyDiagnostics();
43035
var
verifier = CompileAndVerify(source).VerifyDiagnostics();
43186
var
verifier = CompileAndVerify(source).VerifyDiagnostics();
43309
var
verifier = CompileAndVerify(source, verify: Verification.FailsPEVerify with { PEVerifyMessage = """
43495
var
verifier = CompileAndVerify(source, verify: Verification.FailsPEVerify with { PEVerifyMessage = """
43668
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
43802
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
49908
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
49931
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
Semantics\ExtensionTests2.cs (110)
7257
var
verifier = CompileAndVerify(comp, expectedOutput: "124124:124124:124124:123124", verify: Verification.Skipped).VerifyDiagnostics();
7391
var
verifier = CompileAndVerify(comp, expectedOutput: "124124:124124").VerifyDiagnostics();
7527
var
verifier = CompileAndVerify(comp, expectedOutput: "123124").VerifyDiagnostics();
7637
var
verifier = CompileAndVerify(comp, expectedOutput: "124124:124124").VerifyDiagnostics();
7819
var
verifier = CompileAndVerify(comp, expectedOutput: "124124:124124").VerifyDiagnostics();
7980
var
verifier = CompileAndVerify(comp, expectedOutput: "123124:123124").VerifyDiagnostics();
8098
var
verifier = CompileAndVerify(comp, expectedOutput: "123:123").VerifyDiagnostics();
8191
var
verifier = CompileAndVerify(comp, expectedOutput: "123:123:123").VerifyDiagnostics();
8316
var
verifier = CompileAndVerify(comp, expectedOutput: "124124:124124", verify: Verification.Skipped).VerifyDiagnostics();
8464
var
verifier = CompileAndVerify(comp, expectedOutput: "124124").VerifyDiagnostics();
8560
var
verifier = CompileAndVerify(comp, expectedOutput: "123124").VerifyDiagnostics();
8661
var
verifier = CompileAndVerify(comp, expectedOutput: "123125125:123125125").VerifyDiagnostics();
8776
var
verifier = CompileAndVerify(comp, expectedOutput: "123125125:123125125").VerifyDiagnostics();
8918
var
verifier = CompileAndVerify(comp, expectedOutput: "123123125").VerifyDiagnostics();
9026
var
verifier = CompileAndVerify(comp, expectedOutput: "123125125:123125125:123125125").VerifyDiagnostics();
9223
var
verifier = CompileAndVerify(comp, expectedOutput: "123125125:123125125").VerifyDiagnostics();
9414
var
verifier = CompileAndVerify(comp, expectedOutput: "123123125:123123125:123123125").VerifyDiagnostics();
9624
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.Skipped).VerifyDiagnostics();
9789
var
verifier = CompileAndVerify(comp, expectedOutput: "123125125").VerifyDiagnostics();
9889
var
verifier = CompileAndVerify(comp, expectedOutput: "123123125").VerifyDiagnostics();
9997
var
verifier = CompileAndVerify(comp, expectedOutput: "123125125:123125125").VerifyDiagnostics();
10113
var
verifier = CompileAndVerify(comp, expectedOutput: "123125125:123125125").VerifyDiagnostics();
10261
var
verifier = CompileAndVerify(comp, expectedOutput: "123123125").VerifyDiagnostics();
10351
var
verifier = CompileAndVerify(comp, expectedOutput: "123125125:123125125").VerifyDiagnostics();
10468
var
verifier = CompileAndVerify(comp, expectedOutput: "123125125").VerifyDiagnostics();
10609
var
verifier = CompileAndVerify(comp, expectedOutput: "123123125:123123125").VerifyDiagnostics();
10736
var
verifier = CompileAndVerify(comp, expectedOutput: "123125125:123125125").VerifyDiagnostics();
10852
var
verifier = CompileAndVerify(comp, expectedOutput: "123125125:123125125").VerifyDiagnostics();
11000
var
verifier = CompileAndVerify(comp, expectedOutput: "123123125").VerifyDiagnostics();
11090
var
verifier = CompileAndVerify(comp, expectedOutput: "123125125:123125125").VerifyDiagnostics();
11207
var
verifier = CompileAndVerify(comp, expectedOutput: "123125125").VerifyDiagnostics();
11348
var
verifier = CompileAndVerify(comp, expectedOutput: "123123125:123123125").VerifyDiagnostics();
11508
var
verifier = CompileAndVerify(comp, expectedOutput: "123125125:123125125:123125125:123125125").VerifyDiagnostics();
11740
var
verifier = CompileAndVerify(comp, expectedOutput: "123125125:123125125:123125125:123125125").VerifyDiagnostics();
12001
var
verifier = CompileAndVerify(comp, expectedOutput: "123123125:123123125").VerifyDiagnostics();
12198
var
verifier = CompileAndVerify(comp, expectedOutput: "123125125:123125125:123125125:123125125:123125125:123125125").VerifyDiagnostics();
12590
var
verifier = CompileAndVerify(comp, expectedOutput: "123125125:123125125:123125125:123125125").VerifyDiagnostics();
12908
var
verifier = CompileAndVerify(comp, expectedOutput: "123123125:123123125:123123125:123123125:123123125:123123125").VerifyDiagnostics();
13247
var
verifier = CompileAndVerify(comp, expectedOutput: "123124124:123124124").VerifyDiagnostics();
13353
var
verifier = CompileAndVerify(comp, expectedOutput: "123124124:123124124").VerifyDiagnostics();
13493
var
verifier = CompileAndVerify(comp, expectedOutput: "123123124").VerifyDiagnostics();
13601
var
verifier = CompileAndVerify(comp, expectedOutput: "123124124:123124124:123124124").VerifyDiagnostics();
13777
var
verifier = CompileAndVerify(comp, expectedOutput: "123124124:123124124").VerifyDiagnostics();
13962
var
verifier = CompileAndVerify(comp, expectedOutput: "123123124:123123124:123123124").VerifyDiagnostics();
14133
var
verifier = CompileAndVerify(comp, expectedOutput: "124126126:124126126").VerifyDiagnostics();
14292
var
verifier = CompileAndVerify(comp, expectedOutput: "124126126:124126126").VerifyDiagnostics();
14430
var
verifier = CompileAndVerify(comp, expectedOutput: "123123126").VerifyDiagnostics();
14547
var
verifier = CompileAndVerify(comp, expectedOutput: "123125125:123125125:123125125").VerifyDiagnostics();
14742
var
verifier = CompileAndVerify(comp, expectedOutput: "123125125:123125125").VerifyDiagnostics();
14907
var
verifier = CompileAndVerify(comp, expectedOutput: "123123125:123123125:123123125").VerifyDiagnostics();
15040
var
verifier = CompileAndVerify(comp, expectedOutput: "123123:123123").VerifyDiagnostics();
15142
var
verifier = CompileAndVerify(comp, expectedOutput: "123123:123123:123123").VerifyDiagnostics();
15268
var
verifier = CompileAndVerify(comp, expectedOutput: "124125127127:124125127127", verify: Verification.Skipped).VerifyDiagnostics();
15469
var
verifier = CompileAndVerify(comp, expectedOutput: "124125127127:124125127127").VerifyDiagnostics();
15644
var
verifier = CompileAndVerify(comp, expectedOutput: "123123123127").VerifyDiagnostics();
15783
var
verifier = CompileAndVerify(comp, expectedOutput: "124125127127:124125127127:124125127127").VerifyDiagnostics();
16032
var
verifier = CompileAndVerify(comp, expectedOutput: "124125127127:124125127127").VerifyDiagnostics();
16232
var
verifier = CompileAndVerify(comp, expectedOutput: "123123123127:123123123127:123123123127").VerifyDiagnostics();
16405
var
verifier = CompileAndVerify(comp, expectedOutput: "123123:123123").VerifyDiagnostics();
16534
var
verifier = CompileAndVerify(comp, expectedOutput: "123123123:123123123").VerifyDiagnostics();
16683
var
verifier = CompileAndVerify(comp, expectedOutput: "124126126:124126126", verify: Verification.Skipped).VerifyDiagnostics();
16872
var
verifier = CompileAndVerify(comp, expectedOutput: "124126126:124126126").VerifyDiagnostics();
17025
var
verifier = CompileAndVerify(comp, expectedOutput: "123123126").VerifyDiagnostics();
17158
var
verifier = CompileAndVerify(comp, expectedOutput: "124126126:124126126").VerifyDiagnostics();
17395
var
verifier = CompileAndVerify(comp, expectedOutput: "124126126:124126126").VerifyDiagnostics();
17589
var
verifier = CompileAndVerify(comp, expectedOutput: "123123126:123123126").VerifyDiagnostics();
17744
var
verifier = CompileAndVerify(comp, expectedOutput: "123123:123123").VerifyDiagnostics();
17858
var
verifier = CompileAndVerify(comp, expectedOutput: "123123:123123:123123").VerifyDiagnostics();
17979
var
verifier = CompileAndVerify(comp, expectedOutput: "124126126:124126126", verify: Verification.Skipped).VerifyDiagnostics();
18125
var
verifier = CompileAndVerify(comp, expectedOutput: "124126126:124126126").VerifyDiagnostics();
18271
var
verifier = CompileAndVerify(comp, expectedOutput: "123123126").VerifyDiagnostics();
18399
var
verifier = CompileAndVerify(comp, expectedOutput: "124126126:124126126").VerifyDiagnostics();
18569
var
verifier = CompileAndVerify(comp, expectedOutput: "124126126:124126126").VerifyDiagnostics();
18757
var
verifier = CompileAndVerify(comp, expectedOutput: "123123126:123123126").VerifyDiagnostics();
18890
var
verifier = CompileAndVerify(comp, expectedOutput: "123123", verify: Verification.Skipped).VerifyDiagnostics();
18981
var
verifier = CompileAndVerify(comp, expectedOutput: "123124", verify: Verification.Skipped).VerifyDiagnostics();
19065
var
verifier = CompileAndVerify(comp, expectedOutput: "123123").VerifyDiagnostics();
19176
var
verifier = CompileAndVerify(comp, expectedOutput: "123123:123123:123123").VerifyDiagnostics();
19300
var
verifier = CompileAndVerify(comp, expectedOutput: "123124:123124").VerifyDiagnostics();
19410
var
verifier = CompileAndVerify(comp, expectedOutput: "123123:123123:123123").VerifyDiagnostics();
19523
var
verifier = CompileAndVerify(comp, expectedOutput: "124126126").VerifyDiagnostics();
19616
var
verifier = CompileAndVerify(comp, expectedOutput: "124126126").VerifyDiagnostics();
19722
var
verifier = CompileAndVerify(comp, expectedOutput: "124126126", verify: Verification.Skipped).VerifyDiagnostics();
19811
var
verifier = CompileAndVerify(comp, expectedOutput: "125125:125125", verify: Verification.Skipped).VerifyDiagnostics();
19954
var
verifier = CompileAndVerify(comp, expectedOutput: "125125:125125").VerifyDiagnostics();
20069
var
verifier = CompileAndVerify(comp, expectedOutput: "123125").VerifyDiagnostics();
20181
var
verifier = CompileAndVerify(comp, expectedOutput: "125125:125125").VerifyDiagnostics();
20372
var
verifier = CompileAndVerify(comp, expectedOutput: "125125:125125").VerifyDiagnostics();
20535
var
verifier = CompileAndVerify(comp, expectedOutput: "123125:123125").VerifyDiagnostics();
20659
var
verifier = CompileAndVerify(comp, expectedOutput: "123:123").VerifyDiagnostics();
20754
var
verifier = CompileAndVerify(comp, expectedOutput: "123:123:123").VerifyDiagnostics();
20848
var
verifier = CompileAndVerify(comp, expectedOutput: "124124:124124", verify: Verification.Skipped).VerifyDiagnostics();
20951
var
verifier = CompileAndVerify(comp, expectedOutput: "124124:124124").VerifyDiagnostics();
21057
var
verifier = CompileAndVerify(comp, expectedOutput: "123124").VerifyDiagnostics();
21163
var
verifier = CompileAndVerify(comp, expectedOutput: "124124:124124").VerifyDiagnostics();
21290
var
verifier = CompileAndVerify(comp, expectedOutput: "124124:124124").VerifyDiagnostics();
21446
var
verifier = CompileAndVerify(comp, expectedOutput: "123124:123124").VerifyDiagnostics();
21544
var
verifier = CompileAndVerify(comp, expectedOutput: "123", verify: Verification.Skipped).VerifyDiagnostics();
21611
var
verifier = CompileAndVerify(comp, expectedOutput: "123", verify: Verification.Skipped).VerifyDiagnostics();
21678
var
verifier = CompileAndVerify(comp, expectedOutput: "123").VerifyDiagnostics();
21768
var
verifier = CompileAndVerify(comp, expectedOutput: "123:123:123").VerifyDiagnostics();
21863
var
verifier = CompileAndVerify(comp, expectedOutput: "123:123").VerifyDiagnostics();
21956
var
verifier = CompileAndVerify(comp, expectedOutput: "123:123:123").VerifyDiagnostics();
24143
private
CompilationVerifier
CompileAndVerifyAndValidate(CSharpCompilation comp, string expected, Action<ModuleSymbol> extraValidator = null, Verification verify = default)
24481
var
verifier = CompileAndVerifyAndValidate(comp, expected).VerifyDiagnostics();
24576
var
verifier = CompileAndVerifyAndValidate(comp, expected, validate).VerifyDiagnostics();
26660
var
verifier = CompileAndVerify(comp, symbolValidator: validate, sourceSymbolValidator: validate).VerifyDiagnostics();
29789
var
verifier = CompileAndVerify(comp, expectedOutput: "Cast SelectMany").VerifyDiagnostics();
30597
var
verifier = CompileAndVerify(comp, expectedOutput: "(1, 2)").VerifyDiagnostics();
32195
var
verifier = CompileAndVerify([src, CompilerLoweringPreserveAttributeDefinition]).VerifyDiagnostics();
Semantics\InlineArrayTests.cs (180)
2463
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111").VerifyDiagnostics();
2554
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
2591
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
2704
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
2742
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
2783
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
2825
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
2865
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111").VerifyDiagnostics();
2890
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
2915
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
3016
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
3042
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
3071
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
3101
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
3135
var
verifier = CompileAndVerify(comp, expectedOutput: "0 0 111 111", verify: Verification.Fails).VerifyDiagnostics();
3198
var
verifier = CompileAndVerify(comp, expectedOutput: "0 0 111 111", verify: Verification.Fails).VerifyDiagnostics();
3261
var
verifier = CompileAndVerify(comp, expectedOutput: "0 0 111 111", verify: Verification.Fails).VerifyDiagnostics();
3337
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics();
3561
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics();
3793
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics();
4018
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
4143
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
4272
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
4403
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
4529
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics();
4679
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(
5075
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics();
5310
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111").VerifyDiagnostics();
5528
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
5656
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111").VerifyDiagnostics();
5872
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
5989
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111").VerifyDiagnostics();
6072
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics();
6168
var
verifier = CompileAndVerify(comp, expectedOutput: "0 5 111", verify: Verification.Fails).VerifyDiagnostics();
6248
var
verifier = CompileAndVerify(comp, expectedOutput: "10 111", verify: Verification.Fails).VerifyDiagnostics();
6363
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
6402
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
6445
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
6488
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
6529
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics();
6554
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
6656
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
6682
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
6712
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
6742
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
6814
var
verifier = CompileAndVerify(comp, expectedOutput: "0 0", verify: Verification.Fails).VerifyDiagnostics();
6858
var
verifier = CompileAndVerify(comp, expectedOutput: "0 4 111", verify: Verification.Fails).VerifyDiagnostics();
6908
var
verifier = CompileAndVerify(comp, expectedOutput: "0 5 111", verify: Verification.Fails).VerifyDiagnostics();
6958
var
verifier = CompileAndVerify(comp, expectedOutput: "0 5 111", verify: Verification.Fails).VerifyDiagnostics();
7014
var
verifier = CompileAndVerify(comp, expectedOutput: "0 9 111", verify: Verification.Fails).VerifyDiagnostics();
7064
var
verifier = CompileAndVerify(comp, expectedOutput: "0 10 111", verify: Verification.Fails).VerifyDiagnostics();
7119
var
verifier = CompileAndVerify(comp, expectedOutput: "0 9 111", verify: Verification.Fails).VerifyDiagnostics();
7188
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics();
7258
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
7337
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics();
7474
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics();
7620
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics();
7789
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics();
7952
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
8169
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(
8319
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
8378
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
8431
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
8486
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
8549
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
8603
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
8813
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
8892
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
9060
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
9249
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
9296
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
9347
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
9437
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
9482
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
9600
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
9648
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
9700
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
9832
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
9917
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
10020
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
10067
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
10352
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
10397
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
10535
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
10609
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
10661
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
10753
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
10799
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
10880
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
10915
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
10954
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
11033
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
11067
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
11137
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
11183
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
11229
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
11279
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
11353
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
11479
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
12007
var
verifier = CompileAndVerify(comp, expectedOutput: "1 0 1 0").VerifyDiagnostics();
12204
var
verifier = CompileAndVerify(comp, verify: VerifyOnMonoOrCoreClr).VerifyDiagnostics();
12267
var
verifier = CompileAndVerify(comp, expectedOutput: "1 2").VerifyDiagnostics();
12334
var
verifier = CompileAndVerify(comp, expectedOutput: "1 0 2 1 0").VerifyDiagnostics();
12383
var
verifier = CompileAndVerify(comp, expectedOutput: "1").VerifyDiagnostics();
12797
var
verifier = CompileAndVerify(comp, expectedOutput: "1 0 1 0").VerifyDiagnostics();
12921
var
verifier = CompileAndVerify(comp, verify: VerifyOnMonoOrCoreClr).VerifyDiagnostics();
12975
var
verifier = CompileAndVerify(comp, expectedOutput: "1 2").VerifyDiagnostics();
13034
var
verifier = CompileAndVerify(comp, expectedOutput: "1 0 2 1 0").VerifyDiagnostics();
13087
var
verifier = CompileAndVerify(comp, expectedOutput: "1").VerifyDiagnostics(
13161
var
verifier = CompileAndVerify(comp, expectedOutput: "1").VerifyDiagnostics();
13217
var
verifier = CompileAndVerify(comp, expectedOutput: "0 1 0", verify: Verification.Fails).VerifyDiagnostics(
13276
var
verifier = CompileAndVerify(comp, verify: VerifyOnMonoOrCoreClr).VerifyDiagnostics(
13349
var
verifier = CompileAndVerify(comp, verify: VerifyOnMonoOrCoreClr).VerifyDiagnostics();
13389
var
verifier = CompileAndVerify(comp, verify: VerifyOnMonoOrCoreClr).VerifyDiagnostics();
13435
var
verifier = CompileAndVerify(comp).VerifyDiagnostics(
13531
var
verifier = CompileAndVerify(comp, expectedOutput: "1").VerifyDiagnostics();
13592
var
verifier = CompileAndVerify(comp, expectedOutput: "0 1 0").VerifyDiagnostics();
13660
var
verifier = CompileAndVerify(comp, expectedOutput: "1").VerifyDiagnostics();
13701
var
verifier = CompileAndVerify(comp, expectedOutput: "1").VerifyDiagnostics();
13755
var
verifier = CompileAndVerify(comp, expectedOutput: "0 2 0", verify: Verification.Fails).VerifyDiagnostics();
13813
var
verifier = CompileAndVerify(comp, expectedOutput: "0 2 0", verify: Verification.Fails).VerifyDiagnostics();
13871
var
verifier = CompileAndVerify(comp, expectedOutput: "0 2 0", verify: Verification.Fails).VerifyDiagnostics();
13924
var
verifier = CompileAndVerify(comp, expectedOutput: "0 2 0", verify: Verification.Fails).VerifyDiagnostics();
13975
var
verifier = CompileAndVerify(comp, expectedOutput: "0 2 0", verify: Verification.Fails).VerifyDiagnostics();
14026
var
verifier = CompileAndVerify(comp, expectedOutput: "0 2 0", verify: Verification.Fails).VerifyDiagnostics();
14643
var
verifier = CompileAndVerify(comp, verify: Verification.Fails,
14692
var
verifier = CompileAndVerify(comp, verify: Verification.Fails,
14741
var
verifier = CompileAndVerify(comp, verify: VerifyOnMonoOrCoreClr,
14789
var
verifier = CompileAndVerify(comp, verify: VerifyOnMonoOrCoreClr,
14836
var
verifier = CompileAndVerify(comp, verify: VerifyOnMonoOrCoreClr,
14880
var
verifier = CompileAndVerify(comp, verify: VerifyOnMonoOrCoreClr,
15124
var
verifier = CompileAndVerify(comp, expectedOutput: "-1 110").VerifyDiagnostics();
15170
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics();
15254
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
15391
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
15446
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
15507
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
15570
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
15624
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics();
15652
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics();
15678
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
15704
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
15900
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
15926
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
15955
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
15984
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
16019
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
16054
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
16091
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
16128
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
16189
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
16237
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
16324
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
16439
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
16677
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics();
17547
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics(
17665
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics(
17740
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics(
18547
var
verifier = CompileAndVerify(comp, expectedOutput: " 111 112 113 114 -111 -112 -113 -114").VerifyDiagnostics();
18645
var
verifier = CompileAndVerify(comp, expectedOutput: " 111 112 113 114 -111 -112 -113 -114").VerifyDiagnostics();
18718
var
verifier = CompileAndVerify(comp, expectedOutput: " 111 112 113 114").VerifyDiagnostics();
18872
var
verifier = CompileAndVerify(comp, expectedOutput: " 111 112 113 114 -111 -112 -113 -114").VerifyDiagnostics();
19007
var
verifier = CompileAndVerify(comp, expectedOutput: " 111 112 113 114").VerifyDiagnostics();
19206
var
verifier = CompileAndVerify(comp, expectedOutput: " 111 112 113 114").VerifyDiagnostics();
19500
var
verifier = CompileAndVerify(comp, expectedOutput: null, verify: Verification.FailsILVerify with
20053
var
verifier = CompileAndVerify(comp, expectedOutput: "-1 0 1 2 3", verify: Verification.Fails).VerifyDiagnostics();
20241
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyDiagnostics();
20577
var
verifier = CompileAndVerify(comp, expectedOutput: "-1 0 1 2 3", verify: Verification.Fails).VerifyDiagnostics();
20763
var
verifier = CompileAndVerify(comp, expectedOutput: " 0 1 2 3", verify: Verification.Fails).VerifyDiagnostics();
21028
var
verifier = CompileAndVerify(comp, expectedOutput: "-1 111 112 113 114").VerifyDiagnostics();
21524
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyDiagnostics();
21675
var
verifier = CompileAndVerify(comp, expectedOutput: "-1 0 1 2 3", verify: Verification.Fails).VerifyDiagnostics();
21792
var
verifier = CompileAndVerify(comp, expectedOutput: " 0 1 2 3", verify: Verification.Fails).VerifyDiagnostics();
21994
var
verifier = CompileAndVerify(comp, expectedOutput: "-1 0 1 2 3", verify: Verification.Fails).VerifyDiagnostics();
22111
var
verifier = CompileAndVerify(comp, expectedOutput: " 0 1 2 3", verify: Verification.Fails).VerifyDiagnostics();
22305
var
verifier = CompileAndVerify(comp, expectedOutput: "-1 111 112 113 114").VerifyDiagnostics();
22789
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyDiagnostics();
23358
var
verifier = CompileAndVerify(comp, expectedOutput: "123124").VerifyDiagnostics();
23402
var
verifier = CompileAndVerify(comp, expectedOutput: "123124").VerifyDiagnostics();
23477
var
verifier = CompileAndVerify(src, expectedOutput: ExecutionConditionUtil.IsDesktop ? null : "042",
Semantics\LockTests.cs (34)
76
var
verifier = CompileAndVerify([source, LockTypeDefinition], expectedOutput: "1E2D31E2D3",
132
var
verifier = CompileAndVerify(source,
843
var
verifier = CompileAndVerify(source, expectedOutput: "ELD", verify: Verification.FailsILVerify);
1052
var
verifier = CompileAndVerify(source, expectedOutput: "L", verify: Verification.FailsILVerify);
1405
var
verifier = CompileAndVerify(source, expectedOutput: "L", verify: Verification.FailsILVerify);
1473
var
verifier = CompileAndVerify(source, expectedOutput: "L", verify: Verification.FailsILVerify);
1521
var
verifier = CompileAndVerify(source, [lib], expectedOutput: "ELD");
1613
var
verifier = CompileAndVerify(source, [lib1, lib2], expectedOutput: "E1 L1 D1 E2 L2 D2");
1655
var
verifier = CompileAndVerify([source, LockTypeDefinition], verify: Verification.FailsILVerify,
1669
var
verifier = CompileAndVerify([source, LockTypeDefinition], verify: Verification.FailsILVerify,
1682
var
verifier = CompileAndVerify([source, LockTypeDefinition], verify: Verification.FailsILVerify,
1712
var
verifier = CompileAndVerify([source, LockTypeDefinition], verify: Verification.FailsILVerify,
1743
var
verifier = CompileAndVerify([source, LockTypeDefinition], verify: Verification.FailsILVerify,
1775
var
verifier = CompileAndVerify([source, LockTypeDefinition], verify: Verification.FailsILVerify,
1893
var
verifier = CompileAndVerify([source, LockTypeDefinition], verify: Verification.FailsILVerify,
1942
var
verifier = CompileAndVerify([source, LockTypeDefinition], options: TestOptions.DebugExe,
2082
var
verifier = CompileAndVerify([source, LockTypeDefinition], options: TestOptions.DebugExe,
2391
var
verifier = CompileAndVerify([source, LockTypeDefinition], options: TestOptions.DebugExe,
2611
var
verifier = CompileAndVerify([source, LockTypeDefinition], options: TestOptions.DebugExe,
2750
var
verifier = CompileAndVerify([source, LockTypeDefinition], options: TestOptions.DebugExe,
3055
var
verifier = CompileAndVerify([source, LockTypeDefinition], options: TestOptions.DebugExe,
3194
var
verifier = CompileAndVerify([source, LockTypeDefinition], options: TestOptions.DebugExe,
3543
var
verifier = CompileAndVerify([source, LockTypeDefinition], options: TestOptions.ReleaseExe,
3582
var
verifier = CompileAndVerify([source, LockTypeDefinition], options: TestOptions.ReleaseExe,
3656
var
verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: expectedOutput);
3697
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.FailsILVerify);
4089
var
verifier = CompileAndVerify([source, LockTypeDefinition], verify: Verification.FailsILVerify,
4134
var
verifier = CompileAndVerify([source, LockTypeDefinition], verify: Verification.FailsILVerify,
4152
var
verifier = CompileAndVerify([source, LockTypeDefinition], verify: Verification.FailsILVerify, expectedOutput: """
4212
var
verifier = CompileAndVerify(source, verify: Verification.FailsILVerify,
4322
var
verifier = CompileAndVerify(source, verify: Verification.FailsILVerify,
4442
var
verifier = CompileAndVerify([source, LockTypeDefinition], verify: Verification.FailsILVerify,
4505
var
verifier = CompileAndVerify([source, LockTypeDefinition], verify: Verification.FailsILVerify,
4559
var
verifier = CompileAndVerify([source, LockTypeDefinition], verify: Verification.FailsILVerify,
Semantics\OutVarTests.cs (2)
32972
var
comp = CompileAndVerify(source, expectedOutput: "MMM");
33035
var
comp = CompileAndVerify(source, expectedOutput: "MMM");
Semantics\ParamsCollectionTests.cs (11)
384
var
verifier = CompileAndVerify(
3017
var
verifier = CompileAndVerify(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false, includeOneTimeHelpers: false) }, targetFramework: TargetFramework.Net80,
3184
var
verifier = CompileAndVerify(
3309
var
verifier = CompileAndVerify(
3533
var
verifier = CompileAndVerify(
3850
var
verifier = CompileAndVerify(
4206
var
verifier = CompileAndVerify(comp2, symbolValidator: checkParamsInDelegate1).VerifyDiagnostics();
4621
var
verifier = CompileAndVerify(
4810
var
verifier = CompileAndVerify(
16495
var
verifier = CompileAndVerify(
16806
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped).VerifyDiagnostics(
Semantics\PatternMatchingTests.cs (46)
121
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
189
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
259
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
300
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
335
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
371
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
407
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
445
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
519
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
579
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
3415
var
comp = CompileAndVerify(compilation, expectedOutput: "whatever");
3718
var
verifier = CompileAndVerify(compilation);
3777
var
verifier = CompileAndVerify(compilation);
3847
var
comp = CompileAndVerify(compilation, expectedOutput:
3880
var
comp = CompileAndVerify(compilation, expectedOutput:
3913
var
comp = CompileAndVerify(compilation, expectedOutput:
3962
var
comp = CompileAndVerify(compilation, expectedOutput:
3992
var
comp = CompileAndVerify(compilation, expectedOutput:
4029
var
comp = CompileAndVerify(compilation, expectedOutput:
4093
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
4140
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
4171
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
4222
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
4538
var
comp = CompileAndVerify(compilation, expectedOutput: @"False
4565
var
comp = CompileAndVerify(compilation, expectedOutput: "True");
4595
var
comp = CompileAndVerify(compilation, expectedOutput: "True");
5102
var
comp = CompileAndVerify(compilation, expectedOutput: @"TBase
5224
var
comp = CompileAndVerify(compilation, expectedOutput: @"1
5300
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
5599
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
5778
var
comp = CompileAndVerify(compilation, expectedOutput: "roslyn");
6075
var
comp = CompileAndVerify(compilation, expectedOutput: @"TnT");
6108
var
comp = CompileAndVerify(compilation, expectedOutput: @"TnT");
6136
var
comp = CompileAndVerify(compilation, expectedOutput: @"FalseTrueFalseFalse");
6227
var
comp = CompileAndVerify(compilation, expectedOutput: "ok", verify: Verification.FailsILVerify);
6480
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
6662
var
comp = CompileAndVerify(compilation, expectedOutput:
6714
var
comp = CompileAndVerify(compilation, expectedOutput:
8614
var
verifier = CompileAndVerify(comp, expectedOutput:
8656
var
verifier = CompileAndVerify(comp, expectedOutput:
10217
var
verifier = CompileAndVerify(comp, expectedOutput:
10258
var
verifier = CompileAndVerify(comp, expectedOutput:
11009
var
verifier = CompileAndVerify(comp, expectedOutput: "(3, 6)");
11183
var
verifier = CompileAndVerify(comp, expectedOutput:
11591
var
verifier = CompileAndVerify(comp, expectedOutput: "True");
11944
var
verifier = CompileAndVerify(comp, expectedOutput: "True");
Semantics\PatternMatchingTests_ListPatterns.cs (18)
73
var
verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
281
var
verifier = CompileAndVerify(new[] { source, TestSources.Index, TestSources.Range }, parseOptions: TestOptions.RegularWithListPatterns,
539
var
verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
727
var
verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2336
var
verifier = CompileAndVerify(compilation, expectedOutput: "True");
2453
var
verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2955
var
verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
5538
var
verifier = CompileAndVerify(compilation, expectedOutput: "(item value, rest value)");
5626
var
verifier = CompileAndVerify(compilation, expectedOutput: "(item value, rest value)");
7414
var
verifier = CompileAndVerify(comp);
7644
var
verifier = CompileAndVerify(new[] { source, TestSources.Index }, options: TestOptions.DebugDll);
7741
var
verifier = CompileAndVerify(new[] { source, TestSources.Index });
7893
var
verifier = CompileAndVerify(compilation, expectedOutput: "(2, 3)");
8059
var
verifier = CompileAndVerify(compilation, verify: Verification.FailsPEVerify);
8130
var
verifier = CompileAndVerify(compilation, expectedOutput: "1 2 3", verify: Verification.FailsPEVerify);
8347
var
verifier = CompileAndVerify(comp, expectedOutput: "(4, 2, 4, 2)");
8460
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
8539
var
verifier = CompileAndVerify(comp, expectedOutput: "(42, 43)");
Semantics\PatternMatchingTests2.cs (18)
36
var
comp = CompileAndVerify(compilation, expectedOutput: @"1");
78
var
comp = CompileAndVerify(compilation, expectedOutput: "");
124
var
comp = CompileAndVerify(compilation, expectedOutput: "");
197
var
comp = CompileAndVerify(compilation, expectedOutput: "");
239
var
comp = CompileAndVerify(compilation, expectedOutput: "");
330
var
comp = CompileAndVerify(compilation, expectedOutput: "True");
821
var
comp = CompileAndVerify(compilation, expectedOutput: @"");
922
var
comp = CompileAndVerify(compilation, expectedOutput: @"0123");
1018
var
comp = CompileAndVerify(compilation, expectedOutput: @"0123");
1067
var
comp = CompileAndVerify(compilation, expectedOutput: @"9
1130
var
comp = CompileAndVerify(compilation, expectedOutput: @"12345678");
1449
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1537
var
comp = CompileAndVerify(compilation, expectedOutput: @"Fox Cat");
1614
var
comp = CompileAndVerify(compilation, expectedOutput: @"111");
1783
var
comp = CompileAndVerify(compilation, expectedOutput: @"111");
1819
var
comp = CompileAndVerify(compilation, expectedOutput: @"111");
3178
var
verifier = CompileAndVerify(source, expectedOutput: @"
3334
var
verifier = CompileAndVerify(source, expectedOutput: @"
Semantics\PatternMatchingTests3.cs (53)
423
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
474
var
comp = CompileAndVerify(compilation, verify: Verification.FailsILVerify, expectedOutput: expectedOutput);
596
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
639
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
682
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
725
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
749
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
772
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
815
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
857
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1039
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1092
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1145
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1198
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1699
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2096
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2168
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2240
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2289
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2338
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2369
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2427
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2544
var
verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2582
var
verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2653
var
verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2817
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2876
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
3143
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
3281
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
3369
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
3763
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
4620
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
4786
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
4972
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
5049
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
5256
var
compVerifier = CompileAndVerify(compilation, expectedOutput: "Done");
5325
var
compVerifier = CompileAndVerify(compilation, expectedOutput: "Done");
5545
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
6017
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
6038
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
6217
var
verifier = CompileAndVerify(source, expectedOutput: "42");
6260
var
verifier = CompileAndVerify(source, expectedOutput: "42");
6302
var
verifier = CompileAndVerify(source, expectedOutput: "42");
6341
var
verifier = CompileAndVerify(source, expectedOutput: "42");
6385
var
verifier = CompileAndVerify(source, expectedOutput:
6432
var
verifier = CompileAndVerify(source, expectedOutput: "42");
6497
var
verifier = CompileAndVerify(source, expectedOutput: "");
6530
var
verifier = CompileAndVerify(source, expectedOutput:
6581
var
verifier = CompileAndVerify(source, expectedOutput:
6637
var
verifier = CompileAndVerify(source, expectedOutput:
6770
var
verifier = CompileAndVerify(source, expectedOutput: "22");
6828
var
verifier = CompileAndVerify(comp, expectedOutput: "");
7642
var
compVerifier = CompileAndVerify(compilation, expectedOutput: "10");
Semantics\PatternMatchingTests4.cs (31)
221
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
314
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
345
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
376
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
408
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
439
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
471
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
505
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
539
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
627
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
661
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
728
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
766
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
801
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
837
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
948
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1061
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1096
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1162
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1227
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1278
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1318
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
3360
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput, verify: Verification.Skipped);
3387
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput, verify: Verification.Skipped);
3413
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput, verify: Verification.Skipped);
4319
var
verifier = CompileAndVerify(comp, expectedOutput: "NaN");
4401
var
verifier = CompileAndVerify(comp, expectedOutput: "NaN");
4483
var
verifier = CompileAndVerify(comp, expectedOutput: "NaN");
4565
var
verifier = CompileAndVerify(comp, expectedOutput: "NaN");
4647
var
verifier = CompileAndVerify(comp, expectedOutput: "NaN");
4731
var
verifier = CompileAndVerify(comp, expectedOutput: "NaN");
Semantics\PatternMatchingTests5.cs (6)
83
var
verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
240
var
verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1345
var
verifier = CompileAndVerify(compilation);
3178
var
compilation = CompileAndVerify(source, expectedOutput: "True");
3227
var
compilation = CompileAndVerify(source, expectedOutput: "True");
3294
var
compilation = CompileAndVerify(source, expectedOutput: "True");
Semantics\PatternSwitchTests.cs (28)
405
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1085
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1130
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1237
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1428
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1486
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1562
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1973
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2014
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2112
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2158
var
comp = CompileAndVerify(compilation, expectedOutput:
2220
var
comp = CompileAndVerify(compilation, expectedOutput:
2276
var
comp = CompileAndVerify(compilation, expectedOutput:
2334
var
comp = CompileAndVerify(compilation, expectedOutput:
2383
var
comp = CompileAndVerify(compilation, expectedOutput:
2447
var
comp = CompileAndVerify(compilation, expectedOutput:
2512
var
comp = CompileAndVerify(compilation, expectedOutput:
2572
var
comp = CompileAndVerify(compilation, expectedOutput:
2628
var
comp = CompileAndVerify(compilation, expectedOutput:
2669
var
comp = CompileAndVerify(compilation, expectedOutput:
2708
var
comp = CompileAndVerify(compilation, expectedOutput:
2750
var
comp = CompileAndVerify(compilation, expectedOutput:
2812
var
comp = CompileAndVerify(compilation, expectedOutput: @"pass");
2840
var
comp = CompileAndVerify(compilation, expectedOutput: @"pass");
2868
var
comp = CompileAndVerify(compilation, expectedOutput: @"1");
2959
var
comp = CompileAndVerify(compilation, expectedOutput: @"pass");
3178
var
comp = CompileAndVerify(compilation, expectedOutput: "Main");
3208
var
comp = CompileAndVerify(compilation);
Semantics\PrimaryConstructorTests.cs (41)
429
var
verifier = CompileAndVerify(comp).VerifyDiagnostics(
622
var
verifier = CompileAndVerify(comp,
987
var
verifier = CompileAndVerify(comp, expectedOutput: "(2, 2)");
1047
var
verifier = CompileAndVerify(src, expectedOutput: @"
1286
var
verifier = CompileAndVerify(src, expectedOutput: @"
1943
var
verifier = CompileAndVerify(src, expectedOutput: @"
2005
var
verifier = CompileAndVerify(src, expectedOutput: @"1").VerifyDiagnostics();
2635
var
verifier = CompileAndVerify(src, expectedOutput: @"2").VerifyDiagnostics();
2746
var
verifier = CompileAndVerify(src, expectedOutput: @"2").VerifyDiagnostics();
2793
var
verifier = CompileAndVerify(src, expectedOutput: @"
3043
var
comp = CompileAndVerify(source, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator);
3172
var
comp = CompileAndVerify(source, expectedOutput: "Main");
7042
var
verifier = CompileAndVerify(source, expectedOutput:
7091
var
verifier = CompileAndVerify(source, expectedOutput:
8697
var
verifier = CompileAndVerify(src, expectedOutput: @"TrueFalse").VerifyDiagnostics(
8769
var
verifier = CompileAndVerify(comp, expectedOutput: @"122123124125125", verify: Verification.Fails).VerifyDiagnostics(
9175
var
verifier = CompileAndVerify(comp, expectedOutput: @"123124125").VerifyDiagnostics();
9340
var
verifier = CompileAndVerify(comp, expectedOutput: @"123124").VerifyDiagnostics();
11780
var
verifier = CompileAndVerify(comp, expectedOutput: methodName);
12245
var
verifier = CompileAndVerify(comp, expectedOutput: @"123124125126-1", verify: Verification.Fails).VerifyDiagnostics();
12318
var
verifier = CompileAndVerify(comp, expectedOutput: @"123124125126-1-2-3", verify: Verification.Fails).VerifyDiagnostics();
12395
var
verifier = CompileAndVerify(comp, expectedOutput: @"123123124-1-2-3", verify: Verification.Passes).VerifyDiagnostics(
14094
var
verifier = CompileAndVerify(source, expectedOutput: " 0 1 2 3 2 3", options: TestOptions.DebugExe);
14415
var
verifier = CompileAndVerify(comp, expectedOutput: @"(2, 1)").VerifyDiagnostics();
15835
var
verifier = CompileAndVerify(comp, expectedOutput: @"122123124125125", verify: Verification.Fails).VerifyDiagnostics(
16407
var
verifier1 = CompileAndVerify(comp1, expectedOutput: "123");
16589
var
verifier2 = CompileAndVerify(comp2, expectedOutput: "123");
16821
var
verifier1 = CompileAndVerify(comp1, expectedOutput: "9123");
17081
var
verifier2 = CompileAndVerify(comp2, expectedOutput: "9123");
17372
var
verifier1 = CompileAndVerify(comp1, expectedOutput: "123");
17430
var
verifier2 = CompileAndVerify(comp2, expectedOutput: "123");
17526
var
verifier1 = CompileAndVerify(comp1, expectedOutput: "9123");
17615
var
verifier2 = CompileAndVerify(comp2, expectedOutput: "9123");
17746
var
verifier1 = CompileAndVerify(comp1, expectedOutput: "123");
17955
var
verifier2 = CompileAndVerify(comp2, expectedOutput: "123");
18217
var
verifier1 = CompileAndVerify(comp1, expectedOutput: "9123");
18514
var
verifier2 = CompileAndVerify(comp2, expectedOutput: "9123");
18859
var
verifier1 = CompileAndVerify(comp1, expectedOutput: "124");
19029
var
verifier2 = CompileAndVerify(comp2, expectedOutput: "124");
19252
var
verifier1 = CompileAndVerify(comp1, expectedOutput: "125");
19326
var
verifier2 = CompileAndVerify(comp2, expectedOutput: "125");
Semantics\RecordTests.cs (117)
27
private
CompilationVerifier
CompileAndVerify(
866
var
verifier = CompileAndVerify(src, expectedOutput: @"
1453
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN", verify: Verification.Skipped /* pointers */);
1613
var
verifier = CompileAndVerify(src, expectedOutput: "True");
1664
var
verifier = CompileAndVerify(src, expectedOutput: "True", parseOptions: TestOptions.Regular10);
1744
var
verifier = CompileAndVerify(src, expectedOutput: "12");
2071
var
verifier = CompileAndVerify(src, expectedOutput: @"0
2110
var
verifier = CompileAndVerify(src, expectedOutput: @"0 1
2150
var
verifier = CompileAndVerify(src, expectedOutput: @"0 1
2434
var
verifier = CompileAndVerify(src, expectedOutput: "2").VerifyDiagnostics();
2481
var
verifier = CompileAndVerify(
4978
var
v = CompileAndVerify(comp, expectedOutput: "C1 { }");
5053
var
v = CompileAndVerify(comp, expectedOutput: "C1 { }");
5130
var
v = CompileAndVerify(comp, expectedOutput: "C1 { }");
5515
var
v = CompileAndVerify(comp, expectedOutput: "C1 { field = 42 }");
5570
var
v = CompileAndVerify(comp, expectedOutput: "C1 { field = 42 }");
5609
var
v = CompileAndVerify(comp, expectedOutput: "C1 { field = hello }");
5650
var
v = CompileAndVerify(comp, expectedOutput: "C1 { field = hello } C1 { field = 42 }", verify: Verification.Skipped /* init-only */);
5732
var
v = CompileAndVerify(comp, expectedOutput: "C1 { field1 = hi, field2 = }");
5786
var
v = CompileAndVerify(comp, expectedOutput: "C1 { Property = 42 }", verify: Verification.Skipped /* init-only */);
5850
var
v = CompileAndVerify(comp, expectedOutput: "C1 { A1 = 42, A2 = 100, B1 = 43, B2 = 101 }", verify: Verification.Skipped /* init-only */);
7702
var
verifier = CompileAndVerify(source, expectedOutput: @"1
7744
var
verifier = CompileAndVerify(source, expectedOutput: @"1
7784
var
verifier = CompileAndVerify(source, expectedOutput: @"1
7818
var
verifier = CompileAndVerify(source, expectedOutput: @"1
7852
var
verifier = CompileAndVerify(source, expectedOutput: @"1
7887
var
verifier = CompileAndVerify(source, expectedOutput: @"1
8121
var
verifier = CompileAndVerify(src, expectedOutput: @"
8298
var
verifier = CompileAndVerify(src, expectedOutput: "11").VerifyDiagnostics();
8344
var
verifier = CompileAndVerify(src, expectedOutput: @"
8396
var
verifier = CompileAndVerify(src, expectedOutput: @"
8478
var
verifier = CompileAndVerify(src, expectedOutput: @"
9568
var
verifier = CompileAndVerify(src, expectedOutput: @"
9599
var
verifier = CompileAndVerify(@"
9648
var
verifier = CompileAndVerify(src, expectedOutput: @"
10650
var
verifier = CompileAndVerify(comp, expectedOutput: "(, )").VerifyDiagnostics(
11402
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput:
11616
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput:
11852
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput:
12656
var
verifierA = CompileAndVerify(compA, verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics();
12696
var
verifierB = CompileAndVerify(compB, expectedOutput: "(1, 2, 3, 4) (1, 2, 3, 4) (10, 2, 30, 4)", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics();
12748
var
verifier = CompileAndVerify(comp, expectedOutput: "(1, 2, 3, 4) (10, 20, 30, 40)", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics();
12805
var
verifier = CompileAndVerify(comp, verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics();
12837
var
verifier = CompileAndVerify(comp, verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics(
12892
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
12964
var
verifier = CompileAndVerify(comp, expectedOutput: "(2, 0)").VerifyDiagnostics(
13007
var
verifier = CompileAndVerify(comp, expectedOutput: "(2, 100) RAN (0, 0)").VerifyDiagnostics(
13065
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics();
13120
var
verifier = CompileAndVerify(comp, expectedOutput: "1 RAN 2", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics();
13242
var
verifier = CompileAndVerify(comp, expectedOutput: "(1, 2, 42) RAN (10, 20, 42)", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics();
13282
var
verifier = CompileAndVerify(comp, expectedOutput: "(1, 2, 42) (10, 20, 42)", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics();
13562
var
verifier = CompileAndVerify(comp, expectedOutput: "(1, 2, 3, 4, 100, 200)", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics();
14160
var
verifier = CompileAndVerify(comp2, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "False" : null, verify: Verification.FailsPEVerify);
14205
var
verifier = CompileAndVerify(source, expectedOutput: "12");
14263
var
verifier = CompileAndVerify(source, expectedOutput: "1");
14300
var
verifier = CompileAndVerify(source, expectedOutput: "123");
14361
var
verifier = CompileAndVerify(source, expectedOutput: "32");
14481
var
verifier = CompileAndVerify(source, expectedOutput: "02");
14695
var
verifier = CompileAndVerify(source, expectedOutput: "1");
14773
var
verifier = CompileAndVerify(source, expectedOutput: "0101");
14822
var
verifier = CompileAndVerify(source, expectedOutput: "01201");
14871
var
verifier = CompileAndVerify(source, expectedOutput: "0101");
14955
var
verifier = CompileAndVerify(source, expectedOutput: "0123456");
15177
var
verifier = CompileAndVerify(source, expectedOutput: "12");
15212
var
verifier = CompileAndVerify(source, expectedOutput: "12");
15244
var
verifier = CompileAndVerify(source, expectedOutput: "12");
15347
var
verifier = CompileAndVerify(source, expectedOutput: "12");
15387
var
verifier = CompileAndVerify(source, expectedOutput: "123");
15464
var
verifier = CompileAndVerify(source, expectedOutput: "1");
15543
var
verifier = CompileAndVerify(source, expectedOutput: "12");
15579
var
verifier = CompileAndVerify(source, expectedOutput: "12");
15724
var
verifier = CompileAndVerify(source, expectedOutput: "1");
15758
var
verifier = CompileAndVerify(source, expectedOutput: "2");
19126
var
verifier = CompileAndVerify(comp, expectedOutput: modifiers == "abstract " ? null :
19199
var
verifier = CompileAndVerify(comp, expectedOutput: modifiers == "abstract " ? null :
20424
var
verifier = CompileAndVerify(source, expectedOutput:
20529
var
verifier = CompileAndVerify(source, expectedOutput:
20957
var
verifier = CompileAndVerify(src2,
21127
var
verifier = CompileAndVerify(RuntimeUtilities.IsCoreClrRuntime ? src2 : new[] { src2, IsExternalInitTypeDefinition },
21217
var
verifier = CompileAndVerify(src, expectedOutput: @"
21464
var
verifier = CompileAndVerify(src, expectedOutput: @"
22152
var
verifier = CompileAndVerify(src, expectedOutput: @"
22221
var
verifier = CompileAndVerify(src, expectedOutput: @"1").VerifyDiagnostics();
22639
var
verifier = CompileAndVerify(comp, expectedOutput:
22708
var
verifier = CompileAndVerify(source, expectedOutput:
22799
var
verifier = CompileAndVerify(comp, expectedOutput:
22912
var
verifier = CompileAndVerify(comp, expectedOutput:
23025
var
verifier = CompileAndVerify(comp, expectedOutput:
23125
var
verifier = CompileAndVerify(comp, expectedOutput:
23312
var
verifier = CompileAndVerify(source, expectedOutput:
23480
var
verifier = CompileAndVerify(comp, expectedOutput:
23937
var
verifier = CompileAndVerify(comp, expectedOutput:
24741
var
verifier = CompileAndVerify(src, expectedOutput: @"2").VerifyDiagnostics();
24845
var
verifier = CompileAndVerify(src, expectedOutput: @"2").VerifyDiagnostics();
24892
var
verifier = CompileAndVerify(src, expectedOutput: @"
25072
var
verifier = CompileAndVerify(comp, expectedOutput: "42", verify: Verification.Skipped /* init-only */);
25109
var
verifier = CompileAndVerify(comp, expectedOutput: "0", verify: Verification.Skipped /* init-only */);
25139
var
verifier = CompileAndVerify(comp, expectedOutput: "42", verify: Verification.Skipped /* init-only */);
25201
var
comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
25261
var
comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
25338
var
comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
25395
var
comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
25470
var
comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
25554
var
comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
25624
var
comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
25692
var
comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, expectedOutput: "Main",
27821
var
verifier = CompileAndVerify(src, expectedOutput: "True");
27874
var
verifier = CompileAndVerify(src, expectedOutput: "True");
28130
var
verifier = CompileAndVerify(comp);
29355
var
verifier = CompileAndVerify(comp, expectedOutput: "42 - 42");
29387
var
verifier = CompileAndVerify(comp, expectedOutput: "43 - 43");
29422
var
verifier = CompileAndVerify(comp, expectedOutput: "42 - 42", verify: Verification.Skipped /* init-only */);
29480
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
29518
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
29552
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
29894
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
29931
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (29)
2955
var
verifier = CompileAndVerify(comp2, expectedOutput: @"
3077
var
verifier = CompileAndVerify(comp2, expectedOutput: expectedOutput).VerifyDiagnostics();
3395
var
verifier = CompileAndVerify(comp2, expectedOutput: @"
3599
var
verifier = CompileAndVerify(comp2, expectedOutput: @"
3936
var
verifier = CompileAndVerify(comp2, expectedOutput: @"
4165
var
verifier = CompileAndVerify(comp2, expectedOutput: expectedOutput).VerifyDiagnostics();
4464
var
verifier = CompileAndVerify(comp2, expectedOutput: @"
4712
var
verifier = CompileAndVerify(comp2, expectedOutput: @"[GetA][Get0][operator]1").VerifyDiagnostics();
7732
var
verifier = CompileAndVerify(comp, expectedOutput: "++--0").VerifyDiagnostics();
11795
var
verifier = CompileAndVerify(comp2, expectedOutput: @"
11849
var
verifier = CompileAndVerify(comp2, expectedOutput: @"
11973
var
verifier = CompileAndVerify(comp2, expectedOutput: expectedOutput).VerifyDiagnostics();
12359
var
verifier = CompileAndVerify(comp2, expectedOutput: expectedOutput).VerifyDiagnostics();
12714
var
verifier = CompileAndVerify(comp2, expectedOutput: expectedOutput).VerifyDiagnostics();
12973
var
verifier = CompileAndVerify(comp2, expectedOutput: expectedOutput).VerifyDiagnostics();
13278
var
verifier = CompileAndVerify(comp2, expectedOutput: expectedOutput).VerifyDiagnostics();
13581
var
verifier = CompileAndVerify(comp2, expectedOutput: expectedOutput).VerifyDiagnostics();
13798
var
verifier = CompileAndVerify(comp2, expectedOutput: expectedOutput).VerifyDiagnostics();
14211
var
verifier = CompileAndVerify(comp2, expectedOutput: expectedOutput).VerifyDiagnostics();
14622
var
verifier = CompileAndVerify(comp2, expectedOutput: expectedOutput).VerifyDiagnostics();
14924
var
verifier = CompileAndVerify(comp2, expectedOutput: expectedOutput).VerifyDiagnostics();
15274
var
verifier = CompileAndVerify(comp2, expectedOutput: expectedOutput).VerifyDiagnostics();
16034
var
verifier = CompileAndVerify(comp2, expectedOutput: expectedOutput).VerifyDiagnostics();
19916
var
verifier = CompileAndVerify(comp, expectedOutput: "+=-=2").VerifyDiagnostics();
20045
var
verifier = CompileAndVerify(comp, expectedOutput: "+=3+=55null").VerifyDiagnostics();
20089
var
verifier = CompileAndVerify(comp, expectedOutput: "+=3+=55null").VerifyDiagnostics();
20153
var
verifier = CompileAndVerify(comp, expectedOutput: "+=3+=3").VerifyDiagnostics();
20236
var
verifier = CompileAndVerify(comp, expectedOutput: "+=3+=55null").VerifyDiagnostics();
20298
var
verifier = CompileAndVerify(comp, expectedOutput: "+=3+=55nullnull").VerifyDiagnostics();
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
EndToEndTests.cs (1)
682
var
verifier = CompileAndVerify(files.ToArrayAndFree(), parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "global"), expectedOutput: makeExpectedOutput());
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IUsingStatement.cs (1)
1761
var
verifier = CompileAndVerify(compilation);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (905)
Semantics\AccessCheckTests.cs (5)
1051
var
assembly1Verifier = CompileAndVerify(assembly1Compilation);
1087
var
compilationVerifier = CompileAndVerify(compilation1);
1160
var
compilationVerifier = CompileAndVerify(compilation1);
1197
var
compilationVerifier = CompileAndVerify(compilationA);
1239
var
compilationVerifier = CompileAndVerify(compilationA);
Semantics\AmbiguousOverrideTests.cs (1)
1359
var
verifier = CompileAndVerify(csharp, new[] { reference }, options: TestOptions.ReleaseExe, expectedOutput: @"
Semantics\AnonymousFunctionTests.cs (5)
22
internal
CompilationVerifier
VerifyInPreview(CSharpTestSource source, string expectedOutput, Action<ModuleSymbol>? symbolValidator = null, params DiagnosticDescription[] expected)
38
var
verifier = CompileAndVerify(
654
var
verifier = VerifyInPreview(
1187
var
verifier = CompileAndVerify(
1272
var
verifier = VerifyInPreview(source, expectedOutput: "1");
Semantics\ArglistTests.cs (7)
193
var
verifier = CompileAndVerify(source: text, expectedOutput: "System.Int32", verify: Verification.FailsILVerify);
361
var
verifier = CompileAndVerify(source: text, expectedOutput: "System.String", verify: Verification.FailsILVerify);
411
var
verifier = CompileAndVerify(source: text, expectedOutput: "");
482
var
verifier = CompileAndVerify(source: text, expectedOutput: expectedOutput);
675
var
verifier = CompileAndVerify(source: text, expectedOutput: "1123", verify: Verification.FailsILVerify);
792
var
verifier = CompileAndVerify(source: text, expectedOutput: @"42
905
var
verifier = CompileAndVerify(source: text, expectedOutput: "4242", verify: Verification.FailsILVerify);
Semantics\BindingAsyncTasklikeMoreTests.cs (5)
107
var
verifier = CompileAndVerify(compilation, expectedOutput: "3");
432
var
verifier = CompileAndVerify(compilation);
513
var
verifier = CompileAndVerify(compilation);
592
var
verifier = CompileAndVerify(compilation);
682
var
verifier = CompileAndVerify(
Semantics\BindingAwaitTests.cs (2)
1897
var
verifier = CompileAndVerify(compilation);
2840
var
compiled = CompileAndVerify(comp, expectedOutput: "dynamic42", verify: Verification.FailsPEVerify);
Semantics\ConditionalOperatorTests.cs (9)
272
var
verifier = CompileAndVerify(source, expectedOutput: @"B
388
var
verifier = CompileAndVerify(source, expectedOutput: @"BDBD");
547
var
verifier = CompileAndVerify(source, expectedOutput: @"BDBD");
646
var
verifier = CompileAndVerify(source, expectedOutput: @"BDBD");
711
var
verifier = CompileAndVerify(
783
var
verifier = CompileAndVerify(new string[] { source }, expectedOutput: "1");
848
var
verifier = CompileAndVerify(new string[] { source }, expectedOutput: "1");
924
var
verifier = CompileAndVerify(new string[] { source }, expectedOutput: "1");
1002
var
verifier = CompileAndVerify(new string[] { source }, expectedOutput: "1");
Semantics\DeconstructionTests.cs (7)
956
var
comp = CompileAndVerify(source, expectedOutput: "M M 43");
1688
var
comp = CompileAndVerify(source, expectedOutput: "(1, hello) (1, hello) (1, hello)");
1759
var
comp = CompileAndVerify(source, expectedOutput: "((1, hello), 3)");
1834
var
comp = CompileAndVerify(source, expectedOutput: "(1, 1, 1, 1, 1, 1, 1, 1, 9)");
3244
var
comp = CompileAndVerify(source, expectedOutput: "42");
3774
var
verifier = CompileAndVerify(source, sourceSymbolValidator: validator);
6481
var
verifier = CompileAndVerify(comp, expectedOutput: "(0, 0)");
Semantics\DelegateTypeTests.cs (67)
1242
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN System.Action");
1367
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN(42) A.F: System.Action<System.Object>");
1410
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN B.F: System.Action");
1975
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN N.B.F: System.Action");
2563
var
verifier = CompileAndVerify(comp, expectedOutput: "E.M");
2611
var
verifier = CompileAndVerify(comp, expectedOutput: "E2.M E2.M");
2659
var
verifier = CompileAndVerify(comp, expectedOutput: "E1.M E1.M");
2881
var
verifier = CompileAndVerify(comp, expectedOutput: "ran");
2901
var
verifier = CompileAndVerify(comp, expectedOutput: "ran");
2929
var
verifier = CompileAndVerify(comp, expectedOutput: "ran");
2988
var
verifier = CompileAndVerify(comp, expectedOutput: "ran");
3046
var
verifier = CompileAndVerify(comp, expectedOutput: "ran");
3081
var
verifier = CompileAndVerify(comp, expectedOutput: "ran");
3112
var
verifier = CompileAndVerify(comp, expectedOutput: "ran");
3145
var
verifier = CompileAndVerify(comp, expectedOutput: "A.F");
10265
var
verifier = CompileAndVerify(comp, expectedOutput:
11083
var
verifier = CompileAndVerify(comp, expectedOutput:
11214
var
verifier = CompileAndVerify(comp, expectedOutput: @"(41, 42)");
11268
var
verifier = CompileAndVerify(comp, expectedOutput:
11342
var
verifier = CompileAndVerify(comp, expectedOutput:
11408
var
verifier = CompileAndVerify(comp, expectedOutput:
11485
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput:
11550
var
verifier = CompileAndVerify(comp, expectedOutput:
11629
var
verifier = CompileAndVerify(comp, expectedOutput:
11793
var
verifier = CompileAndVerify(comp, expectedOutput:
12102
var
verifier = CompileAndVerify(comp, validator: validator, expectedOutput: "D");
12143
var
verifier = CompileAndVerify(comp, validator: validator, expectedOutput:
12187
var
verifier = CompileAndVerify(comp, validator: validator);
13508
var
verifier = CompileAndVerify(source, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13549
var
verifier = CompileAndVerify(source, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13612
var
verifier = CompileAndVerify(source, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13653
var
verifier = CompileAndVerify(source3, [comp2Ref, comp1aRef],
13729
var
verifier = CompileAndVerify(source, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13796
var
verifier = CompileAndVerify(source3, [comp2Ref, comp1bRef], symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13862
var
verifier = CompileAndVerify([source1, source3], symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13943
var
verifier = CompileAndVerify(source4, [comp2Ref, comp1bRef], symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13984
var
verifier = CompileAndVerify(source, expectedOutput: expectedOutput).VerifyDiagnostics();
14027
var
verifier = CompileAndVerify(source3, [comp2Ref, comp1aRef], symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
14165
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify: Verification.Skipped, expectedOutput:
14217
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify: Verification.Skipped, expectedOutput:
14282
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify: Verification.Skipped, expectedOutput:
14331
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
15722
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.RegularPreview);
15839
var
verifier = CompileAndVerify(source, expectedOutput:
15862
var
verifier = CompileAndVerify(source, expectedOutput: "7 <>f__AnonymousDelegate0`4[System.Int32,System.Int32,System.Int32,System.Int32]");
15963
var
verifier = CompileAndVerify(source, expectedOutput: "abc <>f__AnonymousDelegate0`4[System.String,System.String,System.String,System.String]");
16438
var
verifier = CompileAndVerify(source, expectedOutput:
16524
var
verifier = CompileAndVerify(source, expectedOutput: "file::member:0");
16571
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net60,
16946
var
verifier = CompileAndVerify(source);
17041
var
verifier = CompileAndVerify(source, expectedOutput: @"10 a 0");
17529
var
verifier = CompileAndVerify(source, expectedOutput:
17660
var
verifier = CompileAndVerify(source, expectedOutput: "");
17750
var
verifier = CompileAndVerify(source);
17965
var
verifier = CompileAndVerify(source, expectedOutput: """
17985
var
verifier = CompileAndVerify(source).VerifyDiagnostics();
18077
var
verifier = CompileAndVerify(source, expectedOutput: """
18099
var
verifier = CompileAndVerify(source).VerifyDiagnostics();
18206
var
verifier = CompileAndVerify(source, expectedOutput: """
18264
var
verifier = CompileAndVerify(source, expectedOutput: """
18283
var
verifier = CompileAndVerify(source).VerifyDiagnostics();
18364
var
verifier = CompileAndVerify(source, expectedOutput: """
18385
var
verifier = CompileAndVerify(source).VerifyDiagnostics();
18476
var
verifier = CompileAndVerify(source, expectedOutput: """
19390
var
verifier = CompileAndVerify(source, expectedOutput: "<>f__AnonymousDelegate0`2[System.Int32,System.Int32]").VerifyDiagnostics();
19428
var
verifier = CompileAndVerify(source, expectedOutput: "<>c").VerifyDiagnostics();
19487
var
verifier = CompileAndVerify(source).VerifyDiagnostics(
Semantics\DynamicTests.cs (6)
1695
var
verifier = CompileAndVerify(source, new[] { CSharpRef }).VerifyDiagnostics();
3855
var
verifier = CompileAndVerify(source, new[] { CSharpRef }, expectedOutput: "System.Object").VerifyDiagnostics();
3888
var
verifier = CompileAndVerify(source, new[] { CSharpRef }, expectedOutput: "System.Object").VerifyDiagnostics();
3916
var
verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithAllowUnsafe(true), verify: Verification.FailsPEVerify).VerifyDiagnostics();
3944
var
verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithAllowUnsafe(true), verify: Verification.FailsPEVerify).VerifyDiagnostics();
3995
var
verifier = CompileAndVerify(source, new[] { CSharpRef }, options: TestOptions.DebugDll).VerifyDiagnostics();
Semantics\FunctionPointerTests.cs (21)
24
private
CompilationVerifier
CompileAndVerifyFunctionPointers(CSharpCompilation compilation, string? expectedOutput = null)
176
var
verifier = CompileAndVerifyFunctionPointers(comp);
239
var
verifier = CompileAndVerify(comp, expectedOutput: "1", verify: Verification.Skipped);
265
var
verifier = CompileAndVerifyFunctionPointers(comp);
330
var
verifier = CompileAndVerifyFunctionPointers(comp);
385
var
verifier = CompileAndVerifyFunctionPointers(comp);
435
var
verifier = CompileAndVerifyFunctionPointers(comp);
480
var
verifier = CompileAndVerifyFunctionPointers(comp);
584
var
verifier = CompileAndVerifyFunctionPointers(comp);
628
var
verifier = CompileAndVerifyFunctionPointers(comp);
675
var
verifier = CompileAndVerifyFunctionPointers(comp);
722
var
verifier = CompileAndVerifyFunctionPointers(comp);
815
var
verifier = CompileAndVerifyFunctionPointers(comp);
867
var
verifier = CompileAndVerifyFunctionPointers(comp);
927
var
verifier = CompileAndVerifyFunctionPointers(comp);
2690
var
verifier = CompileAndVerify(@"
2715
var
verifier = CompileAndVerify(@"
2933
var
verifier = CompileAndVerify(@"
3271
var
verifier = CompileAndVerifyFunctionPointers(comp, expectedOutput: "GetPtr");
3351
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: @"
3848
var
verifier = CompileAndVerify(comp, expectedOutput: "True", verify: Verification.Skipped);
Semantics\ImplicitlyTypedLocalsTests.cs (1)
112
var
verifier = CompileAndVerify(alias + text, expectedOutput: "1");
Semantics\ImplicitObjectCreationTests.cs (1)
4941
var
verifier = CompileAndVerify(source, expectedOutput: "0231");
Semantics\InitOnlyMemberTests.cs (6)
2788
var
v = CompileAndVerify(comp, expectedOutput: "2 3", verify: Verification.Skipped);
4213
var
verifier = CompileAndVerify(new[] { IsExternalInitTypeDefinition, @"
4248
var
verifier = CompileAndVerify(new[] { IsExternalInitTypeDefinition, @"
4288
var
verifier = CompileAndVerify(new[] { IsExternalInitTypeDefinition, @"
4327
var
verifier = CompileAndVerify(new[] { IsExternalInitTypeDefinition, @"
4413
var
verifier = CompileAndVerify(new[] { IsExternalInitTypeDefinition, @"
Semantics\InterceptorsTests.cs (90)
136
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1");
178
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "NS1"), expectedOutput: "1");
304
var
verifier = CompileAndVerify([source, interceptor, s_attributesSource], parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", featureValue), expectedOutput: "1");
364
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "global"), expectedOutput: "1");
431
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1");
463
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "interceptor 1");
532
var
verifier = CompileAndVerify(new[] { (source1, "Program.cs"), (source2, "Other.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "interceptor 1");
571
var
verifier = CompileAndVerify([source, (interceptors, "Interceptors.cs")], parseOptions: RegularWithInterceptors, expectedOutput: "1");
629
var
comp2Verifier = CompileAndVerify((source2, "Program.cs"), references: new[] { comp1.ToMetadataReference() }, parseOptions: RegularWithInterceptors, expectedOutput: "1");
671
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "interceptor call site");
707
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "interceptor call site");
743
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "interceptor call site");
959
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1");
1038
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "CD");
1151
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1");
1185
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true));
1276
var
comp1 = CompileAndVerify(new[] { (source1, "Program.cs") }, new[] { comp0.ToMetadataReference() }, parseOptions: RegularWithInterceptors, expectedOutput: "interceptable 1");
1387
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1");
1557
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "interceptor call site");
1593
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "interceptor call site");
1658
var
verifier = CompileAndVerify([source, interceptor, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1");
1732
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "interceptor Hello World");
1766
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1");
1802
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1234");
1836
var
verifier = CompileAndVerify([source, interceptor, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1");
1906
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "interceptor call siteinterceptable call site");
1947
var
verifier = CompileAndVerify((source2, "Program.cs"), references: new[] { comp1.ToMetadataReference() }, parseOptions: RegularWithInterceptors, expectedOutput: "interceptor call site");
2420
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "12");
2504
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1");
2584
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "111222");
2656
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1122");
2699
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1a1a2b2b");
2779
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1a2b");
2825
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1a1a2b2b");
2872
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "123123456456");
2916
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "123123456456");
2978
var
verifier = CompileAndVerify([source, interceptor, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1");
3978
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "111222333");
4045
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1122");
4152
var
verifier = CompileAndVerify(new[] { source, s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "Original");
4189
var
verifier = CompileAndVerify(new[] { source, s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "Original");
4276
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1");
4319
var
verifier = CompileAndVerify([source, interceptor, s_attributesSource, UnscopedRefAttributeDefinition], parseOptions: RegularWithInterceptors, expectedOutput: "1");
4434
var
verifier = CompileAndVerify(CreateEmptyCompilation((source, "Program.cs"), parseOptions: RegularWithInterceptors, options: WithNullableEnable()), verify: Verification.Skipped);
4527
var
verifier = CompileAndVerify(CreateEmptyCompilation((source, "Program.cs"), parseOptions: RegularWithInterceptors, options: WithNullableEnable()), verify: Verification.Skipped);
4587
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "123456");
4686
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "123456");
4735
var
verifier = CompileAndVerify([
4790
var
verifier = CompileAndVerify([
4847
var
verifier = CompileAndVerify([
4885
var
verifier = CompileAndVerify(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "interceptor 1");
4954
var
verifier = CompileAndVerify([source, interceptor, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1");
4983
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1");
5013
var
verifier = CompileAndVerify([source, interceptor, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1");
5071
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularWithInterceptors, verify: Verification.Skipped);
5115
var
verifier = CompileAndVerify([source, interceptor, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1");
5151
var
verifier = CompileAndVerify([source, interceptor, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "1");
5289
var
verifier = CompileAndVerify(
5319
var
verifier = CompileAndVerify(
5355
var
verifier = CompileAndVerify(
5498
var
verifier = CompileAndVerify(
5575
var
verifier = CompileAndVerify(
5610
var
verifier = CompileAndVerify(
5643
var
verifier = CompileAndVerify(
5710
var
verifier = CompileAndVerify(new[] { (source, @"C:\src\Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "1");
5754
var
verifier = CompileAndVerify(new[] { (source, @"C:/src\Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "1");
5800
var
verifier = CompileAndVerify(new[] { (source, PlatformInformation.IsWindows ? @"C:\src\Program.cs" : "/src/Program.cs"), (source2, PlatformInformation.IsWindows ? @"C:\obj\Generated.cs" : "/obj/Generated.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "1");
6016
var
verifier = CompileAndVerify(
6131
var
verifier = CompileAndVerify([source2, source3, s_attributesSource],
6242
var
verifier = CompileAndVerify(new[] { program, s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "Second");
6299
var
verifier = CompileAndVerify(new[] { program, s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "False");
6369
var
verifier = CompileAndVerify([program, s_attributesSource], parseOptions: RegularWithInterceptors, expectedOutput: "False");
6449
var
verifier = CompileAndVerify(new[] { program, s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "Original");
6511
var
verifier = CompileAndVerify(new[] { source, s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "Original");
6553
var
verifier = CompileAndVerify(new[] { source, s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "Original");
7349
var
verifier = CompileAndVerify([source, interceptors, CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors)], expectedOutput: "1");
7761
var
verifier = CompileAndVerify([source, interceptors, s_attributesTree], expectedOutput: "1");
7806
var
verifier = CompileAndVerify([source, interceptors, s_attributesTree], expectedOutput: "1");
7888
var
verifier = CompileAndVerify([source, interceptors, s_attributesTree], expectedOutput: "1");
7930
var
verifier = CompileAndVerify([source, interceptors, s_attributesTree], expectedOutput: "1");
7976
var
verifier = CompileAndVerify(
8029
var
verifier = CompileAndVerify(
8074
var
verifier = CompileAndVerify([source, interceptors, s_attributesTree], expectedOutput: "1");
8133
var
verifier = CompileAndVerify([source, interceptors, s_attributesTree], expectedOutput: "1");
8193
var
verifier = CompileAndVerify([source, interceptors, s_attributesTree], expectedOutput: "1");
8248
var
verifier = CompileAndVerify([source, interceptors, s_attributesTree], expectedOutput: "1");
8303
var
verifier = CompileAndVerify([source, interceptors, s_attributesTree], expectedOutput: "1");
8353
var
verifier = CompileAndVerify([source, interceptors, s_attributesTree], expectedOutput: "1");
8409
var
verifier = CompileAndVerify([source, interceptors, s_attributesTree], expectedOutput: "12");
9012
var
verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: RegularPreviewWithInterceptors, expectedOutput: "ran").VerifyDiagnostics();
Semantics\InterpolationTests.cs (146)
242
var
verifier = CompileAndVerify(source, expectedOutput: expectedOutput);
268
var
verifier = CompileAndVerify(source, expectedOutput: expectedOutput);
346
var
verifier = CompileAndVerify(source, new[] { CSharpRef }, expectedOutput: expectedOutput).VerifyDiagnostics();
1114
var
compilation = CompileAndVerify(comp, verify: Verification.Fails);
1173
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput);
1185
static void checkNet50IL(
CompilationVerifier
verifier)
1204
static void checkNet60IL(
CompilationVerifier
verifier)
1276
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput);
1288
static void checkNet50IL(
CompilationVerifier
verifier)
1307
static void checkNet60IL(
CompilationVerifier
verifier)
1377
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput);
1429
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput);
1702
var
verifier = CompileAndVerify(new[] { code, handler }, expectedOutput: @"
1841
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: expectedOutput);
2257
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: expectedOutput, targetFramework: TargetFramework.Net50, parseOptions: TestOptions.Regular10);
2693
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @"base1");
2867
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @"
2979
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @"
3142
var
verifier = CompileAndVerifyWithCSharp(new[] { source, interpolatedStringBuilder }, expectedOutput: @"base1");
3194
var
verifier = CompileAndVerifyWithCSharp(new[] { source, interpolatedStringBuilder }, expectedOutput: @"1base");
3246
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerAttribute });
3682
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @"
3778
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @"value:1");
3815
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @"
3882
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @"
3965
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, targetFramework: TargetFramework.NetCoreApp, expectedOutput: @"
4057
var
verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: @"
4148
var
verifier = CompileAndVerify(source, expectedOutput: @"
4625
private
CompilationVerifier
CompileAndVerifyOnCorrectPlatforms(CSharpCompilation compilation, string expectedOutput)
4644
var
verifier = CompileAndVerify(comp, expectedOutput: @"
4781
var
verifier = CompileAndVerify(comp, expectedOutput: @"
4841
var
verifier = CompileAndVerify(comp, expectedOutput: @"
4893
var
verifier = CompileAndVerify(comp, expectedOutput: @"
4985
var
verifier = CompileAndVerify(comp, expectedOutput: @"Literal");
5100
var
verifier = CompileAndVerify(comp, expectedOutput: @"
5154
var
verifier = CompileAndVerify(comp, expectedOutput: @"
5282
var
verifier = CompileAndVerify(comp, expectedOutput: @"
5340
var
verifier = CompileAndVerify(comp, expectedOutput: @"
5387
var
verifier = CompileAndVerify(comp, expectedOutput: @"
5442
var
verifier = CompileAndVerify(comp, expectedOutput: @"1.00Literal");
5502
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"value:Field");
5576
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"value:Field");
5625
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
5692
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"1.00Literal");
5762
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
5880
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
5941
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"1.00Literal");
6040
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6128
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6212
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"1.00Literal");
6294
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6358
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6450
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6506
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6572
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6615
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6683
var
verifier = CompileAndVerify(code, targetFramework: TargetFramework.Net90, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "abc10" : null, verify: Verification.FailsPEVerify);
6750
var
verifier = CompileAndVerify(code, targetFramework: TargetFramework.Net90, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "abc10" : null, verify: Verification.FailsPEVerify);
6792
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6838
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6890
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
7829
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validate, symbolValidator: validate, expectedOutput: @"
7866
void verifyIL(
CompilationVerifier
verifier)
8227
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validate, symbolValidator: validate, expectedOutput: """
8445
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
8471
static void verifyIL(string extraConstructorArg,
CompilationVerifier
verifier)
8569
var
verifier = base.CompileAndVerify((Compilation)comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: expectedOutput);
8591
static void verifyIL(string extraConstructorArg,
CompilationVerifier
verifier)
8708
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
8872
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
9005
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
9142
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
9243
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: "CustomHandler").VerifyDiagnostics();
9371
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
9487
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
9604
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
9727
var
verifier = CompileAndVerify(comp, expectedOutput: @"
9884
var
verifier = CompileAndVerify(
9993
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, expectedOutput: "1literal:literal", symbolValidator: validator, sourceSymbolValidator: validator);
10071
var
verifier = CompileAndVerify(comp, expectedOutput: @"
10170
var
verifier = CompileAndVerify(comp, expectedOutput: @"
10273
var
verifier = CompileAndVerify(comp, expectedOutput: @"
10420
var
verifier = CompileAndVerify(comp, expectedOutput: @"
10519
var
verifier = CompileAndVerify(comp, expectedOutput: @"
10671
var
verifier = CompileAndVerify(comp, expectedOutput: @"
10770
var
verifier = CompileAndVerify(comp, expectedOutput: @"
10869
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11066
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11151
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11263
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11515
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11700
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11800
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11867
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11955
var
verifier = CompileAndVerify(comp, expectedOutput: @"
12032
var
verifier = CompileAndVerify(comp, expectedOutput: @"s.I:1");
12094
var
verifier = CompileAndVerify(comp, expectedOutput: @"s.I:2");
12176
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, expectedOutput: @"
12227
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
12324
var
verifier = CompileAndVerify(comp, expectedOutput: @"
12616
var
verifier = CompileAndVerify(comp, expectedOutput: @"
12880
var
verifier = CompileAndVerify(comp, expectedOutput: @"
13137
var
verifier = CompileAndVerify(comp, expectedOutput: @"
13261
var
verifier = CompileAndVerify(comp, expectedOutput: @"
13490
var
verifier = CompileAndVerify(comp, expectedOutput: @"literal:literal");
13542
var
verifier = CompileAndVerify(comp, expectedOutput: @"1");
13593
var
verifier = CompileAndVerify(comp);
13652
var
verifier = CompileAndVerify(comp);
13712
var
verifier = CompileAndVerify(comp);
13774
var
verifier = CompileAndVerify(comp);
13836
var
verifier = CompileAndVerify(comp);
13928
var
verifier = CompileAndVerify(comp, expectedOutput: "c.i:1");
14245
var
verifier = CompileAndVerify(comp, expectedOutput: "d:1");
14290
var
verifier = CompileAndVerify(comp, expectedOutput: "ctor");
14335
var
verifier = CompileAndVerify(comp, expectedOutput: "ctor");
14378
var
verifier = CompileAndVerify(comp, expectedOutput: "AppendLiteral");
14427
var
verifier = CompileAndVerify(comp, expectedOutput: "AppendFormatted");
14483
var
verifier = CompileAndVerify(comp, expectedOutput: @"
14579
var
verifier = CompileAndVerify(comp, expectedOutput: @"
14678
var
verifier = CompileAndVerify(comp, expectedOutput: @"
16329
var
verifier = CompileAndVerify(comp, expectedOutput: @"
16375
var
verifier = CompileAndVerify(comp, expectedOutput: @"
16430
var
verifier = CompileAndVerify(comp, expectedOutput: @"
16733
var
verifier = CompileAndVerify(comp, expectedOutput: @"
16807
var
verifier = CompileAndVerify(comp, expectedOutput: @"
17174
var
verifier = CompileAndVerify(code, expectedOutput: @"123456");
17192
var
verifier = CompileAndVerify(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }, expectedOutput: @"
17324
var
verifier = CompileAndVerify(comp, expectedOutput: @"123456123456");
17502
var
verifier = CompileAndVerify(comp, expectedOutput: @"
17566
var
verifier = CompileAndVerify(comp, expectedOutput: @"
17661
var
verifier = CompileAndVerify(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }, expectedOutput: @"
17789
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @"i:1");
17853
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @"");
17961
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @"i:1");
18014
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"1");
18055
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"1");
18106
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"12");
18152
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"12");
18268
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: "s.Field:1");
18299
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: "2");
18350
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: "s.Field:1");
18441
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler },
19019
var
verifier = CompileAndVerify(comp, expectedOutput: """
19101
var
verifier = CompileAndVerify(comp, expectedOutput: """
19200
var
verifier = CompileAndVerify(comp, expectedOutput: """
19313
var
verifier = CompileAndVerify(comp, expectedOutput: """
Semantics\IteratorTests.cs (1)
649
var
comp = CompileAndVerify(source, expectedOutput: "0,1,2,3", options: TestOptions.DebugExe);
Semantics\LocalFunctionTests.cs (1)
6978
var
verifier = CompileAndVerify(source, expectedOutput:
Semantics\MultiDimensionalArrayTests.cs (12)
98
var
verifier = CompileAndVerify(source: source, expectedOutput: expected);
142
var
verifier = CompileAndVerify(source: source, expectedOutput: expected);
162
var
verifier = CompileAndVerify(source: source, expectedOutput: expected);
183
var
verifier = CompileAndVerify(source: source, expectedOutput: expected);
299
var
verifier = CompileAndVerify(compilation, expectedOutput:
334
var
verifier = CompileAndVerify(compilation, expectedOutput:
382
var
verifier = CompileAndVerify(compilation, expectedOutput:
627
var
verifier = CompileAndVerify(compilation, expectedOutput:
681
var
verifier = CompileAndVerify(compilation, expectedOutput:
713
var
verifier = CompileAndVerify(compilation, expectedOutput:
1212
var
verifier = CompileAndVerify(compilation, expectedOutput:
1539
var
verifier = CompileAndVerify(compilation, expectedOutput:
Semantics\NamedAndOptionalTests.cs (8)
774
var
c = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.FailsPEVerify);
1345
var
verifier = CompileAndVerify(new[] { sourceDefinitions, sourceCalls }, expectedOutput: expected);
1573
var
verifier = CompileAndVerify(csharpCompilation, expectedOutput: expected);
1681
var
verifier = CompileAndVerify(exeComp, expectedOutput: @"DatesMatch
1793
var
verifier = CompileAndVerify(source, expectedOutput: @"
1867
var
verifier = CompileAndVerify(source, expectedOutput:
1944
var
verifier = CompileAndVerify(source, expectedOutput:
2013
var
verifier = CompileAndVerify(source, expectedOutput: "2");
Semantics\NameOfTests.cs (3)
149
var
comp = CompileAndVerify(source, expectedOutput: @"
1444
var
comp = CompileAndVerify(compilation, expectedOutput: @"N1N2");
1696
var
comp = CompileAndVerify(compilation, expectedOutput: @"passed");
Semantics\NativeIntegerTests.cs (34)
2942
var
verifier = CompileAndVerify(comp, expectedOutput:
2989
var
verifier = CompileAndVerify(comp, expectedOutput:
3020
var
verifier = CompileAndVerify(comp, expectedOutput:
3683
var
verifier = CompileAndVerify(comp, expectedOutput:
4347
var
verifier = CompileAndVerify(comp, expectedOutput: $"{size}{size}{size}{size}");
4513
var
verifier = CompileAndVerify(source, expectedOutput: @"1");
4550
var
verifier = CompileAndVerify(comp, expectedOutput:
4623
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
4694
var
verifier = CompileAndVerify(comp,
4897
var
verifier = CompileAndVerify(comp);
5006
var
verifier = CompileAndVerify(comp);
5254
var
verifier = CompileAndVerify(comp);
5364
var
verifier = CompileAndVerify(comp);
6623
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput);
6755
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput);
7293
var
verifier = CompileAndVerify(comp, expectedOutput:
7460
var
verifier = CompileAndVerify(comp, expectedOutput:
9517
var
verifier = CompileAndVerify(comp, verify: useUnsafeContext || !verify ? Verification.Skipped : Verification.Passes);
9741
var
verifier = CompileAndVerify(comp, expectedOutput: expectedResult);
10118
var
verifier = CompileAndVerify(comp, expectedOutput: expectedResult);
10343
var
verifier = CompileAndVerify(comp, expectedOutput: expectedResult);
10383
var
verifier = CompileAndVerify(comp, emitOptions: EmitOptions.Default.WithRuntimeMetadataVersion("0.0.0.0"), verify: Verification.Skipped);
12443
var
verifier = CompileAndVerify(comp, expectedOutput:
12668
var
verifier = CompileAndVerify(comp, expectedOutput:
12871
var
verifier = CompileAndVerify(comp, expectedOutput:
12946
var
verifier = CompileAndVerify(comp, expectedOutput:
13798
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput:
13903
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: expectedOutput);
14174
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput:
14821
var
verifier = CompileAndVerify(source);
15126
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
15168
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
15838
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
15883
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
Semantics\NonTrailingNamedArgumentsTests.cs (17)
40
var
verifier = CompileAndVerify(source, expectedOutput: "First 1 2. Second 3 4.", parseOptions: TestOptions.Regular7_2);
86
var
verifier = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2);
114
var
verifier = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2);
138
var
verifier = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2);
161
var
verifier = CompileAndVerifyWithMscorlib40(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2, references: new[] { Net40.References.SystemCore });
194
var
verifier = CompileAndVerify(source, expectedOutput: "1 2. 1 2.", parseOptions: TestOptions.Regular7_2);
225
var
verifier = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2);
261
var
verifier = CompileAndVerify(source, expectedOutput: "Get 1 2. Set 3 4 5.", parseOptions: TestOptions.Regular7_2);
336
var
verifier1 = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2, references: new[] { lib.ToMetadataReference() });
339
var
verifier2 = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2, references: new[] { lib.EmitToImageReference() });
388
var
verifier = CompileAndVerify(source, expectedOutput: "1 hi.", parseOptions: TestOptions.Regular7_2);
507
var
comp = CompileAndVerify(source, expectedOutput: "1 2. 2 3. 3 4,5.");
739
var
verifier = CompileAndVerify(source, expectedOutput: "Second 3 2.");
771
var
verifier = CompileAndVerify(source, expectedOutput: "Second 3 2.");
798
var
comp = CompileAndVerify(source, expectedOutput: "42");
948
var
verifier = CompileAndVerify(source, expectedOutput: "1 2 3 4 Length:2");
1128
var
comp = CompileAndVerify(source, expectedOutput: "1 2 34. 1 2 56.");
Semantics\NullableConversionTests.cs (3)
36
var
verifier = CompileAndVerify(source: source, expectedOutput: "AB");
85
var
verifier = CompileAndVerify(source: source, expectedOutput: expectedOutput);
148
var
verifier = CompileAndVerify(source: source, expectedOutput: expectedOutput);
Semantics\NullableReferenceTypesTests.cs (8)
116631
var
verifier = CompileAndVerify(
138554
var
verifier1 = CompileAndVerify(source1, symbolValidator: validate, targetFramework: TargetFramework.Mscorlib40);
138607
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net60,
138645
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net60,
138676
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net60,
138710
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net60,
138755
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net60,
138797
var
verifier = CompileAndVerify(source2, [comp1],
Semantics\NullableTests.cs (12)
184
var
verifier = CompileAndVerify(source: source2, expectedOutput: "0");
325
var
verifier = CompileAndVerify(source: source.Replace("TYPE", type), expectedOutput: expected);
385
var
verifier = CompileAndVerify(source: source, expectedOutput: "1");
539
var
verifier = CompileAndVerify(source: source, expectedOutput: expected);
605
var
verifier = CompileAndVerify(source: source, expectedOutput: expected);
752
var
verifier = CompileAndVerify(source: s, expectedOutput: expected);
1310
var
verifier = CompileAndVerify(source: source.ToString(), expectedOutput: "");
1405
var
verifier = CompileAndVerify(source: source, expectedOutput: "");
1604
var
verifier = CompileAndVerify(source: source, expectedOutput: "");
1649
var
verifier = CompileAndVerify(source: source, expectedOutput: "123");
1667
var
verifier = CompileAndVerify(source: source2, expectedOutput: "0");
1765
var
verifier = CompileAndVerify(source, expectedOutput: expected);
Semantics\NullConditionalAssignmentTests.cs (28)
170
var
verifier = CompileAndVerify(source, expectedOutput: "12TrueTrue");
367
var
verifier = CompileAndVerify(source, expectedOutput: "1234");
587
var
verifier = CompileAndVerify(source, expectedOutput: "1234");
678
var
verifier = CompileAndVerify(source, expectedOutput: "12TrueTrue");
863
var
verifier = CompileAndVerify(source, expectedOutput: "abbccd");
933
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.StandardAndCSharp, expectedOutput: "ab<null><null>");
1058
var
verifier = CompileAndVerify(source, options: TestOptions.UnsafeDebugExe, verify: Verification.Skipped, expectedOutput: "1324");
1100
var
verifier = CompileAndVerify(source, options: TestOptions.UnsafeDebugExe, verify: Verification.Skipped, expectedOutput: "1324");
1134
var
verifier = CompileAndVerify(source, expectedOutput: "1234");
1215
var
verifier = CompileAndVerify(source, expectedOutput: "5868");
1294
var
verifier = CompileAndVerify(source, expectedOutput: "2848");
1362
var
verifier = CompileAndVerify(source, expectedOutput: "22");
1411
var
verifier = CompileAndVerify(source, expectedOutput: "True1");
1497
var
verifier = CompileAndVerify(source, expectedOutput: """
1588
var
verifier = CompileAndVerify(source, expectedOutput: """
1686
var
verifier = CompileAndVerify(source, expectedOutput: """
1788
var
verifier = CompileAndVerify(source, expectedOutput: """
1883
var
verifier = CompileAndVerify(source, expectedOutput: "TrueTrue");
1952
var
verifier = CompileAndVerify(source, expectedOutput: "aabb");
1985
var
verifier = CompileAndVerify(source, expectedOutput: "bbcc");
2018
var
verifier = CompileAndVerify(source, expectedOutput: "GetString()(set b)bc");
2052
var
verifier = CompileAndVerify(source, expectedOutput: "GetString()M(a)bc");
2084
var
verifier = CompileAndVerify(source, expectedOutput: "ab");
2115
var
verifier = CompileAndVerify(source, expectedOutput: "11");
2207
var
verifier = CompileAndVerify(source, expectedOutput: """
2337
var
verifier = CompileAndVerify(source, expectedOutput: """
2548
var
verifier = CompileAndVerify(source, expectedOutput: "4242b");
2664
var
verifier = CompileAndVerify(source, expectedOutput: "a<null>");
Semantics\OperatorTests.cs (15)
4843
var
verifier = CompileAndVerify(compilation, expectedOutput: "42");
4911
var
verifier = CompileAndVerify(compilation, expectedOutput: "42");
4948
var
verifier = CompileAndVerify(compilation, expectedOutput: "42");
4986
var
verifier = CompileAndVerify(compilation, expectedOutput: "42");
5237
var
comp = CompileAndVerify(source);
5317
var
comp = CompileAndVerify(source);
5341
var
comp = CompileAndVerify(source);
5360
var
comp = CompileAndVerify(source);
5379
var
comp = CompileAndVerify(source);
5880
var
comp = CompileAndVerify(source, expectedOutput: @"False
8892
var
verifier = CompileAndVerify(source);
9037
var
verifier = CompileAndVerify(comp, expectedOutput: "operator2operator1exception").VerifyDiagnostics();
11484
var
verifier = CompileAndVerify(source: source, expectedOutput:
11645
var
verifier = CompileAndVerify(source: source, expectedOutput:
11904
var
verifier = CompileAndVerify(source, expectedOutput: "Goo, Bar");
Semantics\OverloadResolutionTests.cs (1)
9481
var
verifier = CompileAndVerify(code, expectedOutput: "5").VerifyDiagnostics(expectedDiagnostics);
Semantics\RawInterpolationTests.cs (5)
238
var
verifier = CompileAndVerify(source, expectedOutput: expectedOutput);
264
var
verifier = CompileAndVerify(source, expectedOutput: expectedOutput);
396
var
verifier = CompileAndVerify(source, new[] { CSharpRef }, expectedOutput: expectedOutput).VerifyDiagnostics();
1112
var
compilation = CompileAndVerify(comp, verify: Verification.Fails);
1360
var
verifier = CompileAndVerify(source, expectedOutput: expectedOutput);
Semantics\RawInterpolationTests_Handler.cs (110)
70
var
verifier = CompileAndVerify(new[] { code, handler }, expectedOutput: @"
209
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: expectedOutput);
627
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: expectedOutput, targetFramework: TargetFramework.Net50, parseOptions: TestOptions.RegularPreview);
1063
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @"base1");
1237
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @"
1349
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @"
1512
var
verifier = CompileAndVerifyWithCSharp(new[] { source, interpolatedStringBuilder }, expectedOutput: @"base1");
1564
var
verifier = CompileAndVerifyWithCSharp(new[] { source, interpolatedStringBuilder }, expectedOutput: @"1base");
1618
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerAttribute });
2058
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @"
2179
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @"value:1");
2216
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @"
2283
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @"
2366
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, targetFramework: TargetFramework.NetCoreApp, expectedOutput: @"
2458
var
verifier = CompileAndVerify(comp, expectedOutput: @"
2549
var
verifier = CompileAndVerify(source, expectedOutput: @"
2926
private
CompilationVerifier
CompileAndVerifyOnCorrectPlatforms(CSharpCompilation compilation, string expectedOutput)
2945
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3082
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3142
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3191
var
verifier = CompileAndVerify(comp, expectedOutput: @"Literal");
3310
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3364
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3489
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3547
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3594
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3649
var
verifier = CompileAndVerify(comp, expectedOutput: @"1.00Literal");
3711
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"value:Field");
3805
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"value:Field");
3854
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
3921
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"1.00Literal");
3991
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4132
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4193
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"1.00Literal");
4291
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4378
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4461
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"1.00Literal");
4543
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4607
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4698
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4754
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4819
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4862
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4908
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4954
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
5006
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6487
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
6513
static void verifyIL(string extraConstructorArg,
CompilationVerifier
verifier)
6613
var
verifier = base.CompileAndVerify((Compilation)comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: expectedOutput);
6635
static void verifyIL(string extraConstructorArg,
CompilationVerifier
verifier)
6754
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
6920
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
7055
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
7194
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
7299
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: "CustomHandler").VerifyDiagnostics();
7433
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
7551
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
7671
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
7796
var
verifier = CompileAndVerify(comp, expectedOutput: @"
7962
var
verifier = CompileAndVerify(
8074
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, expectedOutput: "1literal:literal", symbolValidator: validator, sourceSymbolValidator: validator);
8158
var
verifier = CompileAndVerify(comp, expectedOutput: @"
8294
var
verifier = CompileAndVerify(comp, expectedOutput: @"s.I:1");
8362
var
verifier = CompileAndVerify(comp, expectedOutput: @"s.I:2");
8447
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, expectedOutput: @"
8500
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
8598
var
verifier = CompileAndVerify(comp, expectedOutput: @"
8891
var
verifier = CompileAndVerify(comp, expectedOutput: @"
9156
var
verifier = CompileAndVerify(comp, expectedOutput: @"
9415
var
verifier = CompileAndVerify(comp, expectedOutput: @"
9540
var
verifier = CompileAndVerify(comp, expectedOutput: @"
9771
var
verifier = CompileAndVerify(comp, expectedOutput: @"literal:literal");
9825
var
verifier = CompileAndVerify(comp, expectedOutput: @"1");
9881
var
verifier = CompileAndVerify(comp);
9940
var
verifier = CompileAndVerify(comp);
10000
var
verifier = CompileAndVerify(comp);
10062
var
verifier = CompileAndVerify(comp);
10124
var
verifier = CompileAndVerify(comp);
10221
var
verifier = CompileAndVerify(comp, expectedOutput: "c.i:1");
10554
var
verifier = CompileAndVerify(comp, expectedOutput: "d:1");
10605
var
verifier = CompileAndVerify(comp, expectedOutput: "ctor");
10656
var
verifier = CompileAndVerify(comp, expectedOutput: "ctor");
10701
var
verifier = CompileAndVerify(comp, expectedOutput: "AppendLiteral");
10752
var
verifier = CompileAndVerify(comp, expectedOutput: "AppendFormatted");
10813
var
verifier = CompileAndVerify(comp, expectedOutput: @"
10912
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11376
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11422
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11476
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11514
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11552
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11591
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11770
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11844
var
verifier = CompileAndVerify(comp, expectedOutput: @"
12211
var
verifier = CompileAndVerify(code, expectedOutput: @"123456");
12229
var
verifier = CompileAndVerify(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }, expectedOutput: @"
12361
var
verifier = CompileAndVerify(comp, expectedOutput: @"123456123456");
12524
var
verifier = CompileAndVerify(comp, expectedOutput: @"
12591
var
verifier = CompileAndVerify(comp, expectedOutput: @"
12686
var
verifier = CompileAndVerify(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }, expectedOutput: @"
12794
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @"i:1");
12861
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @"");
12980
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @"i:1");
13035
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"1");
13076
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"1");
13129
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"12");
13175
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"12");
13295
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: "s.Field:1");
13328
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: "2");
13381
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: "s.Field:1");
Semantics\ReadOnlyStructsTests.cs (5)
333
var
comp = CompileAndVerify(csharp);
619
var
verifier = CompileAndVerify(csharp, expectedOutput: "123");
661
var
verifier = CompileAndVerify(csharp, expectedOutput: "123");
798
var
verifier = CompileAndVerify(csharp, expectedOutput:
1036
var
verifier = CompileAndVerify(csharp, expectedOutput: "123");
Semantics\RecordStructTests.cs (54)
30
private
CompilationVerifier
CompileAndVerify(
48
var
verifier = CompileAndVerify(src).VerifyDiagnostics();
104
var
verifier = CompileAndVerify(src, expectedOutput: @"0
124
var
verifier = CompileAndVerify(src, expectedOutput: @"False")
211
var
verifier = CompileAndVerify(comp, expectedOutput: @"True
886
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
941
var
verifier = CompileAndVerify(src);
1815
var
verifier = CompileAndVerify(src, expectedOutput: @"12345").VerifyDiagnostics();
1879
var
verifier = CompileAndVerify(src, expectedOutput: @"12345").VerifyDiagnostics();
1974
var
verifier = CompileAndVerify(src, parseOptions: TestOptions.Regular11);
2241
var
verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11, verify: Verification.Skipped);
2659
var
verifier = CompileAndVerify(src, expectedOutput: @"2").VerifyDiagnostics();
2763
var
verifier = CompileAndVerify(src, expectedOutput: @"2").VerifyDiagnostics();
2813
var
verifier = CompileAndVerify(comp, expectedOutput: "(42, 43)");
2898
var
verifier = CompileAndVerify(comp, expectedOutput: "42", verify: Verification.Skipped /* init-only */);
2939
var
verifier = CompileAndVerify(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11, verify: Verification.Skipped);
2971
var
verifier = CompileAndVerify(comp, expectedOutput: "42", verify: Verification.Skipped /* init-only */);
3492
var
verifier = CompileAndVerify(source, expectedOutput: "12");
3550
var
verifier = CompileAndVerify(source, expectedOutput: "1");
3587
var
verifier = CompileAndVerify(source, expectedOutput: "123");
3648
var
verifier = CompileAndVerify(source, expectedOutput: "32");
3884
var
verifier = CompileAndVerify(source, expectedOutput: "12");
3949
var
verifier = CompileAndVerify(source, expectedOutput: "12");
4376
var
verifier = CompileAndVerify(comp, expectedOutput: "TrueTrue");
4627
var
verifier = CompileAndVerify(comp, expectedOutput: "TrueTrue - FalseFalseFalseFalse - FalseFalseFalseFalse");
4724
var
verifier = CompileAndVerify(comp);
4967
var
verifier = CompileAndVerify(source, expectedOutput: @"
5211
var
v = CompileAndVerify(comp, expectedOutput: "C1 { }");
5415
var
v = CompileAndVerify(comp, expectedOutput: "C1 { field = 42 }");
5472
var
v = CompileAndVerify(comp, expectedOutput: "C1 { field = 42 }");
5513
var
v = CompileAndVerify(comp, expectedOutput: "C1 { field = hello }");
5557
var
v = CompileAndVerify(comp, expectedOutput: "C1 { I = 42, field1 = hi, field2 = }");
5613
var
v = CompileAndVerify(comp, expectedOutput: "C1 { I = 42 }", verify: Verification.Skipped /* init-only */);
6979
var
verifier = CompileAndVerify(comp, expectedOutput: "42 1");
7574
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
7613
var
verifier = CompileAndVerify(src, parseOptions: TestOptions.Regular11);
7660
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
7701
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
7736
var
verifier = CompileAndVerify(comp, expectedOutput: "4243", verify: Verification.Skipped /* init-only */);
7776
var
verifier = CompileAndVerify(comp, expectedOutput: "4243");
7810
var
verifier = CompileAndVerify(comp, expectedOutput: "4243");
7844
var
verifier = CompileAndVerify(comp, expectedOutput: "4243");
8251
var
verifier = CompileAndVerify(src, expectedOutput: @"
8339
var
verifier = CompileAndVerify(comp, expectedOutput: "Identity({ A = 10, B = 20 }) Identity(30) Identity(40) { A = 30, B = 40 }");
8515
var
verifier = CompileAndVerify(comp, expectedOutput: "Identity({ A = 10, B = 20 }) Identity(40) Identity(30) { A = 30, B = 40 }");
8690
var
verifier = CompileAndVerify(comp, expectedOutput: "M2 { A = 10, B = 20 }");
8861
var
verifier = CompileAndVerify(comp, expectedOutput: "{ A = 10, B = 30 }");
9058
var
verifier = CompileAndVerify(comp, expectedOutput: "{ A = 10, B = 30 }");
10517
var
verifier = CompileAndVerify(comp, expectedOutput: "{ Property = 44 }");
10532
var
verifier = CompileAndVerify(comp, expectedOutput: "{ Item = { Property = 44 } }");
10582
var
comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
10622
var
verifier = CompileAndVerify(comp, expectedOutput: "42 - 42");
10939
var
verifier = CompileAndVerify(source, expectedOutput:
11141
var
verifier = CompileAndVerify(source, expectedOutput:
Semantics\RefEscapingTests.cs (6)
1030
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
5686
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
5736
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
5786
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
5865
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
5969
var
compiled = CompileAndVerify(comp, verify: Verification.Passes);
Semantics\RefExtensionMethodsTests.cs (4)
103
var
verifier = CompileAndVerify(code, expectedOutput: "2");
155
var
verifier = CompileAndVerify(code, expectedOutput: "2");
1527
var
verifier = CompileAndVerify(compilation, expectedOutput: "10");
1583
var
verifier = CompileAndVerify(compilation, expectedOutput: "0");
Semantics\RefFieldTests.cs (66)
212
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
286
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
453
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
856
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
963
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1137
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1195
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1311
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1348
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1382
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1427
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1472
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1717
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("explicit ctor"));
1755
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("explicit ctor"));
1792
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("explicit ctor"));
1832
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("explicit ctor"));
1870
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("explicit ctor"));
2015
var
verifier = CompileAndVerify(compB, verify: Verification.Skipped);
2601
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
6444
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
6849
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
7251
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
7376
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
8425
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
8471
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
8628
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
8697
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("2"));
8734
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("2"));
8771
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("2"));
8816
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("2"));
8866
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
8935
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
9006
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
9069
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
9143
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(@"(1, Hello world)"));
9762
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
10160
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
18313
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
18928
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
20484
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("42"));
21228
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("42"));
21402
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("4242"));
21526
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("4242"));
21855
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("42"));
26772
var
verifier = CompileAndVerify(new[] { source, UnscopedRefAttributeDefinition }, expectedOutput: "12", verify: Verification.Fails);
26916
var
verifier = CompileAndVerify(new[] { source, UnscopedRefAttributeDefinition }, expectedOutput: "12", verify: Verification.Fails);
29169
var
verifier = CompileAndVerify(comp, expectedOutput:
29237
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput:
29429
var
verifier = CompileAndVerify(comp, expectedOutput: "(3, 3)");
30208
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, expectedOutput: "0");
30265
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, expectedOutput: "0");
30339
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, expectedOutput: """
30929
var
verifier = CompileAndVerify("""
30980
var
verifier = CompileAndVerify("""
31039
var
verifier = CompileAndVerify("""
31106
var
verifier = CompileAndVerify("""
31167
var
verifier = CompileAndVerify("""
31241
var
verifier = CompileAndVerify("""
31314
var
verifier = CompileAndVerify("""
31355
var
verifier = CompileAndVerify("""
31396
var
verifier = CompileAndVerify("""
31438
var
verifier = CompileAndVerify("""
31482
var
verifier = CompileAndVerify("""
31523
var
verifier = CompileAndVerify("""
31571
var
verifier = CompileAndVerify("""
31612
var
verifier = CompileAndVerify("""
Semantics\RefLocalsAndReturnsTests.cs (2)
2468
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
2536
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
Semantics\ScriptSemanticsTests.cs (3)
121
var
compiled = CompileAndVerify(script);
167
var
compiled = CompileAndVerify(script);
213
var
compiled = CompileAndVerify(script);
Semantics\SemanticErrorTests.cs (13)
4555
var
compilationVerifier = CompileAndVerify(compilation1);
6476
var
verifier = CompileAndVerify(text, parseOptions: TestOptions.Regular11);
6988
var
verifier = CompileAndVerify(text, parseOptions: TestOptions.Regular11).
7105
var
verifier = CompileAndVerify(source, new[] { CSharpRef }, parseOptions: TestOptions.Regular11);
7179
var
verifier = CompileAndVerify(source, new[] { CSharpRef }, parseOptions: TestOptions.Regular11);
7803
var
compilationVerifier = CompileAndVerify(compilation1);
12982
var
verifier = CompileAndVerify(text, parseOptions: TestOptions.Regular11);
13119
var
verifier = CompileAndVerify(comp, expectedOutput: "x => Index(5)");
13154
var
verifier = CompileAndVerify(comp, expectedOutput: "() => new List`1() {Void Add(Int32)(1)}.get_Item(0)");
13193
var
verifier = CompileAndVerify(comp, expectedOutput: "x => Index(0)");
13296
var
verifier = CompileAndVerify(comp, expectedOutput: "() => new Collection() {Void Add(Int32, Int32)(1, 0)}");
16161
var
c = CompileAndVerify(text, expectedOutput: "7788", verify: Verification.Fails, options: TestOptions.UnsafeReleaseExe);
20597
var
verifier = CompileAndVerify(source: text, expectedOutput: @"ffffffffffffffffffffffffffffffffffffffffffffffff
Semantics\SpanStackSafetyTests.cs (4)
730
var
verifier = CompileAndVerify(comp, expectedOutput: @"123").VerifyDiagnostics();
794
var
verifier = CompileAndVerify(comp, expectedOutput: @"1223").VerifyDiagnostics();
855
var
verifier = CompileAndVerify(comp, expectedOutput: @"123").VerifyDiagnostics();
913
var
verifier = CompileAndVerify(comp, expectedOutput: @"123").VerifyDiagnostics();
Semantics\StructConstructorTests.cs (43)
317
var
verifier = CompileAndVerify(source, expectedOutput:
393
var
verifier = CompileAndVerify(source, expectedOutput:
483
var
verifier = CompileAndVerify(source, expectedOutput: @"
582
var
verifier = CompileAndVerify(source, expectedOutput:
705
var
verifier = CompileAndVerify(source, expectedOutput:
815
var
verifier = CompileAndVerify(source, expectedOutput:
889
var
verifier = CompileAndVerify(source, parseOptions: GetParseOptions(languageVersion), expectedOutput:
951
var
verifier = CompileAndVerify(source, parseOptions: GetParseOptions(languageVersion), expectedOutput:
1018
var
verifier = CompileAndVerify(source, parseOptions: GetParseOptions(languageVersion), expectedOutput:
1107
var
verifier = CompileAndVerify(source, parseOptions: GetParseOptions(languageVersion), expectedOutput:
1204
var
verifier = CompileAndVerify(source, parseOptions: GetParseOptions(languageVersion), expectedOutput:
1343
var
verifier = CompileAndVerify(source, expectedOutput:
1479
var
verifier = CompileAndVerify(source, expectedOutput:
1730
var
verifier = CompileAndVerify(source, expectedOutput:
1819
var
verifier = CompileAndVerify(source, parseOptions: GetParseOptions(languageVersion), expectedOutput:
1985
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular11, expectedOutput:
2025
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular11, expectedOutput: "(, )");
2089
var
verifier = CompileAndVerify(comp, expectedOutput:
2168
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput:
2282
var
verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, options: TestOptions.ReleaseExe, verify: Verification.Skipped, expectedOutput:
2400
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput:
2464
var
verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, options: TestOptions.ReleaseExe, verify: Verification.Skipped, expectedOutput:
2765
var
verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11, expectedOutput:
2876
var
verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11, expectedOutput:
2947
var
verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11, expectedOutput:
3179
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput:
3907
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular11);
3946
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: "explicit ctor");
4021
var
verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), parseOptions: TestOptions.Regular11);
4064
var
verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), parseOptions: TestOptions.Regular11);
4171
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
4202
var
verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings));
4241
var
verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings));
4274
var
verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings));
4309
var
verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings));
4349
var
verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings));
4399
var
verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings));
4443
var
verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings));
4486
var
verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings));
4591
var
verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings));
4709
var
verifier = CompileAndVerify(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular11);
4739
var
verifier = CompileAndVerify(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
4771
var
verifier = CompileAndVerify(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
Semantics\SwitchTests.cs (4)
1113
var
comp = CompileAndVerify(text, expectedOutput: "");
2857
var
comp = CompileAndVerify(source, expectedOutput: @"1001");
2890
var
comp = CompileAndVerify(source, expectedOutput: @"1001");
2986
var
comp = CompileAndVerify(text, expectedOutput: "1 1 1 1");
Semantics\TopLevelStatementsTests.cs (10)
5654
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
6131
var
verifier = CompileAndVerify(
6202
var
verifier = CompileAndVerify(
9374
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
9406
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
9422
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
9438
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
9454
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
9531
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
9653
var
verifier = CompileAndVerify(comp, expectedOutput: "Program");
Semantics\UninitializedNonNullableFieldTests.cs (5)
874
var
verifier = CompileAndVerify(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular11);
1015
var
verifier = CompileAndVerify(comp, expectedOutput: "ok");
1065
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular11);
1131
var
verifier = CompileAndVerify(comp, expectedOutput: "ok ok ok ok");
1797
var
verifier = CompileAndVerify(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular11);
Semantics\UnsafeTests.cs (3)
5999
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
12133
var
compilation = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails);
12250
var
compilation = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails);
Semantics\UserDefinedConversionTests.cs (17)
1159
var
verifier = CompileAndVerify(source: source1 + source3 + source5, options: TestOptions.UnsafeReleaseExe, expectedOutput: "");
1286
var
verifier = CompileAndVerify(source, expectedOutput: "23");
1312
var
verifier = CompileAndVerify(source, expectedOutput: "a");
1345
var
verifier = CompileAndVerify(source, expectedOutput: "b");
1371
var
verifier = CompileAndVerify(source, expectedOutput: "1");
1441
var
verifier = CompileAndVerify(source, expectedOutput: "a");
1473
var
verifier = CompileAndVerify(source: source1, expectedOutput: "");
1721
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1774
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1831
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1866
var
verifier = CompileAndVerify(comp, expectedOutput: "0", verify: Verification.Skipped);
1911
var
verifier = CompileAndVerify(comp, expectedOutput: "0", verify: Verification.Skipped);
1976
var
verifier = CompileAndVerify(source, expectedOutput: "int");
2019
var
verifier = CompileAndVerify(source, expectedOutput: "string");
2081
var
verifier = CompileAndVerify(source, expectedOutput: "string");
2143
var
verifier = CompileAndVerify(source, expectedOutput: "string[]");
2207
var
verifier = CompileAndVerify(source, expectedOutput: "string");
Semantics\UsingDeclarationTests.cs (4)
626
var
verifier = CompileAndVerify(source, expectedOutput: """
695
var
verifier = CompileAndVerify(source);
727
var
verifier = CompileAndVerify(source, expectedOutput: """
762
var
verifier = CompileAndVerify(source, expectedOutput: """
Semantics\Utf8StringsLiteralsTests.cs (19)
418
var
verifier = CompileAndVerify(comp, expectedOutput: @"
1651
var
verifier = CompileAndVerify(comp, expectedOutput: @"
1704
var
verifier = CompileAndVerify(comp, expectedOutput: @"
1757
var
verifier = CompileAndVerify(comp, expectedOutput: @"
1819
var
verifier = CompileAndVerify(comp, expectedOutput: @"
1879
var
verifier = CompileAndVerify(comp, expectedOutput: @"
2006
var
verifier = CompileAndVerify(comp, expectedOutput: @"
2039
var
verifier = CompileAndVerify(comp, expectedOutput: "{ 0x63 0x61 0x74 }", verify: Verification.Fails).VerifyDiagnostics();
3333
var
verifier = CompileAndVerify(comp, verify: Verification.Fails with { ILVerifyMessage = """
3385
var
verifier = CompileAndVerify(comp, verify: Verification.Fails).VerifyDiagnostics();
3448
var
verifier = CompileAndVerify(comp, expectedOutput: @"ArgumentOutOfRangeException", verify: Verification.Fails).VerifyDiagnostics();
3496
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3538
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3587
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3636
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3686
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3733
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3774
var
verifier = CompileAndVerify(comp, expectedOutput: @"
4063
var
verifier = CompileAndVerify(comp, expectedOutput: @"
Semantics\WarningVersionTests.cs (6)
154
var
verifier = CompileAndVerify(
232
var
verifier = CompileAndVerify(
318
var
verifier = CompileAndVerify(
442
var
verifier = CompileAndVerify(
529
var
verifier = CompileAndVerify(
616
var
verifier = CompileAndVerify(
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (269)
DocumentationComments\DocumentationCommentCompilerTests.cs (8)
1288
var
verifier = CompileAndVerify(compilation, symbolValidator: module =>
1345
var
verifier = CompileAndVerify(compilation, symbolValidator: module =>
1408
var
verifier = CompileAndVerify(compilation, symbolValidator: module =>
1471
var
verifier = CompileAndVerify(compilation, symbolValidator: module =>
1969
var
verifier = CompileAndVerify(compilation, symbolValidator: module =>
2027
var
verifier = CompileAndVerify(compilation, symbolValidator: module =>
2091
var
verifier = CompileAndVerify(compilation, symbolValidator: module =>
2155
var
verifier = CompileAndVerify(compilation, symbolValidator: module =>
Symbols\AnonymousTypesSymbolTests.cs (1)
45
var
verifier = CompileAndVerify(
Symbols\CheckedUserDefinedOperatorsTests.cs (7)
3957
var
verifier = CompileAndVerify(compilation1, expectedOutput: @"
4061
var
verifier = CompileAndVerify(compilation1, expectedOutput: @"
4917
var
verifier = CompileAndVerify(compilation1, expectedOutput: @"
5027
var
verifier = CompileAndVerify(compilation1, expectedOutput: @"
5795
var
verifier = CompileAndVerify(compilation1, expectedOutput:
6063
var
verifier = CompileAndVerify(compilation1, expectedOutput:
6179
var
verifier = CompileAndVerify(compilation1, expectedOutput:
Symbols\ConversionTests.cs (1)
2374
var
verifier = CompileAndVerify(comp, expectedOutput:
Symbols\CovariantReturnTests.cs (3)
1570
var
c = CompileAndVerify(SourceView(comp, assignments), verify: Verification.Skipped);
3240
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
3403
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
Symbols\CSharpCompilerFeatureRequiredTests.cs (1)
68
protected override
CompilationVerifier
CompileAndVerify(CSharpCompilation compilation)
Symbols\DefaultInterfaceImplementationTests.cs (5)
49986
var
verifier = CompileAndVerify(compilation1, expectedOutput: !ExecutionConditionUtil.IsMonoOrCoreClr ? null : @"M1", verify: VerifyOnMonoOrCoreClr);
50848
var
verifier = CompileAndVerify(compilation0, expectedOutput: !ExecutionConditionUtil.IsMonoOrCoreClr ? null : @"M1", verify: VerifyOnMonoOrCoreClr);
50901
var
verifier = CompileAndVerify(compilation0, expectedOutput: !ExecutionConditionUtil.IsMonoOrCoreClr ? null : @"M1", verify: VerifyOnMonoOrCoreClr);
50954
var
verifier = CompileAndVerify(compilation0, expectedOutput: !ExecutionConditionUtil.IsMonoOrCoreClr ? null : @"A", verify: VerifyOnMonoOrCoreClr);
69145
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70,
Symbols\ExtendedPartialMethodsTests.cs (21)
115
var
verifier = CompileAndVerify(new[] { text1, text2 }, parseOptions: TestOptions.RegularWithExtendedPartialMethods, expectedOutput: "42");
215
var
verifier = CompileAndVerify(new[] { text1, text2 }, parseOptions: TestOptions.RegularWithExtendedPartialMethods, expectedOutput: "42");
241
var
verifier = CompileAndVerify(new[] { text1, text2 }, parseOptions: TestOptions.RegularWithExtendedPartialMethods, expectedOutput: "42");
1136
var
verifier = CompileAndVerify(
1210
var
verifier = CompileAndVerify(
1314
var
verifier = CompileAndVerify(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods, expectedOutput: "1");
1574
var
verifier = CompileAndVerify(
1610
var
verifier = CompileAndVerify(
2395
var
verifier = CompileAndVerify(
2422
var
verifier = CompileAndVerify(
2492
var
verifier = CompileAndVerify(
2546
var
verifier = CompileAndVerify(
2611
var
verifier = CompileAndVerify(
2654
var
verifier = CompileAndVerify(
2666
var
verifier = CompileAndVerify(
2695
var
verifier = CompileAndVerify(
2707
var
verifier = CompileAndVerify(
2753
var
verifier = CompileAndVerify(
2802
var
verifier = CompileAndVerify(
2836
var
verifier = CompileAndVerify(source2, references: new[] { reference }, parseOptions: TestOptions.RegularWithExtendedPartialMethods);
2894
var
verifier = CompileAndVerify(
Symbols\ExtensionMethodTests.cs (9)
876
var
compilation = CompileAndVerify(source);
942
var
compilation = CompileAndVerify(source);
2136
var
compilation = CompileAndVerify(source, expectedOutput:
2258
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: "orange, apple");
2297
var
compilation = CompileAndVerify(source, expectedOutput:
2377
var
compilation = CompileAndVerify(source, expectedOutput:
2647
var
compilation = CompileAndVerify(source, expectedOutput:
2746
private
CompilationVerifier
CompileAndVerify(string source, string expectedOutput = null, Action<ModuleSymbol> validator = null,
3297
var
compilationVerifier = CompileAndVerify(compilation1);
Symbols\FunctionPointerTypeSymbolTests.cs (1)
1391
var
verifier = CompileAndVerify(comp, expectedOutput: "1", verify: Verification.Skipped);
Symbols\GenericConstraintConversionTests.cs (2)
867
var
compilation = CompileAndVerify(source);
921
var
compilation = CompileAndVerify(source);
Symbols\GenericConstraintTests.cs (14)
1142
var
compilation = CompileAndVerify(source, expectedOutput:
1205
var
compilation = CompileAndVerify(source);
1245
var
compilation = CompileAndVerify(source);
1297
var
compilation = CompileAndVerify(source, expectedOutput:
1353
var
compilation = CompileAndVerify(source);
1469
var
compilation = CompileAndVerify(source, expectedOutput:
1588
var
compilation = CompileAndVerify(source, expectedOutput:
1655
var
compilation = CompileAndVerify(source, expectedOutput: "2, 1");
1715
var
compilation = CompileAndVerify(source, expectedOutput: "1, 2");
2466
var
compilation = CompileAndVerify(source, expectedOutput:
2527
var
compilation = CompileAndVerify(source);
4541
var
compilation = CompileAndVerify(source, expectedOutput:
5130
var
compilation = CompileAndVerify(source);
5731
var
csVerifier = CompileAndVerify(csCompilation);
Symbols\IndexedPropertyTests.cs (19)
58
var
compilation2 = CompileAndVerify(source2, references: new[] { reference1 }, expectedOutput:
124
var
compilation2 = CompileAndVerify(source2, references: new[] { reference1 }, expectedOutput:
224
var
compilation2 = CompileAndVerify(source2, references: new[] { reference1 }, expectedOutput:
351
var
compilation2 = CompileAndVerify(source2, references: new[] { reference1 }, expectedOutput:
618
var
compilation3 = CompileAndVerify(source3, references: new[] { reference1 }, expectedOutput:
727
var
compilation2 = CompileAndVerify(source2, references: new[] { reference1 }, expectedOutput:
884
var
compilation3 = CompileAndVerify(source3, references: new[] { reference1 });
977
var
compilation2 = CompileAndVerify(source2, references: new[] { reference1 }, expectedOutput:
1085
var
compilation2 = CompileAndVerify(source2, references: new[] { reference1 }, verify: Verification.Passes);
1564
var
compilation3 = CompileAndVerify(source3, references: new[] { reference1 }, verify: Verification.Skipped);
1690
var
compilation2 = CompileAndVerify(source2, references: new[] { reference1 });
1718
var
compilation3 = CompileAndVerify(source3, references: new[] { reference1, reference2 }, expectedOutput:
1839
var
compilation2 = CompileAndVerify(source2, references: new[] { reference1 }, expectedOutput:
1969
var
compilation2 = CompileAndVerify(source2, new[] { reference1 }, verify: Verification.Passes, expectedOutput:
2119
var
compilation3 = CompileAndVerify(source3, new[] { reference1 });
2261
var
compilation2 = CompileAndVerify(source2, new[] { reference1 }, verify: Verification.Passes, expectedOutput:
2331
var
compilation2 = CompileAndVerify(source2, new[] { reference1 }, verify: Verification.Passes, expectedOutput:
2406
var
compilation2 = CompileAndVerify(source2, new[] { reference1 }, verify: Verification.Passes, expectedOutput:
2631
var
compilation2 = CompileAndVerify(source2, references: new[] { reference1 }, expectedOutput:
Symbols\IndexerTests.cs (2)
126
var
compilation = CompileAndVerify(source);
2795
var
compilation2 = CompileAndVerify(source2, references: new[] { reference1 }, expectedOutput:
Symbols\Metadata\PE\TypeForwarders.cs (3)
1486
var
verifier1 = CompileAndVerify(comp1);
1528
var
verifier2 = CompileAndVerify(comp2, symbolValidator: metadataValidator, sourceSymbolValidator: metadataValidator);
1795
var
verifier2 = CompileAndVerify(comp2, symbolValidator: metadataValidator);
Symbols\ModuleInitializers\ModuleInitializersTests.cs (6)
444
var
verifier = CompileAndVerify(text, parseOptions: s_parseOptions, expectedOutput: "123");
470
var
verifier = CompileAndVerify(text, parseOptions: s_parseOptions, expectedOutput: "123");
499
var
verifier = CompileAndVerify(
549
var
verifier = CompileAndVerify(
595
var
verifier = CompileAndVerify(
648
var
verifier = CompileAndVerify(
Symbols\PartialPropertiesTests.cs (33)
687
var
verifier = CompileAndVerify(
768
var
verifier = CompileAndVerify(
890
var
verifier = CompileAndVerify(source, expectedOutput: "1");
975
var
verifier = CompileAndVerify(source, expectedOutput: "1");
1049
var
verifier = CompileAndVerify([source, IsExternalInitTypeDefinition], expectedOutput: "1");
1129
var
verifier = CompileAndVerify(source, expectedOutput: "1");
1175
var
verifier = CompileAndVerify(source, expectedOutput: "1");
1301
var
verifier = CompileAndVerify(source, expectedOutput: "1234");
1419
var
verifier = CompileAndVerify(source, expectedOutput: "1");
1735
var
verifier = CompileAndVerify(source, symbolValidator: verify, sourceSymbolValidator: verify);
1838
var
verifier = CompileAndVerify(source, expectedOutput: "11");
1942
var
verifier = CompileAndVerify(source, expectedOutput: "1");
2004
var
verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: "1");
2126
var
verifier = CompileAndVerify(source, expectedOutput: "01203");
2321
var
verifier = CompileAndVerify([source, RequiredMemberAttribute, SetsRequiredMembersAttribute, CompilerFeatureRequiredAttribute], expectedOutput: "A");
2866
var
verifier = CompileAndVerify(source, expectedOutput: "123");
3190
var
verifier = CompileAndVerify(source, expectedOutput: "123abc");
3257
var
verifier = CompileAndVerify(
3425
var
verifier = CompileAndVerify(source, expectedOutput: "12");
3472
var
verifier = CompileAndVerify(source, expectedOutput: "001");
3692
var
verifier = CompileAndVerify(source, symbolValidator: module => verify(module, isSource: false), sourceSymbolValidator: module => verify(module, isSource: true));
4366
var
verifier = CompileAndVerify(source, expectedOutput: "12", symbolValidator: verify);
4403
var
verifier = CompileAndVerify(source, expectedOutput: "02", symbolValidator: verify);
4445
var
verifier = CompileAndVerify(source, expectedOutput: "Program.cs2", symbolValidator: verify);
4481
var
verifier = CompileAndVerify(source, expectedOutput: "02", symbolValidator: verify);
4523
var
verifier = CompileAndVerify(source, expectedOutput: "Main2", symbolValidator: verify);
4559
var
verifier = CompileAndVerify(source, expectedOutput: "02", symbolValidator: verify);
4616
var
verifier = CompileAndVerify(source, expectedOutput: "GetNumber()2", symbolValidator: verify);
4667
var
verifier = CompileAndVerify(source, expectedOutput: "02", symbolValidator: verify);
4717
var
verifier = CompileAndVerify(source, expectedOutput: "1");
4762
var
verifier = CompileAndVerify([source, AllowNullAttributeDefinition], expectedOutput: "1");
4806
var
verifier = CompileAndVerify([source, AllowNullAttributeDefinition], expectedOutput: "1");
5031
var
verifier = CompileAndVerify(source, expectedOutput: "1", symbolValidator: verify, sourceSymbolValidator: verify);
Symbols\RequiredMembersTests.cs (10)
475
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator);
593
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator);
645
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator);
688
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator);
724
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator);
1388
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator);
3942
var
verifier = CompileAndVerify(comp, symbolValidator: verify, sourceSymbolValidator: verify);
3971
var
verifier = CompileAndVerify(comp, symbolValidator: verify, sourceSymbolValidator: verify);
4000
var
verifier = CompileAndVerify(comp, symbolValidator: verify, sourceSymbolValidator: verify);
4030
var
verifier = CompileAndVerify(comp, symbolValidator: verify, sourceSymbolValidator: verify);
Symbols\Source\EventTests.cs (7)
301
var
compVerifier = CompileAndVerify(text, expectedOutput: "T1H1H2T2H2T3T4H1H2T5H2T6");
492
var
compilationVerifier = CompileAndVerify(source: source, references: new[] { TargetFrameworkUtil.StandardCSharpReference, libAssemblyRef },
519
var
compilationVerifier = CompileAndVerify(source: source,
578
var
compilationVerifier = CompileAndVerify(
810
var
compVerifier = CompileAndVerify(source, new[] { TargetFrameworkUtil.StandardCSharpReference, CompileIL(ilSource) },
2514
var
verifier = CompileAndVerify(comp1).VerifyDiagnostics();
2652
var
verifier = CompileAndVerify(comp1).VerifyDiagnostics();
Symbols\Source\ExpressionBodiedMethodTests.cs (3)
20
var
comp = CompileAndVerify(@"
341
var
verifier = CompileAndVerify(comp, expectedOutput:
370
var
verifier = CompileAndVerify(comp, expectedOutput:
Symbols\Source\ExpressionBodiedPropertyTests.cs (2)
445
var
verifier = CompileAndVerify(comp, expectedOutput:
475
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: srcValidator);
Symbols\Source\FieldTests.cs (1)
477
var
verifier = new CompilationVerifier(compilation);
Symbols\Source\FileModifierTests.cs (32)
216
var
verifier = CompileAndVerify(source, expectedOutput: "1", symbolValidator: symbolValidator);
266
var
verifier = CompileAndVerify(new[] { ("", "file1.cs"), (source, "file2.cs") }, expectedOutput: "1", symbolValidator: symbolValidator);
313
var
verifier = CompileAndVerify(source, expectedOutput: "E2", symbolValidator: symbolValidator);
365
var
verifier = CompileAndVerify(source, expectedOutput: "(<>FE3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855__E)1", symbolValidator: symbolValidator);
441
var
verifier = CompileAndVerify(source, expectedOutput: "(<>FE3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855__E)1", symbolValidator: symbolValidator);
730
var
verifier = CompileAndVerify(SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.RegularPreview, path: "path/to/MyFile.cs", encoding: Encoding.Default), expectedOutput: "1", symbolValidator: symbolValidator);
773
var
verifier = CompileAndVerify(SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.RegularPreview, path: "path/to/My<>File.cs", encoding: Encoding.Default), expectedOutput: "1", symbolValidator: symbolValidator);
804
var
verifier = CompileAndVerify(SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.RegularPreview, path: "path/to/MyGeneratedFile.g.cs", encoding: Encoding.Default), expectedOutput: "1", symbolValidator: symbolValidator);
1089
var
verifier = CompileAndVerify(comp, expectedOutput: "1", symbolValidator: symbolValidator);
1148
var
verifier = CompileAndVerify(SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.RegularPreview, path: "path/to/My+File.cs", encoding: Encoding.Default), expectedOutput: "1", symbolValidator: validateSymbols);
1209
var
verifier = CompileAndVerify(new[] { (source1 + main, "file1.cs"), (source2, "file2.cs") }, expectedOutput: "1");
1346
var
verifier = CompileAndVerify(new[] { (source1, "file1.cs"), (source2, "file2.cs"), (main, "file3.cs") }, expectedOutput: "2");
1412
var
verifier = CompileAndVerify(new[] { (source1, "file1.cs"), (main, "file2.cs") }, expectedOutput: "2");
1474
var
verifier = CompileAndVerify(new[] { (source1, "file1.cs"), (main, "file2.cs") }, expectedOutput: "2");
1927
var
verifier = CompileAndVerify(new[] { (userCode, "file1.cs"), (generatedCode, "file2.cs") }, expectedOutput: "OtherFile.csProgram.cs");
1974
var
verifier = CompileAndVerify(new[] { (userCode, "file1.cs"), (generatedCode, "file2.cs") }, expectedOutput: "OtherFile.csProgram.cs");
2018
var
verifier = CompileAndVerify(new[] { (userCode, "file1.cs"), (generatedCode, "file2.cs") }, expectedOutput: "OtherFile.cs");
2590
var
verifier = CompileAndVerify(new[] { (source1, "file1.cs"), (source2, "file2.cs") }, expectedOutput: "2");
2630
var
verifier = CompileAndVerify(new[] { (source1, "file1.cs"), (source2, "file2.cs") }, expectedOutput: "1");
3157
var
verifier = CompileAndVerify(source, expectedOutput: "1");
3294
var
verifier = CompileAndVerify(new[] { (usings, "file1.cs"), (source, "file2.cs"), (IsExternalInitTypeDefinition, "file3.cs") }, expectedOutput: "1");
3465
var
verifier = CompileAndVerify(source, expectedOutput: "1");
3499
var
verifier = CompileAndVerify(new[] { (source1, "file1.cs"), (source2, "file2.cs") }, expectedOutput: "1");
3547
var
verifier = CompileAndVerify(new[] { (source1, "file1.cs"), (source2, "file2.cs") }, expectedOutput: "2");
3905
var
verifier = CompileAndVerify(source, expectedOutput: "1");
3926
var
verifier = CompileAndVerify(source, expectedOutput: "1");
3947
var
verifier = CompileAndVerify(source, expectedOutput: "1");
4635
var
verifier = CompileAndVerify(new[] { (source0, "F0.cs"), (source1, "F1.cs"), (source2, "F2.cs") }, expectedOutput: "12");
4788
var
verifier = CompileAndVerify(new[] { (source0, "F0.cs"), (source1, "F1.cs"), (source2, "F2.cs") }, expectedOutput: "12");
4831
var
verifier = CompileAndVerify(new[] { (source0, "F0.cs"), (source1, "F1.cs"), (source2, "F2.cs") }, expectedOutput: "12");
4874
var
verifier = CompileAndVerify(new[] { (source0, "F0.cs"), (source1, "F1.cs"), (source2, "F2.cs") }, expectedOutput: "12");
5049
var
verifier = CompileAndVerify(new[] { (source0, "F0.cs"), (source1, "F1.cs"), (source2, "F2.cs") }, expectedOutput: "12");
Symbols\Source\PropertyTests.cs (5)
477
var
compilation = CompileAndVerify(source, new[] { s_propertiesDll }, expectedOutput: "0");
663
var
compilation = CompileAndVerify(source, new[] { s_propertiesDll }, expectedOutput: "0");
698
var
verifier = CompileAndVerify(source, new[] { s_propertiesDll }, expectedOutput: "0");
2019
var
compilation2 = CompileAndVerify(source2, new[] { reference1 });
2777
var
verifier = CompileAndVerify(
Symbols\Source\RecordTests.cs (18)
19
private
CompilationVerifier
CompileAndVerify(CSharpTestSource src, string? expectedOutput = null)
298
var
verifier = CompileAndVerify(@"
351
var
verifier = CompileAndVerify(@"
415
var
verifier = CompileAndVerify(@"
434
var
verifier = CompileAndVerify(@"
454
var
verifier = CompileAndVerify(@"
522
var
verifier = CompileAndVerify(@"
548
var
verifier = CompileAndVerify(@"
609
var
verifier = CompileAndVerify(@"
671
var
verifier = CompileAndVerify(@"
753
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify).VerifyDiagnostics();
806
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify).VerifyDiagnostics();
903
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify).VerifyDiagnostics(
951
var
verifier = CompileAndVerify(@"
1036
var
v1 = CompileAndVerify(@"
1048
var
v2 = CompileAndVerify(@"
1171
var
verifier = CompileAndVerify(src).VerifyDiagnostics();
1526
var
verifier = CompileAndVerify(comp, expectedOutput: "", verify: Verification.Passes).VerifyDiagnostics();
Symbols\StaticAbstractMembersInInterfacesTests.cs (46)
8376
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
8759
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
9300
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
9591
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
10070
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
10526
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
10803
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
10975
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
11188
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
11353
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
11696
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
11983
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
13127
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
13212
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
13303
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
14003
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
14505
var
verifier = CompileAndVerify(compilation2, verify: Verification.Skipped).VerifyDiagnostics();
14643
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
15061
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
15333
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
16458
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
16543
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
16747
var
verifier = CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
21330
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
21447
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
21558
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
21693
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
22110
var
verifier = CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
24928
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
25117
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
25428
var
verifier = CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
27456
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
27657
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
28093
var
verifier = CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
29789
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
29905
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
30688
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
30867
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
31325
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
31624
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
31680
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
31738
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
31786
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
31829
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
31883
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
31932
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
Symbols\SymbolErrorTests.cs (2)
18517
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped).
20877
var
verifier = CompileAndVerify(
Symbols\UnsignedRightShiftTests.cs (7)
112
var
verifier = CompileAndVerify(compilation1, expectedOutput: @"
1163
var
verifier = CompileAndVerify(compilation1, expectedOutput: @"
1976
var
verifier = CompileAndVerify(compilation1, expectedOutput: @">>>").VerifyDiagnostics();
2228
var
verifier = CompileAndVerify(compilation1, expectedOutput: @">>>").VerifyDiagnostics();
2370
var
verifier = CompileAndVerify(compilation1, expectedOutput: @"Passed 1").VerifyDiagnostics();
2498
var
verifier = CompileAndVerify(compilation1, expectedOutput: @"
2596
var
verifier = CompileAndVerify(compilation1, expectedOutput: @"
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\LineSpanDirectiveTests.cs (1)
634
var
verifier = CompileAndVerify(source, options: TestOptions.DebugDll);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (13)
BasicCompilationUtils.cs (1)
26
var
verifier = Instance.CompileAndVerifyCommon(compilation, verify: verify);
CSharpTestBase.cs (12)
1304
internal
CompilationVerifier
CompileAndVerifyWithMscorlib40(
1340
internal
CompilationVerifier
CompileAndVerifyWithMscorlib46(
1376
internal
CompilationVerifier
CompileAndVerifyExperimental(
1418
internal
CompilationVerifier
CompileAndVerifyWithWinRt(
1454
internal
CompilationVerifier
CompileAndVerifyWithCSharp(
1490
internal
CompilationVerifier
CompileAndVerify(
1527
internal
CompilationVerifier
CompileAndVerify(
1570
internal
CompilationVerifier
CompileAndVerifyFieldMarshal(CSharpTestSource source, Dictionary<string, byte[]> expectedBlobs, bool isField = true) =>
1580
internal
CompilationVerifier
CompileAndVerifyFieldMarshal(CSharpTestSource source, Func<string, PEAssembly, byte[]> getExpectedBlob, bool isField = true) =>
2004
public
CompilationVerifier
CompileWithCustomILSource(string cSharpSource, string ilSource, Action<CSharpCompilation>? compilationVerifier = null, bool importInternals = true, string? expectedOutput = null, TargetFramework targetFramework = TargetFramework.Standard)
2041
internal
CompilationVerifier
CompileAndVerifyException<T>(string source, string? expectedMessage = null, bool allowUnsafe = false, Verification verify = default) where T : Exception
2047
internal
CompilationVerifier
CompileAndVerifyException<T>(CSharpCompilation comp, string? expectedMessage = null, Verification verify = default) where T : Exception
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (33)
CodeGen\WinMdEventTests.cs (5)
181
var
verifier = CompileAndVerifyWithWinRt(source, options: TestOptions.ReleaseWinMD);
217
var
verifier = CompileAndVerifyWithWinRt(source, options: TestOptions.ReleaseWinMD);
281
var
verifier = CompileAndVerifyWithWinRt(source, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseWinMD);
374
var
verifier = CompileAndVerifyWithWinRt(source, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseWinMD);
463
var
verifier = CompileAndVerifyWithWinRt(source, options: TestOptions.ReleaseWinMD);
CodeGen\WinRTCollectionTests.cs (21)
91
var
verifier = this.CompileAndVerifyOnWin8Only(source, expectedOutput: expectedOutput);
189
var
verifier = this.CompileAndVerifyOnWin8Only(
254
var
verifier = this.CompileAndVerifyOnWin8Only(
437
var
verifier = CompileAndVerifyWithWinRt(source,
1834
var
verifier = CompileAndVerifyWithWinRt(source,
3195
var
verifier = CompileAndVerifyWithWinRt(source,
4438
var
verifier = CompileAndVerifyWithWinRt(source,
4804
var
verifier = CompileAndVerifyWithWinRt(source,
4990
var
verifier = CompileAndVerifyWithWinRt(source,
5187
var
verifier = CompileAndVerifyWithWinRt(source,
5408
var
verifier = CompileAndVerifyWithWinRt(source,
5545
var
verifier = CompileAndVerifyWithWinRt(source,
5815
var
verifier = CompileAndVerifyWithWinRt(source,
6042
var
verifier = CompileAndVerifyWithWinRt(source,
6241
var
verifier = CompileAndVerifyWithWinRt(source,
6600
var
verifier = CompileAndVerifyWithWinRt(source,
6760
var
verifier = CompileAndVerifyWithWinRt(
7032
var
verifier = CompileAndVerifyWithWinRt(
7159
var
verifier = CompileAndVerifyWithWinRt(
7280
var
verifier = CompileAndVerifyWithWinRt(
7359
var
verifier = CompileAndVerifyWithWinRt(source, options: TestOptions.ReleaseWinMD);
Metadata\WinMdEventTests.cs (5)
328
var
verifier = this.CompileAndVerify(
2441
var
verifier = CompileAndVerify(
2577
var
cv = this.CompileAndVerifyOnWin8Only(text);
2637
var
cv = this.CompileAndVerifyOnWin8Only(text);
2701
var
cv = this.CompileAndVerifyOnWin8Only(text);
Metadata\WinMdMetadataTests.cs (1)
206
var
verifier = this.CompileAndVerifyOnWin8Only(source,
WinRTUtil.cs (1)
15
internal static
CompilationVerifier
CompileAndVerifyOnWin8Only(
Microsoft.CodeAnalysis.Test.Utilities (17)
BaseCompilerFeatureRequiredTests.cs (1)
617
protected abstract
CompilationVerifier
CompileAndVerify(TCompilation compilation);
CommonTestBase.cs (8)
72
internal
CompilationVerifier
CompileAndVerifyCommon(
99
CompilationVerifier
? result = null;
101
var
verifier = Emit(compilation,
131
internal
CompilationVerifier
CompileAndVerifyFieldMarshalCommon(Compilation compilation, Dictionary<string, byte[]> expectedBlobs, bool isField = true)
143
internal
CompilationVerifier
CompileAndVerifyFieldMarshalCommon(Compilation compilation, Func<string, PEAssembly, byte[]> getExpectedBlob, bool isField = true)
148
internal static void RunValidators(
CompilationVerifier
verifier, Action<PEAssembly>? assemblyValidator, Action<IModuleSymbol>? symbolValidator)
174
internal
CompilationVerifier
Emit(
188
var
verifier = new CompilationVerifier(compilation, VisualizeRealIL, dependencies);
CompilationVerifier.cs (7)
637
public
CompilationVerifier
VerifyIL(
651
public
CompilationVerifier
VerifyIL(
664
public
CompilationVerifier
VerifyMethodBody(
701
public
CompilationVerifier
VerifyMissing(
723
private
CompilationVerifier
VerifyILImpl(
804
public
CompilationVerifier
VerifyMemberInIL(string methodName, bool expected)
810
public
CompilationVerifier
VerifyDiagnostics(params DiagnosticDescription[] expected)
Platform\CoreClr\CoreCLRRuntimeEnvironment.cs (1)
32
CompilationVerifier
.ILVerify(verification, MainModule, Modules);
Roslyn.Test.PdbUtilities (12)
EditAndContinue\EditAndContinueTest.cs (1)
48
var
verifier = new CompilationVerifier(compilation);
EditAndContinue\EditAndContinueTest.GenerationInfo.cs (2)
25
public readonly
CompilationVerifier
? CompilationVerifier;
32
public GenerationInfo(Compilation compilation, MetadataReader reader, CompilationDifference? diff,
CompilationVerifier
? compilationVerifier, EmitBaseline baseline, Action<GenerationVerifier> verifier)
Reader\PdbTestUtilities.cs (1)
25
public static ISymUnmanagedReader3 CreateSymReader(this
CompilationVerifier
verifier)
Reader\PdbValidation.cs (8)
31
public static
CompilationVerifier
VerifyPdb(
32
this
CompilationVerifier
verifier,
45
public static
CompilationVerifier
VerifyPdb(
46
this
CompilationVerifier
verifier,
60
public static
CompilationVerifier
VerifyPdb(
61
this
CompilationVerifier
verifier,
76
public static
CompilationVerifier
VerifyPdb(
77
this
CompilationVerifier
verifier,