1 instantiation of CompilationVerifier
Microsoft.CodeAnalysis.Test.Utilities (1)
CommonTestBase.cs (1)
189
var verifier = new
CompilationVerifier
(compilation, VisualizeRealIL, dependencies);
5217 references to CompilationVerifier
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2332)
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 (2)
26
private
CompilationVerifier
CompileAndVerify(string source, string expectedOutput = null, IEnumerable<MetadataReference> references = null, CSharpCompilationOptions options = null)
940
var
v = CompileAndVerify(source, s_asyncRefs, targetFramework: TargetFramework.Empty, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: expected, symbolValidator: module =>
CodeGen\CodeGenAsyncIteratorTests.cs (24)
182
var
v = CompileAndVerify(comp, expectedOutput: "hello world");
361
var
v = CompileAndVerify(comp, expectedOutput: "hello world!");
719
var
verifier = CompileAndVerify(comp, expectedOutput: "123", verify: Verification.FailsILVerify);
878
var
verifier = CompileAndVerify(comp, expectedOutput: "123", verify: Verification.FailsILVerify);
2650
var
verifier = CompileAndVerify(comp, expectedOutput: "0 1 2 3 4 5");
3207
var
verifier = CompileAndVerify(comp);
3475
var
verifier = CompileAndVerify(comp);
3744
var
verifier = CompileAndVerify(comp);
4008
var
verifier = CompileAndVerify(comp);
7143
var
verifier = CompileAndVerify(comp, expectedOutput: "42 43 Cancelled");
7276
var
verifier = CompileAndVerify(comp, expectedOutput: "42 43 Cancelled");
8233
var
v = CompileAndVerify(comp, expectedOutput: "BEFORE INSIDE INSIDE2 AFTER");
8282
var
v = CompileAndVerify(comp, expectedOutput: "BEFORE INSIDE INSIDE2 AFTER");
8331
var
v = CompileAndVerify(comp, expectedOutput: "BEFORE INSIDE INSIDE2 AFTER");
8855
var
verifier = CompileAndVerify(comp,
9053
var
verifier = CompileAndVerify(comp,
9094
var
verifier = CompileAndVerify(comp,
9139
var
verifier = CompileAndVerify(comp,
9180
var
verifier = CompileAndVerify(comp,
9376
var
verifier = CompileAndVerify(comp,
9422
var
verifier = CompileAndVerify(comp,
9474
var
verifier = CompileAndVerify(src, expectedOutput: ExpectedOutput("value value True"), verify: Verification.Skipped, targetFramework: TargetFramework.Net80).VerifyDiagnostics();
9913
var
verifier = CompileAndVerify(src, expectedOutput: ExpectedOutput("4242"), references: [libComp.EmitToImageReference()],
10294
var
verifier = CompileAndVerify(src, expectedOutput: ExpectedOutput("False 0 False 1 True"),
CodeGen\CodeGenAsyncLocalsTests.cs (10)
27
private
CompilationVerifier
CompileAndVerify(string source, string expectedOutput = null, IEnumerable<MetadataReference> references = null, CSharpCompilationOptions options = null, Verification verify = default)
33
private string GetFieldLoadsAndStores(
CompilationVerifier
c, string qualifiedMethodName)
306
var
vd = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
512
var
verifier = CompileAndVerify(source, expectedOutput: expected);
642
var
verifier = CompileAndVerify(source, expectedOutput: expected);
992
var
c = CompileAndVerify(source, expectedOutput: null, options: TestOptions.ReleaseDll);
1150
var
c = CompileAndVerify(source, expectedOutput: null, options: TestOptions.ReleaseDll);
1301
var
verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"1", verify: Verification.Fails);
1558
var
verifier = CompileAndVerify(text, options: TestOptions.ReleaseExe, expectedOutput: @"2");
1883
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)
130
var
verifier = CompileAndVerify(compilation, expectedOutput: "M F G 3");
536
var
verifier = CompileAndVerify(compilation, expectedOutput: "M F G 3");
843
var
verifier = CompileAndVerify(compilation, expectedOutput: "M F 3");
942
var
verifier = CompileAndVerify(compilation, expectedOutput: "Overload1 Lambda1 Overload2 Lambda2");
2136
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
CodeGen\CodeGenAsyncSpillTests.cs (12)
23
private
CompilationVerifier
CompileAndVerify(string source, string expectedOutput = null, IEnumerable<MetadataReference> references = null, CSharpCompilationOptions options = null)
596
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
759
var
v = CompileAndVerify(source, options: TestOptions.ReleaseDll);
3278
var
verifier = CompileAndVerify(source, expectedOutput: "System.Int32",
3401
var
v = CompileAndVerify(source, expected);
3437
var
v = CompileAndVerify(source, "42");
3578
var
v = CompileAndVerify(source, options: TestOptions.DebugExe);
3710
var
v = CompileAndVerify(
3752
var
v = CompileAndVerify(
6441
var
verifier = CompileAndVerify(source, expectedOutput: "1");
6477
var
verifier = CompileAndVerify(source, expectedOutput: "1");
6508
var
verifier = CompileAndVerify(source, expectedOutput: "1");
CodeGen\CodeGenAsyncTests.cs (10)
36
private
CompilationVerifier
CompileAndVerify(string source, string expectedOutput, IEnumerable<MetadataReference> references = null, CSharpCompilationOptions options = null, Verification verify = default)
2195
var
c = CompileAndVerify(source, expectedOutput: expected);
2340
var
c = CompileAndVerify(source, options: TestOptions.ReleaseDebugExe, expectedOutput: expected);
2488
var
c = CompileAndVerify(source, expectedOutput: expected, options: TestOptions.DebugExe);
2643
var
c = CompileAndVerify(source, expectedOutput: expected);
3451
var
v = CompileAndVerify(source, null, options: TestOptions.ReleaseDll);
3914
var
v = CompileAndVerify(source, null, options: TestOptions.ReleaseDll);
4236
var
v = CompileAndVerify(source, null, options: TestOptions.DebugDll);
5935
var
verifier = CompileAndVerify(comp);
6135
var
verifier = CompileAndVerify(src, expectedOutput: ExpectedOutput("4242"), references: [libComp.EmitToImageReference()],
CodeGen\CodeGenAwaitForeachTests.cs (4)
3357
var
verifier = CompileAndVerify(comp,
3784
var
verifier = CompileAndVerify(comp, expectedOutput: "NextAsync(0) Current(1) Got(1) NextAsync(1) Current(2) Got(2) NextAsync(2) Current(3) Got(3) NextAsync(3) Dispose(4)");
5126
var
verifier = CompileAndVerify(comp, expectedOutput: "NextAsync(0) Current(1) Got NextAsync(1) Current(2) Got NextAsync(2) Current(3) Got NextAsync(3)");
5352
var
verifier = CompileAndVerify(comp, expectedOutput: "NextAsync(0) Current(1) Got NextAsync(1) Current(2) Got NextAsync(2) Current(3) Got NextAsync(3)");
CodeGen\CodeGenAwaitUsingTests.cs (6)
1121
var
verifier = CompileAndVerify(comp, expectedOutput: "body DisposeAsync");
1295
var
verifier = CompileAndVerify(comp, expectedOutput: "body DisposeAsync");
1470
var
verifier = CompileAndVerify(comp, expectedOutput: "body DisposeAsync");
1715
var
verifier = CompileAndVerify(comp, expectedOutput: "body DisposeAsync");
1884
var
verifier = CompileAndVerify(comp, expectedOutput: "body DisposeAsync");
2699
var
verifier = CompileAndVerify(comp, expectedOutput: "using dispose_start dispose_end return");
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 (31)
20
protected
CompilationVerifier
CompileAndVerifyUtil(
392
var
verifier = CompileAndVerify(new[] { ExpressionTestLibrary, @"
417
var
verifier = CompileAndVerify(@"
648
var
compilation = CompileAndVerifyUtil(
670
var
compilation = CompileAndVerifyUtil(
696
var
compilation = CompileAndVerifyUtil(
721
var
compilation = CompileAndVerifyUtil(
743
var
compilation = CompileAndVerifyUtil(
789
var
compilation = CompileAndVerifyUtil(
811
var
compilation = CompileAndVerifyUtil(
919
var
compilation = CompileAndVerifyUtil(
974
var
compilation = CompileAndVerifyUtil(
1026
var
compilation = CompileAndVerifyUtil(
1078
var
compilation = CompileAndVerifyUtil(
1130
var
compilation = CompileAndVerifyUtil(
1182
var
compilation = CompileAndVerifyUtil(
1234
var
compilation = CompileAndVerifyUtil(
1280
var
compilation = CompileAndVerifyUtil(
1329
var
compilation = CompileAndVerifyUtil(
1391
var
compilation = CompileAndVerifyUtil(
1413
var
compilation = CompileAndVerifyUtil(
1515
var
compilation = CompileAndVerifyUtil(
1566
var
compilation = CompileAndVerifyUtil(
1634
var
compilation = CompileAndVerifyUtil(
1663
var
compilation = CompileAndVerifyUtil(
1713
var
compilation = CompileAndVerifyUtil(
1751
var
compilation = CompileAndVerifyUtil(
1814
var
compilation = CompileAndVerifyUtil(
3218
var
c = CompileAndVerifyUtil(text,
4046
var
verifier = CompileAndVerifyUtil(
4197
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 =>
12359
var
verifier = CompileAndVerify(source, expectedOutput: expectedOutput, options: TestOptions.UnsafeDebugExe, symbolValidator: module =>
12420
var
verifier = CompileAndVerifyFunctionPointers(code, expectedOutput: "true");
12466
var
verifier = CompileAndVerifyFunctionPointers(code, expectedOutput: "true");
12512
var
verifier = CompileAndVerifyFunctionPointers(code, expectedOutput: "true");
12558
var
verifier = CompileAndVerifyFunctionPointers(code, expectedOutput: "true");
12763
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
917
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: "42");
977
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: "42");
1038
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: "42");
1089
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: @"hi
1126
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails);
1333
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails);
1376
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails);
1446
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"42");
1479
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"42");
1616
var
verifier = CompileAndVerify(text, verify: Verification.Fails, expectedOutput: "6");
1752
var
result = CompileAndVerify(comp, verify: Verification.Fails, expectedOutput: @"47");
2344
var
v = CompileAndVerify(comp, verify: Verification.Fails, expectedOutput: @"
2574
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"0");
2632
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"");
2724
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"4242420");
3736
var
verifier = CompileAndVerify(compilation, expectedOutput: "XX");
3774
var
verifier = CompileAndVerify(compilation, expectedOutput: "5050");
3825
var
verifier = CompileAndVerify(compilation, expectedOutput: "5050");
3883
var
verifier = CompileAndVerify(compilation, expectedOutput: "5050");
3947
var
verifier = CompileAndVerify(compilation, expectedOutput: "555555");
4011
var
verifier = CompileAndVerify(compilation, expectedOutput: "0011", verify: Verification.FailsPEVerify);
4089
var
verifier = CompileAndVerify(compilation, expectedOutput: "");
4145
var
verifier = CompileAndVerify(compilation, expectedOutput: "hihi");
4203
var
verifier = CompileAndVerify(compilation, expectedOutput: "hihi");
4266
var
verifier = CompileAndVerify(compilation, expectedOutput: "11");
4339
var
verifier = CompileAndVerify(compilation, expectedOutput: "TestTest");
4396
var
verifier = CompileAndVerify(compilation, expectedOutput: "TestTestDerivedDerived");
4453
var
verifier = CompileAndVerify(source, expectedOutput: "00");
4525
var
verifier = CompileAndVerify(source, expectedOutput: "00");
4603
var
verifier = CompileAndVerify(source, expectedOutput: "00", verify: Verification.FailsPEVerify);
4687
var
verifier = CompileAndVerify(source, expectedOutput: "12");
4754
var
comp = CompileAndVerify(text, expectedOutput: "00");
4870
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 (34)
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(
6301
internal
CompilationVerifier
VerifyOutput(string source, string output, CSharpCompilationOptions options, Verification verify = default)
6307
internal
CompilationVerifier
VerifyOutput(string source, string output)
6313
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
5301
var
result = CompileAndVerify(source, options: TestOptions.ReleaseExe);
5356
var
result = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: "True");
5404
var
result = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: "11461640193");
5556
var
result = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"5180801
5761
var
result = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput);
5861
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
5919
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
5982
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
6054
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
6085
var
verifier = CompileAndVerify(comp);
6141
var
verifier = CompileAndVerify(comp);
6328
var
cv = CompileAndVerify(comp, expectedOutput: @"TrueFalse");
6414
var
verifier = CompileAndVerify(code, expectedOutput: "Run");
6496
var
verifier = CompileAndVerify(code, expectedOutput: "Run");
6656
var
verifier = CompileAndVerify(code, expectedOutput: "Run");
6724
var
verifier = CompileAndVerify(code, expectedOutput: "Run");
6798
var
verifier = CompileAndVerify(code, expectedOutput: "12");
6881
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)
658
var
cv = CompileAndVerify(comp, expectedOutput: "", verify: Verification.Passes);
726
var
cv = CompileAndVerify(comp, expectedOutput: "100", verify: Verification.Passes);
765
var
verifier = CompileAndVerify(compilation, expectedOutput: "10;20;", verify: Verification.Skipped);
804
var
verifier = CompileAndVerify(compilation, expectedOutput: "10;20;", verify: Verification.Skipped);
899
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
946
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
1027
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
1051
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
1094
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
1173
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
1317
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
1369
var
verifier = CompileAndVerify(compilation, expectedOutput: "AF2D4567", verify: Verification.Skipped);
1482
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
1516
var
verifier = CompileAndVerify(compilation, verify: Verification.Passes);
1549
var
verifier = CompileAndVerify(compilation, expectedOutput: "000000", verify: Verification.Passes);
1626
var
verifier = CompileAndVerify(compilation, expectedOutput: "3402", verify: Verification.Fails with { ILVerifyMessage = ilVerifyMessage, PEVerifyMessage = peVerifyMessage });
2407
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
2514
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
2567
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
2615
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
2666
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
2737
var
verifier = CompileAndVerify(compilation, expectedOutput: "ran",
2807
var
verifier = CompileAndVerify(compilation, expectedOutput: "2 hello world",
2879
var
verifier = CompileAndVerify(compilation, expectedOutput: "2 hello world",
2924
var
verifier = CompileAndVerify(compilation, expectedOutput: "hello world",
2992
var
verifier = CompileAndVerify(compilation, expectedOutput: "1 1",
3037
var
verifier = CompileAndVerify(compilation, expectedOutput: "1 2147483647", verify: Verification.FailsILVerify);
3085
var
verifier = CompileAndVerify(compilation, expectedOutput: "1 1",
3130
var
verifier = CompileAndVerify(compilation, expectedOutput: "1 4294967295", verify: Verification.Skipped);
3175
var
verifier = CompileAndVerify(compilation, expectedOutput: "1 1",
3244
var
verifier = CompileAndVerify(compilation, expectedOutput: "1 1",
3287
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
3386
var
verifier = CompileAndVerify(compilation, expectedOutput: "2 True False", verify: Verification.Skipped).VerifyDiagnostics();
3411
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
3434
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
3528
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
837
var
comp = CompileAndVerify(source, expectedOutput: "1", verify: Verification.Passes);
881
var
comp = CompileAndVerify(source, expectedOutput: "1", verify: Verification.Passes);
912
var
comp = CompileAndVerify(source, expectedOutput: "1", verify: Verification.Passes);
1000
var
comp = CompileAndVerify(source, expectedOutput: "1");
1065
var
comp = CompileAndVerifyWithMscorlib40(source, references: new[] { Net40.References.System, ValueTupleRef, Net40.References.SystemCore }, expectedOutput: "00", verify: Verification.FailsPEVerify);
1153
var
comp = CompileAndVerify(source, expectedOutput: "00", verify: Verification.FailsPEVerify);
1268
var
verifier = CompileAndVerify(comp, expectedOutput: "run", verify: verify);
1355
var
verifier = CompileAndVerify(comp, expectedOutput: "0run", verify: Verification.Fails);
1404
var
comp = CompileAndVerify(source, expectedOutput: "0123-1230", options: TestOptions.ReleaseExe);
1539
var
comp = CompileAndVerify(source, expectedOutput: "0123-1230", options: TestOptions.ReleaseExe);
1684
var
comp = CompileAndVerify(source, expectedOutput: "0123-1230", options: TestOptions.ReleaseExe);
1837
var
comp = CompileAndVerify(source, expectedOutput: "0123-1230", options: TestOptions.ReleaseExe);
2060
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(@"
129
var
verifier = CompileAndVerify(@"
154
var
verifier = CompileAndVerify(@"
195
var
verifier = CompileAndVerify(@"
236
var
verifier = CompileAndVerify(@"
269
var
verifier = CompileAndVerify(@"
369
var
verifier = CompileAndVerify(@"
538
var
comp = CompileAndVerify(@"
571
var
comp = CompileAndVerify(@"
601
var
comp = CompileAndVerify(@"
646
var
comp = CompileAndVerify(@"
696
var
comp = CompileAndVerify(@"
785
var
comp = CompileAndVerify(@"
870
var
comp = CompileAndVerify(@"
924
var
comp = CompileAndVerify(@"
947
var
comp = CompileAndVerify(@"
1031
var
comp = CompileAndVerify(@"
1060
var
comp = CompileAndVerify(@"
1112
var
comp = CompileAndVerify(@"
1140
var
comp = CompileAndVerify(@"
1177
var
comp = CompileAndVerify(@"
1251
var
comp = CompileAndVerify(@"
1322
var
comp = CompileAndVerify(@"
1367
var
comp = CompileAndVerify(@"
1420
var
comp = CompileAndVerify(@"
1469
var
comp = CompileAndVerify(@"
1510
var
comp = CompileAndVerify(@"
1605
var
comp = CompileAndVerify(@"
2205
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
2276
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
2366
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll);
2428
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
2495
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
2577
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll);
2672
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll);
2748
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll);
2799
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll);
2880
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
2951
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
3048
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
3158
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
3235
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
3341
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
3486
var
verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "22" : null,
3526
var
verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "32" : null,
3563
var
verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "2" : null,
3611
var
verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null,
3664
var
verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null,
3701
var
verifier = CompileAndVerify(source, expectedOutput: "22");
3738
var
verifier = CompileAndVerify(source, expectedOutput: "32");
3776
var
verifier = CompileAndVerify(source, expectedOutput: "22");
3821
var
verifier = CompileAndVerify(source, expectedOutput: "32");
4242
var
verifier = CompileAndVerify(comp, expectedOutput: "run", verify: verify);
4311
var
verifier = CompileAndVerify(comp, expectedOutput: "0", verify: Verification.Fails);
4376
var
verifier = CompileAndVerify(comp, expectedOutput: "run", verify: verify);
4428
var
verifier = CompileAndVerify(comp, expectedOutput: "run", verify: verify);
4484
var
verifier = CompileAndVerify(comp, expectedOutput: "run", verify: verify);
4508
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "");
4561
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "");
4613
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "");
4664
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "");
4713
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "");
4749
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 (31)
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, expectedOutput: @"test_field: 2");
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");
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(@"
1079
var
verifier = CompileAndVerify(@"
1108
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)
222
var
c = CompileAndVerify(text);
318
var
c = CompileAndVerify(text);
359
var
c = CompileAndVerify(text);
393
var
c = CompileAndVerify(text, expectedOutput: @"a
503
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 (16)
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");
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);
694
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"3", verify: Verification.Fails);
752
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"34", verify: Verification.Fails);
827
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"123", verify: Verification.Fails);
903
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"123", verify: Verification.Fails);
970
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"34", verify: Verification.Fails);
1084
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails);
1204
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails);
1248
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"
1277
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "210", verify: Verification.Fails);
1297
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "1", verify: Verification.Fails).VerifyIL("C.Main", @"
1338
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"1", verify: Verification.Fails);
1396
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"123", verify: Verification.Fails);
1454
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"12", verify: Verification.Fails);
1524
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"12", verify: Verification.Fails);
1586
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
1659
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"12", verify: Verification.Fails);
1725
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"a", verify: Verification.Fails);
1770
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: @"a", verify: Verification.Fails);
1814
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: @"h", verify: Verification.Fails);
1871
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: @"hTrue", verify: Verification.Fails);
1956
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"hTrue", verify: Verification.Fails);
2027
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"01", verify: Verification.Fails);
2095
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"01", verify: Verification.Fails);
2163
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"01", verify: Verification.Fails);
2234
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"970104", verify: Verification.Fails);
4157
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Fails);
4217
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Fails);
4305
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"0", verify: Verification.Fails);
4356
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Fails);
4418
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Fails);
4658
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"20", verify: Verification.Fails);
4732
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"5456");
4792
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"5456");
4884
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"2123
4973
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"5456");
5033
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"23", verify: Verification.Fails);
5111
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"3", verify: Verification.Fails);
5539
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"");
5666
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"00", verify: Verification.Fails);
7529
var
comp = CompileAndVerify(text, options: TestOptions.UnsafeDebugDll, verify: Verification.Fails);
9864
var
verifier = CompileAndVerify(@"
9908
var
verifier = CompileAndVerify(@"
10194
var
verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails);
10340
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
10827
var
c = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.FailsPEVerify with
10849
var
c = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.FailsPEVerify with
10950
var
comp = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyDiagnostics();
11003
var
comp = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "ABC", verify: Verification.Fails).VerifyDiagnostics();
11114
var
verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "hello", verify: Verification.Fails);
11183
var
verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"
11263
var
verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"
11315
var
verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll.WithConcurrentBuild(false), verify: Verification.Passes);
11339
var
verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll.WithConcurrentBuild(false), verify: Verification.FailsPEVerify);
11379
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F6543210", verify: Verification.Fails);
11425
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F6543210", verify: Verification.Fails);
11474
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F6543210", verify: Verification.Fails);
11516
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F654320F", verify: Verification.Fails);
11559
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "0", verify: Verification.Passes);
11613
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "System.Byte[]", verify: Verification.Fails);
11686
var
v = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: "System.Byte[]", verify: Verification.Fails);
11810
var
result = CompileAndVerify(compilation, expectedOutput: "5");
11857
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, expectedOutput: "0", verify: Verification.FailsPEVerify);
11889
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)
1060
var reference =
CompilationVerifier
.LoadTestEmittedExecutableForSymbolValidation(image, OutputKind.DynamicallyLinkedLibrary);
1142
var reference =
CompilationVerifier
.LoadTestEmittedExecutableForSymbolValidation(image, OutputKind.DynamicallyLinkedLibrary);
1610
var
verifier = CompileAndVerify(comp);
1687
var
verifier = CompileAndVerify(comp);
Emit\DeterministicTests.cs (1)
437
var
cv = CompileAndVerify(source: new string[] { x1, x2, x3 }, expectedOutput: expectedOutput1);
Emit\DynamicAnalysis\DynamicInstrumentationTests.cs (45)
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);
3627
private static void AssertNotInstrumented(
CompilationVerifier
verifier, string qualifiedMethodName)
3630
private static void AssertInstrumented(
CompilationVerifier
verifier, string qualifiedMethodName, bool expected = true)
3641
private
CompilationVerifier
CompileAndVerify(string source, string expectedOutput = null, CSharpCompilationOptions options = null, CSharpParseOptions parseOptions = null, Verification verify = default)
3652
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 (1)
1543
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput:
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 (708)
CodeGen\CodeGenCallTests.cs (175)
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();
3579
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
3668
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
3791
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
3887
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
4178
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
4349
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
4722
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
4924
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
5069
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
5168
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
5314
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
5420
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
5728
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
5902
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
6292
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
6497
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
6638
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
6735
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
6877
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
6981
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
7273
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
7442
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
7816
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
8016
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
8157
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
8254
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
8396
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
8500
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
8798
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
8970
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
9350
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
9558
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
9705
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
9815
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
10147
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
10337
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
10484
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
10594
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
10932
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
11120
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
11289
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
11400
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
11570
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
11688
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
12008
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
12191
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
12593
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
12807
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
12934
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
13028
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
13155
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
13256
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
13551
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
13715
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
13858
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
13956
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
14100
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
14205
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
14529
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
14709
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
15005
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
15174
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
15571
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
15780
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
15943
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
16051
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
16215
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
16330
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
16644
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
16815
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
16986
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
17098
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
17270
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
17389
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
17717
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
17902
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
18226
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
18409
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
18815
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
19030
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
19151
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
19237
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
19359
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
19452
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
19720
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
19883
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
20029
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
20132
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
20279
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
20389
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
20689
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
20860
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
21024
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
21140
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
21305
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
21428
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
21756
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
21936
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
22088
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
22201
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
22354
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
22474
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
22803
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
22991
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
23157
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
23274
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
23441
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
23565
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
23920
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
24120
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
24452
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
24641
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
25074
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
25303
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
25495
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
25625
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
25818
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
25955
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
26311
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
26505
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
26691
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
26818
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
27005
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
27139
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
27493
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
27686
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
27880
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
28011
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
28206
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
28344
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
28708
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
28913
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
29273
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
29476
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
29912
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
30144
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
30292
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
30399
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
30548
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
30662
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
30978
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
31148
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
31289
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
31389
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
31531
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
31638
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
31933
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
32096
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
32271
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
32388
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
32564
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
32688
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
33023
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
33190
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
33296
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
33463
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, verify: Verification.Fails, expectedOutput: expectedOutput).VerifyDiagnostics();
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 (62)
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);
651
var
verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
726
var
verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
800
var
verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
850
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "sc" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1004
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "sccs" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1073
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "cssscsssccsc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1183
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "cssscsssccsc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1287
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "scs" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1363
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? expectedOutput : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1474
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "aab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1540
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "aab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1605
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "scscsc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1666
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "cssscsssccsc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1746
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1792
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1851
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "cssscsssccsc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1938
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abccab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1991
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abccab" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
2059
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abccab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
2192
var
verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
2270
var
verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
2347
var
verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
2398
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "scs" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
2597
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "cssscsssccsc" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
2714
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "csssscsssscssssccscsscsccssc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
2902
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "csssscsssscssssccscsscsccssc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3090
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "scss" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3178
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? expectedOutput : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3363
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "aaab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3438
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3514
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "scsscsscsscsscsscs" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3587
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "csssscsssscssssccscsscsccssc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3708
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcd" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3756
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcd" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3826
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "csssscsssscssssccscsscsccssc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3960
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abccccabcabc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4031
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abccccabcabc" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4136
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcdabdccdabdcabcabddabc" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4292
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcd" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4345
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcddabc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4401
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcddabc" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4474
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abccccabcabc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4564
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcdabdccdabdcabcabddabc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4688
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcddabc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4845
var
verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4926
var
verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
5006
var
verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
5058
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "sccs" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
5305
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "csssscsssscssssccscsscsccssc" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
5486
var
verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "scsssssssc" : null, verify: ExecutionConditionUtil.IsCoreClr ? default : Verification.Skipped);
5605
var
comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "sscss" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
5676
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)
215
var
v0 = CompileAndVerify(compilation0);
216
var
v1 = CompileAndVerify(compilation1);
217
var
v2 = CompileAndVerify(compilation2);
319
var
v0 = CompileAndVerify(compilation0);
320
var
v1 = CompileAndVerify(compilation1);
321
var
v2 = CompileAndVerify(compilation2);
402
var
v0 = CompileAndVerify(compilation0);
403
var
v1 = CompileAndVerify(compilation1);
404
var
v2 = CompileAndVerify(compilation2);
486
var
v0 = CompileAndVerify(compilation0, verify: Verification.FailsILVerify);
590
var
v0 = CompileAndVerify(compilation0, verify: Verification.Passes);
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\EditAndContinueTestBase.cs (1)
242
internal static void SaveImages(string outputDirectory,
CompilationVerifier
baseline, params CompilationDifference[] diffs)
Emit\EditAndContinue\EditAndContinueTests.cs (3)
347
var
v0 = CompileAndVerify(compilation0);
400
var
v0 = CompileAndVerify(compilation0);
468
var
v0 = CompileAndVerify(compilation0);
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 (58)
183
private
CompilationVerifier
CompileAndVerify(string source, string? ilVerifyMessage = null, string? expectedOutput = null, TargetFramework targetFramework = s_targetFramework)
193
public
CompilationVerifier
CompileAndVerifyFails(string source, string? ilVerifyMessage = null, string? expectedOutput = null)
202
private static void AssertNotInstrumented(
CompilationVerifier
verifier, string qualifiedMethodName)
205
private static void AssertInstrumented(
CompilationVerifier
verifier, string qualifiedMethodName, bool expected = true)
228
var
verifier = CompileAndVerify(
361
var
verifier = CompileAndVerify(
515
var
verifier = CompileAndVerify(source);
655
var
verifier = CompileAndVerify(source);
701
var
verifier = CompileAndVerify(source);
753
var
verifier = CompileAndVerify(source);
803
var
verifier = CompileAndVerify(source);
821
var
verifier = CompileAndVerify(source);
844
var
verifier = CompileAndVerify(source);
1000
var
verifier = CompileAndVerify(
1088
var
verifier = CompileAndVerify(source, expectedOutput: $@"
1177
var
verifier = CompileAndVerify(source);
1249
var
verifier = CompileAndVerify(source);
1349
var
verifier = CompileAndVerify(
1442
var
verifier = CompileAndVerify(source, expectedOutput: $@"
1535
var
verifier = CompileAndVerify(source, expectedOutput: @"
1608
var
verifier = CompileAndVerify(source, expectedOutput: @"
1703
var
verifier = CompileAndVerify(
1777
var
verifier = CompileAndVerify(
1861
var
verifier = CompileAndVerify(source, expectedOutput: @"
1953
var
verifier = CompileAndVerify(source);
2027
var
verifier = CompileAndVerify(source, expectedOutput: @"
2305
var
verifier = CompileAndVerify(source, expectedOutput: @"
2423
var
verifier = CompileAndVerify(source, expectedOutput: @"
2527
var
verifier = CompileAndVerify(source, expectedOutput: @"
2625
var
verifier = CompileAndVerify(source);
2697
var
verifier = CompileAndVerify(source);
2785
var
verifier = CompileAndVerify(source);
2879
var
verifier = CompileAndVerify(source, ilVerifyMessage: @"
2946
var
verifier = CompileAndVerify(source, ilVerifyMessage: """
3036
var
verifier = CompileAndVerify(source, expectedOutput: @"
3132
var
verifier = CompileAndVerify(source, expectedOutput: expectedOutput);
3222
var
verifier = CompileAndVerify(source, expectedOutput: @"
3306
var
verifier = CompileAndVerify(source, expectedOutput: @"
3461
var
verifier = CompileAndVerify(source);
3543
var
verifier = CompileAndVerify(source, expectedOutput: @"
3792
var
verifier = CompileAndVerify(source, expectedOutput: @"
3909
var
verifier = CompileAndVerify(source, expectedOutput: @"
4119
var
verifier = CompileAndVerify(source, expectedOutput: @"
4361
var
verifier = CompileAndVerify(source, expectedOutput: @"
4557
var
verifier = CompileAndVerify(source, expectedOutput: @"
4831
var
verifier = CompileAndVerify(source, expectedOutput: @"
5010
var
verifier = CompileAndVerify(source, expectedOutput: @"
5145
var
verifier = CompileAndVerify(source, expectedOutput: @"
5380
var
verifier = CompileAndVerify(source, expectedOutput: @"
5595
var
verifier = CompileAndVerify(source, expectedOutput: @"
5724
var
verifier = CompileAndVerify(source, expectedOutput: @"
5798
var
verifier = CompileAndVerify(source, expectedOutput: @"
5876
var
verifier = CompileAndVerify(source, expectedOutput: @"
5973
var
verifier = CompileAndVerify(source);
6065
var
verifier = CompileAndVerify(source, expectedOutput: @"
6172
var
verifier = CompileAndVerify(source, expectedOutput: @"
6290
var
verifier = CompileAndVerify(source, expectedOutput: @"
6434
var
verifier = CompileAndVerify(source, expectedOutput: @"
Emit\ManagedAddressTests.cs (1)
66
var
verifier = CompileAndVerify(comp, expectedOutput: "012", verify: Verification.Fails with
Emit\NumericIntPtrTests.cs (30)
1048
var
verifier = CompileAndVerify(comp);
1096
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
1134
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
1330
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput($"{size}{size}{size}{size}"), verify: Verification.FailsPEVerify);
1457
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(@"1"), verify: Verification.FailsPEVerify);
1492
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
1648
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
1759
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
2483
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(expectedOutput), verify: Verification.FailsPEVerify);
2617
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(expectedOutput), verify: Verification.FailsPEVerify);
3127
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
3295
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
6022
var
verifier = CompileAndVerify(comp, verify: useUnsafeContext ? Verification.Skipped : Verification.FailsPEVerify);
6251
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(expectedResult));
6627
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(expectedResult));
6859
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(expectedResult));
6899
var
verifier = CompileAndVerify(comp, emitOptions: EmitOptions.Default.WithRuntimeMetadataVersion("0.0.0.0"), verify: Verification.Skipped);
8184
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
8410
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
8614
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
8690
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
9429
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
9534
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(expectedOutput));
9834
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
10025
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
10987
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
11627
CompilationVerifier
compileAndVerify(CSharpTestSource source)
11688
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput("RAN"));
11706
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("63"), verify: Verification.FailsPEVerify);
11754
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("00"));
Emit\RuntimeProbing\ModuleCancellationTests.cs (68)
25
private
CompilationVerifier
CompileAndVerify(string source, string? expectedOutput = null, CSharpCompilationOptions? options = null, Verification? verification = null)
34
private static void AssertNotInstrumented(
CompilationVerifier
verifier, string qualifiedMethodName)
37
private static void AssertNotInstrumentedWithTokenLoad(
CompilationVerifier
verifier, string qualifiedMethodName)
40
private static void AssertNotInstrumented(
CompilationVerifier
verifier, string qualifiedMethodName, string instrumentationIndicator)
69
var
verifier = CompileAndVerify(source);
145
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe);
232
var
verifier = CompileAndVerify(source);
277
var
verifier = CompileAndVerify(source);
327
var
verifier = CompileAndVerify(source);
375
var
verifier = CompileAndVerify(source);
424
var
verifier = CompileAndVerify(source);
440
var
verifier = CompileAndVerify(source);
498
var
verifier = CompileAndVerify(source);
540
var
verifier = CompileAndVerify(source);
564
var
verifier = CompileAndVerify(source);
655
var
verifier = CompileAndVerify(source);
787
var
verifier = CompileAndVerify(source, verification: Verification.FailsPEVerify);
883
var
verifier = CompileAndVerify(source);
933
var
verifier = CompileAndVerify(source);
981
var
verifier = CompileAndVerify(source);
1024
var
verifier = CompileAndVerify(source);
1095
var
verifier = CompileAndVerify(source);
1172
var
verifier = CompileAndVerify(source);
1216
var
verifier = CompileAndVerify(source);
1288
var
verifier = CompileAndVerify(source);
1341
var
verifier = CompileAndVerify(source);
1384
var
verifier = CompileAndVerify(source);
1427
var
verifier = CompileAndVerify(source);
1471
var
verifier = CompileAndVerify(source);
1525
var
verifier = CompileAndVerify(source);
1554
var
verifier = CompileAndVerify(source);
1606
var
verifier = CompileAndVerify(source);
1654
var
verifier = CompileAndVerify(source);
1685
var
verifier = CompileAndVerify(source);
1727
var
verifier = CompileAndVerify(source);
1751
var
verifier = CompileAndVerify(source);
1775
var
verifier = CompileAndVerify(source);
1798
var
verifier = CompileAndVerify(source);
1840
var
verifier = CompileAndVerify(source);
1874
var
verifier = CompileAndVerify(source);
1915
var
verifier = CompileAndVerify(source);
1964
var
verifier = CompileAndVerify(source);
2016
var
verifier = CompileAndVerify(source);
2044
var
verifier = CompileAndVerify(source);
2090
var
verifier = CompileAndVerify(source);
2139
var
verifier = CompileAndVerify(source);
2163
var
verifier = CompileAndVerify(source);
2186
var
verifier = CompileAndVerify(source);
2209
var
verifier = CompileAndVerify(source);
2237
var
verifier = CompileAndVerify(source);
2293
var
verifier = CompileAndVerify(source);
2321
var
verifier = CompileAndVerify(source);
2347
var
verifier = CompileAndVerify(source);
2374
var
verifier = CompileAndVerify(source);
2397
var
verifier = CompileAndVerify(source);
2439
var
verifier = CompileAndVerify(source);
2482
var
verifier = CompileAndVerify(source);
2506
var
verifier = CompileAndVerify(source);
2539
var
verifier = CompileAndVerify(source);
2569
var
verifier = CompileAndVerify(source);
2596
var
verifier = CompileAndVerify(source);
2623
var
verifier = CompileAndVerify(source);
2653
var
verifier = CompileAndVerify(source);
2700
var
verifier = CompileAndVerify(source);
2722
var
verifier = CompileAndVerify(source);
2744
var
verifier = CompileAndVerify(source);
2765
var
verifier = CompileAndVerify(source, verification: Verification.FailsPEVerify);
2783
var
verifier = CompileAndVerify(source);
Emit\RuntimeProbing\StackOverflowProbingTests.cs (15)
24
private
CompilationVerifier
CompileAndVerify(string source, string? expectedOutput = null, CSharpCompilationOptions? options = null, Verification? verification = null)
33
private static void AssertNotInstrumented(
CompilationVerifier
verifier, string qualifiedMethodName)
62
var
verifier = CompileAndVerify(source);
135
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe);
187
var
verifier = CompileAndVerify(source);
220
var
verifier = CompileAndVerify(source);
255
var
verifier = CompileAndVerify(source);
303
var
verifier = CompileAndVerify(source);
352
var
verifier = CompileAndVerify(source);
368
var
verifier = CompileAndVerify(source);
422
var
verifier = CompileAndVerify(source);
443
var
verifier = CompileAndVerify(source);
490
var
verifier = CompileAndVerify(source);
577
var
verifier = CompileAndVerify(source);
693
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 (1025)
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 =>
6669
var
compilation = CompileAndVerify(source, expectedOutput: "");
10639
var
verifier = CompileAndVerify(source, expectedOutput: "Attr`1[System.Int32]");
10691
var
verifier = CompileAndVerify(source, expectedOutput: "Attr`1[System.Int32] Attr`1[System.Object] Attr`1[System.Int32]");
10755
var
verifier = CompileAndVerify(
11008
var
verifier = CompileAndVerify(source, symbolValidator: validateMetadata, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
11145
var
verifier = CompileAndVerify(source, sourceSymbolValidator: verify, symbolValidator: verify, expectedOutput: "Prop = a");
11217
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), sourceSymbolValidator: verify, symbolValidator: verify, expectedOutput: "a");
11289
var
verifier = CompileAndVerify(source, symbolValidator: verify, sourceSymbolValidator: verifySource);
11345
var
verifier = CompileAndVerify(source, expectedOutput: "Attr`1[System.String]");
11360
var
verifier = CompileAndVerify(source, symbolValidator: verify, sourceSymbolValidator: verify);
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)
1504
var
comp = CompileAndVerify(@"
1545
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 (75)
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);
11337
var
verifier = CompileAndVerifyWithSkipLocalsInit(source);
11366
var
verifier = CompileAndVerifyWithSkipLocalsInit(source);
11392
var
verifier = CompileAndVerifyWithSkipLocalsInit(source, parseOptions: TestOptions.RegularPreview, verify: Verification.Skipped);
11417
var
verifier = CompileAndVerifyWithSkipLocalsInit(source, parseOptions: TestOptions.RegularPreview, verify: Verification.Skipped);
11448
var
verifier = CompileAndVerifyWithSkipLocalsInit(source, parseOptions: TestOptions.RegularPreview, verify: Verification.Skipped);
11479
var
verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.UnsafeReleaseExe);
11498
var
verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.UnsafeReleaseExe, verify: Verification.Passes);
11537
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11578
var
comp1 = CompileAndVerify(source1, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11582
var
comp2 = CompileAndVerify(source2, references: new[] { reference }, verify: Verification.Passes);
11614
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11662
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11696
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11733
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11764
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11809
var
comp_init = CompileAndVerify(source_init, options: TestOptions.UnsafeReleaseDll);
11810
var
comp_skip = CompileAndVerify(source_skip, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11847
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll);
11890
var
comp_init = CompileAndVerify(source_init, options: TestOptions.UnsafeReleaseDll);
11891
var
comp_skip = CompileAndVerify(source_skip, options: TestOptions.UnsafeReleaseDll);
11933
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11985
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12057
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12092
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12165
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12226
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12255
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll);
12301
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll);
12419
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12469
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12524
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12582
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12629
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12658
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12686
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeDebugExe, verify: Verification.Fails);
12714
var
comp = CompileAndVerify(source, options: TestOptions.DebugModule.WithAllowUnsafe(true), verify: Verification.Fails);
12745
var
comp = CompileAndVerify(source, references: new[] { metadata_comp.EmitToImageReference() });
12799
var
verifier = CompileAndVerify(src, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12866
var
verifier = CompileAndVerify(comp, verify: Verification.Fails);
12920
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
12939
var
verifier = CompileAndVerifyWithSkipLocalsInit(src);
12958
var
verifier = CompileAndVerifyWithSkipLocalsInit(src);
12994
var
verifier = CompileAndVerifyWithSkipLocalsInit(src);
13040
var
verifier = CompileAndVerify(src, options: TestOptions.UnsafeReleaseDll, verify: Verification.Skipped);
13086
var
verifier = CompileAndVerify(src, options: TestOptions.UnsafeReleaseDll, verify: Verification.Skipped);
13114
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 (33)
47
var
verifier = CompileAndVerify(source, expectedOutput: """
117
var
verifier = CompileAndVerify(source, expectedOutput: "(1, 2)");
535
var
verifier = CompileAndVerify(source, expectedOutput: """
629
var
verifier = CompileAndVerify(source, expectedOutput: """
731
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(""));
870
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1485
var
verifier = CompileAndVerify(
1574
var
verifier = CompileAndVerify(source, verify: Verification.Skipped, expectedOutput: """
1637
var
verifier = CompileAndVerify(
1729
var
verifier = CompileAndVerify(
1793
var
verifier = CompileAndVerify(
1901
var
verifier = CompileAndVerify(
2134
var
verifier = CompileAndVerify(
2344
var
verifier = CompileAndVerify(
2473
var
verifier = CompileAndVerify(
3058
var
verifier = CompileAndVerify(
3208
var
verifier = CompileAndVerify(
3394
var
verifier = CompileAndVerify(
3598
var
verifier = CompileAndVerify(
3971
var
verifier = CompileAndVerify(source, expectedOutput: "(1, 2, 3, 0)");
4050
var
verifier = CompileAndVerify(
4201
var
verifier = CompileAndVerify(
4333
var
verifier = CompileAndVerify(
4467
var
verifier = CompileAndVerify(
4952
var
verifier = CompileAndVerify(comp, expectedOutput: $$"""
8444
var
verifier = CompileAndVerify(
8994
var
verifier = CompileAndVerify(
9234
var
verifier = CompileAndVerify(
10074
var
verifier = CompileAndVerify(
10224
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("""
10308
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("""
10405
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("""
10587
var
verifier = CompileAndVerify(source, expectedOutput: """
FirstClassSpanTests.cs (50)
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();
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();
5172
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput).VerifyDiagnostics();
5282
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
5367
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
5389
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
5550
var
verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify).VerifyDiagnostics();
5582
var
verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify).VerifyDiagnostics();
5696
var
verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify).VerifyDiagnostics();
5750
var
verifier = CompileAndVerify(comp, expectedOutput: "C", verify: Verification.FailsILVerify).VerifyDiagnostics();
5794
var
verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify).VerifyDiagnostics();
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 (2)
985
var
verifier = CompileAndVerify(comp, expectedOutput: "1").VerifyDiagnostics();
1889
var
verifier = CompileAndVerify(executable, references: [attrRef.EmitToImageReference(), vbRef]).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 },
818
var
verifier = CompileAndVerify(source, sourceSymbolValidator: verify, symbolValidator: verify);
837
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
861
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
887
var
verifier = CompileAndVerify(source, sourceSymbolValidator: verify, symbolValidator: verify,
914
var
verifier = CompileAndVerify(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeReleaseDll,
1399
var
verifier3v1 = CompileAndVerify(source3, new[] { comp1v1Ref, comp2Ref }, expectedOutput: "F123").VerifyDiagnostics();
1422
var
verifier3v2 = CompileAndVerify(source3, new[] { comp1v2Ref, comp2Ref, comp4Ref }, expectedOutput: "True").VerifyDiagnostics();
1602
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetStandard20);
2310
var
verifier = CompileAndVerify(source, expectedOutput: "5");
2343
var
verifier = CompileAndVerify(source, expectedOutput: "5");
2373
var
verifier = CompileAndVerify(source, expectedOutput: "5", verify: Verification.Fails);
2423
var
verifier = CompileAndVerify(source, expectedOutput: "5", verify: Verification.Fails);
2449
var
verifier = CompileAndVerify(source, expectedOutput: "5");
2534
var
verifier = CompileAndVerify(source, expectedOutput: "5");
2584
var
verifier = CompileAndVerify(source, expectedOutput: "5");
2615
var
verifier = CompileAndVerify(source, expectedOutput: "5");
2670
var
verifier = CompileAndVerify(source, expectedOutput: "5");
2701
var
verifier = CompileAndVerify(source, expectedOutput: "5");
2759
var
verifier = CompileAndVerify(source, expectedOutput: "5");
3002
var
verifier = CompileAndVerify(source, expectedOutput: """
3071
var
verifier = CompileAndVerify(source, expectedOutput: """
3116
var
verifier = CompileAndVerify(source, verify: Verification.FailsILVerify, expectedOutput: """
3311
var
verifier = CompileAndVerify(new[] { source, RequiresLocationAttributeDefinition },
4549
var
verifier = CompileAndVerify(comp, expectedOutput: "1222");
4600
var
verifier = CompileAndVerify(comp, expectedOutput: "1222");
4738
var
verifier = CompileAndVerify(comp, expectedOutput: """
4839
var
verifier = CompileAndVerify(comp, expectedOutput: "100");
4953
var
verifier = CompileAndVerify(source, expectedOutput: "111");
4988
var
verifier = CompileAndVerify(source, expectedOutput: "C111");
5019
var
verifier = CompileAndVerify(source, expectedOutput: "111");
5057
var
verifier = CompileAndVerify(source, expectedOutput: "111");
5090
var
verifier = CompileAndVerify(new[] { source, RequiresLocationAttributeDefinition },
5225
var
verifier = CompileAndVerify(source, expectedOutput: "1");
5263
var
verifier = CompileAndVerify(source2, new[] { comp1Ref }, expectedOutput: "1");
5387
var
verifier = CompileAndVerify(source, expectedOutput: "5");
5479
var
verifier = CompileAndVerify(source, expectedOutput: "1",
5585
var
verifier = CompileAndVerify(source, expectedOutput: "111");
5639
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.StandardAndCSharp, expectedOutput: "exception2");
5707
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.StandardAndCSharp, expectedOutput: "exception2");
5873
var
verifier = CompileAndVerify(source, expectedOutput: """
5913
var
verifier = CompileAndVerify(source, expectedOutput: """
5972
var
verifier = CompileAndVerify(source, expectedOutput: """
6018
var
verifier = CompileAndVerify(source, expectedOutput: """
7541
var
verifier = CompileAndVerify(source, expectedOutput: "CC");
7580
var
verifier = CompileAndVerify(source,
RefStructInterfacesTests.cs (58)
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(
12026
var
verifier = CompileAndVerify(
12293
var
verifier = CompileAndVerify(
12539
var
verifier = CompileAndVerify(
12798
var
verifier = CompileAndVerify(
13068
var
verifier = CompileAndVerify(
13327
var
verifier = CompileAndVerify(
13969
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics();
14310
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics();
14671
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123456" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics();
15022
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics();
15370
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics();
15800
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics(
17614
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics();
17811
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics();
18033
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123456" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics();
18236
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics();
18437
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics();
18717
var
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics(
19099
var
verifier = CompileAndVerify(
19270
var
verifier = CompileAndVerify(
19595
var
verifier = CompileAndVerify(
19780
var
verifier = CompileAndVerify(
20403
var
verifier = CompileAndVerify(
20450
var
verifier = CompileAndVerify(
20495
var
verifier = CompileAndVerify(
20540
var
verifier = CompileAndVerify(
21834
var
verifier = CompileAndVerify(
22476
var
verifier = CompileAndVerify(
22532
var
verifier = CompileAndVerify(
22780
var
verifier = CompileAndVerify(
22826
var
verifier = CompileAndVerify(
22841
var
verifier = CompileAndVerify(source,
22865
var
verifier = CompileAndVerify(source,
Semantics\CollectionExpressionTests.cs (138)
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(
9627
var
verifier = CompileAndVerify(
9787
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: "[1, 2, 3, 4], ");
9881
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: "[1, 2, 3], [1, 2, 3], [1, 2, 3], ");
10139
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe, expectedOutput: "[1, 2, 3], ");
10367
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe, expectedOutput: "[1, 2, 3], ");
11263
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: "[1, 2, 3], [1, 2, 3],", verify: Verification.Skipped);
11316
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],"), targetFramework: TargetFramework.Net80, verify: Verification.Skipped);
11394
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: "[1, 2, 3], [1, 2, 3],", verify: Verification.Skipped);
11530
var
verifier = CompileAndVerify(
11621
var
verifier = CompileAndVerify(
11966
var
verifier = CompileAndVerify(
12253
var
verifier = CompileAndVerify(
12323
var
verifier = CompileAndVerify(
12378
var
verifier = CompileAndVerify(
12422
var
verifier = CompileAndVerify(comp, expectedOutput: "[], [], ");
12543
var
verifier = CompileAndVerify(
12923
var
verifier = CompileAndVerify(
13332
var
verifier = CompileAndVerify(
13430
var
verifier = CompileAndVerify(
13706
var
verifier = CompileAndVerify(
14220
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.FailsPEVerify);
14290
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"),
14431
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.FailsPEVerify);
14545
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.FailsPEVerify);
14603
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[[1], [2]],"), verify: Verification.FailsPEVerify);
14707
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[[1], [2]],"), verify: Verification.Fails);
14896
var
verifier = CompileAndVerify(comp, expectedOutput: "[1, 2], [2], ");
14947
var
verifier = CompileAndVerify(comp, verify: Verification.Fails, expectedOutput: "[1, 2], [2], ");
15007
var
verifier = CompileAndVerify(comp, expectedOutput: "[2, 3], [3], ");
15210
var
verifier = CompileAndVerify(
15391
var
verifier = CompileAndVerify(
15515
var
verifier = CompileAndVerify(
15699
var
verifier = CompileAndVerify(
17163
var
verifier = CompileAndVerify(
20022
var
verifier = CompileAndVerify(
20382
var
verifier = CompileAndVerify(
20483
var
verifier = CompileAndVerify(
20608
var
verifier = CompileAndVerify(
20689
var
verifier = CompileAndVerify(
20818
var
verifier = CompileAndVerify(
20863
var
verifier = CompileAndVerify(
20971
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
21119
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
21219
var
verifier = CompileAndVerify(
21352
var
verifier = CompileAndVerify(
21506
var
verifier = CompileAndVerify(
21603
var
verifier = CompileAndVerify(
21717
var
verifier = CompileAndVerify(
21825
var
verifier = CompileAndVerify(
21933
var
verifier = CompileAndVerify(
22396
var
verifier = CompileAndVerify(
22469
var
verifier = CompileAndVerify(
22599
var
verifier = CompileAndVerify(comp,
22751
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net80, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("12"));
22837
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("11"));
22950
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("11"));
23061
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net80, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("12"));
23143
var
verifier = CompileAndVerify(
23269
var
verifier = CompileAndVerify(
23336
var
verifier = CompileAndVerify(
23447
var
verifier = CompileAndVerify(
23549
var
verifier = CompileAndVerify(
23619
var
verifier = CompileAndVerify(
23684
var
verifier = CompileAndVerify(
23787
var
verifier = CompileAndVerify(
23861
var
verifier = CompileAndVerify(
23970
var
verifier = CompileAndVerify(
24030
var
verifier = CompileAndVerify(
24153
var
verifier = CompileAndVerify(
24228
var
verifier = CompileAndVerify(
24283
var
verifier = CompileAndVerify(
24345
var
verifier = CompileAndVerify(
24441
var
verifier = CompileAndVerify(
24515
var
verifier = CompileAndVerify(
24603
var
verifier = CompileAndVerify(
24658
var
verifier = CompileAndVerify(
24742
var
verifier = CompileAndVerify(
24797
var
verifier = CompileAndVerify(
24852
var
verifier = CompileAndVerify(
24919
var
verifier = CompileAndVerify(
25057
var
verifier = CompileAndVerify(
25190
var
verifier = CompileAndVerify(
25278
var
verifier = CompileAndVerify(
25356
var
verifier = CompileAndVerify(
25423
var
verifier = CompileAndVerify(
25487
var
verifier = CompileAndVerify(
25554
var
verifier = CompileAndVerify(
25679
var
verifier = CompileAndVerify(
25765
var
verifier = CompileAndVerify(
25802
var
verifier = CompileAndVerify(
25887
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput("[1, 2, 3], "));
29378
var
verifier = CompileAndVerify(comp, verify: Verification.Fails, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"));
30084
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.Skipped);
30155
var
verifier = CompileAndVerify(new[] { sourceA, s_collectionExtensions }, targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.Skipped);
30213
var
verifier = CompileAndVerify(new[] { sourceA, s_collectionExtensions }, targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[[1, 2, 3]],"), verify: Verification.Skipped);
30289
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[],"), verify: Verification.Skipped);
30322
var
verifier = CompileAndVerify(new[] { sourceA, s_collectionExtensions }, targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.Skipped);
30361
var
verifier = CompileAndVerify(new[] { sourceA, s_collectionExtensions }, targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.Skipped);
30562
var
verifier = CompileAndVerify(
30690
var
verifier = CompileAndVerify(new[] { sourceA, s_collectionExtensions }, targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.Skipped);
30830
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify: Verification.Skipped, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning));
33529
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: "[1, 2, 3], [1, 2, 3],");
33575
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],"), targetFramework: TargetFramework.Net80, verify: Verification.Skipped);
33639
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],"), targetFramework: TargetFramework.Net80, verify: Verification.Skipped);
33683
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);
33779
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[D, D],"), verify: Verification.Skipped, targetFramework: TargetFramework.Net80);
33886
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, verify: Verification.Fails, expectedOutput: IncludeExpectedOutput("[1, 2, 3, 4, 5, 6],"), targetFramework: TargetFramework.Net80);
33970
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput("[1, 2, 3, 4, 5, 6],"), targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe);
34053
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput("[1, 2, 3, 4, 5, 6],"), targetFramework: TargetFramework.Net80);
34151
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput("[Derived], [Derived], "));
34202
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput("[Derived], [Derived, Derived],"), targetFramework: TargetFramework.Net80);
34309
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput("[1, 2, 3, 4, 5, 6],"), targetFramework: TargetFramework.Net80);
34470
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[1, 2, 3, 4, 5, 6],"), targetFramework: TargetFramework.Net80, verify: Verification.Skipped);
34569
var
verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: expectedOutput, targetFramework: TargetFramework.Net80, verify: Verification.Skipped);
34712
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],"));
34753
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],"));
34800
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],"));
34873
var
verifier = CompileAndVerify(source, expectedOutput: "a");
34993
var
verifier = CompileAndVerify(source, expectedOutput: "a");
35059
var
verifier = CompileAndVerify(source, expectedOutput: "a");
35124
var
verifier = CompileAndVerify(source, expectedOutput: "1");
35190
var
verifier = CompileAndVerify(source, expectedOutput: "a");
35221
var
verifier = CompileAndVerify(source, expectedOutput: "a");
35254
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("[1, 2], [1, 2, 1, 2],"));
35348
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("[1, 2], [1, 2, 1, 2],"));
Semantics\InlineArrayTests.cs (179)
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();
7473
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics();
7618
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics();
7786
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics();
7948
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
8164
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(
8314
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
8373
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
8426
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
8481
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
8544
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
8598
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
8808
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
8886
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
9054
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
9243
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
9290
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
9341
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
9431
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
9476
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
9594
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
9642
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
9694
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
9826
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
9911
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
10014
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
10061
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
10346
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
10391
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
10529
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
10603
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
10655
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
10747
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
10793
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
10874
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
10909
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
10948
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
11027
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
11061
var
verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics();
11131
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
11177
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
11223
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
11273
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
11347
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
11473
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
12001
var
verifier = CompileAndVerify(comp, expectedOutput: "1 0 1 0").VerifyDiagnostics();
12198
var
verifier = CompileAndVerify(comp, verify: VerifyOnMonoOrCoreClr).VerifyDiagnostics();
12261
var
verifier = CompileAndVerify(comp, expectedOutput: "1 2").VerifyDiagnostics();
12328
var
verifier = CompileAndVerify(comp, expectedOutput: "1 0 2 1 0").VerifyDiagnostics();
12377
var
verifier = CompileAndVerify(comp, expectedOutput: "1").VerifyDiagnostics();
12791
var
verifier = CompileAndVerify(comp, expectedOutput: "1 0 1 0").VerifyDiagnostics();
12915
var
verifier = CompileAndVerify(comp, verify: VerifyOnMonoOrCoreClr).VerifyDiagnostics();
12969
var
verifier = CompileAndVerify(comp, expectedOutput: "1 2").VerifyDiagnostics();
13028
var
verifier = CompileAndVerify(comp, expectedOutput: "1 0 2 1 0").VerifyDiagnostics();
13081
var
verifier = CompileAndVerify(comp, expectedOutput: "1").VerifyDiagnostics(
13155
var
verifier = CompileAndVerify(comp, expectedOutput: "1").VerifyDiagnostics();
13211
var
verifier = CompileAndVerify(comp, expectedOutput: "0 1 0", verify: Verification.Fails).VerifyDiagnostics(
13270
var
verifier = CompileAndVerify(comp, verify: VerifyOnMonoOrCoreClr).VerifyDiagnostics(
13343
var
verifier = CompileAndVerify(comp, verify: VerifyOnMonoOrCoreClr).VerifyDiagnostics();
13383
var
verifier = CompileAndVerify(comp, verify: VerifyOnMonoOrCoreClr).VerifyDiagnostics();
13429
var
verifier = CompileAndVerify(comp).VerifyDiagnostics(
13525
var
verifier = CompileAndVerify(comp, expectedOutput: "1").VerifyDiagnostics();
13586
var
verifier = CompileAndVerify(comp, expectedOutput: "0 1 0").VerifyDiagnostics();
13654
var
verifier = CompileAndVerify(comp, expectedOutput: "1").VerifyDiagnostics();
13695
var
verifier = CompileAndVerify(comp, expectedOutput: "1").VerifyDiagnostics();
13749
var
verifier = CompileAndVerify(comp, expectedOutput: "0 2 0", verify: Verification.Fails).VerifyDiagnostics();
13807
var
verifier = CompileAndVerify(comp, expectedOutput: "0 2 0", verify: Verification.Fails).VerifyDiagnostics();
13865
var
verifier = CompileAndVerify(comp, expectedOutput: "0 2 0", verify: Verification.Fails).VerifyDiagnostics();
13918
var
verifier = CompileAndVerify(comp, expectedOutput: "0 2 0", verify: Verification.Fails).VerifyDiagnostics();
13969
var
verifier = CompileAndVerify(comp, expectedOutput: "0 2 0", verify: Verification.Fails).VerifyDiagnostics();
14020
var
verifier = CompileAndVerify(comp, expectedOutput: "0 2 0", verify: Verification.Fails).VerifyDiagnostics();
14637
var
verifier = CompileAndVerify(comp, verify: Verification.Fails,
14686
var
verifier = CompileAndVerify(comp, verify: Verification.Fails,
14735
var
verifier = CompileAndVerify(comp, verify: VerifyOnMonoOrCoreClr,
14783
var
verifier = CompileAndVerify(comp, verify: VerifyOnMonoOrCoreClr,
14830
var
verifier = CompileAndVerify(comp, verify: VerifyOnMonoOrCoreClr,
14874
var
verifier = CompileAndVerify(comp, verify: VerifyOnMonoOrCoreClr,
15118
var
verifier = CompileAndVerify(comp, expectedOutput: "-1 110").VerifyDiagnostics();
15164
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics();
15248
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
15385
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
15440
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
15501
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
15564
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
15618
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics();
15646
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics();
15672
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
15698
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
15894
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
15920
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
15949
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
15978
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
16013
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
16048
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
16085
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
16122
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
16183
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
16231
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
16318
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
16433
var
verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics();
16671
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics();
17541
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics(
17659
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics(
17734
var
verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics(
18541
var
verifier = CompileAndVerify(comp, expectedOutput: " 111 112 113 114 -111 -112 -113 -114").VerifyDiagnostics();
18639
var
verifier = CompileAndVerify(comp, expectedOutput: " 111 112 113 114 -111 -112 -113 -114").VerifyDiagnostics();
18712
var
verifier = CompileAndVerify(comp, expectedOutput: " 111 112 113 114").VerifyDiagnostics();
18866
var
verifier = CompileAndVerify(comp, expectedOutput: " 111 112 113 114 -111 -112 -113 -114").VerifyDiagnostics();
19001
var
verifier = CompileAndVerify(comp, expectedOutput: " 111 112 113 114").VerifyDiagnostics();
19200
var
verifier = CompileAndVerify(comp, expectedOutput: " 111 112 113 114").VerifyDiagnostics();
19982
var
verifier = CompileAndVerify(comp, expectedOutput: "-1 0 1 2 3", verify: Verification.Fails).VerifyDiagnostics();
20169
var
verifier = CompileAndVerify(comp, expectedOutput: " 0 1 2 3", verify: Verification.Fails).VerifyDiagnostics();
20442
var
verifier = CompileAndVerify(comp, expectedOutput: "-1 0 1 2 3", verify: Verification.Fails).VerifyDiagnostics();
20628
var
verifier = CompileAndVerify(comp, expectedOutput: " 0 1 2 3", verify: Verification.Fails).VerifyDiagnostics();
20893
var
verifier = CompileAndVerify(comp, expectedOutput: "-1 111 112 113 114").VerifyDiagnostics();
21389
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyDiagnostics();
21540
var
verifier = CompileAndVerify(comp, expectedOutput: "-1 0 1 2 3", verify: Verification.Fails).VerifyDiagnostics();
21657
var
verifier = CompileAndVerify(comp, expectedOutput: " 0 1 2 3", verify: Verification.Fails).VerifyDiagnostics();
21859
var
verifier = CompileAndVerify(comp, expectedOutput: "-1 0 1 2 3", verify: Verification.Fails).VerifyDiagnostics();
21976
var
verifier = CompileAndVerify(comp, expectedOutput: " 0 1 2 3", verify: Verification.Fails).VerifyDiagnostics();
22170
var
verifier = CompileAndVerify(comp, expectedOutput: "-1 111 112 113 114").VerifyDiagnostics();
22654
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyDiagnostics();
23223
var
verifier = CompileAndVerify(comp, expectedOutput: "123124").VerifyDiagnostics();
23267
var
verifier = CompileAndVerify(comp, expectedOutput: "123124").VerifyDiagnostics();
23342
var
verifier = CompileAndVerify(src, expectedOutput: ExecutionConditionUtil.IsDesktop ? null : "042",
Semantics\LockTests.cs (11)
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");
3656
var
verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: expectedOutput);
3697
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.FailsILVerify);
4212
var
verifier = CompileAndVerify(source, verify: Verification.FailsILVerify,
4322
var
verifier = CompileAndVerify(source, 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");
11943
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)
428
var
verifier = CompileAndVerify(comp).VerifyDiagnostics(
621
var
verifier = CompileAndVerify(comp,
986
var
verifier = CompileAndVerify(comp, expectedOutput: "(2, 2)");
1046
var
verifier = CompileAndVerify(src, expectedOutput: @"
1285
var
verifier = CompileAndVerify(src, expectedOutput: @"
1942
var
verifier = CompileAndVerify(src, expectedOutput: @"
2004
var
verifier = CompileAndVerify(src, expectedOutput: @"1").VerifyDiagnostics();
2634
var
verifier = CompileAndVerify(src, expectedOutput: @"2").VerifyDiagnostics();
2745
var
verifier = CompileAndVerify(src, expectedOutput: @"2").VerifyDiagnostics();
2792
var
verifier = CompileAndVerify(src, expectedOutput: @"
3042
var
comp = CompileAndVerify(source, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator);
3171
var
comp = CompileAndVerify(source, expectedOutput: "Main");
7041
var
verifier = CompileAndVerify(source, expectedOutput:
7090
var
verifier = CompileAndVerify(source, expectedOutput:
8696
var
verifier = CompileAndVerify(src, expectedOutput: @"TrueFalse").VerifyDiagnostics(
8768
var
verifier = CompileAndVerify(comp, expectedOutput: @"122123124125125", verify: Verification.Fails).VerifyDiagnostics(
9174
var
verifier = CompileAndVerify(comp, expectedOutput: @"123124125").VerifyDiagnostics();
9339
var
verifier = CompileAndVerify(comp, expectedOutput: @"123124").VerifyDiagnostics();
11779
var
verifier = CompileAndVerify(comp, expectedOutput: methodName);
12244
var
verifier = CompileAndVerify(comp, expectedOutput: @"123124125126-1", verify: Verification.Fails).VerifyDiagnostics();
12317
var
verifier = CompileAndVerify(comp, expectedOutput: @"123124125126-1-2-3", verify: Verification.Fails).VerifyDiagnostics();
12394
var
verifier = CompileAndVerify(comp, expectedOutput: @"123123124-1-2-3", verify: Verification.Passes).VerifyDiagnostics(
14093
var
verifier = CompileAndVerify(source, expectedOutput: " 0 1 2 3 2 3", options: TestOptions.DebugExe);
14414
var
verifier = CompileAndVerify(comp, expectedOutput: @"(2, 1)").VerifyDiagnostics();
15834
var
verifier = CompileAndVerify(comp, expectedOutput: @"122123124125125", verify: Verification.Fails).VerifyDiagnostics(
16406
var
verifier1 = CompileAndVerify(comp1, expectedOutput: "123");
16588
var
verifier2 = CompileAndVerify(comp2, expectedOutput: "123");
16820
var
verifier1 = CompileAndVerify(comp1, expectedOutput: "9123");
17080
var
verifier2 = CompileAndVerify(comp2, expectedOutput: "9123");
17371
var
verifier1 = CompileAndVerify(comp1, expectedOutput: "123");
17429
var
verifier2 = CompileAndVerify(comp2, expectedOutput: "123");
17525
var
verifier1 = CompileAndVerify(comp1, expectedOutput: "9123");
17614
var
verifier2 = CompileAndVerify(comp2, expectedOutput: "9123");
17745
var
verifier1 = CompileAndVerify(comp1, expectedOutput: "123");
17954
var
verifier2 = CompileAndVerify(comp2, expectedOutput: "123");
18216
var
verifier1 = CompileAndVerify(comp1, expectedOutput: "9123");
18513
var
verifier2 = CompileAndVerify(comp2, expectedOutput: "9123");
18858
var
verifier1 = CompileAndVerify(comp1, expectedOutput: "124");
19028
var
verifier2 = CompileAndVerify(comp2, expectedOutput: "124");
19251
var
verifier1 = CompileAndVerify(comp1, expectedOutput: "125");
19325
var
verifier2 = CompileAndVerify(comp2, expectedOutput: "125");
Semantics\RecordTests.cs (116)
27
private
CompilationVerifier
CompileAndVerify(
876
var
verifier = CompileAndVerify(src, expectedOutput: @"
1553
var
verifier = CompileAndVerify(src, expectedOutput: "True");
1604
var
verifier = CompileAndVerify(src, expectedOutput: "True", parseOptions: TestOptions.Regular10);
1684
var
verifier = CompileAndVerify(src, expectedOutput: "12");
2011
var
verifier = CompileAndVerify(src, expectedOutput: @"0
2050
var
verifier = CompileAndVerify(src, expectedOutput: @"0 1
2090
var
verifier = CompileAndVerify(src, expectedOutput: @"0 1
2374
var
verifier = CompileAndVerify(src, expectedOutput: "2").VerifyDiagnostics();
2421
var
verifier = CompileAndVerify(
4918
var
v = CompileAndVerify(comp, expectedOutput: "C1 { }");
4993
var
v = CompileAndVerify(comp, expectedOutput: "C1 { }");
5070
var
v = CompileAndVerify(comp, expectedOutput: "C1 { }");
5455
var
v = CompileAndVerify(comp, expectedOutput: "C1 { field = 42 }");
5510
var
v = CompileAndVerify(comp, expectedOutput: "C1 { field = 42 }");
5549
var
v = CompileAndVerify(comp, expectedOutput: "C1 { field = hello }");
5590
var
v = CompileAndVerify(comp, expectedOutput: "C1 { field = hello } C1 { field = 42 }", verify: Verification.Skipped /* init-only */);
5672
var
v = CompileAndVerify(comp, expectedOutput: "C1 { field1 = hi, field2 = }");
5726
var
v = CompileAndVerify(comp, expectedOutput: "C1 { Property = 42 }", verify: Verification.Skipped /* init-only */);
5790
var
v = CompileAndVerify(comp, expectedOutput: "C1 { A1 = 42, A2 = 100, B1 = 43, B2 = 101 }", verify: Verification.Skipped /* init-only */);
7642
var
verifier = CompileAndVerify(source, expectedOutput: @"1
7684
var
verifier = CompileAndVerify(source, expectedOutput: @"1
7724
var
verifier = CompileAndVerify(source, expectedOutput: @"1
7758
var
verifier = CompileAndVerify(source, expectedOutput: @"1
7792
var
verifier = CompileAndVerify(source, expectedOutput: @"1
7827
var
verifier = CompileAndVerify(source, expectedOutput: @"1
8061
var
verifier = CompileAndVerify(src, expectedOutput: @"
8238
var
verifier = CompileAndVerify(src, expectedOutput: "11").VerifyDiagnostics();
8284
var
verifier = CompileAndVerify(src, expectedOutput: @"
8336
var
verifier = CompileAndVerify(src, expectedOutput: @"
8418
var
verifier = CompileAndVerify(src, expectedOutput: @"
9508
var
verifier = CompileAndVerify(src, expectedOutput: @"
9539
var
verifier = CompileAndVerify(@"
9588
var
verifier = CompileAndVerify(src, expectedOutput: @"
10590
var
verifier = CompileAndVerify(comp, expectedOutput: "(, )").VerifyDiagnostics(
11342
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput:
11556
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput:
11792
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput:
12596
var
verifierA = CompileAndVerify(compA, verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics();
12636
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();
12688
var
verifier = CompileAndVerify(comp, expectedOutput: "(1, 2, 3, 4) (10, 20, 30, 40)", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics();
12745
var
verifier = CompileAndVerify(comp, verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics();
12777
var
verifier = CompileAndVerify(comp, verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics(
12832
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
12904
var
verifier = CompileAndVerify(comp, expectedOutput: "(2, 0)").VerifyDiagnostics(
12947
var
verifier = CompileAndVerify(comp, expectedOutput: "(2, 100) RAN (0, 0)").VerifyDiagnostics(
13005
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics();
13060
var
verifier = CompileAndVerify(comp, expectedOutput: "1 RAN 2", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics();
13182
var
verifier = CompileAndVerify(comp, expectedOutput: "(1, 2, 42) RAN (10, 20, 42)", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics();
13222
var
verifier = CompileAndVerify(comp, expectedOutput: "(1, 2, 42) (10, 20, 42)", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics();
13502
var
verifier = CompileAndVerify(comp, expectedOutput: "(1, 2, 3, 4, 100, 200)", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics();
14100
var
verifier = CompileAndVerify(comp2, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "False" : null, verify: Verification.FailsPEVerify);
14145
var
verifier = CompileAndVerify(source, expectedOutput: "12");
14203
var
verifier = CompileAndVerify(source, expectedOutput: "1");
14240
var
verifier = CompileAndVerify(source, expectedOutput: "123");
14301
var
verifier = CompileAndVerify(source, expectedOutput: "32");
14421
var
verifier = CompileAndVerify(source, expectedOutput: "02");
14635
var
verifier = CompileAndVerify(source, expectedOutput: "1");
14713
var
verifier = CompileAndVerify(source, expectedOutput: "0101");
14762
var
verifier = CompileAndVerify(source, expectedOutput: "01201");
14811
var
verifier = CompileAndVerify(source, expectedOutput: "0101");
14895
var
verifier = CompileAndVerify(source, expectedOutput: "0123456");
15117
var
verifier = CompileAndVerify(source, expectedOutput: "12");
15152
var
verifier = CompileAndVerify(source, expectedOutput: "12");
15184
var
verifier = CompileAndVerify(source, expectedOutput: "12");
15287
var
verifier = CompileAndVerify(source, expectedOutput: "12");
15327
var
verifier = CompileAndVerify(source, expectedOutput: "123");
15404
var
verifier = CompileAndVerify(source, expectedOutput: "1");
15483
var
verifier = CompileAndVerify(source, expectedOutput: "12");
15519
var
verifier = CompileAndVerify(source, expectedOutput: "12");
15664
var
verifier = CompileAndVerify(source, expectedOutput: "1");
15698
var
verifier = CompileAndVerify(source, expectedOutput: "2");
19066
var
verifier = CompileAndVerify(comp, expectedOutput: modifiers == "abstract " ? null :
19139
var
verifier = CompileAndVerify(comp, expectedOutput: modifiers == "abstract " ? null :
20364
var
verifier = CompileAndVerify(source, expectedOutput:
20469
var
verifier = CompileAndVerify(source, expectedOutput:
20897
var
verifier = CompileAndVerify(src2,
21067
var
verifier = CompileAndVerify(RuntimeUtilities.IsCoreClrRuntime ? src2 : new[] { src2, IsExternalInitTypeDefinition },
21157
var
verifier = CompileAndVerify(src, expectedOutput: @"
21404
var
verifier = CompileAndVerify(src, expectedOutput: @"
22092
var
verifier = CompileAndVerify(src, expectedOutput: @"
22161
var
verifier = CompileAndVerify(src, expectedOutput: @"1").VerifyDiagnostics();
22579
var
verifier = CompileAndVerify(comp, expectedOutput:
22648
var
verifier = CompileAndVerify(source, expectedOutput:
22739
var
verifier = CompileAndVerify(comp, expectedOutput:
22852
var
verifier = CompileAndVerify(comp, expectedOutput:
22965
var
verifier = CompileAndVerify(comp, expectedOutput:
23065
var
verifier = CompileAndVerify(comp, expectedOutput:
23252
var
verifier = CompileAndVerify(source, expectedOutput:
23420
var
verifier = CompileAndVerify(comp, expectedOutput:
23877
var
verifier = CompileAndVerify(comp, expectedOutput:
24681
var
verifier = CompileAndVerify(src, expectedOutput: @"2").VerifyDiagnostics();
24785
var
verifier = CompileAndVerify(src, expectedOutput: @"2").VerifyDiagnostics();
24832
var
verifier = CompileAndVerify(src, expectedOutput: @"
25012
var
verifier = CompileAndVerify(comp, expectedOutput: "42", verify: Verification.Skipped /* init-only */);
25049
var
verifier = CompileAndVerify(comp, expectedOutput: "0", verify: Verification.Skipped /* init-only */);
25079
var
verifier = CompileAndVerify(comp, expectedOutput: "42", verify: Verification.Skipped /* init-only */);
25141
var
comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
25201
var
comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
25278
var
comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
25335
var
comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
25410
var
comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
25494
var
comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
25564
var
comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
25632
var
comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, expectedOutput: "Main",
27761
var
verifier = CompileAndVerify(src, expectedOutput: "True");
27814
var
verifier = CompileAndVerify(src, expectedOutput: "True");
28070
var
verifier = CompileAndVerify(comp);
29295
var
verifier = CompileAndVerify(comp, expectedOutput: "42 - 42");
29327
var
verifier = CompileAndVerify(comp, expectedOutput: "43 - 43");
29362
var
verifier = CompileAndVerify(comp, expectedOutput: "42 - 42", verify: Verification.Skipped /* init-only */);
29420
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
29458
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
29492
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
29834
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
29871
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
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 (777)
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);
650
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 (66)
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");
2487
var
verifier = CompileAndVerify(comp, expectedOutput: "E.M");
2535
var
verifier = CompileAndVerify(comp, expectedOutput: "E2.M E2.M");
2583
var
verifier = CompileAndVerify(comp, expectedOutput: "E1.M E1.M");
2805
var
verifier = CompileAndVerify(comp, expectedOutput: "ran");
2825
var
verifier = CompileAndVerify(comp, expectedOutput: "ran");
2853
var
verifier = CompileAndVerify(comp, expectedOutput: "ran");
2912
var
verifier = CompileAndVerify(comp, expectedOutput: "ran");
2972
var
verifier = CompileAndVerify(comp, expectedOutput: "ran");
3007
var
verifier = CompileAndVerify(comp, expectedOutput: "ran");
3038
var
verifier = CompileAndVerify(comp, expectedOutput: "ran");
3073
var
verifier = CompileAndVerify(comp, expectedOutput: "A.F");
10193
var
verifier = CompileAndVerify(comp, expectedOutput:
11011
var
verifier = CompileAndVerify(comp, expectedOutput:
11142
var
verifier = CompileAndVerify(comp, expectedOutput: @"(41, 42)");
11196
var
verifier = CompileAndVerify(comp, expectedOutput:
11270
var
verifier = CompileAndVerify(comp, expectedOutput:
11336
var
verifier = CompileAndVerify(comp, expectedOutput:
11413
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput:
11478
var
verifier = CompileAndVerify(comp, expectedOutput:
11557
var
verifier = CompileAndVerify(comp, expectedOutput:
11721
var
verifier = CompileAndVerify(comp, expectedOutput:
12030
var
verifier = CompileAndVerify(comp, validator: validator, expectedOutput: "D");
12071
var
verifier = CompileAndVerify(comp, validator: validator, expectedOutput:
12115
var
verifier = CompileAndVerify(comp, validator: validator);
13436
var
verifier = CompileAndVerify(source, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13477
var
verifier = CompileAndVerify(source, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13540
var
verifier = CompileAndVerify(source, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13581
var
verifier = CompileAndVerify(source3, [comp2Ref, comp1aRef],
13657
var
verifier = CompileAndVerify(source, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13724
var
verifier = CompileAndVerify(source3, [comp2Ref, comp1bRef], symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13871
var
verifier = CompileAndVerify(source4, [comp2Ref, comp1bRef], symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13912
var
verifier = CompileAndVerify(source, expectedOutput: expectedOutput).VerifyDiagnostics();
13955
var
verifier = CompileAndVerify(source3, [comp2Ref, comp1aRef], symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
14093
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify: Verification.Skipped, expectedOutput:
14145
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify: Verification.Skipped, expectedOutput:
14210
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify: Verification.Skipped, expectedOutput:
14259
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
15650
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.RegularPreview);
15767
var
verifier = CompileAndVerify(source, expectedOutput:
15790
var
verifier = CompileAndVerify(source, expectedOutput: "7 <>f__AnonymousDelegate0`4[System.Int32,System.Int32,System.Int32,System.Int32]");
15891
var
verifier = CompileAndVerify(source, expectedOutput: "abc <>f__AnonymousDelegate0`4[System.String,System.String,System.String,System.String]");
16366
var
verifier = CompileAndVerify(source, expectedOutput:
16452
var
verifier = CompileAndVerify(source, expectedOutput: "file::member:0");
16499
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net60,
16874
var
verifier = CompileAndVerify(source);
16969
var
verifier = CompileAndVerify(source, expectedOutput: @"10 a 0");
17457
var
verifier = CompileAndVerify(source, expectedOutput:
17588
var
verifier = CompileAndVerify(source, expectedOutput: "");
17678
var
verifier = CompileAndVerify(source);
17893
var
verifier = CompileAndVerify(source, expectedOutput: """
17913
var
verifier = CompileAndVerify(source).VerifyDiagnostics();
18005
var
verifier = CompileAndVerify(source, expectedOutput: """
18027
var
verifier = CompileAndVerify(source).VerifyDiagnostics();
18134
var
verifier = CompileAndVerify(source, expectedOutput: """
18192
var
verifier = CompileAndVerify(source, expectedOutput: """
18211
var
verifier = CompileAndVerify(source).VerifyDiagnostics();
18292
var
verifier = CompileAndVerify(source, expectedOutput: """
18313
var
verifier = CompileAndVerify(source).VerifyDiagnostics();
18404
var
verifier = CompileAndVerify(source, expectedOutput: """
19318
var
verifier = CompileAndVerify(source, expectedOutput: "<>f__AnonymousDelegate0`2[System.Int32,System.Int32]").VerifyDiagnostics();
19356
var
verifier = CompileAndVerify(source, expectedOutput: "<>c").VerifyDiagnostics();
19415
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)
4800
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\InterpolationTests.cs (142)
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: @"
3881
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @"
3964
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, targetFramework: TargetFramework.NetCoreApp, expectedOutput: @"
4056
var
verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: @"
4147
var
verifier = CompileAndVerify(source, expectedOutput: @"
4624
private
CompilationVerifier
CompileAndVerifyOnCorrectPlatforms(CSharpCompilation compilation, string expectedOutput)
4643
var
verifier = CompileAndVerify(comp, expectedOutput: @"
4780
var
verifier = CompileAndVerify(comp, expectedOutput: @"
4840
var
verifier = CompileAndVerify(comp, expectedOutput: @"
4891
var
verifier = CompileAndVerify(comp, expectedOutput: @"
4980
var
verifier = CompileAndVerify(comp, expectedOutput: @"Literal");
5095
var
verifier = CompileAndVerify(comp, expectedOutput: @"
5149
var
verifier = CompileAndVerify(comp, expectedOutput: @"
5277
var
verifier = CompileAndVerify(comp, expectedOutput: @"
5335
var
verifier = CompileAndVerify(comp, expectedOutput: @"
5382
var
verifier = CompileAndVerify(comp, expectedOutput: @"
5436
var
verifier = CompileAndVerify(comp, expectedOutput: @"1.00Literal");
5496
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"value:Field");
5570
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"value:Field");
5619
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
5685
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"1.00Literal");
5755
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
5873
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
5933
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"1.00Literal");
6030
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6118
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6201
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"1.00Literal");
6281
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6345
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6437
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6493
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6559
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6602
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6648
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6694
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6746
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
7685
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validate, symbolValidator: validate, expectedOutput: @"
7722
void verifyIL(
CompilationVerifier
verifier)
8083
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validate, symbolValidator: validate, expectedOutput: """
8301
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
8327
static void verifyIL(string extraConstructorArg,
CompilationVerifier
verifier)
8425
var
verifier = base.CompileAndVerify((Compilation)comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: expectedOutput);
8447
static void verifyIL(string extraConstructorArg,
CompilationVerifier
verifier)
8564
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
8728
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
8861
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
8998
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
9099
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: "CustomHandler").VerifyDiagnostics();
9227
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
9343
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
9460
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
9583
var
verifier = CompileAndVerify(comp, expectedOutput: @"
9740
var
verifier = CompileAndVerify(
9849
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, expectedOutput: "1literal:literal", symbolValidator: validator, sourceSymbolValidator: validator);
9927
var
verifier = CompileAndVerify(comp, expectedOutput: @"
10026
var
verifier = CompileAndVerify(comp, expectedOutput: @"
10129
var
verifier = CompileAndVerify(comp, expectedOutput: @"
10275
var
verifier = CompileAndVerify(comp, expectedOutput: @"
10374
var
verifier = CompileAndVerify(comp, expectedOutput: @"
10526
var
verifier = CompileAndVerify(comp, expectedOutput: @"
10625
var
verifier = CompileAndVerify(comp, expectedOutput: @"
10724
var
verifier = CompileAndVerify(comp, expectedOutput: @"
10921
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11006
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11118
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11370
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11555
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11655
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11711
var
verifier = CompileAndVerify(comp, expectedOutput: @"s.I:1");
11773
var
verifier = CompileAndVerify(comp, expectedOutput: @"s.I:2");
11855
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, expectedOutput: @"
11906
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
12003
var
verifier = CompileAndVerify(comp, expectedOutput: @"
12295
var
verifier = CompileAndVerify(comp, expectedOutput: @"
12559
var
verifier = CompileAndVerify(comp, expectedOutput: @"
12816
var
verifier = CompileAndVerify(comp, expectedOutput: @"
12940
var
verifier = CompileAndVerify(comp, expectedOutput: @"
13169
var
verifier = CompileAndVerify(comp, expectedOutput: @"literal:literal");
13221
var
verifier = CompileAndVerify(comp, expectedOutput: @"1");
13272
var
verifier = CompileAndVerify(comp);
13331
var
verifier = CompileAndVerify(comp);
13391
var
verifier = CompileAndVerify(comp);
13453
var
verifier = CompileAndVerify(comp);
13515
var
verifier = CompileAndVerify(comp);
13607
var
verifier = CompileAndVerify(comp, expectedOutput: "c.i:1");
13924
var
verifier = CompileAndVerify(comp, expectedOutput: "d:1");
13969
var
verifier = CompileAndVerify(comp, expectedOutput: "ctor");
14014
var
verifier = CompileAndVerify(comp, expectedOutput: "ctor");
14057
var
verifier = CompileAndVerify(comp, expectedOutput: "AppendLiteral");
14106
var
verifier = CompileAndVerify(comp, expectedOutput: "AppendFormatted");
14162
var
verifier = CompileAndVerify(comp, expectedOutput: @"
14258
var
verifier = CompileAndVerify(comp, expectedOutput: @"
14357
var
verifier = CompileAndVerify(comp, expectedOutput: @"
15916
var
verifier = CompileAndVerify(comp, expectedOutput: @"
15962
var
verifier = CompileAndVerify(comp, expectedOutput: @"
16017
var
verifier = CompileAndVerify(comp, expectedOutput: @"
16320
var
verifier = CompileAndVerify(comp, expectedOutput: @"
16394
var
verifier = CompileAndVerify(comp, expectedOutput: @"
16761
var
verifier = CompileAndVerify(code, expectedOutput: @"123456");
16779
var
verifier = CompileAndVerify(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }, expectedOutput: @"
16910
var
verifier = CompileAndVerify(comp, expectedOutput: @"123456123456");
17088
var
verifier = CompileAndVerify(comp, expectedOutput: @"
17152
var
verifier = CompileAndVerify(comp, expectedOutput: @"
17247
var
verifier = CompileAndVerify(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }, expectedOutput: @"
17375
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @"i:1");
17439
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @"");
17547
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @"i:1");
17600
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"1");
17641
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"1");
17692
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"12");
17738
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"12");
17854
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: "s.Field:1");
17885
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: "2");
17936
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: "s.Field:1");
18027
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler },
18605
var
verifier = CompileAndVerify(comp, expectedOutput: """
18687
var
verifier = CompileAndVerify(comp, expectedOutput: """
18786
var
verifier = CompileAndVerify(comp, expectedOutput: """
18899
var
verifier = CompileAndVerify(comp, expectedOutput: """
Semantics\IteratorTests.cs (1)
551
var
comp = CompileAndVerify(source, expectedOutput: "0,1,2,3", options: TestOptions.DebugExe);
Semantics\LocalFunctionTests.cs (1)
6976
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)
148
var
comp = CompileAndVerify(source, expectedOutput: @"
1443
var
comp = CompileAndVerify(compilation, expectedOutput: @"N1N2");
1695
var
comp = CompileAndVerify(compilation, expectedOutput: @"passed");
Semantics\NativeIntegerTests.cs (34)
2937
var
verifier = CompileAndVerify(comp, expectedOutput:
2984
var
verifier = CompileAndVerify(comp, expectedOutput:
3015
var
verifier = CompileAndVerify(comp, expectedOutput:
3678
var
verifier = CompileAndVerify(comp, expectedOutput:
4342
var
verifier = CompileAndVerify(comp, expectedOutput: $"{size}{size}{size}{size}");
4508
var
verifier = CompileAndVerify(source, expectedOutput: @"1");
4545
var
verifier = CompileAndVerify(comp, expectedOutput:
4618
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
4689
var
verifier = CompileAndVerify(comp,
4892
var
verifier = CompileAndVerify(comp);
5001
var
verifier = CompileAndVerify(comp);
5249
var
verifier = CompileAndVerify(comp);
5359
var
verifier = CompileAndVerify(comp);
6618
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput);
6750
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput);
7288
var
verifier = CompileAndVerify(comp, expectedOutput:
7455
var
verifier = CompileAndVerify(comp, expectedOutput:
9512
var
verifier = CompileAndVerify(comp, verify: useUnsafeContext || !verify ? Verification.Skipped : Verification.Passes);
9736
var
verifier = CompileAndVerify(comp, expectedOutput: expectedResult);
10113
var
verifier = CompileAndVerify(comp, expectedOutput: expectedResult);
10338
var
verifier = CompileAndVerify(comp, expectedOutput: expectedResult);
10378
var
verifier = CompileAndVerify(comp, emitOptions: EmitOptions.Default.WithRuntimeMetadataVersion("0.0.0.0"), verify: Verification.Skipped);
12438
var
verifier = CompileAndVerify(comp, expectedOutput:
12663
var
verifier = CompileAndVerify(comp, expectedOutput:
12866
var
verifier = CompileAndVerify(comp, expectedOutput:
12941
var
verifier = CompileAndVerify(comp, expectedOutput:
13793
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput:
13898
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: expectedOutput);
14169
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput:
14816
var
verifier = CompileAndVerify(source);
15121
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
15163
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
15833
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
15878
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)
116566
var
verifier = CompileAndVerify(
138489
var
verifier1 = CompileAndVerify(source1, symbolValidator: validate, targetFramework: TargetFramework.Mscorlib40);
138542
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net60,
138580
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net60,
138611
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net60,
138645
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net60,
138690
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net60,
138732
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\OperatorTests.cs (14)
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
8891
var
verifier = CompileAndVerify(source);
10843
var
verifier = CompileAndVerify(source: source, expectedOutput:
11004
var
verifier = CompileAndVerify(source: source, expectedOutput:
11263
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: @"
2282
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @"
2365
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, targetFramework: TargetFramework.NetCoreApp, expectedOutput: @"
2457
var
verifier = CompileAndVerify(comp, expectedOutput: @"
2548
var
verifier = CompileAndVerify(source, expectedOutput: @"
2925
private
CompilationVerifier
CompileAndVerifyOnCorrectPlatforms(CSharpCompilation compilation, string expectedOutput)
2944
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3081
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3141
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3190
var
verifier = CompileAndVerify(comp, expectedOutput: @"Literal");
3309
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3363
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3488
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3546
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3593
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3647
var
verifier = CompileAndVerify(comp, expectedOutput: @"1.00Literal");
3709
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"value:Field");
3803
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"value:Field");
3852
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
3918
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"1.00Literal");
3988
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4129
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4189
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"1.00Literal");
4285
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4372
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4454
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"1.00Literal");
4534
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4598
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4689
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4745
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4810
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4853
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4899
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4945
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4997
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6478
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
6504
static void verifyIL(string extraConstructorArg,
CompilationVerifier
verifier)
6604
var
verifier = base.CompileAndVerify((Compilation)comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: expectedOutput);
6626
static void verifyIL(string extraConstructorArg,
CompilationVerifier
verifier)
6745
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
6911
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
7046
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
7185
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
7290
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: "CustomHandler").VerifyDiagnostics();
7424
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
7542
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
7662
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
7787
var
verifier = CompileAndVerify(comp, expectedOutput: @"
7953
var
verifier = CompileAndVerify(
8065
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, expectedOutput: "1literal:literal", symbolValidator: validator, sourceSymbolValidator: validator);
8149
var
verifier = CompileAndVerify(comp, expectedOutput: @"
8285
var
verifier = CompileAndVerify(comp, expectedOutput: @"s.I:1");
8353
var
verifier = CompileAndVerify(comp, expectedOutput: @"s.I:2");
8438
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, expectedOutput: @"
8491
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
8589
var
verifier = CompileAndVerify(comp, expectedOutput: @"
8882
var
verifier = CompileAndVerify(comp, expectedOutput: @"
9147
var
verifier = CompileAndVerify(comp, expectedOutput: @"
9406
var
verifier = CompileAndVerify(comp, expectedOutput: @"
9531
var
verifier = CompileAndVerify(comp, expectedOutput: @"
9762
var
verifier = CompileAndVerify(comp, expectedOutput: @"literal:literal");
9816
var
verifier = CompileAndVerify(comp, expectedOutput: @"1");
9872
var
verifier = CompileAndVerify(comp);
9931
var
verifier = CompileAndVerify(comp);
9991
var
verifier = CompileAndVerify(comp);
10053
var
verifier = CompileAndVerify(comp);
10115
var
verifier = CompileAndVerify(comp);
10212
var
verifier = CompileAndVerify(comp, expectedOutput: "c.i:1");
10545
var
verifier = CompileAndVerify(comp, expectedOutput: "d:1");
10596
var
verifier = CompileAndVerify(comp, expectedOutput: "ctor");
10647
var
verifier = CompileAndVerify(comp, expectedOutput: "ctor");
10692
var
verifier = CompileAndVerify(comp, expectedOutput: "AppendLiteral");
10743
var
verifier = CompileAndVerify(comp, expectedOutput: "AppendFormatted");
10804
var
verifier = CompileAndVerify(comp, expectedOutput: @"
10903
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11358
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11404
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11458
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11496
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11534
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11573
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11752
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11826
var
verifier = CompileAndVerify(comp, expectedOutput: @"
12193
var
verifier = CompileAndVerify(code, expectedOutput: @"123456");
12211
var
verifier = CompileAndVerify(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }, expectedOutput: @"
12342
var
verifier = CompileAndVerify(comp, expectedOutput: @"123456123456");
12505
var
verifier = CompileAndVerify(comp, expectedOutput: @"
12572
var
verifier = CompileAndVerify(comp, expectedOutput: @"
12667
var
verifier = CompileAndVerify(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }, expectedOutput: @"
12775
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @"i:1");
12842
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @"");
12961
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @"i:1");
13016
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"1");
13057
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"1");
13110
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"12");
13156
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"12");
13276
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: "s.Field:1");
13309
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: "2");
13362
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);
1743
var
verifier = CompileAndVerify(src, expectedOutput: @"12345").VerifyDiagnostics();
1807
var
verifier = CompileAndVerify(src, expectedOutput: @"12345").VerifyDiagnostics();
1902
var
verifier = CompileAndVerify(src, parseOptions: TestOptions.Regular11);
2169
var
verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11, verify: Verification.Skipped);
2587
var
verifier = CompileAndVerify(src, expectedOutput: @"2").VerifyDiagnostics();
2691
var
verifier = CompileAndVerify(src, expectedOutput: @"2").VerifyDiagnostics();
2741
var
verifier = CompileAndVerify(comp, expectedOutput: "(42, 43)");
2826
var
verifier = CompileAndVerify(comp, expectedOutput: "42", verify: Verification.Skipped /* init-only */);
2867
var
verifier = CompileAndVerify(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11, verify: Verification.Skipped);
2899
var
verifier = CompileAndVerify(comp, expectedOutput: "42", verify: Verification.Skipped /* init-only */);
3420
var
verifier = CompileAndVerify(source, expectedOutput: "12");
3478
var
verifier = CompileAndVerify(source, expectedOutput: "1");
3515
var
verifier = CompileAndVerify(source, expectedOutput: "123");
3576
var
verifier = CompileAndVerify(source, expectedOutput: "32");
3812
var
verifier = CompileAndVerify(source, expectedOutput: "12");
3877
var
verifier = CompileAndVerify(source, expectedOutput: "12");
4304
var
verifier = CompileAndVerify(comp, expectedOutput: "TrueTrue");
4555
var
verifier = CompileAndVerify(comp, expectedOutput: "TrueTrue - FalseFalseFalseFalse - FalseFalseFalseFalse");
4652
var
verifier = CompileAndVerify(comp);
4895
var
verifier = CompileAndVerify(source, expectedOutput: @"
5139
var
v = CompileAndVerify(comp, expectedOutput: "C1 { }");
5343
var
v = CompileAndVerify(comp, expectedOutput: "C1 { field = 42 }");
5400
var
v = CompileAndVerify(comp, expectedOutput: "C1 { field = 42 }");
5441
var
v = CompileAndVerify(comp, expectedOutput: "C1 { field = hello }");
5485
var
v = CompileAndVerify(comp, expectedOutput: "C1 { I = 42, field1 = hi, field2 = }");
5541
var
v = CompileAndVerify(comp, expectedOutput: "C1 { I = 42 }", verify: Verification.Skipped /* init-only */);
6907
var
verifier = CompileAndVerify(comp, expectedOutput: "42 1");
7502
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
7541
var
verifier = CompileAndVerify(src, parseOptions: TestOptions.Regular11);
7588
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
7629
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
7664
var
verifier = CompileAndVerify(comp, expectedOutput: "4243", verify: Verification.Skipped /* init-only */);
7704
var
verifier = CompileAndVerify(comp, expectedOutput: "4243");
7738
var
verifier = CompileAndVerify(comp, expectedOutput: "4243");
7772
var
verifier = CompileAndVerify(comp, expectedOutput: "4243");
8179
var
verifier = CompileAndVerify(src, expectedOutput: @"
8267
var
verifier = CompileAndVerify(comp, expectedOutput: "Identity({ A = 10, B = 20 }) Identity(30) Identity(40) { A = 30, B = 40 }");
8443
var
verifier = CompileAndVerify(comp, expectedOutput: "Identity({ A = 10, B = 20 }) Identity(40) Identity(30) { A = 30, B = 40 }");
8618
var
verifier = CompileAndVerify(comp, expectedOutput: "M2 { A = 10, B = 20 }");
8789
var
verifier = CompileAndVerify(comp, expectedOutput: "{ A = 10, B = 30 }");
8986
var
verifier = CompileAndVerify(comp, expectedOutput: "{ A = 10, B = 30 }");
10445
var
verifier = CompileAndVerify(comp, expectedOutput: "{ Property = 44 }");
10460
var
verifier = CompileAndVerify(comp, expectedOutput: "{ Item = { Property = 44 } }");
10510
var
comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
10550
var
verifier = CompileAndVerify(comp, expectedOutput: "42 - 42");
10867
var
verifier = CompileAndVerify(source, expectedOutput:
11069
var
verifier = CompileAndVerify(source, expectedOutput:
Semantics\RefEscapingTests.cs (6)
1030
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
5105
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
5155
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
5205
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
5284
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
5388
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(
427
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
830
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
937
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1111
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1169
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1285
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1322
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1356
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1401
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1446
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1691
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("explicit ctor"));
1729
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("explicit ctor"));
1766
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("explicit ctor"));
1806
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("explicit ctor"));
1844
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("explicit ctor"));
1989
var
verifier = CompileAndVerify(compB, verify: Verification.Skipped);
2539
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
6382
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
6787
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
7189
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
7314
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
8363
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
8409
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
8566
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
8635
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("2"));
8672
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("2"));
8709
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("2"));
8754
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("2"));
8804
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
8873
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
8944
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
9007
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
9081
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(@"(1, Hello world)"));
9700
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
10098
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
18246
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
18861
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
20417
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("42"));
21161
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("42"));
21335
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("4242"));
21459
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("4242"));
21788
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("42"));
26718
var
verifier = CompileAndVerify(new[] { source, UnscopedRefAttributeDefinition }, expectedOutput: "12", verify: Verification.Fails);
26862
var
verifier = CompileAndVerify(new[] { source, UnscopedRefAttributeDefinition }, expectedOutput: "12", verify: Verification.Fails);
29115
var
verifier = CompileAndVerify(comp, expectedOutput:
29183
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput:
29375
var
verifier = CompileAndVerify(comp, expectedOutput: "(3, 3)");
30154
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, expectedOutput: "0");
30211
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, expectedOutput: "0");
30285
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, expectedOutput: """
30875
var
verifier = CompileAndVerify("""
30926
var
verifier = CompileAndVerify("""
30985
var
verifier = CompileAndVerify("""
31052
var
verifier = CompileAndVerify("""
31113
var
verifier = CompileAndVerify("""
31187
var
verifier = CompileAndVerify("""
31260
var
verifier = CompileAndVerify("""
31301
var
verifier = CompileAndVerify("""
31342
var
verifier = CompileAndVerify("""
31384
var
verifier = CompileAndVerify("""
31428
var
verifier = CompileAndVerify("""
31469
var
verifier = CompileAndVerify("""
31517
var
verifier = CompileAndVerify("""
31558
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 (9)
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);
16098
var
c = CompileAndVerify(text, expectedOutput: "7788", verify: Verification.Fails, options: TestOptions.UnsafeReleaseExe);
20543
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)
5656
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
6076
var
verifier = CompileAndVerify(
6147
var
verifier = CompileAndVerify(
9319
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
9351
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
9367
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
9383
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
9399
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
9476
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
9598
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 (251)
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)
3932
var
verifier = CompileAndVerify(compilation1, expectedOutput: @"
4036
var
verifier = CompileAndVerify(compilation1, expectedOutput: @"
4892
var
verifier = CompileAndVerify(compilation1, expectedOutput: @"
5002
var
verifier = CompileAndVerify(compilation1, expectedOutput: @"
5770
var
verifier = CompileAndVerify(compilation1, expectedOutput:
6038
var
verifier = CompileAndVerify(compilation1, expectedOutput:
6154
var
verifier = CompileAndVerify(compilation1, expectedOutput:
Symbols\ConversionTests.cs (1)
2373
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)
49984
var
verifier = CompileAndVerify(compilation1, expectedOutput: !ExecutionConditionUtil.IsMonoOrCoreClr ? null : @"M1", verify: VerifyOnMonoOrCoreClr);
50846
var
verifier = CompileAndVerify(compilation0, expectedOutput: !ExecutionConditionUtil.IsMonoOrCoreClr ? null : @"M1", verify: VerifyOnMonoOrCoreClr);
50899
var
verifier = CompileAndVerify(compilation0, expectedOutput: !ExecutionConditionUtil.IsMonoOrCoreClr ? null : @"M1", verify: VerifyOnMonoOrCoreClr);
50952
var
verifier = CompileAndVerify(compilation0, expectedOutput: !ExecutionConditionUtil.IsMonoOrCoreClr ? null : @"A", verify: VerifyOnMonoOrCoreClr);
69143
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(
2055
var
verifier = CompileAndVerify(
2082
var
verifier = CompileAndVerify(
2152
var
verifier = CompileAndVerify(
2206
var
verifier = CompileAndVerify(
2271
var
verifier = CompileAndVerify(
2314
var
verifier = CompileAndVerify(
2326
var
verifier = CompileAndVerify(
2355
var
verifier = CompileAndVerify(
2367
var
verifier = CompileAndVerify(
2413
var
verifier = CompileAndVerify(
2462
var
verifier = CompileAndVerify(
2496
var
verifier = CompileAndVerify(source2, references: new[] { reference }, parseOptions: TestOptions.RegularWithExtendedPartialMethods);
2554
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)
1389
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:
5089
var
compilation = CompileAndVerify(source);
5690
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)
125
var
compilation = CompileAndVerify(source);
2794
var
compilation2 = CompileAndVerify(source2, references: new[] { reference1 }, expectedOutput:
Symbols\Metadata\PE\TypeForwarders.cs (3)
1463
var
verifier1 = CompileAndVerify(comp1);
1505
var
verifier2 = CompileAndVerify(comp2, symbolValidator: metadataValidator, sourceSymbolValidator: metadataValidator);
1772
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 (17)
890
var
verifier = CompileAndVerify(source, expectedOutput: "1");
975
var
verifier = CompileAndVerify(source, 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");
2525
var
verifier = CompileAndVerify(source, expectedOutput: "123");
2849
var
verifier = CompileAndVerify(source, expectedOutput: "123abc");
2916
var
verifier = CompileAndVerify(
3084
var
verifier = CompileAndVerify(source, expectedOutput: "12");
3131
var
verifier = CompileAndVerify(source, expectedOutput: "001");
3351
var
verifier = CompileAndVerify(source, symbolValidator: module => verify(module, isSource: false), sourceSymbolValidator: module => verify(module, isSource: true));
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 (5)
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) },
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)
476
var
compilation = CompileAndVerify(source, new[] { s_propertiesDll }, expectedOutput: "0");
662
var
compilation = CompileAndVerify(source, new[] { s_propertiesDll }, expectedOutput: "0");
697
var
verifier = CompileAndVerify(source, new[] { s_propertiesDll }, expectedOutput: "0");
2018
var
compilation2 = CompileAndVerify(source2, new[] { reference1 });
2776
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)
8394
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
8777
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
9318
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
9609
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
10088
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
10544
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
10821
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
10993
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
11206
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
11371
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
11714
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
12001
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
13145
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
13230
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
13321
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
14021
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
14523
var
verifier = CompileAndVerify(compilation2, verify: Verification.Skipped).VerifyDiagnostics();
14661
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
15079
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
15351
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
16476
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
16561
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
16765
var
verifier = CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
20792
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
20909
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
21020
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
21155
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
21572
var
verifier = CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
24390
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
24579
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
24890
var
verifier = CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
26918
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
27119
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
27555
var
verifier = CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
29251
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
29367
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
30150
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
30329
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
30787
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
31086
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
31142
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
31200
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
31248
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
31291
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
31345
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
31394
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
Symbols\SymbolErrorTests.cs (2)
18453
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped).
20813
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)
797
internal
CompilationVerifier
CompileAndVerifyWithMscorlib40(
833
internal
CompilationVerifier
CompileAndVerifyWithMscorlib46(
869
internal
CompilationVerifier
CompileAndVerifyExperimental(
911
internal
CompilationVerifier
CompileAndVerifyWithWinRt(
947
internal
CompilationVerifier
CompileAndVerifyWithCSharp(
983
internal
CompilationVerifier
CompileAndVerify(
1020
internal
CompilationVerifier
CompileAndVerify(
1063
internal
CompilationVerifier
CompileAndVerifyFieldMarshal(CSharpTestSource source, Dictionary<string, byte[]> expectedBlobs, bool isField = true) =>
1073
internal
CompilationVerifier
CompileAndVerifyFieldMarshal(CSharpTestSource source, Func<string, PEAssembly, byte[]> getExpectedBlob, bool isField = true) =>
1497
public
CompilationVerifier
CompileWithCustomILSource(string cSharpSource, string ilSource, Action<CSharpCompilation> compilationVerifier = null, bool importInternals = true, string expectedOutput = null, TargetFramework targetFramework = TargetFramework.Standard)
1534
internal
CompilationVerifier
CompileAndVerifyException<T>(string source, string expectedMessage = null, bool allowUnsafe = false, Verification verify = default) where T : Exception
1540
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 (16)
BaseCompilerFeatureRequiredTests.cs (1)
617
protected abstract
CompilationVerifier
CompileAndVerify(TCompilation compilation);
CommonTestBase.cs (8)
74
internal
CompilationVerifier
CompileAndVerifyCommon(
101
CompilationVerifier
result = null;
103
var
verifier = Emit(compilation,
133
internal
CompilationVerifier
CompileAndVerifyFieldMarshalCommon(Compilation compilation, Dictionary<string, byte[]> expectedBlobs, bool isField = true)
145
internal
CompilationVerifier
CompileAndVerifyFieldMarshalCommon(Compilation compilation, Func<string, PEAssembly, byte[]> getExpectedBlob, bool isField = true)
150
internal static void RunValidators(
CompilationVerifier
verifier, Action<PEAssembly> assemblyValidator, Action<IModuleSymbol> symbolValidator)
175
internal
CompilationVerifier
Emit(
189
var
verifier = new CompilationVerifier(compilation, VisualizeRealIL, dependencies);
CompilationVerifier.cs (7)
504
public
CompilationVerifier
VerifyIL(
518
public
CompilationVerifier
VerifyIL(
530
public
CompilationVerifier
VerifyMethodBody(
566
public
CompilationVerifier
VerifyMissing(
588
private
CompilationVerifier
VerifyILImpl(
676
public
CompilationVerifier
VerifyMemberInIL(string methodName, bool expected)
682
public
CompilationVerifier
VerifyDiagnostics(params DiagnosticDescription[] expected)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (32)
Attributes\AttributeTests_MarshalAs.vb (2)
23
Private Sub VerifyFieldMetadataDecoding(verifier As
CompilationVerifier
, blobs As Dictionary(Of String, Byte()))
45
Private Sub VerifyParameterMetadataDecoding(verifier As
CompilationVerifier
, blobs As Dictionary(Of String, Byte()))
CodeGen\CodeGenSelectCase.vb (1)
15
Private Shared Sub VerifySynthesizedStringHashMethod(compVerifier As
CompilationVerifier
, expected As Boolean)
CodeGen\CodeGenVBCore.vb (1)
3300
) As
CompilationVerifier
CodeGen\WinRTCollectionTests.vb (2)
6283
Dim verifier As
CompilationVerifier
= CompileAndVerify(source,
6337
Private Shared Sub AssertNoErrorsOrWarnings(verifier As
CompilationVerifier
)
Emit\CompilationEmitTests.vb (2)
890
Dim reference =
CompilationVerifier
.LoadTestEmittedExecutableForSymbolValidation(image, OutputKind.DynamicallyLinkedLibrary)
965
Dim reference =
CompilationVerifier
.LoadTestEmittedExecutableForSymbolValidation(image, OutputKind.DynamicallyLinkedLibrary)
Emit\DynamicAnalysis\DynamicInstrumentationTests.vb (22)
58
Dim verifier As
CompilationVerifier
= CompileAndVerify(source, checker.ExpectedOutput)
161
Dim verifier As
CompilationVerifier
= CompileAndVerify(source, expectedOutput, TestOptions.ReleaseExe.WithParseOptions(parseOptions))
244
Dim verifier As
CompilationVerifier
= CompileAndVerify(source, expectedOutput)
330
Dim verifier As
CompilationVerifier
= CompileAndVerify(source, expectedOutput)
461
Dim verifier As
CompilationVerifier
= CompileAndVerify(source, expectedOutput)
541
Dim verifier As
CompilationVerifier
= CompileAndVerify(source, expectedOutput)
725
Dim verifier As
CompilationVerifier
= CompileAndVerify(source, expectedOutput)
1038
Dim verifier As
CompilationVerifier
= CompileAndVerify(source, expectedOutput)
1118
Dim verifier As
CompilationVerifier
= CompileAndVerify(source, expectedOutput)
1206
Dim verifier As
CompilationVerifier
= CompileAndVerify(source, expectedOutput)
1272
Dim verifier As
CompilationVerifier
= CompileAndVerify(source, expectedOutput)
1369
Dim verifier As
CompilationVerifier
= CompileAndVerify(source, expectedOutput)
1441
Dim verifier As
CompilationVerifier
= CompileAndVerify(source, expectedOutput)
1534
Dim verifier As
CompilationVerifier
= CompileAndVerify(source, expectedOutput)
1646
Dim verifier As
CompilationVerifier
= CompileAndVerify(source, expectedOutput)
1736
Dim verifier As
CompilationVerifier
= CompileAndVerify(source, expectedOutput)
1869
Dim verifier As
CompilationVerifier
= CompileAndVerify(source, expectedOutput)
2796
Private Shared Sub AssertNotInstrumented(verifier As
CompilationVerifier
, qualifiedMethodName As String)
2800
Private Shared Sub AssertInstrumented(verifier As
CompilationVerifier
, qualifiedMethodName As String, Optional expected As Boolean = True)
2814
Private Overloads Function CompileAndVerify(source As XElement, Optional expectedOutput As XCData = Nothing, Optional options As VisualBasicCompilationOptions = Nothing) As
CompilationVerifier
2822
Private Overloads Function CompileAndVerify(source As XElement, Optional expectedOutput As String = Nothing, Optional options As VisualBasicCompilationOptions = Nothing) As
CompilationVerifier
2830
Private Overloads Function CompileAndVerify(source As String, Optional expectedOutput As String = Nothing, Optional options As VisualBasicCompilationOptions = Nothing) As
CompilationVerifier
Emit\NoPiaEmbedTypes.vb (1)
4370
Private Shared Sub AssertTheseDiagnostics(verifier As
CompilationVerifier
, diagnostics As XElement)
ExpressionTrees\CodeGenExprLambda.vb (1)
1880
Optional verify As Verification = Nothing) As
CompilationVerifier
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\Metadata\PE\VisualBasicCompilerFeatureRequiredTests.vb (1)
81
Protected Overrides Function CompileAndVerify(compilation As VisualBasicCompilation) As
CompilationVerifier
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (14)
BasicTestBase.vb (14)
43
) As
CompilationVerifier
76
Optional verify As Verification = Nothing) As
CompilationVerifier
106
Optional verify As Verification = Nothing) As
CompilationVerifier
141
) As
CompilationVerifier
180
) As
CompilationVerifier
221
) As
CompilationVerifier
254
) As
CompilationVerifier
285
) As
CompilationVerifier
319
) As
CompilationVerifier
352
Friend Function CompileWithCustomILSource(source As XElement, ilSource As XCData) As
CompilationVerifier
369
Optional expectedOutput As String = Nothing) As
CompilationVerifier
396
Optional isField As Boolean = True) As
CompilationVerifier
405
Optional isField As Boolean = True) As
CompilationVerifier
418
Optional isField As Boolean = True) As
CompilationVerifier
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)
26
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,