4 instantiations of CompilationVerifier
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\EditAndContinue\EditAndContinueTest.cs (1)
52
var verifier = new
CompilationVerifier
(compilation);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\Source\FieldTests.cs (1)
477
var verifier = new
CompilationVerifier
(compilation);
Microsoft.CodeAnalysis.Test.Utilities (1)
CommonTestBase.cs (1)
185
var verifier = new
CompilationVerifier
(compilation, VisualizeRealIL, dependencies);
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\Source\FieldTests.vb (1)
496
Dim verifier = New
CompilationVerifier
(compilation)
4288 references to CompilationVerifier
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2458)
BreakingChanges.cs (4)
1134
var
verifier = CompileAndVerify(source, expectedOutput: " ++ EX 1");
1411
var
cs1Verifier = CompileAndVerify(cs1Compilation);
1418
var
cs2Verifier = CompileAndVerify(cs2Compilation);
1425
var
cs3Verifier = CompileAndVerify(cs3Compilation);
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 (12)
176
var
v = CompileAndVerify(comp, expectedOutput: "hello world");
349
var
v = CompileAndVerify(comp, expectedOutput: "hello world!");
2356
var
verifier = CompileAndVerify(comp, expectedOutput: "0 1 2 3 4 5");
2913
var
verifier = CompileAndVerify(comp);
3181
var
verifier = CompileAndVerify(comp);
3450
var
verifier = CompileAndVerify(comp);
3714
var
verifier = CompileAndVerify(comp);
6849
var
verifier = CompileAndVerify(comp, expectedOutput: "42 43 Cancelled");
6982
var
verifier = CompileAndVerify(comp, expectedOutput: "42 43 Cancelled");
7939
var
v = CompileAndVerify(comp, expectedOutput: "BEFORE INSIDE INSIDE2 AFTER");
7988
var
v = CompileAndVerify(comp, expectedOutput: "BEFORE INSIDE INSIDE2 AFTER");
8037
var
v = CompileAndVerify(comp, expectedOutput: "BEFORE INSIDE INSIDE2 AFTER");
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 =>
515
var
verifier = CompileAndVerify(source, expectedOutput: expected);
645
var
verifier = CompileAndVerify(source, expectedOutput: expected);
995
var
c = CompileAndVerify(source, expectedOutput: null, options: TestOptions.ReleaseDll);
1153
var
c = CompileAndVerify(source, expectedOutput: null, options: TestOptions.ReleaseDll);
1304
var
verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"1", verify: Verification.Fails);
1561
var
verifier = CompileAndVerify(text, options: TestOptions.ReleaseExe, expectedOutput: @"2");
1886
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);
3277
var
v = CompileAndVerify(source, "System.Int32");
3322
var
v = CompileAndVerify(source, expected);
3358
var
v = CompileAndVerify(source, "42");
3499
var
v = CompileAndVerify(source, options: TestOptions.DebugExe);
3631
var
v = CompileAndVerify(
3673
var
v = CompileAndVerify(
6360
var
verifier = CompileAndVerify(source, expectedOutput: "1");
6396
var
verifier = CompileAndVerify(source, expectedOutput: "1");
6427
var
verifier = CompileAndVerify(source, expectedOutput: "1");
CodeGen\CodeGenAsyncTests.cs (9)
32
private
CompilationVerifier
CompileAndVerify(string source, string expectedOutput, IEnumerable<MetadataReference> references = null, CSharpCompilationOptions options = null, Verification verify = default)
2191
var
c = CompileAndVerify(source, expectedOutput: expected);
2336
var
c = CompileAndVerify(source, options: TestOptions.ReleaseDebugExe, expectedOutput: expected);
2484
var
c = CompileAndVerify(source, expectedOutput: expected, options: TestOptions.DebugExe);
2639
var
c = CompileAndVerify(source, expectedOutput: expected);
3447
var
v = CompileAndVerify(source, null, options: TestOptions.ReleaseDll);
3910
var
v = CompileAndVerify(source, null, options: TestOptions.ReleaseDll);
4232
var
v = CompileAndVerify(source, null, options: TestOptions.DebugDll);
5931
var
verifier = CompileAndVerify(comp);
CodeGen\CodeGenAwaitForeachTests.cs (4)
2511
var
verifier = CompileAndVerify(comp,
2932
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)");
4197
var
verifier = CompileAndVerify(comp, expectedOutput: "NextAsync(0) Current(1) Got NextAsync(1) Current(2) Got NextAsync(2) Current(3) Got NextAsync(3)");
4418
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 (3)
977
var
verifier = CompileAndVerify(comp, expectedOutput: "body DisposeAsync");
1221
var
verifier = CompileAndVerify(comp, expectedOutput: "body DisposeAsync");
2044
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 (30)
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");
4393
var
verifier = CompileAndVerify(
4416
var
compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"True
4438
var
compilation = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"True
4464
var
verifier = CompileAndVerify(
4522
var
verifier = CompileAndVerify(
4597
var
verifier = CompileAndVerify(
4624
var
verifier = CompileAndVerify(
4666
var
compilation = CompileAndVerify(source, expectedOutput: "0");
4700
var
verifier = CompileAndVerify(comp, expectedSignatures: new[]
4792
var
verifier = CompileAndVerify(comp);
4921
var
verifier = CompileAndVerify(comp);
5049
var
compilation = CompileAndVerify(source, expectedOutput: "success");
5106
var
compilation = CompileAndVerify(source);
5137
var
compilation = CompileAndVerify(source);
5342
var
compilation = CompileAndVerify(source, expectedOutput: @"True");
5568
var
compilation = CompileAndVerify(source, expectedOutput: @"0-System.String;");
5626
var
compilation = CompileAndVerify(source, expectedOutput: @"0-System.String;");
5708
var
compilation = CompileAndVerify(source, expectedOutput: @"0-System.String;");
5765
var
compilation = CompileAndVerify(source, expectedOutput: @"0-System.String;");
CodeGen\CodeGenConditionalOperatorTests.cs (30)
42
var
verify = CompileAndVerify(src,
166
var
verify = CompileAndVerify(src,
292
var
verify = CompileAndVerify(src,
421
var
verify = CompileAndVerify(src,
570
var
verify = CompileAndVerify(src,
654
var
verify = CompileAndVerify(src,
744
var
verify = CompileAndVerify(src,
850
var
verify = CompileAndVerify(src,
937
var
comp = CompileAndVerify(source, expectedOutput: "1");
966
var
comp = CompileAndVerify(source, expectedOutput: @"
999
var
comp = CompileAndVerify(source);
1039
var
comp = CompileAndVerify(source);
1105
var
comp = CompileAndVerify(source, parseOptions: TestOptions.Regular10);
1151
var
comp = CompileAndVerify(source, expectedOutput: "00");
1204
var
comp = CompileAndVerify(source, expectedOutput: @"
1264
var
comp = CompileAndVerify(source);
1310
var
comp = CompileAndVerify(source);
1352
var
comp = CompileAndVerify(source);
1430
var
comp = CompileAndVerify(source);
2199
var
verify = CompileAndVerify(src,
2480
var
comp = CompileAndVerify(@"
2711
var
verify = CompileAndVerify(source, expectedOutput: expectedOutput);
2808
var
verify = CompileAndVerify(source, expectedOutput: @"0
2887
var
verify = CompileAndVerify(source, expectedOutput: @"0
2962
var
verify = CompileAndVerify(source, expectedOutput: @"0
3035
var
verify = CompileAndVerify(source, expectedOutput: @"0
3102
var
verifier = CompileAndVerify(source, expectedOutput: @"abc
3164
var
verifier = CompileAndVerify(source, expectedOutput: @"abc
3222
var
verifier = CompileAndVerify(source, expectedOutput: "11True").VerifyDiagnostics();
3283
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());
8043
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: @"
7468
var
verifier = CompileAndVerify(script);
14062
var
comp = CompileAndVerifyWithMscorlib40(source, expectedOutput: "hello!", references: new[] { ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef, SystemCoreRef });
15490
var
comp = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "321 123", references: new[] { CSharpRef });
16043
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)
17
protected
CompilationVerifier
CompileAndVerifyUtil(
389
var
verifier = CompileAndVerify(new[] { ExpressionTestLibrary, @"
414
var
verifier = CompileAndVerify(@"
645
var
compilation = CompileAndVerifyUtil(
667
var
compilation = CompileAndVerifyUtil(
693
var
compilation = CompileAndVerifyUtil(
718
var
compilation = CompileAndVerifyUtil(
740
var
compilation = CompileAndVerifyUtil(
786
var
compilation = CompileAndVerifyUtil(
808
var
compilation = CompileAndVerifyUtil(
916
var
compilation = CompileAndVerifyUtil(
971
var
compilation = CompileAndVerifyUtil(
1023
var
compilation = CompileAndVerifyUtil(
1075
var
compilation = CompileAndVerifyUtil(
1127
var
compilation = CompileAndVerifyUtil(
1179
var
compilation = CompileAndVerifyUtil(
1231
var
compilation = CompileAndVerifyUtil(
1277
var
compilation = CompileAndVerifyUtil(
1326
var
compilation = CompileAndVerifyUtil(
1388
var
compilation = CompileAndVerifyUtil(
1410
var
compilation = CompileAndVerifyUtil(
1512
var
compilation = CompileAndVerifyUtil(
1563
var
compilation = CompileAndVerifyUtil(
1631
var
compilation = CompileAndVerifyUtil(
1660
var
compilation = CompileAndVerifyUtil(
1710
var
compilation = CompileAndVerifyUtil(
1748
var
compilation = CompileAndVerifyUtil(
1811
var
compilation = CompileAndVerifyUtil(
3143
var
c = CompileAndVerifyUtil(text,
3971
var
verifier = CompileAndVerifyUtil(
4122
var
verifier = CompileAndVerifyUtil(
CodeGen\CodeGenForEachTests.cs (32)
39
var
compilation = CompileAndVerify(source, expectedOutput: @"
106
var
compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"
210
var
compilation = CompileAndVerify(source, expectedOutput: @"
375
var
compilation = CompileAndVerify(source, expectedOutput: @"
436
var
compilation = CompileAndVerify(source, expectedOutput: @"
504
var
compilation = CompileAndVerify(source, expectedOutput: @"
571
var
compilation = CompileAndVerify(source, expectedOutput: @"
634
var
compilation = CompileAndVerify(source, expectedOutput: @"
696
var
compilation = CompileAndVerify(source, expectedOutput: @"
838
var
compilation = CompileAndVerify(source, expectedOutput: @"
883
var
compilation = CompileAndVerify(source, expectedOutput: @"
948
var
compilation = CompileAndVerify(source, expectedOutput: @"
1012
var
compilation = CompileAndVerify(source, expectedOutput: @"
1082
var
compilation = CompileAndVerify(source, expectedOutput: @"
1143
var
compilation = CompileAndVerify(source, expectedOutput: @"
1213
var
compilation = CompileAndVerify(source, expectedOutput: @"
1275
var
compilation = CompileAndVerify(source, expectedOutput: @"
1351
var
compilation = CompileAndVerify(source, expectedOutput: @"
1392
var
verifier = CompileAndVerify(compilation, verify: Verification.FailsILVerify, expectedOutput: @"
1456
var
compilation = CompileAndVerify(source, verify: Verification.FailsILVerify, expectedOutput: @"
1491
var
compilation = CompileAndVerify(source, verify: Verification.FailsILVerify, expectedOutput: @"
1677
var
compilation = CompileAndVerify(source, expectedOutput: @"
1710
var
compilation = CompileAndVerify(source, expectedOutput: @"
1787
var
compilation = CompileAndVerify(source, expectedOutput: @"
1893
var
compilation = CompileAndVerify(source, expectedOutput: @"
1937
var
compilation = CompileAndVerify(source, expectedOutput: @"
1979
var
compilation = CompileAndVerify(source, expectedOutput: "1");
2005
var
compilation = CompileAndVerify(source, expectedOutput: "1");
2029
var
compilation = CompileAndVerify(source, expectedOutput: @"
2102
var
compilation = CompileAndVerify(source, expectedOutput: @"
2167
var
compilation = CompileAndVerify(source, expectedOutput: @"
2354
var
compilation = CompileAndVerify(source);
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(@"
1808
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: @"
1903
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: @"
1972
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: @"
2053
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: @"
2132
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: @"
2203
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: @"Ref set");
2274
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: @"Field");
2339
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: @"Field");
2428
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: @"
2472
var
verifier = CompileAndVerifyFunctionPointers(@"
2669
var
verifier = CompileAndVerifyFunctionPointers(@"
2694
var
verifier = CompileAndVerifyFunctionPointers(@"
2724
var
verifier = CompileAndVerifyFunctionPointers(@"
2775
var
verifier = CompileAndVerifyFunctionPointers(@"
2815
var
verifier = CompileAndVerifyFunctionPointers(@"
2852
var
verifier = CompileAndVerifyFunctionPointers(@"
2887
var
verifier = CompileAndVerifyFunctionPointers(@"
2929
var
verifier = CompileAndVerifyFunctionPointers(@"
2964
var
verifier = CompileAndVerifyFunctionPointers($@"
3009
var
verifier = CompileAndVerifyFunctionPointers(@"
3277
var
verifier = CompileAndVerifyFunctionPointers(@"
3511
var
verifier = CompileAndVerifyFunctionPointers(@"
3797
var
verifier = CompileAndVerifyFunctionPointers(@"
3859
var
verifier = CompileAndVerifyFunctionPointers(@"
3923
var
verifier = CompileAndVerifyFunctionPointers(@"
4135
var
verifier = CompileAndVerifyFunctionPointers(@"
4171
var
verifier = CompileAndVerifyFunctionPointers(@"
4232
var
verifier = CompileAndVerifyFunctionPointers(@"
4300
var
verifier = CompileAndVerifyFunctionPointers(@"
4337
var
verifier = CompileAndVerifyFunctionPointers(@"
4409
var
verifier = CompileAndVerifyFunctionPointers(@"
4474
var
verifier = CompileAndVerifyFunctionPointers(@"
4520
var
verifier = CompileAndVerifyFunctionPointers(@"
4578
var
verifier = CompileAndVerifyFunctionPointers(@"
4637
var
verifier = CompileAndVerifyFunctionPointers(@"
4692
var
verifier = CompileAndVerifyFunctionPointers(@"
4748
var
verifier = CompileAndVerifyFunctionPointers(@"
4810
var
verifier = CompileAndVerifyFunctionPointers(@"
4880
var
verifier = CompileAndVerifyFunctionPointers(@"
4924
var
verifier = CompileAndVerifyFunctionPointers(@"
4956
var
verifier = CompileAndVerifyFunctionPointers(@"
5030
var
verifier = CompileAndVerifyFunctionPointers(@"
5049
var
verifier = CompileAndVerifyFunctionPointers(@"
5080
var
verifier = CompileAndVerifyFunctionPointers(@"
5345
var
verifier = CompileAndVerifyFunctionPointers(@"
5447
var
comp = CompileAndVerifyFunctionPointers($@"
5477
var
comp = CompileAndVerifyFunctionPointers(@"
5593
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, il, symbolValidator: symbolValidator);
5772
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, il, expectedOutput: "LL");
5848
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, il, expectedOutput: "LL");
5873
var
verifier = CompileAndVerifyFunctionPointers(@"
5914
var
verifier = CompileAndVerifyFunctionPointers(@"
6005
var
verifier = CompileAndVerifyFunctionPointers(@"
6043
var
verifier = CompileAndVerifyFunctionPointers(@"
6956
var
verifier = CompileAndVerifyFunctionPointersWithIl(source, il, expectedOutput: @"
7132
var
comp = CompileAndVerifyFunctionPointers(@"
7170
var
verifier = CompileAndVerifyFunctionPointers(@"
7197
var
verifier = CompileAndVerifyFunctionPointers(@"
7243
var
verifier = CompileAndVerifyFunctionPointers(@"
7454
var
verifier = CompileAndVerifyFunctionPointers(source, expectedOutput: "", options: TestOptions.UnsafeReleaseExe);
10660
var
verifier = CompileAndVerifyFunctionPointers(new[] { @"
10694
var
verifier = CompileAndVerifyFunctionPointers(new[] { @"
10780
var
verifier = CompileAndVerifyFunctionPointers(@"
10820
var
verifier = CompileAndVerifyFunctionPointers(@"
10870
var
verifier = CompileAndVerifyFunctionPointers(@"
10975
var
verifier = CompileAndVerify(comp, expectedOutput: "2", verify: Verification.Skipped);
11019
var
verifier = CompileAndVerifyFunctionPointers(@"
11051
var
verifier = CompileAndVerifyFunctionPointers(@"
11088
var
verifier = CompileAndVerifyFunctionPointers(@"
11126
var
verifier = CompileAndVerifyFunctionPointers(@"
11159
var
verifier = CompileAndVerifyFunctionPointers(@"
11201
var
verifier = CompileAndVerifyFunctionPointers(@"
11267
var
verifier = CompileAndVerifyFunctionPointers(@"
11316
var
verifier = CompileAndVerifyFunctionPointers(@"
11375
var
verifier = CompileAndVerifyFunctionPointers(@"
11615
var
verifier = CompileAndVerify(source, options: TestOptions.UnsafeDebugDll, symbolValidator: static module =>
11643
var
verifier = CompileAndVerify(source, options: TestOptions.UnsafeDebugDll, symbolValidator: static module =>
11696
var
verifier = CompileAndVerify(source, options: TestOptions.UnsafeDebugDll, symbolValidator: static module =>
11753
var
verifier = CompileAndVerify(source, options: TestOptions.UnsafeDebugExe, expectedOutput: "True", symbolValidator: static module =>
11783
var
verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe,
12012
var
verifier = CompileAndVerify(source, options: TestOptions.UnsafeDebugDll, symbolValidator: static module =>
12145
var
verifier = CompileAndVerify(source, options: TestOptions.UnsafeDebugDll, symbolValidator: static module =>
12173
var
verifier = CompileAndVerify(source, options: TestOptions.UnsafeDebugDll, symbolValidator: static module =>
12203
var
verifier = CompileAndVerify(source, options: TestOptions.UnsafeDebugDll, symbolValidator: static module =>
12252
var
verifier = CompileAndVerifyFunctionPointers(code, expectedOutput: "true");
12298
var
verifier = CompileAndVerifyFunctionPointers(code, expectedOutput: "true");
12344
var
verifier = CompileAndVerifyFunctionPointers(code, expectedOutput: "true");
12390
var
verifier = CompileAndVerifyFunctionPointers(code, expectedOutput: "true");
12595
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)
253
var
compilation = CompileAndVerify(
434
var
compilation = CompileAndVerify(
CodeGen\CodeGenIncrementTests.cs (1)
441
var
compilation = CompileAndVerify(source);
CodeGen\CodeGenInParametersTests.cs (50)
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(@"
419
var
comp = CompileAndVerify(@"
472
var
verifier = CompileAndVerify(@"
531
var
verifier = CompileAndVerify(@"
613
var
comp = CompileAndVerify(@"
661
var
comp = CompileAndVerify(@"
722
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails);
770
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: @"42
824
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: @"42
887
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: "42");
947
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: "42");
1008
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: "42");
1059
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: @"hi
1096
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails);
1303
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails);
1346
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails);
1416
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"42");
1449
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"42");
1586
var
verifier = CompileAndVerify(text, verify: Verification.Fails, expectedOutput: "6");
1722
var
result = CompileAndVerify(comp, verify: Verification.Fails, expectedOutput: @"47");
2314
var
v = CompileAndVerify(comp, verify: Verification.Fails, expectedOutput: @"
2544
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"0");
2602
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"");
2694
var
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"4242420");
3706
var
verifier = CompileAndVerify(compilation, expectedOutput: "XX");
3744
var
verifier = CompileAndVerify(compilation, expectedOutput: "5050");
3795
var
verifier = CompileAndVerify(compilation, expectedOutput: "5050");
3853
var
verifier = CompileAndVerify(compilation, expectedOutput: "5050");
3917
var
verifier = CompileAndVerify(compilation, expectedOutput: "555555");
3981
var
verifier = CompileAndVerify(compilation, expectedOutput: "0011", verify: Verification.FailsPEVerify);
4059
var
verifier = CompileAndVerify(compilation, expectedOutput: "");
4115
var
verifier = CompileAndVerify(compilation, expectedOutput: "hihi");
4173
var
verifier = CompileAndVerify(compilation, expectedOutput: "hihi");
4236
var
verifier = CompileAndVerify(compilation, expectedOutput: "11");
4309
var
verifier = CompileAndVerify(compilation, expectedOutput: "TestTest");
4366
var
verifier = CompileAndVerify(compilation, expectedOutput: "TestTestDerivedDerived");
4423
var
verifier = CompileAndVerify(source, expectedOutput: "00");
4495
var
verifier = CompileAndVerify(source, expectedOutput: "00");
4573
var
verifier = CompileAndVerify(source, expectedOutput: "00", verify: Verification.FailsPEVerify);
4657
var
verifier = CompileAndVerify(source, expectedOutput: "12");
4724
var
comp = CompileAndVerify(text, expectedOutput: "00");
4840
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 (11)
87
var
compilation = CompileAndVerify(source, expectedOutput: "123456789X");
124
var
compilation = CompileAndVerify(source, expectedOutput: "0123456789");
170
var
compilation = CompileAndVerifyWithMscorlib40(source, expectedOutput: "12324565");
304
var
compilation = CompileAndVerify(source, expectedOutput: "0|01Z|012XZ|012X3Z|012X34YZ|012X34Y5Z|012X34Y5Z6");
1176
var
rel = CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
1193
var
dbg = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
1940
var
verifier = this.CompileAndVerify(comp);
1973
var
verifier = this.CompileAndVerify(comp);
2392
var
verifier = CompileAndVerify(compilation, verify: Verification.FailsPEVerify);
2569
var
v = CompileAndVerify(source, options: TestOptions.ReleaseDll);
2918
var
compilation = CompileAndVerify(source, expectedOutput: "FalseTrueFalseTrue", options: TestOptions.ReleaseExe);
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)
36
var
verifier = CompileAndVerify(text);
91
var
verifier = CompileAndVerify(text);
145
var
verifier = CompileAndVerify(text);
201
var
verifier = CompileAndVerify(text);
258
var
verifier = CompileAndVerify(text);
312
var
verifier = CompileAndVerify(text);
366
var
verifier = CompileAndVerify(text);
420
var
verifier = CompileAndVerify(text);
1362
var
verifier = CompileAndVerify(compilation);
1412
var
verifier = CompileAndVerify(compilation);
1461
var
verifier = CompileAndVerify(compilation);
1512
var
verifier = CompileAndVerify(compilation);
1564
var
verifier = CompileAndVerify(compilation);
1613
var
verifier = CompileAndVerify(compilation);
1662
var
verifier = CompileAndVerify(compilation);
1711
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 });
2807
var
verifier = CompileAndVerify(@"
CodeGen\CodeGenOperators.cs (91)
40
var
compilation = CompileAndVerify(source, expectedOutput: "False", options: TestOptions.ReleaseExe);
91
var
compilation = CompileAndVerify(source, expectedOutput: "False", options: TestOptions.ReleaseExe);
159
var
compilation = CompileAndVerify(source, expectedOutput: "False", options: TestOptions.ReleaseExe);
230
var
compilation = CompileAndVerify(source, expectedOutput: "False Branch not taken-True Branch taken", options: TestOptions.ReleaseExe);
302
var
compilation = CompileAndVerify(source, expectedOutput: "True Branch taken", options: TestOptions.ReleaseExe);
355
var
compilation = CompileAndVerify(source, expectedOutput: "True Branch taken", options: TestOptions.ReleaseExe);
430
var
compilation = CompileAndVerify(source, expectedOutput: expectedOutput);
496
var
compilation = CompileAndVerify(source, expectedOutput: expectedOutput);
551
var
compilation = CompileAndVerify(source);
585
var
compilation = CompileAndVerify(source);
604
var
comp = CompileAndVerify(text, expectedOutput: "False");
637
var
comp = CompileAndVerify(text, expectedOutput: "False");
669
var
comp = CompileAndVerify(text, expectedOutput: "False");
699
var
comp = CompileAndVerify(text, expectedOutput: "False");
732
var
comp = CompileAndVerify(text, expectedOutput: @"False
820
var
comp = CompileAndVerify(text, expectedOutput: @"123456");
909
var
compilation = CompileAndVerify(source);
956
var
compilation = CompileAndVerify(source);
1029
var
comp = CompileAndVerify(source,
1091
var
compilation = CompileAndVerify(source, expectedOutput: string.Empty);
1224
var
compilation = CompileAndVerify(source, expectedOutput: string.Empty);
1298
var
compilation = CompileAndVerify(source, expectedOutput: string.Empty);
1365
var
compilation = CompileAndVerify(source, expectedOutput: string.Empty);
1434
var
comp = CompileAndVerify(source, expectedOutput: @"
1515
var
comp = CompileAndVerify(source, expectedOutput: @"
1567
var
compilation = CompileAndVerify(source, expectedOutput: "Goo");
1630
var
comp = CompileAndVerify(source, expectedOutput: "System.Collections.Generic.IEnumerable`1[System.Int32]");
1677
var
comp = CompileAndVerify(source, expectedOutput: "System.Collections.Generic.IEnumerable`1[System.Int32]");
1724
var
comp = CompileAndVerify(source, expectedOutput: "System.Collections.Generic.IEnumerable`1[System.Int32]System.Collections.Generic.IEnumerable`1[System.Int32]");
1771
var
comp = CompileAndVerify(source, expectedOutput: "System.Collections.Generic.IEnumerable`1[System.Int32]");
1820
var
comp = CompileAndVerify(source);
1867
var
verify = CompileAndVerify(src,
2008
var
comp = CompileAndVerify(source);
2067
var
comp = CompileAndVerify(source);
2133
var
comp = CompileAndVerify(source);
2196
var
comp = CompileAndVerify(source);
2571
var
verifier = CompileAndVerify(source,
2663
var
verifier = CompileAndVerify(source,
2770
var
verifier = CompileAndVerify(source, expectedOutput: @"0");
2797
var
verifier = CompileAndVerify(source, expectedOutput: @"PASS");
2822
var
verifier = CompileAndVerify(source, expectedOutput: @"0");
2860
var
verifier = CompileAndVerify(source, expectedOutput: @"01");
2895
var
verifier = CompileAndVerify(source, expectedOutput: @"10");
2931
var
verifier = CompileAndVerify(source, expectedOutput: @"0");
3050
var
compilation = CompileAndVerify(source, expectedOutput: expectedOutput);
3100
var
compilation = CompileAndVerify(source, expectedOutput: expectedOutput);
3119
var
comp = CompileAndVerify(text, expectedOutput: "");
3254
var
verifier = CompileAndVerify(source: source, expectedOutput: "Pass");
3423
var
comp = CompileAndVerify(text, expectedOutput: @"False
3483
var
comp = CompileAndVerify(text, options: TestOptions.DebugExe, expectedOutput: @"True
3546
var
comp = CompileAndVerify(text, expectedOutput: @"one");
3664
var
comp = CompileAndVerify(text, expectedOutput: @"
3796
var
comp = CompileAndVerify(text, expectedOutput: @"ttff");
3830
var
comp = CompileAndVerify(text, expectedOutput: expectedOutput);
3864
var
comp = CompileAndVerify(text).VerifyIL("C.M", @"
3904
var
comp = CompileAndVerify(text, expectedOutput: @"True
3932
var
comp = CompileAndVerify(text, expectedOutput: @"
3968
var
comp = CompileAndVerify(text, expectedOutput: @"
4005
var
comp = CompileAndVerify(text, expectedOutput: @"
4160
var
comp = CompileAndVerify(source, expectedOutput: "System.Collections.Generic.IEnumerable`1[System.Int32]");
4212
var
comp = CompileAndVerify(source, expectedOutput: "System.Collections.Generic.IEnumerable`1[System.Int32]System.Collections.Generic.IEnumerable`1[System.Int32]");
4266
var
comp = CompileAndVerify(source, expectedOutput: "System.Collections.Generic.IEnumerable`1[System.Int32]");
4313
var
comp = CompileAndVerify(source);
4361
var
comp = CompileAndVerify(source);
4422
var
comp = CompileAndVerify(source);
4493
var
comp = CompileAndVerify(source);
4559
var
comp = CompileAndVerify(new string[] { source }, expectedOutput: @"");
4628
var
comp = CompileAndVerify(source);
4695
var
comp = CompileAndVerify(source);
4752
var
comp = CompileAndVerify(source);
4814
var
comp = CompileAndVerify(source);
4856
var
comp = CompileAndVerify(source);
4913
var
comp = CompileAndVerify(source);
4985
var
comp = CompileAndVerify(source);
5066
var
compilation = CompileAndVerify(source, expectedOutput: @"3
5145
var
result = CompileAndVerify(source, options: TestOptions.ReleaseExe);
5200
var
result = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: "True");
5248
var
result = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: "11461640193");
5400
var
result = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"5180801
5605
var
result = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput);
5705
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
5763
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
5826
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
5912
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
6091
var
cv = CompileAndVerify(comp, expectedOutput: @"TrueFalse");
6177
var
verifier = CompileAndVerify(code, expectedOutput: "Run");
6259
var
verifier = CompileAndVerify(code, expectedOutput: "Run");
6419
var
verifier = CompileAndVerify(code, expectedOutput: "Run");
6487
var
verifier = CompileAndVerify(code, expectedOutput: "Run");
6561
var
verifier = CompileAndVerify(code, expectedOutput: "12");
6644
var
verifier = CompileAndVerify(code, expectedOutput: "12");
CodeGen\CodeGenOptimizedNullableOperators.cs (29)
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);
823
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
868
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
985
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
1112
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
1285
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
1485
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
1611
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
1647
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
1694
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
1823
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
1925
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
1973
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
2048
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
2100
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
2188
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput);
2218
var
comp = CompileAndVerify(source, expectedOutput: @"
2374
var
comp = CompileAndVerify(source, expectedOutput: @"
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(
4128
var
verifier = CompileAndVerify(source, symbolValidator: validator(true), sourceSymbolValidator: validator(false), expectedOutput: @"System.Int32[]");
4175
var
comp = CompileAndVerify(source2, references: new[] { new CSharpCompilationReference(compref) }, expectedOutput: "M");
4199
var
cs1Verifier = CompileAndVerify(cs1Compilation);
4241
var
cs2Verifier = CompileAndVerify(cs2Compilation,
4268
var
cs1Verifier = CompileAndVerify(cs1Compilation);
4313
var
cs2Verifier = CompileAndVerify(cs2Compilation, expectedOutput: @"C4
4343
var
comp = CompileAndVerify(source, expectedOutput:
4416
var
cs1Verifier = CompileAndVerify(cs1Compilation);
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (22)
659
var
cv = CompileAndVerify(comp, expectedOutput: "", verify: Verification.Passes);
727
var
cv = CompileAndVerify(comp, expectedOutput: "100", verify: Verification.Passes);
766
var
verifier = CompileAndVerify(compilation, expectedOutput: "10;20;", verify: Verification.Skipped);
805
var
verifier = CompileAndVerify(compilation, expectedOutput: "10;20;", verify: Verification.Skipped);
900
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
947
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
1028
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
1052
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
1095
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
1174
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
1318
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
1370
var
verifier = CompileAndVerify(compilation, expectedOutput: "AF2D4567", verify: Verification.Skipped);
1483
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
1517
var
verifier = CompileAndVerify(compilation, verify: Verification.Passes);
1550
var
verifier = CompileAndVerify(compilation, expectedOutput: "000000", verify: Verification.Passes);
1615
var
verifier = CompileAndVerify(compilation, expectedOutput: "340", verify: Verification.Skipped);
2369
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
2476
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
2529
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
2561
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
2609
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
2660
var
verifier = CompileAndVerify(compilation, verify: Verification.Skipped);
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 (17)
40
var
comp = CompileAndVerify(source, expectedOutput: "3344");
92
var
comp = CompileAndVerify(source, expectedOutput: "44", verify: Verification.Fails);
128
var
comp = CompileAndVerify(source, expectedOutput: "44", verify: Verification.Passes);
164
var
comp = CompileAndVerify(source, expectedOutput: "55", verify: Verification.Passes);
202
var
comp = CompileAndVerify(source, expectedOutput: "5555", verify: Verification.Passes);
249
var
comp = CompileAndVerify(source, expectedOutput: "67", verify: Verification.Fails);
303
var
comp = CompileAndVerify(source, expectedOutput: "446767", verify: Verification.Passes);
363
var
comp = CompileAndVerify(source, expectedOutput: "1");
437
var
comp = CompileAndVerify(source, expectedOutput: @"False
836
var
comp = CompileAndVerify(source, expectedOutput: "1", verify: Verification.Passes);
880
var
comp = CompileAndVerify(source, expectedOutput: "1", verify: Verification.Passes);
911
var
comp = CompileAndVerify(source, expectedOutput: "1", verify: Verification.Passes);
999
var
comp = CompileAndVerify(source, expectedOutput: "1");
1064
var
comp = CompileAndVerifyWithMscorlib40(source, references: new[] { TestMetadata.Net40.System, ValueTupleRef, TestMetadata.Net40.SystemCore }, expectedOutput: "00", verify: Verification.FailsPEVerify);
1152
var
comp = CompileAndVerify(source, expectedOutput: "00", verify: Verification.FailsPEVerify);
1267
var
verifier = CompileAndVerify(comp, expectedOutput: "run", verify: verify);
1354
var
verifier = CompileAndVerify(comp, expectedOutput: "0run", verify: Verification.Fails);
CodeGen\CodeGenRefLocalTests.cs (55)
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(@"
1806
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
1877
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
1967
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll);
2029
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
2096
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
2178
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll);
2273
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll);
2349
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll);
2400
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll);
2481
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
2552
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
2649
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
2759
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
2836
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
2942
var
comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails);
3466
var
verifier = CompileAndVerify(comp, expectedOutput: "run", verify: verify);
3535
var
verifier = CompileAndVerify(comp, expectedOutput: "0", verify: Verification.Fails);
3600
var
verifier = CompileAndVerify(comp, expectedOutput: "run", verify: verify);
3652
var
verifier = CompileAndVerify(comp, expectedOutput: "run", verify: verify);
3708
var
verifier = CompileAndVerify(comp, expectedOutput: "run", verify: verify);
3732
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "");
3785
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "");
3837
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "");
3888
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "");
3937
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "");
3973
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
2624
var
comp = CompileAndVerify(source, references: new MetadataReference[] { CSharpRef }, expectedOutput: @"False
2683
var
comp = CompileAndVerify(source, references: new MetadataReference[] { CSharpRef }, expectedOutput: @"False
2749
var
comp = CompileAndVerify(c, expectedOutput: @"False
2818
var
comp = CompileAndVerify(c, expectedOutput: @"False
2899
var
comp = CompileAndVerify(c, expectedOutput: @"False
2969
var
comp = CompileAndVerify(c, expectedOutput: @"False
3052
var
comp = CompileAndVerify(c, expectedOutput: @"False
3135
var
comp = CompileAndVerify(c, expectedOutput: @"False
3184
var
comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: @"System.Nullable`1[System.Int64]");
3241
var
comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: @"System.Nullable`1[System.Int64]");
3295
var
comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: @"");
3452
var
comp = CompileAndVerify(source, expectedOutput: @"0
3528
var
comp = CompileAndVerify(source, expectedOutput: @"0
3607
var
comp = CompileAndVerify(source, expectedOutput: @"0
3687
var
comp = CompileAndVerify(source, expectedOutput: @"0
3775
var
comp = CompileAndVerify(source, expectedOutput: @"0
3855
var
comp = CompileAndVerify(source, expectedOutput: @"
3913
var
comp = CompileAndVerify(source, expectedOutput: @"False
4011
var
comp = CompileAndVerify(source, expectedOutput: @"True
4136
var
comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: @" >
4247
var
comp = CompileAndVerify(source, expectedOutput: @"");
4317
var
comp = CompileAndVerify(source, expectedOutput: @"");
4408
var
comp = CompileAndVerify(source, expectedOutput: @"Success");
4481
var
comp = CompileAndVerify(source, expectedOutput: @"Success");
4519
var
comp = CompileAndVerify(source, expectedOutput: @"");
4596
var
comp = CompileAndVerify(source, expectedOutput: @"");
4679
var
comp = CompileAndVerify(source, expectedOutput: @"not empty
4908
var
comp = CompileAndVerify(source, expectedOutput: @"1");
4965
var
verifier = CompileAndVerify(source, expectedOutput: @"0
5006
var
verifier = CompileAndVerify(source, expectedOutput: @"0
5049
var
verifier = CompileAndVerify(source, expectedOutput: @"01/01/0001 00:00:00
5098
var
verifier = CompileAndVerify(source, expectedOutput: @"0
5148
var
verifier = CompileAndVerify(source, expectedOutput: @"---
5194
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), verify: Verification.Fails, expectedOutput: @"---
5245
var
verifier = CompileAndVerify(source, verify: Verification.FailsILVerify, options: TestOptions.DebugExe.WithAllowUnsafe(true), expectedOutput: @"---
5302
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"---
5429
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"---
5556
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), verify: Verification.Fails, expectedOutput: @"---
5682
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @" ---
5731
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"---
5820
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"---
5899
var
verifier = CompileAndVerify(source, expectedOutput: @"False");
5936
var
verifier = CompileAndVerify(source, expectedOutput: @"False");
5990
var
verifier = CompileAndVerify(source, expectedOutput: @"False
6058
var
verifier = CompileAndVerify(source, expectedOutput: @"FalseTrueTrue");
6098
var
verifier = CompileAndVerify(source, expectedOutput: @"TrueTrueFalse");
6141
var
verifier = CompileAndVerify(source, expectedOutput: @"TrueTrueFalseFalse");
6205
var
comp = CompileAndVerify(c, expectedOutput: @"FalseTrueTrue");
6242
var
comp = CompileAndVerify(c, expectedOutput: @"FalseTrueTrue");
6285
var
comp = CompileAndVerify(c, expectedOutput: @"FalseTrueTrue");
6321
var
comp = CompileAndVerify(c, expectedOutput: @"#
6364
var
comp = CompileAndVerify(c, expectedOutput: @"False
6399
var
comp = CompileAndVerify(c, expectedOutput: @"False
6454
var
verifier = CompileAndVerify(source, expectedOutput: @"==True
6533
var
verifier = CompileAndVerify(source, expectedOutput: @"==True
6611
var
verifier = CompileAndVerify(source, expectedOutput: @"False
6685
var
verifier = CompileAndVerify(source, expectedOutput: @"False
6750
var
comp = CompileAndVerify(source, expectedOutput: @"1
6803
var
verifier = CompileAndVerify(source, expectedOutput: @"TrueTrueFalse");
6852
var
verifier = CompileAndVerify(source, expectedOutput: @"TrueTrueFalseFalse");
6902
var
verifier = CompileAndVerify(source, expectedOutput: @"0");
6960
var
verifier = CompileAndVerify(source, expectedOutput: @"42");
7005
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput:
7065
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput:
7132
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput:
7192
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput:
7247
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput:
7291
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput:
7337
var
comp = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"", verify: Verification.Fails);
7405
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, 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");
263
var
compilation = CompileAndVerify(source, verify: Verification.FailsILVerify, expectedOutput: @"");
338
var
compilation = CompileAndVerify(source, expectedOutput: @"Program+S1");
384
var
compilation = CompileAndVerify(source, expectedOutput: @"S::M
453
var
compilation = CompileAndVerify(source, verify: Verification.FailsILVerify, expectedOutput: @"
663
var
compilation = CompileAndVerify(source, expectedOutput: "");
744
var
compilation = CompileAndVerify(source, expectedOutput: "");
844
var
compilation = CompileAndVerify(source, expectedOutput: "");
957
var
compilation = CompileAndVerify(source, expectedOutput: "");
1095
var
compilation = CompileAndVerify(source, expectedOutput: "1111");
1194
var
compilation = CompileAndVerify(source, expectedOutput: "1111");
1286
var
compilation = CompileAndVerify(source, expectedOutput: "11");
1373
var
compilation = CompileAndVerify(source, expectedOutput: "");
1481
var
compilation = CompileAndVerify(source, expectedOutput: "");
1555
var
compilation = CompileAndVerify(source, expectedOutput: "S1", verify: Verification.Skipped);
1633
var
compilation = CompileAndVerify(source);
1662
var
compilation = CompileAndVerify(source, expectedOutput: "B");
1731
var
compilation = CompileAndVerify(source, expectedOutput: @"ca761232-ed42-11ce-bacd-00aa0057b223
1830
var
compilation = CompileAndVerify(source, expectedOutput: "False");
1886
var
compilation = CompileAndVerify(source, expectedOutput: "False");
1954
var
compilation = CompileAndVerify(source, expectedOutput: "False");
2008
var
compilation = CompileAndVerify(source, expectedOutput: "False");
2101
var
compilation = CompileAndVerify(source, verify: Verification.Fails, expectedOutput: "True");
2216
var
compilation = CompileAndVerify(source, verify: Verification.Fails, expectedOutput: @"353
2288
var
compilation = CompileAndVerify(source);
2372
var
compilation = CompileAndVerify(source, verify: Verification.FailsILVerify, expectedOutput: "0");
CodeGen\CodeGenTests.cs (194)
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);
534
var
result = CompileAndVerify(compilation);
608
var
result = CompileAndVerify(compilation);
711
var
compilation = CompileAndVerify(source, expectedOutput: @"
750
var
compilation = CompileAndVerify(source, expectedOutput: @"
861
var
result = CompileAndVerify(compilation, expectedOutput: "Struct1 Struct2 ");
896
var
compilation = CompileAndVerify(source);
946
var
compilation = CompileAndVerify(source);
1102
var
compilation = CompileAndVerify(source);
1503
var
compilation = CompileAndVerify(source);
1530
var
compilation = CompileAndVerify(source);
1575
var
compilation = CompileAndVerify(source);
1614
var
compilation = CompileAndVerify(source);
1659
var
compilation = CompileAndVerify(source, expectedOutput: "42");
1688
var
compilation = CompileAndVerify(source, expectedOutput: "42");
1717
var
compilation = CompileAndVerify(source, expectedOutput: "42");
1749
var
compilation = CompileAndVerify(source, expectedOutput: "123");
1807
var
v = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "42123");
1858
var
compilation = CompileAndVerify(source, expectedOutput: "");
1900
var
compilation = CompileAndVerify(source, expectedOutput: @"
1947
var
compilation = CompileAndVerify(source, expectedOutput: @"
1983
var
compilation = CompileAndVerify(source, expectedOutput: @"System.Exception: hello");
2021
var
compilation = CompileAndVerify(source, expectedOutput: @"hi");
2046
var
compilation = CompileAndVerify(source);
2080
var
compilation = CompileAndVerify(source);
2118
var
compilation = CompileAndVerify(source, expectedOutput: "S");
2148
var
compilation = CompileAndVerify(source, expectedOutput: "2");
2176
var
compilation = CompileAndVerify(source, expectedOutput: "S");
2212
var
compilation = CompileAndVerify(source, expectedOutput: "T2");
2249
var
compilation = CompileAndVerify(source, expectedOutput: "C<int>.S;C<string>.S;C<string>.T2");
2280
var
compilation = CompileAndVerify(source, expectedOutput: "p, q");
2340
var
compilation = CompileAndVerify(source);
2390
var
compilation = CompileAndVerify(source);
2999
var
compilation = CompileAndVerify(source, expectedOutput: "1System.Reflection.Missing");
3026
var
compilation = CompileAndVerify(source, expectedOutput: "2147483647");
3063
var
compilation = CompileAndVerify(source, expectedOutput: "42");
3104
var
compilation = CompileAndVerify(source, expectedOutput: "0427");
3158
var
compilation = CompileAndVerify(source, options: TestOptions.ReleaseDebugExe, expectedOutput: "0427");
3212
var
compilation = CompileAndVerify(source, expectedOutput: "042");
3263
var
compilation = CompileAndVerify(source, expectedOutput: "123123123123123");
3328
var
compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: "222333");
3382
var
compilation = CompileAndVerify(source, expectedOutput: "222333");
3475
var
compilation = CompileAndVerify(source, expectedOutput: "03450");
3559
var
compilation = CompileAndVerify(source, expectedOutput: "03450");
3649
var
compilation = CompileAndVerify(source, expectedOutput: @"
3830
var
compilation = CompileAndVerify(source, expectedOutput: "hihi4242123123");
3949
var
compilation = CompileAndVerify(source, expectedOutput: "D+BooSystem.Int32123");
4037
var
compilation = CompileAndVerify(source, expectedOutput: "B ctor-D ctor");
4104
var
compilation = CompileAndVerify(source, expectedOutput: @"
4207
var
compilation = CompileAndVerify(source, expectedOutput: @"
4265
var
compilation = CompileAndVerify(source, expectedOutput: @"abcdef");
4308
var
verifier = CompileAndVerify(@"
4528
var
compilation = CompileAndVerify(source, expectedOutput: @"123");
4584
var
compilation = CompileAndVerify(source, expectedOutput: @"0123401234");
4692
var
compilation = CompileAndVerify(source, expectedOutput: @"
4734
var
compilation = CompileAndVerify(source, expectedOutput: @"012344321");
4777
var
compilation = CompileAndVerify(source, expectedOutput: @"-100-11-1");
4844
var
compilation = CompileAndVerify(source, expectedOutput: @"2 8 16 24 576 288");
4929
var
compilation = CompileAndVerify(source, expectedOutput: @"True False True True");
4996
var
compilation = CompileAndVerify(source, expectedOutput: @"-25 4294967295 1073741823");
5062
var
compilation = CompileAndVerify(source, expectedOutput: @"
5115
var
compilation = CompileAndVerify(source, expectedOutput: @"PASS", verify: Verification.Passes);
5176
var
compilation = CompileAndVerify(source, expectedOutput: @"hi", verify: Verification.Fails);
5268
var
compilation = CompileAndVerify(source, expectedOutput: @"hihi", verify: Verification.Fails);
5325
var
compilation = CompileAndVerify(source, expectedOutput: @"
5516
var
compilation = CompileAndVerify(source, expectedOutput: @"42123");
5555
var
compilation = CompileAndVerify(source, expectedOutput: @"True");
5596
var
compilation = CompileAndVerify(source, expectedOutput: @"True");
5699
var
v = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"1");
5803
var
compilation = CompileAndVerify(source, expectedOutput: @"1");
5856
var
compilation = CompileAndVerify(source, expectedOutput: @"True");
5916
var
compilation = CompileAndVerify(source, expectedOutput: @"TrueTrueTrueTrueTrue");
5976
var
compilation = CompileAndVerify(source, expectedOutput: @"12");
6013
var
compilation = CompileAndVerify(source, expectedOutput: @"onetwo");
6071
var
compilation = CompileAndVerify(source, expectedOutput: @"23");
6117
var
compilation = CompileAndVerify(source, expectedOutput: @"onetwo");
6156
var
compilation = CompileAndVerify(source, expectedOutput: @"A#A##");
6209
var
compilation = CompileAndVerify(source, expectedOutput: @"12");
6250
var
compilation = CompileAndVerify(source, expectedOutput: @"CurrentCultureIgnoreCaseInvariantCulture");
6289
var
compilation = CompileAndVerify(source, expectedOutput: @"12");
6380
var
compilation = CompileAndVerify(source, expectedOutput: @"BCDE2442");
6453
var
compilation = CompileAndVerify(source, expectedOutput: @"hi");
6590
var
compilation = CompileAndVerify(source, expectedOutput: @"hi");
6683
var
compilation = CompileAndVerifyWithMscorlib40(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"
6799
var
compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"3-5");
6861
var
compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"30");
6933
var
compilation = CompileAndVerifyWithMscorlib40(source, expectedOutput: @"
7016
var
verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
7072
var
compilation = CompileAndVerify(source, expectedOutput: @"0");
7128
var
compilation = CompileAndVerify(source, options: TestOptions.ReleaseDebugExe, expectedOutput: @"0");
7178
var
compilation = CompileAndVerify(source, expectedOutput: @"123");
7217
var
compilation = CompileAndVerify(source);
7255
var
compilation = CompileAndVerify(source);
7296
var
compilation = CompileAndVerify(source);
7334
var
compilation = CompileAndVerify(source, expectedOutput: @"");
7372
var
compilation = CompileAndVerify(source, expectedOutput: @"123");
7412
var
compilation = CompileAndVerify(source, expectedOutput: @"Program+Shade
7497
var
compilation = CompileAndVerify(source, expectedOutput: @"2");
7599
var
compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"
7698
var
compilation = CompileAndVerify(source, expectedOutput: "True6False");
7749
var
compilation = CompileAndVerify(source, expectedOutput: "6");
7809
var
compilation = CompileAndVerify(source, expectedOutput: @"
7882
var
compilation = CompileAndVerify(source, options: TestOptions.DebugExe.WithModuleName("MODULE"));
7978
var
compilation = CompileAndVerify(source, expectedOutput: "Hello");
8039
var
compilation = CompileAndVerify(source, expectedOutput: @"224");
8113
var
compilation = CompileAndVerify(source, expectedOutput: @"result=One,Two");
8192
var
compilation = CompileAndVerify(source, expectedOutput: @"6");
8397
var
compilation = CompileAndVerify(source, expectedOutput: @"
8511
var
compilation = CompileAndVerify(source, expectedOutput: @"first
8557
var
compilation = CompileAndVerify(source, expectedOutput: @"1
8631
var
compilation = CompileAndVerify(source, expectedOutput: @"2
8702
var
compilation = CompileAndVerify(source, expectedOutput: @"2
8748
var
compilation = CompileAndVerify(source, expectedOutput: @"2
8789
var
compilation = CompileAndVerify(source, expectedOutput: @"2
8868
var
compilation = CompileAndVerify(source, expectedOutput: @"2
8942
var
compilation = CompileAndVerify(source, expectedOutput: @"2
9011
var
compilation = CompileAndVerify(source, options: TestOptions.ReleaseDebugExe, expectedOutput: @"2
9083
var
compilation = CompileAndVerify(source, expectedOutput: @"1");
9128
var
compilation = CompileAndVerify(source, expectedOutput: @"42");
9175
var
compilation = CompileAndVerify(source, expectedOutput: @"42", options: TestOptions.ReleaseDebugExe);
9225
var
compilation = CompileAndVerify(source, expectedOutput: @"42");
9551
var
compilation = CompileAndVerify(source, expectedOutput: @"M() Called!M() Called!");
9600
var
compilation = CompileAndVerify(source, expectedOutput: @"123");
9672
var
compilation = CompileAndVerify(source, expectedOutput: @"12");
9791
var
compilation = CompileAndVerify(source, expectedOutput: @"6");
9888
var
compilation = CompileAndVerify(source, expectedOutput: "0").
10020
var
compilation = CompileAndVerify(source, expectedOutput: @"1");
10050
var
comp = CompileAndVerify(source, expectedOutput: @"False");
10573
var
compilation = CompileAndVerify(source);
10718
var
compilation = CompileAndVerify(source, expectedOutput:
10733
var
compilation = CompileAndVerify(source, expectedOutput:
11120
var
compilation = CompileAndVerify(source, expectedOutput: "101");
11155
var
compilation = CompileAndVerify(source, expectedOutput: "99.9");
11189
var
compilation = CompileAndVerify(source);
11212
var
compilation = CompileAndVerify(source, expectedOutput: "11");
11245
var
compilation = CompileAndVerify(source, expectedOutput: @"
11278
var
compilation = CompileAndVerify(source, expectedOutput: @"
11310
var
compilation = CompileAndVerify(source, expectedOutput: @"
11329
var
compilation = CompileAndVerify(source, expectedOutput: "79228162514264337593543950335");
11358
var
compilation = CompileAndVerify(source, expectedOutput: "79228162514264337593543950334-1");
11413
var
compilation = CompileAndVerify(source, expectedOutput: @"
11480
var
compilation = CompileAndVerify(source, expectedOutput: @"
11552
var
compilation = CompileAndVerify(source, expectedOutput: @"
11672
var
compilation = CompileAndVerify(source, expectedOutput: @"
11882
var
compilation = CompileAndVerify(source, expectedOutput: @"bye");
11937
var
compilation = CompileAndVerify(source, expectedOutput: @"0");
12000
var
compilation = CompileAndVerify(source, expectedOutput: @"1A");
12032
var
compilation = CompileAndVerify(source, expectedOutput: @"1A");
12073
var
compilation = CompileAndVerify(source, expectedOutput: "null;null;C1;");
12104
var
compilation = CompileAndVerify(source, expectedOutput: @"1A");
12133
var
compilation = CompileAndVerify(source, expectedOutput: @"00");
12169
var
compilation = CompileAndVerify(source, expectedOutput: @"0");
12198
var
compilation = CompileAndVerify(source, expectedOutput: @"0");
12286
var
comp = CompileAndVerify(source, expectedOutput: @"42", parseOptions: TestOptions.Regular7_2, verify: Verification.FailsPEVerify);
12440
var
comp = CompileAndVerify(source, expectedOutput: @"-10", verify: Verification.FailsPEVerify);
12512
var
compilation = CompileAndVerify(source, expectedOutput: @"123");
12570
var
compilation = CompileAndVerify(source, expectedOutput: @"");
12624
var
compilation = CompileAndVerify(source, expectedOutput: @"notequal1
12753
var
compilation = CompileAndVerify(source, expectedOutput: @"True
12990
var
compilation = CompileAndVerify(source, expectedOutput: expectedOutput);
13027
var
compilation = CompileAndVerify(source, expectedOutput: expectedOutput);
13206
var
compilation = CompileAndVerify(source, expectedOutput: expectedOutput);
13330
var
compilation = CompileAndVerify(
13393
var
compilation = CompileAndVerifyWithMscorlib40(code, expectedOutput: "4");
13418
var
comp = CompileAndVerify(code, expectedOutput: "5", options: TestOptions.DebugExe);
13640
var
v = CompileAndVerify(comp);
13945
var
compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"False
14968
var
compilation = CompileAndVerify(source, expectedOutput: @"42
15023
var
compilation = CompileAndVerify(source, expectedOutput: @"42");
15072
var
compilation = CompileAndVerify(source, expectedOutput: @"42");
15118
var
compilation = CompileAndVerify(source, references: new[] { testReference });
15160
var
compilation = CompileAndVerify(source, expectedOutput: "2");
15214
var
compilation = CompileAndVerify(source, expectedOutput: "True");
15260
var
compilation = CompileAndVerify(source, expectedOutput: "hi");
15307
var
compilation = CompileAndVerify(source, expectedOutput: "o");
15360
var
compilation = CompileAndVerify(source, expectedOutput: "hi");
15445
var
compilation = CompileAndVerify(source, expectedOutput: "");
15542
var
compilation = CompileAndVerifyWithMscorlib40(source, new[] { SystemCoreRef, CSharpRef }, expectedOutput: "2");
15611
var
compilation = CompileAndVerifyWithMscorlib40(source, new[] { SystemCoreRef, CSharpRef }, expectedOutput: "2");
15724
var
compilation = CompileAndVerifyWithMscorlib40(source, new[] { SystemCoreRef, CSharpRef }, expectedOutput: "long.ex caught");
16049
var
compilation = CompileAndVerify(source, expectedOutput: @"
16192
var
compilation = CompileAndVerify(source);
16731
var
verifier = CompileAndVerify(source, expectedOutput: "B");
16770
var
verifier = CompileAndVerify(source, expectedOutput: "AB");
16816
var
verifier = CompileAndVerify(source, expectedOutput: "3");
16860
var
verifier = CompileAndVerify(source, expectedOutput: "Object[]AString[]B");
16910
var
verifier = CompileAndVerify(source, expectedOutput: "2");
17176
var
compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithAllowUnsafe(true), verify: Verification.Skipped, expectedOutput: @"");
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 (41)
45
var
compilation = CompileAndVerify(source);
117
var
compilation = CompileAndVerify(source);
200
var
compilation = CompileAndVerify(source, expectedOutput: "1, 3, 4, 1, 2, 3, ");
260
var
compilation = CompileAndVerify(source, expectedOutput: "before, catch, before, after,");
318
var
compilation = CompileAndVerify(source, expectedOutput: "");
386
var
compilation = CompileAndVerify(source, expectedOutput: "");
461
var
compilation = CompileAndVerify(source, expectedOutput: "hellobyebye");
546
var
compilation = CompileAndVerify(source);
633
var
compilation = CompileAndVerify(source);
700
var
compilation = CompileAndVerify(source);
764
var
compilation = CompileAndVerify(source);
900
var
compilation = CompileAndVerify(source, expectedOutput: "");
979
var
compilation = CompileAndVerify(source, expectedOutput:
1071
var
compilation = CompileAndVerify(source, expectedOutput: @"
1160
var
compilation = CompileAndVerify(source, expectedOutput: @"
1267
var
compilation = CompileAndVerify(source, expectedOutput: @"
1386
var
compilation = CompileAndVerify(source, expectedOutput: @"
1523
var
compilation = CompileAndVerify(source, expectedOutput: @"
1656
var
compilation = CompileAndVerify(source, expectedOutput: @"
1790
var
compilation = CompileAndVerify(source, expectedOutput: @"
1916
var
compilation = CompileAndVerify(source);
2082
var
compilation = CompileAndVerify(source);
2289
var
comp = CompileAndVerify(src,
2495
var
comp = CompileAndVerify(src, expectedOutput: "TryCatchS1Finally");
2572
var
comp = CompileAndVerify(src);
2610
var
comp = CompileAndVerify(src);
2648
var
comp = CompileAndVerify(src);
2715
var
comp = CompileAndVerify(src, expectedOutput: "ExceptionFilter");
2797
var
comp = CompileAndVerify(src, expectedOutput: "FinallyOuterCatch");
2870
var
compilation = CompileAndVerify(source, expectedOutput: "M(0)=-4, M(1)=11, M(2)=6");
2955
var
compilation = CompileAndVerify(source);
3027
var
compilation = CompileAndVerify(source, expectedOutput:
3150
var
compilation = CompileAndVerify(source, expectedOutput: "");
3211
var
compilation = CompileAndVerify(source, expectedOutput: "0");
3265
var
compilation = CompileAndVerify(source, expectedOutput: "hello");
3320
var
compilation = CompileAndVerify(source, expectedOutput: "0");
3392
var
compilation = CompileAndVerify(source, expectedOutput: "0");
3475
var
compilation = CompileAndVerify(source, expectedOutput: "0");
3551
var
compilation = CompileAndVerify(source, expectedOutput: @"2
3628
var
compilation = CompileAndVerify(source, expectedOutput: @"2
3681
var
compilation = CompileAndVerify(source, expectedOutput: @"");
CodeGen\CodeGenTupleEqualityTests.cs (30)
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");
590
var
comp = CompileAndVerify(source, expectedOutput: "True");
650
var
comp = CompileAndVerify(source, expectedOutput: "1 == 1, 2 == 2, True");
682
var
comp = CompileAndVerify(source, expectedOutput: "2 == 2, 2 == 2, True");
697
var
comp = CompileAndVerify(source);
728
var
comp = CompileAndVerify(source);
3294
var
verifier = CompileAndVerify(comp, expectedOutput: "True False False True False");
3379
var
verifier = CompileAndVerify(comp, expectedOutput: "True");
3414
var
verifier = CompileAndVerify(comp, expectedOutput: "True");
3449
var
verifier = CompileAndVerify(comp, expectedOutput: "True");
3665
var
verifier = CompileAndVerify(comp, expectedOutput: "True");
3700
var
verifier = CompileAndVerify(comp, expectedOutput: "False True True False True");
3824
var
verifier = CompileAndVerify(comp, expectedOutput: "True False False True False");
3927
var
verifier = CompileAndVerify(comp, expectedOutput: "True False False Convert4 Convert4 True Convert5 False Convert6 Convert20 False ");
4021
var
verifier = CompileAndVerify(comp, expectedOutput: "FalseTrueFalse");
4099
var
verifier = CompileAndVerify(comp, expectedOutput: "False False Convert1 True Convert1 True Convert10 False Convert10 False");
4140
var
verifier = CompileAndVerify(comp, expectedOutput: "FalseTrueFalse");
4356
var
verifier = CompileAndVerify(comp, expectedOutput: "TrueFalse");
4404
var
verifier = CompileAndVerify(comp, expectedOutput: "True");
5608
var
comp = CompileAndVerify(source, expectedOutput: "True");
5627
var
comp = CompileAndVerify(source, expectedOutput: "False");
5655
var
comp = CompileAndVerify(source, expectedOutput: "True");
5683
var
comp = CompileAndVerify(source, expectedOutput: "True");
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);
3434
var
comp = CompileAndVerify(source,
3468
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);
3486
var
comp = CompileAndVerify(source,
3505
var
comp = CompileAndVerify(source,
3525
var
comp = CompileAndVerify(source,
3606
var
comp = CompileAndVerify(source,
3647
var
verifier = CompileAndVerify(source, expectedOutput: @"1 2 3 4 5 6 7 Alice 2 3 4 5 6 7 Bob 2 3", sourceSymbolValidator: validator);
3704
var
verifier = CompileAndVerify(source, sourceSymbolValidator: validator);
3940
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1),
4024
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1),
4045
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1),
4079
var
verifier7_1 = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1),
4125
var
verifier = CompileAndVerify(source, expectedOutput: @"1 4 7 Alice 7 Bob 3");
4155
var
verifier = CompileAndVerify(source, expectedOutput: @"Alice 1", sourceSymbolValidator: validator);
4177
var
comp = CompileAndVerify(source,
4224
var
comp = CompileAndVerify(source,
4273
var
v = CompileAndVerify(comp, expectedOutput: @"
4421
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) });
4738
var
comp = CompileAndVerify(source, expectedOutput: @"5 3");
4767
var
comp = CompileAndVerify(source, expectedOutput: @"1 7 8");
4796
var
comp = CompileAndVerify(source, expectedOutput: @"5 3");
4870
var
comp = CompileAndVerify(source, expectedOutput: @"5 3");
4905
var
comp = CompileAndVerify(source, expectedOutput: @"CB CA CC");
5235
var
comp = CompileAndVerify(source,
5291
var
comp = CompileAndVerify(source,
5317
var
comp = CompileAndVerify(source,
5344
var
comp = CompileAndVerify(source,
5369
var
comp = CompileAndVerify(source,
5392
var
comp = CompileAndVerify(source,
5585
var
comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: expectedOutput);
5645
var
comp = CompileAndVerify(source, expectedOutput: "Item1: 2 Rest: (2, 2)", references: new[] { CSharpRef });
5667
var
comp = CompileAndVerify(source, expectedOutput: "a:1, h:8, i:9, Item9:9, Rest:(8, 9)", references: new[] { CSharpRef });
5691
var
comp = CompileAndVerify(source, expectedOutput: "done", references: new[] { CSharpRef });
5726
var
comp = CompileAndVerify(source, expectedOutput: expectedOutput, references: new[] { CSharpRef });
5777
var
comp = CompileAndVerify(source, expectedOutput: "12345678901234567890123456789012345");
6990
var
comp = CompileAndVerify(source, expectedOutput: @"
7683
var
comp = CompileAndVerify(source,
7762
var
comp = CompileAndVerify(source,
7801
var
comp = CompileAndVerify(source,
7834
var
comp = CompileAndVerify(source,
7873
var
comp = CompileAndVerify(source, expectedOutput: @"
7907
var
comp = CompileAndVerify(source,
7939
var
comp = CompileAndVerify(source, expectedOutput:
7981
var
comp = CompileAndVerify(source, expectedOutput: @"
9403
var
comp = CompileAndVerify(source,
9442
var
comp = CompileAndVerify(source,
9479
var
comp = CompileAndVerify(source,
9516
var
comp = CompileAndVerify(source,
9550
var
comp = CompileAndVerify(source,
9588
var
comp = CompileAndVerify(source,
9624
var
comp = CompileAndVerify(source, expectedOutput: @"
9659
var
comp = CompileAndVerify(source,
9703
var
comp = CompileAndVerify(source, expectedOutput: @"
9754
var
comp = CompileAndVerify(source, expectedOutput: @"
9787
var
comp = CompileAndVerify(source, expectedOutput: @"
10169
var
comp = CompileAndVerify(source,
10206
var
comp = CompileAndVerify(source,
10305
var
comp = CompileAndVerify(source,
10338
var
comp = CompileAndVerify(source,
10798
var
comp = CompileAndVerify(source,
10831
var
comp = CompileAndVerify(source,
10861
var
comp = CompileAndVerify(source,
10891
var
comp = CompileAndVerify(source,
11015
var
comp = CompileAndVerify(source,
11349
var
comp = CompileAndVerify(source,
11729
var
comp = CompileAndVerify(source,
11868
var
comp = CompileAndVerify(source,
12145
var
comp = CompileAndVerify(source,
12680
var
comp = CompileAndVerify(source, expectedOutput: @"1
13966
var
comp = CompileAndVerify(source,
14212
var
comp = CompileAndVerify(source,
15098
var
comp = CompileAndVerify(source,
15162
var
comp = CompileAndVerify(source,
15716
var
comp = CompileAndVerify(source,
15788
var
comp = CompileAndVerify(source,
16003
var
comp = CompileAndVerify(source, expectedOutput:
16648
var
comp = CompileAndVerify(source,
16667
var
comp = CompileAndVerify(source,
16693
var
comp = CompileAndVerify(source, expectedOutput: "(1, Alice, 2, Brenda, 3, Chloe, 4, Dylan)");
16715
var
comp = CompileAndVerify(source, expectedOutput: "1 1 (8) 8 8");
17486
var
comp = CompileAndVerifyWithMscorlib40(source, expectedOutput: "(1, 2)", references: new[] { tupleComp.ToMetadataReference() });
17531
var
comp = CompileAndVerify(source, expectedOutput: @"
17580
var
comp = CompileAndVerify(source, expectedOutput: @"
17620
var
comp = CompileAndVerify(source,
17709
var
comp = CompileAndVerify(source,
17798
var
comp = CompileAndVerify(source,
17838
var
comp = CompileAndVerify(source,
17898
var
comp = CompileAndVerify(source,
18026
var
comp = CompileAndVerify(source,
18084
var
comp = CompileAndVerify(source,
18293
var
comp = CompileAndVerify(source, expectedOutput: @"
18325
var
comp = CompileAndVerify(source, expectedOutput: @"
18349
var
comp = CompileAndVerify(source, expectedOutput: @"
18419
var
comp = CompileAndVerify(source, expectedOutput: @"
18489
var
comp = CompileAndVerify(source, parseOptions: TestOptions.Regular, expectedOutput: @"
18604
var
comp = CompileAndVerify(source, expectedOutput: @"
18712
var
comp = CompileAndVerify(source,
18745
var
comp = CompileAndVerify(source,
18783
var
comp = CompileAndVerify(source,
19345
var
verifier = CompileAndVerify(comp, expectedOutput: "(42, 43)");
21453
var
comp = CompileAndVerify(source,
21480
var
comp = CompileAndVerify(source,
21504
var
comp = CompileAndVerify(source,
21546
var
comp = CompileAndVerify(source,
21588
var
comp = CompileAndVerify(source,
21630
var
comp = CompileAndVerify(source,
21672
var
comp = CompileAndVerify(source,
21707
var
comp = CompileAndVerify(source,
21752
var
comp = CompileAndVerify(source,
21790
var
comp = CompileAndVerify(source,
22173
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Mscorlib46, expectedOutput: @"5", options: TestOptions.ReleaseExe);
23329
var
comp = CompileAndVerify(source);
23367
var
comp = CompileAndVerify(source,
23478
var
comp = CompileAndVerify(source, expectedOutput: "42qq", references: new[] { libComp.ToMetadataReference() }, options: TestOptions.DebugExe, verify: Verification.Fails);
23534
var
comp = CompileAndVerifyWithMscorlib40(source, expectedOutput: "42qq", references: s_valueTupleRefs.Concat(new[] { libCompRef }).ToArray(), options: TestOptions.DebugExe, verify: Verification.Fails);
23576
var
comp = CompileAndVerify(source,
23616
var
comp = CompileAndVerify(source,
23660
var
comp = CompileAndVerify(source,
23695
var
comp = CompileAndVerify(source,
23726
var
comp = CompileAndVerify(source,
23772
var
comp = CompileAndVerify(source,
23933
var
comp = CompileAndVerify(source, expectedOutput: "42qq", references: new[] { libCompRef }, options: TestOptions.DebugExe, verify: Verification.Passes);
23995
var
comp = CompileAndVerify(source,
25162
var
comp = CompileAndVerify(source,
25196
var
comp = CompileAndVerify(source,
25587
var
verifier = CompileAndVerify(comp, expectedOutput: @"(-1, 255)(-1, 255)overflow");
25654
var
comp = CompileAndVerify(source,
25979
var
comp = CompileAndVerify(source, expectedOutput: "24");
25998
var
comp = CompileAndVerify(source, expectedOutput: "4");
26022
var
comp = CompileAndVerify(source,
26047
var
comp = CompileAndVerify(source,
26073
var
comp = CompileAndVerify(source,
26099
var
comp = CompileAndVerify(source,
26122
var
comp = CompileAndVerify(source,
26143
var
comp = CompileAndVerify(source,
26190
var
comp = CompileAndVerify(source,
26212
var
comp = CompileAndVerify(source, expectedOutput: "3");
27375
var
verifier = CompileAndVerify(comp1, verify: Verification.Skipped); // unsafe code
27693
var
verifier = CompileAndVerify(comp, expectedOutput: @"Done.");
27989
var
verifier = CompileAndVerify(comp, symbolValidator: verifyModule, sourceSymbolValidator: verifyModule);
28065
var
verifier = CompileAndVerify(comp, symbolValidator: verifyModule, sourceSymbolValidator: verifyModule);
28428
var
verifier = CompileAndVerify(comp, symbolValidator: verifyModule, sourceSymbolValidator: verifyModule);
28523
var
verifier = CompileAndVerify(comp, symbolValidator: verifyModule, sourceSymbolValidator: verifyModule);
28996
var
comp = CompileAndVerify($@"
29134
var
verifier = CompileAndVerify(source + trivial2uple, expectedOutput:
29217
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseDll);
29267
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: """
29390
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: """
29495
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: """
29611
var
verifier = CompileAndVerify(source, expectedOutput: "(2, 3, 1)");
29704
var
verifier = CompileAndVerify(source, expectedOutput: "(2, 3, 4, 5, 6, 7, 8, 9, 1)");
29784
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 (20)
70
var
verifier = CompileAndVerify(text, expectedOutput: @"Before
107
var
verifier = CompileAndVerify(text, expectedOutput: @"Before
143
var
verifier = CompileAndVerify(text, expectedOutput: @"Before
197
var
verifier = CompileAndVerify(text, expectedOutput: @"Before
273
var
verifier = CompileAndVerify(text, expectedOutput: expected);
329
var
verifier = CompileAndVerify(text, expectedOutput: @"Creating A
381
var
verifier = CompileAndVerify(text, expectedOutput: @"Before
418
var
verifier = CompileAndVerify(text, expectedOutput: @"Before
454
var
verifier = CompileAndVerify(text, expectedOutput: @"Before
508
var
verifier = CompileAndVerify(text, expectedOutput: @"Before
584
var
verifier = CompileAndVerify(text, expectedOutput: expected);
640
var
verifier = CompileAndVerify(text, expectedOutput: @"Creating A
692
var
verifier = CompileAndVerify(text, expectedOutput: @"Before
780
var
verifier = CompileAndVerify(text, expectedOutput: @"Before
866
var
verifier = CompileAndVerify(text, expectedOutput: @"Before
938
var
verifier = CompileAndVerify(text, expectedOutput: @"Before
2040
var
comp = CompileAndVerify(source, expectedOutput: @"InUsing");
2096
var
comp = CompileAndVerify(source, expectedOutput: "");
2164
var
comp = CompileAndVerify(source, expectedOutput: expected);
2829
var
comp = CompileAndVerify(source, expectedOutput: @"");
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 (27)
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
3826
var
verifier = CompileAndVerifyWithIndexAndRange(src, expectedOutput: "1").VerifyDiagnostics();
3878
var
verifier = CompileAndVerifyWithIndexAndRange(src, expectedOutput: "1").VerifyDiagnostics();
CodeGen\IndexerTests.cs (16)
31
var
compVerifier = CompileAndVerify(text,
50
var
compVerifier = CompileAndVerify(text,
68
var
compVerifier = CompileAndVerify(text,
86
var
compVerifier = CompileAndVerify(text,
105
var
compVerifier = CompileAndVerify(text,
124
var
compVerifier = CompileAndVerify(text,
170
var
compVerifier = CompileAndVerify(text, symbolValidator: validator, expectedSignatures: new[]
192
var
compVerifier = CompileAndVerify(text,
216
var
compVerifier = CompileAndVerify(text,
240
var
compVerifier = CompileAndVerify(text,
422
var
compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE"));
570
var
compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE"));
674
var
compVerifier = CompileAndVerify(text, expectedOutput: @"
718
var
compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE"));
943
var
compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE"));
1109
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)
37
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
78
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
133
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
190
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
243
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
288
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
327
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
370
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
433
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
516
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
584
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
667
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
755
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
812
var
compVerifier = CompileAndVerify(source, expectedOutput: "");
850
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
893
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
950
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
1042
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
1152
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
1255
var
compVerifier = CompileAndVerify(source, targetFramework: TargetFramework.StandardAndCSharp, expectedOutput: expectedOutput);
1348
var
compVerifier = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: expectedOutput);
1486
var
compVerifier = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: expectedOutput);
1699
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
1814
var
compVerifier = CompileAndVerify(source, targetFramework: TargetFramework.StandardAndCSharp, expectedOutput: expectedOutput);
1870
var
compVerifier = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: expectedOutput);
1926
var
compVerifier = CompileAndVerify(source, targetFramework: TargetFramework.StandardAndCSharp, expectedOutput: expectedOutput);
2223
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
2281
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
2363
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
2467
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
2553
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
2650
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
2735
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
2828
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
2941
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
3036
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
3129
var
compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput);
3251
var
compVerifier = CompileAndVerify(source, expectedOutput: 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);
4340
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
4519
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
4556
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
4590
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
4622
var
verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput:
4679
var
verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput:
4725
var
verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput:
4785
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
4818
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
4892
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
4928
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
4965
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput, verify: Verification.Skipped);
5467
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
5519
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
5619
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
5727
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
5891
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
6037
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
6206
var
verifier = CompileAndVerify(source, expectedOutput: "012323", options: TestOptions.DebugExe);
6291
var
verifier = CompileAndVerify(source, expectedOutput: " 0 1 2 3 2 3", options: TestOptions.DebugExe);
6380
var
verifier = CompileAndVerify(source, expectedOutput: "0123452345", options: TestOptions.DebugExe);
6476
var
verifier = CompileAndVerify(source, expectedOutput: "0123233", options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview);
6561
var
verifier = CompileAndVerify(source, options: TestOptions.DebugDll);
6661
var
verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "012");
6756
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: """
6863
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 (76)
32
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes);
59
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
89
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes);
114
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
161
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
208
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
242
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "123", verify: Verification.Fails);
279
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "456", verify: Verification.Fails);
307
var
compVerifierOptimized = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "2", verify: Verification.Fails);
326
var
compVerifierUnoptimized = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: "2", verify: Verification.Fails);
370
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "1", verify: Verification.Fails);
422
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"Before: 2 7
469
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"ab", verify: Verification.Fails);
517
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"12", verify: Verification.Fails);
564
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"3", verify: Verification.Fails);
622
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"34", verify: Verification.Fails);
697
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"123", verify: Verification.Fails);
773
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"123", verify: Verification.Fails);
840
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"34", verify: Verification.Fails);
954
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails);
1074
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails);
1118
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"
1147
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "210", verify: Verification.Fails);
1167
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "1", verify: Verification.Fails).VerifyIL("C.Main", @"
1208
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"1", verify: Verification.Fails);
1266
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"123", verify: Verification.Fails);
1324
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"12", verify: Verification.Fails);
1394
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"12", verify: Verification.Fails);
1456
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
1529
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"12", verify: Verification.Fails);
1595
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"a", verify: Verification.Fails);
1640
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: @"a", verify: Verification.Fails);
1684
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: @"h", verify: Verification.Fails);
1741
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: @"hTrue", verify: Verification.Fails);
1826
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"hTrue", verify: Verification.Fails);
1897
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"01", verify: Verification.Fails);
1965
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"01", verify: Verification.Fails);
2033
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"01", verify: Verification.Fails);
2104
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"970104", verify: Verification.Fails);
4027
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Fails);
4087
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Fails);
4175
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"0", verify: Verification.Fails);
4226
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Fails);
4288
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Fails);
4519
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"20", verify: Verification.Fails);
4593
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"5456");
4653
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"5456");
4745
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"2123
4834
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"5456");
4894
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"23", verify: Verification.Fails);
4972
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"3", verify: Verification.Fails);
5400
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"");
7207
var
comp = CompileAndVerify(text, options: TestOptions.UnsafeDebugDll, verify: Verification.Fails);
9542
var
verifier = CompileAndVerify(@"
9586
var
verifier = CompileAndVerify(@"
9871
var
verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails);
10017
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
10351
var
c = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.FailsPEVerify with
10373
var
c = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.FailsPEVerify with
10474
var
comp = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyDiagnostics();
10527
var
comp = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "ABC", verify: Verification.Fails).VerifyDiagnostics();
10638
var
verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "hello", verify: Verification.Fails);
10707
var
verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"
10787
var
verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"
10839
var
verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll.WithConcurrentBuild(false), verify: Verification.Passes);
10863
var
verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll.WithConcurrentBuild(false), verify: Verification.FailsPEVerify);
10903
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F6543210", verify: Verification.Fails);
10949
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F6543210", verify: Verification.Fails);
10998
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F6543210", verify: Verification.Fails);
11040
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F654320F", verify: Verification.Fails);
11083
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "0", verify: Verification.Passes);
11137
var
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "System.Byte[]", verify: Verification.Fails);
11210
var
v = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: "System.Byte[]", verify: Verification.Fails);
11334
var
result = CompileAndVerify(compilation, expectedOutput: "5");
11381
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, expectedOutput: "0", verify: Verification.FailsPEVerify);
11413
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);
3171
var
verifier = CompileAndVerify(source, expectedOutput, options: TestOptions.ReleaseExe);
3297
var
verifier = CompileAndVerify(sources, expectedOutput, options: TestOptions.ReleaseExe);
3423
var
verifier = CompileAndVerify(sources, expectedOutput, options: TestOptions.ReleaseExe);
3497
var
verifier = CompileAndVerify(source, expectedOutput, options: TestOptions.ReleaseExe);
3546
var
verifier = CompileAndVerify(source, expectedOutput, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9);
3555
private static void AssertNotInstrumented(
CompilationVerifier
verifier, string qualifiedMethodName)
3558
private static void AssertInstrumented(
CompilationVerifier
verifier, string qualifiedMethodName, bool expected = true)
3569
private
CompilationVerifier
CompileAndVerify(string source, string expectedOutput = null, CSharpCompilationOptions options = null, CSharpParseOptions parseOptions = null, Verification verify = default)
3580
private
CompilationVerifier
CompileAndVerify((string Path, string Content)[] sources, string expectedOutput = null, CSharpCompilationOptions options = null)
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\EditAndContinueClosureTests.cs (49)
102
var
v0 = CompileAndVerify(compilation0);
163
var
v0 = CompileAndVerify(compilation0);
235
var
v0 = CompileAndVerify(compilation0);
293
var
v0 = CompileAndVerify(compilation0);
345
var
v0 = CompileAndVerify(compilation0);
405
var
v0 = CompileAndVerify(compilation0);
459
var
v0 = CompileAndVerify(compilation0);
514
var
v0 = CompileAndVerify(compilation0);
570
var
v0 = CompileAndVerify(compilation0);
625
var
v0 = CompileAndVerify(compilation0);
693
var
v0 = CompileAndVerify(compilation0);
771
var
v0 = CompileAndVerify(compilation0);
845
var
v0 = CompileAndVerify(compilation0);
912
var
v0 = CompileAndVerify(compilation0);
971
var
v0 = CompileAndVerify(compilation0);
1059
var
v0 = CompileAndVerify(compilation0);
1148
var
v0 = CompileAndVerify(compilation0);
1232
var
v0 = CompileAndVerify(compilation0);
1323
var
v0 = CompileAndVerify(compilation0);
1405
var
v0 = CompileAndVerify(compilation0);
1482
var
v0 = CompileAndVerify(compilation0);
1581
var
v0 = CompileAndVerify(compilation0);
1672
var
v0 = CompileAndVerify(compilation0);
1780
var
v0 = CompileAndVerify(compilation0);
1978
var
v0 = CompileAndVerify(compilation0);
2189
var
v0 = CompileAndVerify(compilation0);
2327
var
v0 = CompileAndVerify(compilation0);
2444
var
v0 = CompileAndVerify(compilation0);
2582
var
v0 = CompileAndVerify(compilation0);
2650
var
v0 = CompileAndVerify(compilation0);
2720
var
v0 = CompileAndVerify(compilation0);
2826
var
v0 = CompileAndVerify(compilation0);
2946
var
v0 = CompileAndVerify(compilation0);
3042
var
v0 = CompileAndVerify(compilation0);
3103
var
v0 = CompileAndVerify(compilation0);
3231
var
v0 = CompileAndVerify(compilation0);
3347
var
v0 = CompileAndVerify(compilation0);
3472
var
v0 = CompileAndVerify(compilation0);
3596
var
v0 = CompileAndVerify(compilation0);
3717
var
v0 = CompileAndVerify(compilation0);
3797
var
v0 = CompileAndVerify(compilation0);
3990
var
v0 = CompileAndVerify(compilation0);
4075
var
v0 = CompileAndVerify(compilation0);
4157
var
v0 = CompileAndVerify(compilation0);
4230
var
v0 = CompileAndVerify(compilation0);
4312
var
v0 = CompileAndVerify(compilation0);
4409
var
v0 = CompileAndVerify(compilation0);
4496
var
v0 = CompileAndVerify(compilation0);
4555
var
v0 = CompileAndVerify(compilation0);
Emit\EditAndContinue\EditAndContinueDelegateCacheTests.cs (5)
53
var
v0 = CompileAndVerify(compilation0);
117
var
v0 = CompileAndVerify(compilation0);
181
var
v0 = CompileAndVerify(compilation0);
245
var
v0 = CompileAndVerify(compilation0);
309
var
v0 = CompileAndVerify(compilation0);
Emit\EditAndContinue\EditAndContinuePdbTests.cs (1)
129
var
v0 = CompileAndVerify(compilation0, emitOptions: EmitOptions.Default.WithDebugInformationFormat(format));
Emit\EditAndContinue\EditAndContinueStateMachineTests.cs (52)
230
var
v0 = CompileAndVerify(compilation0, emitOptions: EmitOptions.Default.WithDebugInformationFormat(format));
347
var
v0 = CompileAndVerify(compilation0);
449
var
v0 = CompileAndVerify(compilation0);
522
var
v0 = CompileAndVerify(compilation0);
573
var
v0 = CompileAndVerify(compilation0);
644
var
v0 = CompileAndVerify(compilation0);
718
var
v0 = CompileAndVerify(compilation0);
855
var
v0 = CompileAndVerify(compilation0);
1138
var
v0 = CompileAndVerify(compilation0);
1563
var
v0 = CompileAndVerify(compilation0);
2003
var
v0 = CompileAndVerify(compilation0);
2592
var
v0 = CompileAndVerify(compilation0);
2764
var
v0 = CompileAndVerify(compilation0);
3312
var
v0 = CompileAndVerify(compilation0);
3707
var
v0 = CompileAndVerify(compilation0);
3812
var
v0 = CompileAndVerify(compilation0);
3921
var
v0 = CompileAndVerify(compilation0);
4027
var
v0 = CompileAndVerify(compilation0);
4129
var
v0 = CompileAndVerify(compilation0, symbolValidator: module =>
4292
var
v0 = CompileAndVerify(compilation0);
4526
var
v0 = CompileAndVerify(compilation0);
4689
var
v0 = CompileAndVerify(compilation0);
5146
var
v0 = CompileAndVerify(compilation0);
5482
var
v0 = CompileAndVerify(compilation0);
5822
var
v0 = CompileAndVerify(compilation0);
6562
var
v0 = CompileAndVerify(compilation0, symbolValidator: module =>
6884
var
v0 = CompileAndVerify(compilation0);
7094
var
v0 = CompileAndVerify(compilation0);
7313
var
v0 = CompileAndVerify(compilation0, emitOptions: EmitOptions.Default.WithDebugInformationFormat(format), symbolValidator: module =>
7857
var
v0 = CompileAndVerify(compilation0);
7934
var
v0 = CompileAndVerify(compilation0);
8023
var
v0 = CompileAndVerify(compilation0, symbolValidator: module =>
8106
var
v0 = CompileAndVerify(compilation0);
8227
var
v0 = CompileAndVerify(compilation0);
8376
var
v0 = CompileAndVerify(compilation0);
8536
var
v0 = CompileAndVerify(compilation0);
8648
var
v0 = CompileAndVerify(compilation0);
8824
var
v0 = CompileAndVerify(compilation0);
9058
var
v0 = CompileAndVerify(compilation0);
9706
var
v0 = CompileAndVerify(compilation0);
9773
var
v0 = CompileAndVerify(compilation0);
9837
var
v0 = CompileAndVerify(compilation0);
9906
var
v0 = CompileAndVerify(compilation0);
9960
var
v0 = CompileAndVerify(compilation0, verify: Verification.FailsPEVerify);
10019
var
v0 = CompileAndVerify(compilation0, verify: Verification.FailsPEVerify);
10083
var
v0 = CompileAndVerify(compilation0, verify: Verification.FailsPEVerify);
10133
var
v0 = CompileAndVerify(compilation0, verify: Verification.Passes);
10184
var
v0 = CompileAndVerify(compilation0, verify: Verification.FailsPEVerify);
10235
var
v0 = CompileAndVerify(compilation0, verify: Verification.Passes);
10296
var
v0 = CompileAndVerify(compilation0, verify: Verification.Passes);
10351
var
v0 = CompileAndVerify(compilation0, verify: Verification.Passes);
10418
var
v0 = CompileAndVerify(compilation0, verify: Verification.Passes);
Emit\EditAndContinue\EditAndContinueTest.cs (1)
52
var
verifier = new CompilationVerifier(compilation);
Emit\EditAndContinue\EditAndContinueTest.GenerationInfo.cs (2)
25
public readonly
CompilationVerifier
? CompilationVerifier;
32
public GenerationInfo(CSharpCompilation compilation, MetadataReader reader, CompilationDifference? diff,
CompilationVerifier
? compilationVerifier, EmitBaseline baseline, Action<GenerationVerifier> verifier)
Emit\EditAndContinue\EditAndContinueTestBase.cs (1)
301
internal static void SaveImages(string outputDirectory,
CompilationVerifier
baseline, params CompilationDifference[] diffs)
Emit\EditAndContinue\EditAndContinueTests.cs (53)
231
var
v0 = CompileAndVerify(compilation0);
284
var
v0 = CompileAndVerify(compilation0);
352
var
v0 = CompileAndVerify(compilation0);
1202
var
v0 = CompileAndVerify(compilation0);
1295
var
v0 = CompileAndVerify(compilation0);
1391
var
v0 = CompileAndVerify(compilation0, verify: Verification.Skipped);
1477
var
v0 = CompileAndVerify(compilation0, verify: Verification.Skipped);
1536
var
v0 = CompileAndVerify(compilation0, verify: Verification.Skipped);
1621
var
v0 = CompileAndVerify(compilation0, verify: Verification.Skipped);
1717
var
v0 = CompileAndVerify(compilation0, verify: Verification.Skipped);
4734
var
v0 = CompileAndVerify(compilation0);
5079
var
v0 = CompileAndVerify(compilation0);
7121
var
v0 = CompileAndVerify(compilation0, verify: Verification.Skipped);
8699
var
v0 = CompileAndVerify(compilation0);
8801
var
v0 = CompileAndVerify(compilation0);
9124
var
v0 = CompileAndVerify(compilation0);
9497
var
v0 = CompileAndVerify(compilation0);
9594
var
v0 = CompileAndVerify(compilation0);
9717
var
v0 = CompileAndVerify(compilation0);
9885
var
v0 = CompileAndVerify(compilation0);
9951
var
v0 = CompileAndVerify(compilation0);
10628
var
v0 = CompileAndVerify(compilation0);
10810
var
v0 = CompileAndVerify(compilation0);
10932
var
v0 = CompileAndVerify(compilation0);
10985
var
v0 = CompileAndVerify(compilation0);
11842
var
v0 = CompileAndVerify(compilation0);
11928
var
v0 = CompileAndVerify(compilation0);
11975
var
v0 = CompileAndVerify(compilation0);
12021
var
v0 = CompileAndVerify(compilation0);
12170
var
v0 = CompileAndVerify(compilation0);
12304
var
v0 = CompileAndVerify(compilation0);
12413
var
v0 = CompileAndVerify(compilation0);
12531
var
v0 = CompileAndVerify(compilation0);
12722
var
v0 = CompileAndVerify(compilation0);
12851
var
v0 = CompileAndVerify(compilation0);
12999
var
v0 = CompileAndVerify(compilation0);
13195
var
v0 = CompileAndVerify(compilation0);
13304
var
v0 = CompileAndVerify(compilation0);
13414
var
v0 = CompileAndVerify(compilation0);
13578
var
v0 = CompileAndVerify(compilation0);
13723
var
v0 = CompileAndVerify(compilation0);
13828
var
v0 = CompileAndVerify(compilation0);
13991
var
v0 = CompileAndVerify(compilation0);
14195
var
v0 = CompileAndVerify(compilation0);
14443
var
v0 = CompileAndVerify(compilation0);
14627
var
v0 = CompileAndVerify(compilation0);
14700
var
v0 = CompileAndVerify(compilation0, verify: Verification.Skipped);
14807
var
v0 = CompileAndVerify(compilation0, verify: Verification.Skipped);
14923
var
v0 = CompileAndVerify(compilation0, verify: Verification.Skipped);
16010
var
v0 = CompileAndVerify(compilation0, verify: Verification.Skipped);
16086
var
v0 = CompileAndVerify(compilation0, verify: Verification.Skipped);
16180
var
v0 = CompileAndVerify(compilation0, verify: Verification.Skipped);
16270
var
v0 = CompileAndVerify(compilation0, verify: Verification.Skipped);
Emit\EditAndContinue\LocalSlotMappingTests.cs (21)
50
var
v0 = CompileAndVerify(compilation0);
125
var
v0 = CompileAndVerify(compilation0);
533
var
v0 = CompileAndVerify(compilation0);
645
var
v0 = CompileAndVerify(compilation0);
755
var
v0 = CompileAndVerify(compilation0);
848
var
v0 = CompileAndVerify(compilation0);
1543
var
v0 = CompileAndVerify(compilation0);
2027
var
v0 = CompileAndVerify(compilation0);
2220
var
v0 = CompileAndVerify(compilation0);
2761
var
v0 = CompileAndVerify(compilation0);
2870
var
v0 = CompileAndVerify(compilation0);
2997
var
v0 = CompileAndVerify(compilation0);
3211
var
v0 = CompileAndVerify(compilation0);
3318
var
v0 = CompileAndVerify(compilation0);
3431
var
v0 = CompileAndVerify(compilation0);
3539
var
v0 = CompileAndVerify(compilation0);
3631
var
v0 = CompileAndVerify(compilation0);
3773
var
v0 = CompileAndVerify(compilation0);
3850
var
v0 = CompileAndVerify(compilation0);
3959
var
v0 = CompileAndVerify(compilation0);
4938
var
v0 = CompileAndVerify(compilation0);
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");
Emit\NoPiaEmbedTypes.cs (5)
1667
var
verifier = CompileAndVerify(compilation1, symbolValidator: metadataValidator);
1915
var
verifier = CompileAndVerify(compilation, symbolValidator: metadataValidator);
2003
var
verifier = CompileAndVerify(compilation, symbolValidator: metadataValidator);
2242
var
verifier = CompileAndVerify(compilation1, symbolValidator: metadataValidator);
2328
var
verifier = CompileAndVerify(compilation1);
PDB\PDBAsyncTests.cs (15)
71
var
v = CompileAndVerify(compilation);
621
var
v = CompileAndVerify(CreateCompilationWithMscorlib45(text, options: TestOptions.DebugDll));
759
var
v = CompileAndVerify(CreateCompilationWithMscorlib45(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
847
var
v = CompileAndVerify(CreateCompilationWithMscorlib45(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
952
var
v = CompileAndVerify(CreateCompilationWithMscorlib45(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
1039
var
v = CompileAndVerify(CreateCompilationWithMscorlib45(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
1155
var
v = CompileAndVerify(CreateCompilationWithMscorlib45(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
1259
var
v = CompileAndVerify(CreateCompilationWithMscorlib45(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
1366
var
v = CompileAndVerify(CreateCompilationWithMscorlib45(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
1464
var
v = CompileAndVerify(CreateCompilationWithMscorlib45(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
1550
var
v = CompileAndVerify(CreateCompilationWithMscorlib45(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
1658
var
v = CompileAndVerify(CreateCompilationWithMscorlib45(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
1694
var
v = CompileAndVerify(CreateCompilationWithMscorlib45(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
1948
var
v = CompileAndVerify(CreateCompilationWithMscorlib45(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)
1694
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);
2122
var
c = CompileAndVerify(source, options: TestOptions.DebugDll);
PDB\PDBTests.cs (52)
1059
var
c = CompileAndVerify(source);
1479
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
1534
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
1589
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
1611
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
1644
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
2209
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
2305
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
2443
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
2501
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
2583
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
2633
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
2778
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
2890
var
v = CompileAndVerify(source, options: TestOptions.DebugDll.WithModuleName("MODULE"));
3018
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
3180
var
v = CompileAndVerify(c);
3633
var
verifier = CompileAndVerify(c, expectedOutput: "1M2");
3755
var
verifier = CompileAndVerify(c, expectedOutput: "1234");
3921
var
verifier = CompileAndVerify(c, expectedOutput: "66");
3991
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
4081
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
4325
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
5538
var
v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll));
5687
var
v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll));
5776
var
v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll));
5865
var
v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll));
6017
var
v = CompileAndVerify(c);
6134
var
v = CompileAndVerify(c);
6260
var
v = CompileAndVerify(c);
6353
var
v = CompileAndVerify(c);
6440
var
v = CompileAndVerify(c);
6501
var
v = CompileAndVerify(c);
6565
var
v = CompileAndVerify(c);
6649
var
v = CompileAndVerify(c);
6764
var
v = CompileAndVerify(c);
6866
var
v = CompileAndVerify(c);
8614
var
verifier = CompileAndVerify(c, verify: Verification.Skipped);
9011
var
verifier = CompileAndVerify(c, verify: Verification.Skipped);
9378
var
verifier = CompileAndVerify(c, verify: Verification.Skipped);
9607
var
verifier = CompileAndVerify(c);
10001
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll);
10210
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll);
10449
var
verifier = CompileAndVerify(c);
10620
var
verifier = CompileAndVerify(c);
10824
var
verifier = CompileAndVerify(c);
11088
var
cv = CompileAndVerify(c);
11239
var
v = CompileAndVerify(c);
11825
var
v = CompileAndVerify(c);
12524
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
12608
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
12689
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
12781
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
PDB\PDBTupleTests.cs (1)
311
var
v = CompileAndVerify(c);
PDB\PDBUsingTests.cs (4)
2016
var
v = CompileAndVerify(source, options: TestOptions.DebugDll);
2432
var
v = CompileAndVerify(comp, validator: (peAssembly) =>
2613
var
v = CompileAndVerify(compilation);
2686
var
v = CompileAndVerify(compilation);
PrivateProtected.cs (1)
597
var
verifier = CompileAndVerify(
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (635)
Attributes\AttributeTests.cs (20)
1534
var
verifier = CompileAndVerify(compilation);
1798
var
comp = CompileAndVerify(source, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
1832
var
comp = CompileAndVerify(source, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
1893
var
comp = CompileAndVerify(source, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
1956
var
comp = CompileAndVerify(source, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
2175
var
comp = CompileAndVerify(source, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
2241
var
comp = CompileAndVerify(source, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
2312
var
comp = CompileAndVerify(source, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
2444
var
comp = CompileAndVerify(source, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
3512
var
compVerifier = CompileAndVerify(
6373
var
compilation = CompileAndVerify(source, expectedOutput: "");
10341
var
verifier = CompileAndVerify(source, expectedOutput: "Attr`1[System.Int32]");
10393
var
verifier = CompileAndVerify(source, expectedOutput: "Attr`1[System.Int32] Attr`1[System.Object] Attr`1[System.Int32]");
10457
var
verifier = CompileAndVerify(
10710
var
verifier = CompileAndVerify(source, symbolValidator: validateMetadata, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
10847
var
verifier = CompileAndVerify(source, sourceSymbolValidator: verify, symbolValidator: verify, expectedOutput: "Prop = a");
10919
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), sourceSymbolValidator: verify, symbolValidator: verifyMetadata, expectedOutput: "a");
11001
var
verifier = CompileAndVerify(source, symbolValidator: verify, sourceSymbolValidator: verifySource);
11057
var
verifier = CompileAndVerify(source, expectedOutput: "Attr`1[System.String]");
11072
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);
605
var
verifier = CompileAndVerifyFieldMarshal(source, blobs);
726
var
verifier = CompileAndVerifyFieldMarshal(source, blobs);
760
var
verifier = CompileAndVerifyFieldMarshal(source, blobs);
873
var
verifier = CompileAndVerifyFieldMarshal(source, blobs);
1004
var
verifier = CompileAndVerifyFieldMarshal(source, blobs);
1103
var
verifier = CompileAndVerifyFieldMarshal(source, blobs, isField: false);
1148
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 (74)
29
public static bool? HasLocalsInit(this
CompilationVerifier
verifier, string qualifiedMethodName, bool realIL = false)
534
var
comp = CompileAndVerify(source, symbolValidator: verifier);
677
var
comp = CompileAndVerify(source, expectedOutput: "0");
708
var
comp = CompileAndVerify(source, expectedOutput: "0");
1982
var
comp = CompileAndVerify(source, expectedSignatures: new[]
2008
var
comp = CompileAndVerify(source, expectedSignatures: new[]
4972
var
comp = CompileAndVerify(
5568
var
verifier = CompileAndVerify(source, sourceSymbolValidator: sourceValidator, symbolValidator: metadataValidator, verify: Verification.FailsPEVerify, targetFramework: TargetFramework.Mscorlib40);
5668
var
verifier = CompileAndVerify(
10314
private
CompilationVerifier
CompileAndVerifyWithSkipLocalsInit(string src, CSharpCompilationOptions options, CSharpParseOptions parseOptions = null, Verification? verify = null)
10328
private
CompilationVerifier
CompileAndVerifyWithSkipLocalsInit(string src, CSharpParseOptions parseOptions = null, Verification? verify = null)
10404
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
10439
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
10472
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularWithExtendedPartialMethods, verify: Verification.Fails);
10505
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularWithExtendedPartialMethods, verify: Verification.Fails);
10534
var
verifier = CompileAndVerifyWithSkipLocalsInit(src);
10692
var
comp = CompileAndVerify(source);
10722
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
10752
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
10812
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
10857
var
verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9);
10899
var
verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9);
10941
var
verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9);
10983
var
verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9);
11025
var
verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9);
11067
var
verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9);
11119
var
verifier = CompileAndVerifyWithSkipLocalsInit(source);
11170
var
verifier = CompileAndVerifyWithSkipLocalsInit(source);
11200
var
verifier = CompileAndVerifyWithSkipLocalsInit(source);
11229
var
verifier = CompileAndVerifyWithSkipLocalsInit(source);
11255
var
verifier = CompileAndVerifyWithSkipLocalsInit(source, parseOptions: TestOptions.RegularPreview, verify: Verification.Skipped);
11280
var
verifier = CompileAndVerifyWithSkipLocalsInit(source, parseOptions: TestOptions.RegularPreview, verify: Verification.Skipped);
11311
var
verifier = CompileAndVerifyWithSkipLocalsInit(source, parseOptions: TestOptions.RegularPreview, verify: Verification.Skipped);
11342
var
verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.UnsafeReleaseExe);
11361
var
verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.UnsafeReleaseExe, verify: Verification.Passes);
11400
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11441
var
comp1 = CompileAndVerify(source1, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11445
var
comp2 = CompileAndVerify(source2, references: new[] { reference }, verify: Verification.Passes);
11477
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11525
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11559
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11596
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11627
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11672
var
comp_init = CompileAndVerify(source_init, options: TestOptions.UnsafeReleaseDll);
11673
var
comp_skip = CompileAndVerify(source_skip, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11710
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll);
11753
var
comp_init = CompileAndVerify(source_init, options: TestOptions.UnsafeReleaseDll);
11754
var
comp_skip = CompileAndVerify(source_skip, options: TestOptions.UnsafeReleaseDll);
11796
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11848
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11920
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
11955
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12028
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12089
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12118
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll);
12164
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll);
12282
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12332
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12387
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12445
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12492
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12521
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12549
var
comp = CompileAndVerify(source, options: TestOptions.UnsafeDebugExe, verify: Verification.Fails);
12577
var
comp = CompileAndVerify(source, options: TestOptions.DebugModule.WithAllowUnsafe(true), verify: Verification.Fails);
12608
var
comp = CompileAndVerify(source, references: new[] { metadata_comp.EmitToImageReference() });
12662
var
verifier = CompileAndVerify(src, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails);
12729
var
verifier = CompileAndVerify(comp, verify: Verification.Fails);
12783
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
12802
var
verifier = CompileAndVerifyWithSkipLocalsInit(src);
12821
var
verifier = CompileAndVerifyWithSkipLocalsInit(src);
12857
var
verifier = CompileAndVerifyWithSkipLocalsInit(src);
12903
var
verifier = CompileAndVerify(src, options: TestOptions.UnsafeReleaseDll, verify: Verification.Skipped);
12949
var
verifier = CompileAndVerify(src, options: TestOptions.UnsafeReleaseDll, verify: Verification.Skipped);
12977
var
verifier = CompileAndVerify(comp, verify: Verification.Fails);
Attributes\InternalsVisibleToAndStrongNameTests.cs (3)
2044
var
verifier = CompileAndVerify(comp3);
2167
var
verifier = CompileAndVerify(comp4);
2745
var
verifier = CompileAndVerify(ca, symbolValidator: module =>
CodeGen\CodeGenCallTests.cs (164)
76
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
171
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
243
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
342
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
421
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
678
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
827
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
1166
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
1365
var
verifier = CompileAndVerify(
1521
var
verifier = CompileAndVerify(
1634
var
verifier = CompileAndVerify(
1795
var
verifier = CompileAndVerify(
1889
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
2042
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
2203
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
2526
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
2928
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
3051
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
3137
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
3260
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
3353
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
3641
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
3809
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
4179
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
4378
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
4520
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
4616
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
4759
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
4862
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
5167
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
5338
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
5725
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
5927
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
6065
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
6159
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
6298
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
6399
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
6688
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
6854
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
7225
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
7422
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
7560
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
7654
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
7793
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
7894
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
8189
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
8358
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
8735
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
8935
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
9101
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
9209
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
9376
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
9491
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
9808
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
9988
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
10387
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
10598
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
10725
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
10816
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
10943
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
11041
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
11333
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
11494
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
11634
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
11729
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
11870
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
11972
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
12293
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
12470
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
12763
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
12929
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
13323
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
13529
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
13689
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
13794
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
13955
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
14067
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
14378
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
14546
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
14714
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
14823
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
14992
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
15108
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
15433
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
15615
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
15936
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
16116
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
16519
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
16733
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
16851
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
16934
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
17053
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
17143
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
17408
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
17566
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
17709
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
17809
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
17953
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
18060
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
18357
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
18523
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
18684
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
18797
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
18959
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
19079
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
19404
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
19581
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
19730
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
19840
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
19990
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
20107
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
20433
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
20618
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
20781
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
20895
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
21059
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
21180
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
21532
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
21729
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
22058
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
22244
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
22674
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
22900
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
23089
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
23216
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
23406
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
23540
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
23893
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
24084
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
24267
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
24391
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
24575
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
24706
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
25057
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
25247
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
25438
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
25566
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
25758
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
25893
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
26254
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
26456
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
26813
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
27013
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
27446
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
27677
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
27822
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
27926
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
28072
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
28183
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
28496
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
28663
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
28801
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
28898
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
29037
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
29141
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
29433
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
29593
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
29765
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
29879
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
30052
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
30173
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
30505
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: @"
30671
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
30777
var
verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"
CodeGen\CodeGenLengthBasedSwitchTests.cs (24)
79
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
573
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN", verify: Verification.Skipped);
1110
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
1391
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
1573
var
verifier = CompileAndVerify(comp);
1725
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1831
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
2062
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
2378
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
2912
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
4128
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
6494
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
8798
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
9110
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
9569
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
9706
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
10547
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
10878
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
11077
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
11734
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
12078
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
12729
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
13046
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
13654
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"));
151
var
verifier = CompileAndVerify(source, expectedOutput: PASS, symbolValidator: VerifyNoCacheContainersIn("C"), verify: Verification.FailsILVerify);
194
var
verifier = CompileAndVerify(source, expectedOutput: PASS, symbolValidator: VerifyNoCacheContainersIn("C"), verify: Verification.FailsILVerify);
236
var
verifier = CompileAndVerify(source, expectedOutput: PASS, symbolValidator: VerifyNoCacheContainersIn("C"));
271
var
verifier = CompileAndVerify(source
348
var
verifier = CompileAndVerify(source
418
var
verifier = CompileAndVerify(source, symbolValidator: VerifyNoCacheContainersIn("C"));
448
var
verifier = CompileAndVerify(source, symbolValidator: VerifyNoCacheContainersIn("C"));
473
var
verifier = CompileAndVerify(source, expectedOutput: PASS, symbolValidator: VerifyNoCacheContainersIn("Program"));
499
var
verifier = CompileAndVerify(source, expectedOutput: PASS, symbolValidator: VerifyNoCacheContainersIn("Program"));
521
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular10, symbolValidator: VerifyNoCacheContainersIn("Program"));
555
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
598
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
642
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
687
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
733
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
779
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
824
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
867
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
910
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
955
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1000
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1045
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1091
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1137
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1185
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1230
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1275
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1325
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1370
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1408
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1452
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1496
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1540
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1587
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1634
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1681
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1729
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1781
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1824
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1869
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1914
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
1963
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
2019
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
2590
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
2628
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
2674
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
2721
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
2766
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
2812
var
verifier = CompileAndVerify(source, expectedOutput: PASS);
2846
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<>O", arity: 0
2889
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<>O", arity: 0
2933
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<>O", arity: 0
2977
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<>O", arity: 0
3020
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<>O", arity: 0
3066
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<>O", arity: 0
3125
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<Test>O__0_0", arity: 1
3167
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<Test>O__0_0", arity: 1
3211
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<Test>O__2_0", arity: 1
3253
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<Test>O__0_0", arity: 1
3295
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<Test>O__0_0", arity: 1
3395
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("A.B.<>O", arity: 0
3548
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<Test>O__0_0", arity: 1
3615
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("E.<Test>O__0_0", arity: 1
3689
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("E.<Test>O__0_0", arity: 1
3770
var
verifier = CompileAndVerify(source, expectedOutput: PASS, symbolValidator: VerifyCacheContainer("E.<Owner>O__0_0", arity: 2
3827
var
verifier = CompileAndVerify(source, symbolValidator: static module =>
3877
var
verifier = CompileAndVerify(source, symbolValidator: static module =>
3930
var
verifier = CompileAndVerify(source, symbolValidator: static module =>
3978
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("Program.<>O", arity: 0
4034
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<Owner>O__0_0", arity: 1
4092
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<Owner>O__0_0", arity: 1
4142
var
verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<>O", arity: 0
5623
var
comp = CompileAndVerify(source, parseOptions: TestOptions.Regular11);
5706
var
verifier = CompileAndVerifyWithWinRt(source, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseWinMD);
5823
var
verifier = CompileAndVerifyWithWinRt(source, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseWinMD);
6031
var
verifier = CompileAndVerify(comp, expectedOutput:
6172
var
verifier = CompileAndVerify(compilation, expectedOutput: PASS);
6328
var
verifier = CompileAndVerify(compilation, expectedOutput: PASS, symbolValidator: containerValidator);
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);
1423
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(@"1"), verify: Verification.FailsPEVerify);
1458
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
1614
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
1725
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
2449
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(expectedOutput), verify: Verification.FailsPEVerify);
2583
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(expectedOutput), verify: Verification.FailsPEVerify);
3093
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
3261
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
5988
var
verifier = CompileAndVerify(comp, verify: useUnsafeContext ? Verification.Skipped : Verification.FailsPEVerify);
6217
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(expectedResult));
6593
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(expectedResult));
6825
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(expectedResult));
6865
var
verifier = CompileAndVerify(comp, emitOptions: EmitOptions.Default.WithRuntimeMetadataVersion("0.0.0.0"), verify: Verification.Skipped);
8150
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
8376
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
8580
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
8656
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
9395
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
9500
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(expectedOutput));
9800
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
9991
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
10953
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify);
11593
CompilationVerifier
compileAndVerify(CSharpTestSource source)
11654
var
verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput("RAN"));
11672
var
verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("63"), verify: Verification.FailsPEVerify);
11720
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("00"));
Emit\UnmanagedTypeModifierTests.cs (16)
565
var
reference = CompileAndVerify(@"
604
var
parent = CompileAndVerify(@"
617
var
child = CompileAndVerify(@"
646
var
reference = CompileAndVerify(@"
682
var
parent = CompileAndVerify(@"
695
var
child = CompileAndVerify(@"
721
var
reference = CompileAndVerify(@"
757
var
parent = CompileAndVerify(@"
770
var
child = CompileAndVerify(@"
796
var
reference = CompileAndVerify(@"
832
var
parent = CompileAndVerify(@"
845
var
child = CompileAndVerify(@"
871
var
reference = CompileAndVerify(@"
908
var
parent = CompileAndVerify(@"
921
var
child = CompileAndVerify(@"
990
var
reference = CompileAndVerify(@"
FlowAnalysis\FlowDiagnosticTests.cs (2)
1219
var
verifier = CompileAndVerify(program, parseOptions: TestOptions.Regular11);
1279
var
verifier = CompileAndVerify(program, parseOptions: TestOptions.Regular11);
FlowAnalysis\RegionAnalysisTests.cs (1)
5615
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "42");
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");
5100
var
comp = CompileAndVerify(compilation, expectedOutput: @"TBase
5222
var
comp = CompileAndVerify(compilation, expectedOutput: @"1
5298
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
5597
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
5776
var
comp = CompileAndVerify(compilation, expectedOutput: "roslyn");
6073
var
comp = CompileAndVerify(compilation, expectedOutput: @"TnT");
6106
var
comp = CompileAndVerify(compilation, expectedOutput: @"TnT");
6134
var
comp = CompileAndVerify(compilation, expectedOutput: @"FalseTrueFalseFalse");
6225
var
comp = CompileAndVerify(compilation, expectedOutput: "ok", verify: Verification.FailsILVerify);
6478
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
6660
var
comp = CompileAndVerify(compilation, expectedOutput:
6712
var
comp = CompileAndVerify(compilation, expectedOutput:
8612
var
verifier = CompileAndVerify(comp, expectedOutput:
8654
var
verifier = CompileAndVerify(comp, expectedOutput:
10214
var
verifier = CompileAndVerify(comp, expectedOutput:
10255
var
verifier = CompileAndVerify(comp, expectedOutput:
11005
var
verifier = CompileAndVerify(comp, expectedOutput: "(3, 6)");
11179
var
verifier = CompileAndVerify(comp, expectedOutput:
11587
var
verifier = CompileAndVerify(comp, expectedOutput: "True");
11939
var
verifier = CompileAndVerify(comp, expectedOutput: "True");
Semantics\PatternMatchingTests_ListPatterns.cs (18)
73
var
verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
282
var
verifier = CompileAndVerify(new[] { source, TestSources.Index, TestSources.Range }, parseOptions: TestOptions.RegularWithListPatterns,
540
var
verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
728
var
verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2337
var
verifier = CompileAndVerify(compilation, expectedOutput: "True");
2454
var
verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2957
var
verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
5542
var
verifier = CompileAndVerify(compilation, expectedOutput: "(item value, rest value)", verify: Verification.FailsILVerify);
5631
var
verifier = CompileAndVerify(compilation, expectedOutput: "(item value, rest value)", verify: Verification.FailsILVerify);
7421
var
verifier = CompileAndVerify(comp);
7652
var
verifier = CompileAndVerify(new[] { source, TestSources.Index }, options: TestOptions.DebugDll, verify: Verification.FailsILVerify);
7750
var
verifier = CompileAndVerify(new[] { source, TestSources.Index }, verify: Verification.FailsILVerify);
7903
var
verifier = CompileAndVerify(compilation, expectedOutput: "(2, 3)", verify: Verification.FailsILVerify);
8069
var
verifier = CompileAndVerify(compilation, verify: Verification.Fails);
8140
var
verifier = CompileAndVerify(compilation, expectedOutput: "1 2 3", verify: Verification.Fails);
8366
var
verifier = CompileAndVerify(comp, expectedOutput: "(4, 2, 4, 2)", verify: Verification.FailsILVerify);
8481
var
verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify).VerifyDiagnostics();
8560
var
verifier = CompileAndVerify(comp, expectedOutput: "(42, 43)", verify: Verification.FailsILVerify);
Semantics\PatternMatchingTests2.cs (18)
40
var
comp = CompileAndVerify(compilation, expectedOutput: @"1");
82
var
comp = CompileAndVerify(compilation, expectedOutput: "");
128
var
comp = CompileAndVerify(compilation, expectedOutput: "");
201
var
comp = CompileAndVerify(compilation, expectedOutput: "");
243
var
comp = CompileAndVerify(compilation, expectedOutput: "");
334
var
comp = CompileAndVerify(compilation, expectedOutput: "True");
825
var
comp = CompileAndVerify(compilation, expectedOutput: @"");
926
var
comp = CompileAndVerify(compilation, expectedOutput: @"0123");
1022
var
comp = CompileAndVerify(compilation, expectedOutput: @"0123");
1071
var
comp = CompileAndVerify(compilation, expectedOutput: @"9
1134
var
comp = CompileAndVerify(compilation, expectedOutput: @"12345678");
1453
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1541
var
comp = CompileAndVerify(compilation, expectedOutput: @"Fox Cat");
1618
var
comp = CompileAndVerify(compilation, expectedOutput: @"111");
1787
var
comp = CompileAndVerify(compilation, expectedOutput: @"111");
1823
var
comp = CompileAndVerify(compilation, expectedOutput: @"111");
3195
var
verifier = CompileAndVerify(source, expectedOutput: @"
3351
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)
222
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
315
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
346
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
377
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
409
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
440
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
472
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
506
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
540
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
628
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
662
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
729
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
767
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
802
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
838
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
949
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1062
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1097
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1163
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1228
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1279
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1319
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput);
3361
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput, verify: Verification.Skipped);
3388
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput, verify: Verification.Skipped);
3414
var
compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput, verify: Verification.Skipped);
4268
var
verifier = CompileAndVerify(comp, expectedOutput: "NaN");
4350
var
verifier = CompileAndVerify(comp, expectedOutput: "NaN");
4432
var
verifier = CompileAndVerify(comp, expectedOutput: "NaN");
4514
var
verifier = CompileAndVerify(comp, expectedOutput: "NaN");
4596
var
verifier = CompileAndVerify(comp, expectedOutput: "NaN");
4680
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)
404
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1084
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1129
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1235
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1426
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1484
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1560
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
1971
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2012
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2110
var
comp = CompileAndVerify(compilation, expectedOutput: expectedOutput);
2156
var
comp = CompileAndVerify(compilation, expectedOutput:
2218
var
comp = CompileAndVerify(compilation, expectedOutput:
2274
var
comp = CompileAndVerify(compilation, expectedOutput:
2332
var
comp = CompileAndVerify(compilation, expectedOutput:
2381
var
comp = CompileAndVerify(compilation, expectedOutput:
2445
var
comp = CompileAndVerify(compilation, expectedOutput:
2510
var
comp = CompileAndVerify(compilation, expectedOutput:
2570
var
comp = CompileAndVerify(compilation, expectedOutput:
2626
var
comp = CompileAndVerify(compilation, expectedOutput:
2667
var
comp = CompileAndVerify(compilation, expectedOutput:
2706
var
comp = CompileAndVerify(compilation, expectedOutput:
2748
var
comp = CompileAndVerify(compilation, expectedOutput:
2810
var
comp = CompileAndVerify(compilation, expectedOutput: @"pass");
2838
var
comp = CompileAndVerify(compilation, expectedOutput: @"pass");
2866
var
comp = CompileAndVerify(compilation, expectedOutput: @"1");
2957
var
comp = CompileAndVerify(compilation, expectedOutput: @"pass");
3176
var
comp = CompileAndVerify(compilation, expectedOutput: "Main");
3206
var
comp = CompileAndVerify(compilation);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IUsingStatement.cs (1)
1437
var
verifier = CompileAndVerify(compilation);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (852)
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)
1896
var
verifier = CompileAndVerify(compilation);
2839
var
compiled = CompileAndVerify(comp, expectedOutput: "dynamic42", verify: Verification.FailsPEVerify);
Semantics\ConditionalOperatorTests.cs (9)
245
var
verifier = CompileAndVerify(source, expectedOutput: @"B
361
var
verifier = CompileAndVerify(source, expectedOutput: @"BDBD");
520
var
verifier = CompileAndVerify(source, expectedOutput: @"BDBD");
619
var
verifier = CompileAndVerify(source, expectedOutput: @"BDBD");
684
var
verifier = CompileAndVerify(
756
var
verifier = CompileAndVerify(new string[] { source }, expectedOutput: "1");
821
var
verifier = CompileAndVerify(new string[] { source }, expectedOutput: "1");
897
var
verifier = CompileAndVerify(new string[] { source }, expectedOutput: "1");
975
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);
6484
var
verifier = CompileAndVerify(comp, expectedOutput: "(0, 0)");
Semantics\DelegateTypeTests.cs (41)
7478
var
verifier = CompileAndVerify(comp, expectedOutput:
8296
var
verifier = CompileAndVerify(comp, expectedOutput:
8428
var
verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: @"(41, 42)");
8482
var
verifier = CompileAndVerify(comp, expectedOutput:
8556
var
verifier = CompileAndVerify(comp, expectedOutput:
8622
var
verifier = CompileAndVerify(comp, expectedOutput:
8699
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput:
8764
var
verifier = CompileAndVerify(comp, expectedOutput:
8843
var
verifier = CompileAndVerify(comp, expectedOutput:
9290
var
verifier = CompileAndVerify(comp, validator: validator, expectedOutput: "D");
9331
var
verifier = CompileAndVerify(comp, validator: validator, expectedOutput:
9375
var
verifier = CompileAndVerify(comp, validator: validator);
10787
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify: Verification.Skipped, expectedOutput:
10839
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify: Verification.Skipped, expectedOutput:
10904
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify: Verification.Skipped, expectedOutput:
10953
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
12312
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.RegularPreview);
12429
var
verifier = CompileAndVerify(source, expectedOutput:
12452
var
verifier = CompileAndVerify(source, expectedOutput: "7 <>f__AnonymousDelegate0`4[System.Int32,System.Int32,System.Int32,System.Int32]");
12553
var
verifier = CompileAndVerify(source, expectedOutput: "abc <>f__AnonymousDelegate0`4[System.String,System.String,System.String,System.String]");
13028
var
verifier = CompileAndVerify(source, expectedOutput:
13113
var
verifier = CompileAndVerify(source, expectedOutput: "file::member:0");
13160
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net60,
13536
var
verifier = CompileAndVerify(source, verify: Verification.FailsILVerify);
13631
var
verifier = CompileAndVerify(source, expectedOutput: @"10 a 0");
14120
var
verifier = CompileAndVerify(source, expectedOutput:
14251
var
verifier = CompileAndVerify(source, expectedOutput: "");
14341
var
verifier = CompileAndVerify(source);
14556
var
verifier = CompileAndVerify(source, expectedOutput: """
14576
var
verifier = CompileAndVerify(source).VerifyDiagnostics();
14668
var
verifier = CompileAndVerify(source, expectedOutput: """
14690
var
verifier = CompileAndVerify(source).VerifyDiagnostics();
14797
var
verifier = CompileAndVerify(source, expectedOutput: """
14855
var
verifier = CompileAndVerify(source, expectedOutput: """
14874
var
verifier = CompileAndVerify(source).VerifyDiagnostics();
14955
var
verifier = CompileAndVerify(source, expectedOutput: """
14976
var
verifier = CompileAndVerify(source).VerifyDiagnostics();
15067
var
verifier = CompileAndVerify(source, expectedOutput: """
15981
var
verifier = CompileAndVerify(source, expectedOutput: "<>f__AnonymousDelegate0`2[System.Int32,System.Int32]").VerifyDiagnostics();
16019
var
verifier = CompileAndVerify(source, expectedOutput: "<>c").VerifyDiagnostics();
16078
var
verifier = CompileAndVerify(source).VerifyDiagnostics(
Semantics\DynamicTests.cs (5)
3545
var
verifier = CompileAndVerify(source, new[] { CSharpRef }, expectedOutput: "System.Object").VerifyDiagnostics();
3578
var
verifier = CompileAndVerify(source, new[] { CSharpRef }, expectedOutput: "System.Object").VerifyDiagnostics();
3606
var
verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithAllowUnsafe(true), verify: Verification.FailsPEVerify).VerifyDiagnostics();
3634
var
verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithAllowUnsafe(true), verify: Verification.FailsPEVerify).VerifyDiagnostics();
3685
var
verifier = CompileAndVerify(source, new[] { CSharpRef }, options: TestOptions.DebugDll).VerifyDiagnostics();
Semantics\FunctionPointerTests.cs (21)
24
private
CompilationVerifier
CompileAndVerifyFunctionPointers(CSharpCompilation compilation, string? expectedOutput = null)
154
var
verifier = CompileAndVerifyFunctionPointers(comp);
217
var
verifier = CompileAndVerify(comp, expectedOutput: "1", verify: Verification.Skipped);
243
var
verifier = CompileAndVerifyFunctionPointers(comp);
308
var
verifier = CompileAndVerifyFunctionPointers(comp);
363
var
verifier = CompileAndVerifyFunctionPointers(comp);
413
var
verifier = CompileAndVerifyFunctionPointers(comp);
458
var
verifier = CompileAndVerifyFunctionPointers(comp);
562
var
verifier = CompileAndVerifyFunctionPointers(comp);
606
var
verifier = CompileAndVerifyFunctionPointers(comp);
653
var
verifier = CompileAndVerifyFunctionPointers(comp);
700
var
verifier = CompileAndVerifyFunctionPointers(comp);
793
var
verifier = CompileAndVerifyFunctionPointers(comp);
845
var
verifier = CompileAndVerifyFunctionPointers(comp);
905
var
verifier = CompileAndVerifyFunctionPointers(comp);
2668
var
verifier = CompileAndVerify(@"
2693
var
verifier = CompileAndVerify(@"
2912
var
verifier = CompileAndVerify(@"
3250
var
verifier = CompileAndVerifyFunctionPointers(comp, expectedOutput: "GetPtr");
3330
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: @"
3827
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)
2783
var
v = CompileAndVerify(comp, expectedOutput: "2 3", verify: Verification.Skipped);
4202
var
verifier = CompileAndVerify(new[] { IsExternalInitTypeDefinition, @"
4237
var
verifier = CompileAndVerify(new[] { IsExternalInitTypeDefinition, @"
4277
var
verifier = CompileAndVerify(new[] { IsExternalInitTypeDefinition, @"
4316
var
verifier = CompileAndVerify(new[] { IsExternalInitTypeDefinition, @"
4402
var
verifier = CompileAndVerify(new[] { IsExternalInitTypeDefinition, @"
Semantics\InterpolationTests.cs (135)
242
var
verifier = CompileAndVerify(source, expectedOutput: expectedOutput);
268
var
verifier = CompileAndVerify(source, expectedOutput: expectedOutput);
346
var
verifier = CompileAndVerify(source, new[] { CSharpRef }, expectedOutput: expectedOutput).VerifyDiagnostics();
1116
var
compilation = CompileAndVerify(comp, verify: Verification.Fails);
1175
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput);
1187
static void checkNet50IL(
CompilationVerifier
verifier)
1206
static void checkNet60IL(
CompilationVerifier
verifier)
1278
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput);
1290
static void checkNet50IL(
CompilationVerifier
verifier)
1309
static void checkNet60IL(
CompilationVerifier
verifier)
1379
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput);
1431
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput);
1675
var
verifier = CompileAndVerify(new[] { code, handler }, expectedOutput: @"
1814
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: expectedOutput);
2230
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: expectedOutput, targetFramework: TargetFramework.Net50, parseOptions: TestOptions.Regular10);
2666
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @"base1");
2840
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @"
2952
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @"
3115
var
verifier = CompileAndVerifyWithCSharp(new[] { source, interpolatedStringBuilder }, expectedOutput: @"base1");
3167
var
verifier = CompileAndVerifyWithCSharp(new[] { source, interpolatedStringBuilder }, expectedOutput: @"1base");
3219
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerAttribute });
3655
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @"
3751
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @"value:1");
3788
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @"
3854
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @"
3937
var
verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, targetFramework: TargetFramework.NetCoreApp, expectedOutput: @"
4029
var
verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: @"
4120
var
verifier = CompileAndVerify(source, expectedOutput: @"
4597
private
CompilationVerifier
CompileAndVerifyOnCorrectPlatforms(CSharpCompilation compilation, string expectedOutput)
4616
var
verifier = CompileAndVerify(comp, expectedOutput: @"
4753
var
verifier = CompileAndVerify(comp, expectedOutput: @"
4813
var
verifier = CompileAndVerify(comp, expectedOutput: @"
4864
var
verifier = CompileAndVerify(comp, expectedOutput: @"
4953
var
verifier = CompileAndVerify(comp, expectedOutput: @"Literal");
5067
var
verifier = CompileAndVerify(comp, expectedOutput: @"
5121
var
verifier = CompileAndVerify(comp, expectedOutput: @"
5249
var
verifier = CompileAndVerify(comp, expectedOutput: @"
5307
var
verifier = CompileAndVerify(comp, expectedOutput: @"
5354
var
verifier = CompileAndVerify(comp, expectedOutput: @"
5408
var
verifier = CompileAndVerify(comp, expectedOutput: @"1.00Literal");
5468
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"value:Field");
5542
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"value:Field");
5591
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
5657
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"1.00Literal");
5727
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
5845
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
5905
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"1.00Literal");
6002
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6090
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6173
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"1.00Literal");
6253
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6317
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6409
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6465
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6530
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6573
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6619
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6665
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
6717
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
7656
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validate, symbolValidator: validate, expectedOutput: @"
7693
void verifyIL(
CompilationVerifier
verifier)
8201
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
8227
static void verifyIL(string extraConstructorArg,
CompilationVerifier
verifier)
8325
var
verifier = base.CompileAndVerify((Compilation)comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: expectedOutput);
8347
static void verifyIL(string extraConstructorArg,
CompilationVerifier
verifier)
8463
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
8620
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
8753
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
8890
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
8991
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: "CustomHandler").VerifyDiagnostics();
9119
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
9235
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
9352
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
9475
var
verifier = CompileAndVerify(comp, expectedOutput: @"
9632
var
verifier = CompileAndVerify(
9742
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, expectedOutput: "1literal:literal", symbolValidator: validator, sourceSymbolValidator: validator);
9821
var
verifier = CompileAndVerify(comp, expectedOutput: @"
9920
var
verifier = CompileAndVerify(comp, expectedOutput: @"
10023
var
verifier = CompileAndVerify(comp, expectedOutput: @"
10169
var
verifier = CompileAndVerify(comp, expectedOutput: @"
10268
var
verifier = CompileAndVerify(comp, expectedOutput: @"
10420
var
verifier = CompileAndVerify(comp, expectedOutput: @"
10519
var
verifier = CompileAndVerify(comp, expectedOutput: @"
10618
var
verifier = CompileAndVerify(comp, expectedOutput: @"
10815
var
verifier = CompileAndVerify(comp, expectedOutput: @"
10900
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11012
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11264
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11449
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11549
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11605
var
verifier = CompileAndVerify(comp, expectedOutput: @"s.I:1");
11667
var
verifier = CompileAndVerify(comp, expectedOutput: @"s.I:2");
11749
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, expectedOutput: @"
11800
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
11897
var
verifier = CompileAndVerify(comp, expectedOutput: @"
12189
var
verifier = CompileAndVerify(comp, expectedOutput: @"
12453
var
verifier = CompileAndVerify(comp, expectedOutput: @"
12710
var
verifier = CompileAndVerify(comp, expectedOutput: @"
12834
var
verifier = CompileAndVerify(comp, expectedOutput: @"
13063
var
verifier = CompileAndVerify(comp, expectedOutput: @"literal:literal");
13115
var
verifier = CompileAndVerify(comp, expectedOutput: @"1");
13166
var
verifier = CompileAndVerify(comp);
13225
var
verifier = CompileAndVerify(comp);
13285
var
verifier = CompileAndVerify(comp);
13347
var
verifier = CompileAndVerify(comp);
13409
var
verifier = CompileAndVerify(comp);
13501
var
verifier = CompileAndVerify(comp, expectedOutput: "c.i:1");
13816
var
verifier = CompileAndVerify(comp, expectedOutput: "d:1");
13861
var
verifier = CompileAndVerify(comp, expectedOutput: "ctor");
13906
var
verifier = CompileAndVerify(comp, expectedOutput: "ctor");
13949
var
verifier = CompileAndVerify(comp, expectedOutput: "AppendLiteral");
13998
var
verifier = CompileAndVerify(comp, expectedOutput: "AppendFormatted");
14054
var
verifier = CompileAndVerify(comp, expectedOutput: @"
14147
var
verifier = CompileAndVerify(comp, expectedOutput: @"
15092
var
verifier = CompileAndVerify(comp, expectedOutput: @"
15138
var
verifier = CompileAndVerify(comp, expectedOutput: @"
15193
var
verifier = CompileAndVerify(comp, expectedOutput: @"
15372
var
verifier = CompileAndVerify(comp, expectedOutput: @"
15446
var
verifier = CompileAndVerify(comp, expectedOutput: @"
15813
var
verifier = CompileAndVerify(code, expectedOutput: @"123456");
15831
var
verifier = CompileAndVerify(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }, expectedOutput: @"
15962
var
verifier = CompileAndVerify(comp, expectedOutput: @"123456123456");
16121
var
verifier = CompileAndVerify(comp, expectedOutput: @"
16185
var
verifier = CompileAndVerify(comp, expectedOutput: @"
16275
var
verifier = CompileAndVerify(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }, expectedOutput: @"
16378
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @"i:1");
16442
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @"");
16550
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @"i:1");
16603
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"1");
16644
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"1");
16695
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"12");
16741
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"12");
16857
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: "s.Field:1");
16888
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: "2");
16939
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: "s.Field:1");
Semantics\IteratorTests.cs (1)
420
var
comp = CompileAndVerify(source, expectedOutput: "0,1,2,3", options: TestOptions.DebugExe);
Semantics\LocalFunctionTests.cs (1)
6894
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)
147
var
comp = CompileAndVerify(source, expectedOutput: @"
1139
var
comp = CompileAndVerify(compilation, expectedOutput: @"N1N2");
1391
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}");
4485
var
verifier = CompileAndVerify(source, expectedOutput: @"1");
4522
var
verifier = CompileAndVerify(comp, expectedOutput:
4595
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
4665
var
verifier = CompileAndVerify(comp, expectedOutput:
4866
var
verifier = CompileAndVerify(comp);
4975
var
verifier = CompileAndVerify(comp);
5223
var
verifier = CompileAndVerify(comp);
5333
var
verifier = CompileAndVerify(comp);
6592
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput);
6724
var
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput);
7262
var
verifier = CompileAndVerify(comp, expectedOutput:
7429
var
verifier = CompileAndVerify(comp, expectedOutput:
9486
var
verifier = CompileAndVerify(comp, verify: useUnsafeContext || !verify ? Verification.Skipped : Verification.Passes);
9710
var
verifier = CompileAndVerify(comp, expectedOutput: expectedResult);
10087
var
verifier = CompileAndVerify(comp, expectedOutput: expectedResult);
10312
var
verifier = CompileAndVerify(comp, expectedOutput: expectedResult);
10352
var
verifier = CompileAndVerify(comp, emitOptions: EmitOptions.Default.WithRuntimeMetadataVersion("0.0.0.0"), verify: Verification.Skipped);
12412
var
verifier = CompileAndVerify(comp, expectedOutput:
12637
var
verifier = CompileAndVerify(comp, expectedOutput:
12840
var
verifier = CompileAndVerify(comp, expectedOutput:
12915
var
verifier = CompileAndVerify(comp, expectedOutput:
13767
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput:
13872
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: expectedOutput);
14143
var
verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput:
14790
var
verifier = CompileAndVerify(source);
15095
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
15137
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
15807
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN");
15852
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
Semantics\NonTrailingNamedArgumentsTests.cs (17)
39
var
verifier = CompileAndVerify(source, expectedOutput: "First 1 2. Second 3 4.", parseOptions: TestOptions.Regular7_2);
85
var
verifier = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2);
113
var
verifier = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2);
137
var
verifier = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2);
160
var
verifier = CompileAndVerifyWithMscorlib40(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2, references: new[] { TestMetadata.Net40.SystemCore });
193
var
verifier = CompileAndVerify(source, expectedOutput: "1 2. 1 2.", parseOptions: TestOptions.Regular7_2);
224
var
verifier = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2);
260
var
verifier = CompileAndVerify(source, expectedOutput: "Get 1 2. Set 3 4 5.", parseOptions: TestOptions.Regular7_2);
335
var
verifier1 = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2, references: new[] { lib.ToMetadataReference() });
338
var
verifier2 = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2, references: new[] { lib.EmitToImageReference() });
387
var
verifier = CompileAndVerify(source, expectedOutput: "1 hi.", parseOptions: TestOptions.Regular7_2);
506
var
comp = CompileAndVerify(source, expectedOutput: "1 2. 2 3. 3 4,5.");
738
var
verifier = CompileAndVerify(source, expectedOutput: "Second 3 2.");
770
var
verifier = CompileAndVerify(source, expectedOutput: "Second 3 2.");
797
var
comp = CompileAndVerify(source, expectedOutput: "42");
914
var
verifier = CompileAndVerify(source, expectedOutput: "1 2 3 4 Length:2");
1094
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 (1)
112838
var
verifier = CompileAndVerify(
Semantics\NullableTests.cs (12)
188
var
verifier = CompileAndVerify(source: source2, expectedOutput: "0");
329
var
verifier = CompileAndVerify(source: source.Replace("TYPE", type), expectedOutput: expected);
389
var
verifier = CompileAndVerify(source: source, expectedOutput: "1");
543
var
verifier = CompileAndVerify(source: source, expectedOutput: expected);
609
var
verifier = CompileAndVerify(source: source, expectedOutput: expected);
756
var
verifier = CompileAndVerify(source: s, expectedOutput: expected);
1314
var
verifier = CompileAndVerify(source: source.ToString(), expectedOutput: "");
1409
var
verifier = CompileAndVerify(source: source, expectedOutput: "");
1608
var
verifier = CompileAndVerify(source: source, expectedOutput: "");
1653
var
verifier = CompileAndVerify(source: source, expectedOutput: "123");
1671
var
verifier = CompileAndVerify(source: source2, expectedOutput: "0");
1769
var
verifier = CompileAndVerify(source, expectedOutput: expected);
Semantics\OperatorTests.cs (14)
4842
var
verifier = CompileAndVerify(compilation, expectedOutput: "42");
4910
var
verifier = CompileAndVerify(compilation, expectedOutput: "42");
4947
var
verifier = CompileAndVerify(compilation, expectedOutput: "42");
4985
var
verifier = CompileAndVerify(compilation, expectedOutput: "42");
5236
var
comp = CompileAndVerify(source);
5316
var
comp = CompileAndVerify(source);
5340
var
comp = CompileAndVerify(source);
5359
var
comp = CompileAndVerify(source);
5378
var
comp = CompileAndVerify(source);
5879
var
comp = CompileAndVerify(source, expectedOutput: @"False
8890
var
verifier = CompileAndVerify(source);
10842
var
verifier = CompileAndVerify(source: source, expectedOutput:
11003
var
verifier = CompileAndVerify(source: source, expectedOutput:
11262
var
verifier = CompileAndVerify(source, expectedOutput: "Goo, Bar");
Semantics\OutVarTests.cs (2)
32913
var
comp = CompileAndVerify(source, expectedOutput: "MMM");
32976
var
comp = CompileAndVerify(source, expectedOutput: "MMM");
Semantics\PrimaryConstructorTests.cs (24)
393
var
verifier = CompileAndVerify(comp).VerifyDiagnostics(
878
var
verifier = CompileAndVerify(comp, expectedOutput: "(2, 2)");
938
var
verifier = CompileAndVerify(src, expectedOutput: @"
1177
var
verifier = CompileAndVerify(src, expectedOutput: @"
1834
var
verifier = CompileAndVerify(src, expectedOutput: @"
1896
var
verifier = CompileAndVerify(src, expectedOutput: @"1").VerifyDiagnostics();
2526
var
verifier = CompileAndVerify(src, expectedOutput: @"2").VerifyDiagnostics();
2637
var
verifier = CompileAndVerify(src, expectedOutput: @"2").VerifyDiagnostics();
2684
var
verifier = CompileAndVerify(src, expectedOutput: @"
2934
var
comp = CompileAndVerify(source, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator);
3063
var
comp = CompileAndVerify(source, expectedOutput: "Main");
6426
var
verifier = CompileAndVerify(source, expectedOutput:
6475
var
verifier = CompileAndVerify(source, expectedOutput:
7686
var
verifier = CompileAndVerify(src, expectedOutput: @"TrueFalse").VerifyDiagnostics(
7758
var
verifier = CompileAndVerify(comp, expectedOutput: @"122123124125125", verify: Verification.Fails).VerifyDiagnostics(
8164
var
verifier = CompileAndVerify(comp, expectedOutput: @"123124125").VerifyDiagnostics();
8329
var
verifier = CompileAndVerify(comp, expectedOutput: @"123124").VerifyDiagnostics();
10766
var
verifier = CompileAndVerify(comp, expectedOutput: methodName);
11231
var
verifier = CompileAndVerify(comp, expectedOutput: @"123124125126-1", verify: Verification.Fails).VerifyDiagnostics();
11304
var
verifier = CompileAndVerify(comp, expectedOutput: @"123124125126-1-2-3", verify: Verification.Fails).VerifyDiagnostics();
11381
var
verifier = CompileAndVerify(comp, expectedOutput: @"123123124-1-2-3", verify: Verification.Passes).VerifyDiagnostics();
13076
var
verifier = CompileAndVerify(source, expectedOutput: " 0 1 2 3 2 3", options: TestOptions.DebugExe);
13397
var
verifier = CompileAndVerify(comp, expectedOutput: @"(2, 1)").VerifyDiagnostics();
14817
var
verifier = CompileAndVerify(comp, expectedOutput: @"122123124125125", verify: Verification.Fails).VerifyDiagnostics(
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: @"
2547
var
verifier = CompileAndVerify(source, expectedOutput: @"
2924
private
CompilationVerifier
CompileAndVerifyOnCorrectPlatforms(CSharpCompilation compilation, string expectedOutput)
2943
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3080
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3140
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3189
var
verifier = CompileAndVerify(comp, expectedOutput: @"Literal");
3307
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3361
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3486
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3544
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3591
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3645
var
verifier = CompileAndVerify(comp, expectedOutput: @"1.00Literal");
3707
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"value:Field");
3801
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"value:Field");
3850
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
3916
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"1.00Literal");
3986
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4127
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4187
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"1.00Literal");
4283
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4370
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4452
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"1.00Literal");
4532
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4596
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4687
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4743
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4807
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4850
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4896
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4942
var
verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"
4994
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)
6744
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
6903
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
7038
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
7177
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
7282
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: "CustomHandler").VerifyDiagnostics();
7416
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
7534
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
7654
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
7779
var
verifier = CompileAndVerify(comp, expectedOutput: @"
7945
var
verifier = CompileAndVerify(
8058
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, expectedOutput: "1literal:literal", symbolValidator: validator, sourceSymbolValidator: validator);
8143
var
verifier = CompileAndVerify(comp, expectedOutput: @"
8279
var
verifier = CompileAndVerify(comp, expectedOutput: @"s.I:1");
8347
var
verifier = CompileAndVerify(comp, expectedOutput: @"s.I:2");
8432
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, expectedOutput: @"
8485
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @"
8583
var
verifier = CompileAndVerify(comp, expectedOutput: @"
8876
var
verifier = CompileAndVerify(comp, expectedOutput: @"
9141
var
verifier = CompileAndVerify(comp, expectedOutput: @"
9400
var
verifier = CompileAndVerify(comp, expectedOutput: @"
9525
var
verifier = CompileAndVerify(comp, expectedOutput: @"
9756
var
verifier = CompileAndVerify(comp, expectedOutput: @"literal:literal");
9810
var
verifier = CompileAndVerify(comp, expectedOutput: @"1");
9866
var
verifier = CompileAndVerify(comp);
9925
var
verifier = CompileAndVerify(comp);
9985
var
verifier = CompileAndVerify(comp);
10047
var
verifier = CompileAndVerify(comp);
10109
var
verifier = CompileAndVerify(comp);
10206
var
verifier = CompileAndVerify(comp, expectedOutput: "c.i:1");
10537
var
verifier = CompileAndVerify(comp, expectedOutput: "d:1");
10588
var
verifier = CompileAndVerify(comp, expectedOutput: "ctor");
10639
var
verifier = CompileAndVerify(comp, expectedOutput: "ctor");
10684
var
verifier = CompileAndVerify(comp, expectedOutput: "AppendLiteral");
10735
var
verifier = CompileAndVerify(comp, expectedOutput: "AppendFormatted");
10791
var
verifier = CompileAndVerify(comp, expectedOutput: @"
10884
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11339
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11385
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11439
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11477
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11515
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11554
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11733
var
verifier = CompileAndVerify(comp, expectedOutput: @"
11807
var
verifier = CompileAndVerify(comp, expectedOutput: @"
12174
var
verifier = CompileAndVerify(code, expectedOutput: @"123456");
12192
var
verifier = CompileAndVerify(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }, expectedOutput: @"
12323
var
verifier = CompileAndVerify(comp, expectedOutput: @"123456123456");
12486
var
verifier = CompileAndVerify(comp, expectedOutput: @"
12553
var
verifier = CompileAndVerify(comp, expectedOutput: @"
12643
var
verifier = CompileAndVerify(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }, expectedOutput: @"
12751
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @"i:1");
12818
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @"");
12937
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @"i:1");
12992
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"1");
13033
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"1");
13086
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"12");
13132
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"12");
13252
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: "s.Field:1");
13285
var
verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: "2");
13338
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 */);
3390
var
verifier = CompileAndVerify(source, expectedOutput: "12");
3448
var
verifier = CompileAndVerify(source, expectedOutput: "1");
3485
var
verifier = CompileAndVerify(source, expectedOutput: "123");
3546
var
verifier = CompileAndVerify(source, expectedOutput: "32");
3782
var
verifier = CompileAndVerify(source, expectedOutput: "12");
3847
var
verifier = CompileAndVerify(source, expectedOutput: "12");
4274
var
verifier = CompileAndVerify(comp, expectedOutput: "TrueTrue");
4525
var
verifier = CompileAndVerify(comp, expectedOutput: "TrueTrue - FalseFalseFalseFalse - FalseFalseFalseFalse");
4622
var
verifier = CompileAndVerify(comp);
4865
var
verifier = CompileAndVerify(source, expectedOutput: @"
5109
var
v = CompileAndVerify(comp, expectedOutput: "C1 { }");
5313
var
v = CompileAndVerify(comp, expectedOutput: "C1 { field = 42 }");
5370
var
v = CompileAndVerify(comp, expectedOutput: "C1 { field = 42 }");
5411
var
v = CompileAndVerify(comp, expectedOutput: "C1 { field = hello }");
5455
var
v = CompileAndVerify(comp, expectedOutput: "C1 { I = 42, field1 = hi, field2 = }");
5511
var
v = CompileAndVerify(comp, expectedOutput: "C1 { I = 42 }", verify: Verification.Skipped /* init-only */);
6877
var
verifier = CompileAndVerify(comp, expectedOutput: "42 1");
7462
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
7501
var
verifier = CompileAndVerify(src, parseOptions: TestOptions.Regular11);
7548
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
7589
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
7624
var
verifier = CompileAndVerify(comp, expectedOutput: "4243", verify: Verification.Skipped /* init-only */);
7664
var
verifier = CompileAndVerify(comp, expectedOutput: "4243");
7698
var
verifier = CompileAndVerify(comp, expectedOutput: "4243");
7732
var
verifier = CompileAndVerify(comp, expectedOutput: "4243");
8139
var
verifier = CompileAndVerify(src, expectedOutput: @"
8227
var
verifier = CompileAndVerify(comp, expectedOutput: "Identity({ A = 10, B = 20 }) Identity(30) Identity(40) { A = 30, B = 40 }");
8403
var
verifier = CompileAndVerify(comp, expectedOutput: "Identity({ A = 10, B = 20 }) Identity(40) Identity(30) { A = 30, B = 40 }");
8578
var
verifier = CompileAndVerify(comp, expectedOutput: "M2 { A = 10, B = 20 }");
8749
var
verifier = CompileAndVerify(comp, expectedOutput: "{ A = 10, B = 30 }");
8946
var
verifier = CompileAndVerify(comp, expectedOutput: "{ A = 10, B = 30 }");
10447
var
verifier = CompileAndVerify(comp, expectedOutput: "{ Property = 44 }");
10462
var
verifier = CompileAndVerify(comp, expectedOutput: "{ Item = { Property = 44 } }");
10512
var
comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
10552
var
verifier = CompileAndVerify(comp, expectedOutput: "42 - 42");
10869
var
verifier = CompileAndVerify(source, expectedOutput:
11071
var
verifier = CompileAndVerify(source, expectedOutput:
Semantics\RecordTests.cs (115)
27
private
CompilationVerifier
CompileAndVerify(
876
var
verifier = CompileAndVerify(src, expectedOutput: @"
1558
var
verifier = CompileAndVerify(src, expectedOutput: "True");
1609
var
verifier = CompileAndVerify(src, expectedOutput: "True", parseOptions: TestOptions.Regular10);
1689
var
verifier = CompileAndVerify(src, expectedOutput: "12");
2016
var
verifier = CompileAndVerify(src, expectedOutput: @"0
2055
var
verifier = CompileAndVerify(src, expectedOutput: @"0 1
2095
var
verifier = CompileAndVerify(src, expectedOutput: @"0 1
2379
var
verifier = CompileAndVerify(src, expectedOutput: "2").VerifyDiagnostics();
2426
var
verifier = CompileAndVerify(
4923
var
v = CompileAndVerify(comp, expectedOutput: "C1 { }");
4998
var
v = CompileAndVerify(comp, expectedOutput: "C1 { }");
5075
var
v = CompileAndVerify(comp, expectedOutput: "C1 { }");
5460
var
v = CompileAndVerify(comp, expectedOutput: "C1 { field = 42 }");
5515
var
v = CompileAndVerify(comp, expectedOutput: "C1 { field = 42 }");
5554
var
v = CompileAndVerify(comp, expectedOutput: "C1 { field = hello }");
5595
var
v = CompileAndVerify(comp, expectedOutput: "C1 { field = hello } C1 { field = 42 }", verify: Verification.Skipped /* init-only */);
5677
var
v = CompileAndVerify(comp, expectedOutput: "C1 { field1 = hi, field2 = }");
5731
var
v = CompileAndVerify(comp, expectedOutput: "C1 { Property = 42 }", verify: Verification.Skipped /* init-only */);
5795
var
v = CompileAndVerify(comp, expectedOutput: "C1 { A1 = 42, A2 = 100, B1 = 43, B2 = 101 }", verify: Verification.Skipped /* init-only */);
7647
var
verifier = CompileAndVerify(source, expectedOutput: @"1
7689
var
verifier = CompileAndVerify(source, expectedOutput: @"1
7729
var
verifier = CompileAndVerify(source, expectedOutput: @"1
7763
var
verifier = CompileAndVerify(source, expectedOutput: @"1
7797
var
verifier = CompileAndVerify(source, expectedOutput: @"1
7832
var
verifier = CompileAndVerify(source, expectedOutput: @"1
8066
var
verifier = CompileAndVerify(src, expectedOutput: @"
8243
var
verifier = CompileAndVerify(src, expectedOutput: "11").VerifyDiagnostics();
8289
var
verifier = CompileAndVerify(src, expectedOutput: @"
8341
var
verifier = CompileAndVerify(src, expectedOutput: @"
8423
var
verifier = CompileAndVerify(src, expectedOutput: @"
9513
var
verifier = CompileAndVerify(src, expectedOutput: @"
9544
var
verifier = CompileAndVerify(@"
9593
var
verifier = CompileAndVerify(src, expectedOutput: @"
10595
var
verifier = CompileAndVerify(comp, expectedOutput: "(, )").VerifyDiagnostics(
11347
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput:
11561
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput:
11797
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput:
12601
var
verifierA = CompileAndVerify(compA, verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics();
12641
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();
12693
var
verifier = CompileAndVerify(comp, expectedOutput: "(1, 2, 3, 4) (10, 20, 30, 40)", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics();
12750
var
verifier = CompileAndVerify(comp, verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics();
12782
var
verifier = CompileAndVerify(comp, verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics(
12837
var
verifier = CompileAndVerify(comp).VerifyDiagnostics();
12909
var
verifier = CompileAndVerify(comp, expectedOutput: "(2, 0)").VerifyDiagnostics(
12952
var
verifier = CompileAndVerify(comp, expectedOutput: "(2, 100) RAN (0, 0)").VerifyDiagnostics(
13010
var
verifier = CompileAndVerify(comp, expectedOutput: "RAN", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics();
13065
var
verifier = CompileAndVerify(comp, expectedOutput: "1 RAN 2", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics();
13187
var
verifier = CompileAndVerify(comp, expectedOutput: "(1, 2, 42) RAN (10, 20, 42)", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics();
13227
var
verifier = CompileAndVerify(comp, expectedOutput: "(1, 2, 42) (10, 20, 42)", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics();
13504
var
verifier = CompileAndVerify(comp, expectedOutput: "(1, 2, 3, 4, 100, 200)", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics();
14102
var
verifier = CompileAndVerify(source, expectedOutput: "12");
14160
var
verifier = CompileAndVerify(source, expectedOutput: "1");
14197
var
verifier = CompileAndVerify(source, expectedOutput: "123");
14258
var
verifier = CompileAndVerify(source, expectedOutput: "32");
14378
var
verifier = CompileAndVerify(source, expectedOutput: "02");
14592
var
verifier = CompileAndVerify(source, expectedOutput: "1");
14670
var
verifier = CompileAndVerify(source, expectedOutput: "0101");
14719
var
verifier = CompileAndVerify(source, expectedOutput: "01201");
14768
var
verifier = CompileAndVerify(source, expectedOutput: "0101");
14852
var
verifier = CompileAndVerify(source, expectedOutput: "0123456");
15074
var
verifier = CompileAndVerify(source, expectedOutput: "12");
15109
var
verifier = CompileAndVerify(source, expectedOutput: "12");
15141
var
verifier = CompileAndVerify(source, expectedOutput: "12");
15244
var
verifier = CompileAndVerify(source, expectedOutput: "12");
15284
var
verifier = CompileAndVerify(source, expectedOutput: "123");
15361
var
verifier = CompileAndVerify(source, expectedOutput: "1");
15440
var
verifier = CompileAndVerify(source, expectedOutput: "12");
15476
var
verifier = CompileAndVerify(source, expectedOutput: "12");
15621
var
verifier = CompileAndVerify(source, expectedOutput: "1");
15655
var
verifier = CompileAndVerify(source, expectedOutput: "2");
19023
var
verifier = CompileAndVerify(comp, expectedOutput: modifiers == "abstract " ? null :
19096
var
verifier = CompileAndVerify(comp, expectedOutput: modifiers == "abstract " ? null :
20330
var
verifier = CompileAndVerify(source, expectedOutput:
20435
var
verifier = CompileAndVerify(source, expectedOutput:
20863
var
verifier = CompileAndVerify(src2,
21033
var
verifier = CompileAndVerify(RuntimeUtilities.IsCoreClrRuntime ? src2 : new[] { src2, IsExternalInitTypeDefinition },
21123
var
verifier = CompileAndVerify(src, expectedOutput: @"
21370
var
verifier = CompileAndVerify(src, expectedOutput: @"
22058
var
verifier = CompileAndVerify(src, expectedOutput: @"
22127
var
verifier = CompileAndVerify(src, expectedOutput: @"1").VerifyDiagnostics();
22545
var
verifier = CompileAndVerify(comp, expectedOutput:
22614
var
verifier = CompileAndVerify(source, expectedOutput:
22705
var
verifier = CompileAndVerify(comp, expectedOutput:
22818
var
verifier = CompileAndVerify(comp, expectedOutput:
22931
var
verifier = CompileAndVerify(comp, expectedOutput:
23031
var
verifier = CompileAndVerify(comp, expectedOutput:
23218
var
verifier = CompileAndVerify(source, expectedOutput:
23386
var
verifier = CompileAndVerify(comp, expectedOutput:
23843
var
verifier = CompileAndVerify(comp, expectedOutput:
24647
var
verifier = CompileAndVerify(src, expectedOutput: @"2").VerifyDiagnostics();
24751
var
verifier = CompileAndVerify(src, expectedOutput: @"2").VerifyDiagnostics();
24798
var
verifier = CompileAndVerify(src, expectedOutput: @"
24978
var
verifier = CompileAndVerify(comp, expectedOutput: "42", verify: Verification.Skipped /* init-only */);
25015
var
verifier = CompileAndVerify(comp, expectedOutput: "0", verify: Verification.Skipped /* init-only */);
25045
var
verifier = CompileAndVerify(comp, expectedOutput: "42", verify: Verification.Skipped /* init-only */);
25107
var
comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
25167
var
comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
25244
var
comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
25301
var
comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
25376
var
comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
25460
var
comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
25530
var
comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
25598
var
comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, expectedOutput: "Main",
27733
var
verifier = CompileAndVerify(src, expectedOutput: "True");
27786
var
verifier = CompileAndVerify(src, expectedOutput: "True");
28042
var
verifier = CompileAndVerify(comp);
29229
var
verifier = CompileAndVerify(comp, expectedOutput: "42 - 42");
29261
var
verifier = CompileAndVerify(comp, expectedOutput: "43 - 43");
29296
var
verifier = CompileAndVerify(comp, expectedOutput: "42 - 42", verify: Verification.Skipped /* init-only */);
29354
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
29392
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
29426
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
29768
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
29805
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
Semantics\RefEscapingTests.cs (6)
1024
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
3740
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
3790
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
3840
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
3922
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
4026
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 (50)
211
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
285
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
426
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
829
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
936
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1110
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1168
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1284
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1321
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1355
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1400
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1445
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1690
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("explicit ctor"));
1728
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("explicit ctor"));
1765
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("explicit ctor"));
1805
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("explicit ctor"));
1843
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("explicit ctor"));
1988
var
verifier = CompileAndVerify(compB, verify: Verification.Skipped);
2538
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
5990
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
6395
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
6797
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
6922
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
7923
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
7969
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
8126
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
8195
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("2"));
8232
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("2"));
8269
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("2"));
8314
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("2"));
8364
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
8433
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
8504
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
8567
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
8641
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(@"(1, Hello world)"));
9259
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
9648
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(
17701
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
18312
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
19868
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("42"));
20618
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("42"));
20792
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("4242"));
20916
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("4242"));
21247
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("42"));
27797
var
verifier = CompileAndVerify(comp, expectedOutput:
27870
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput:
28074
var
verifier = CompileAndVerify(comp, expectedOutput: "(3, 3)");
28841
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, expectedOutput: "0");
28898
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, expectedOutput: "0");
28972
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, expectedOutput: """
Semantics\RefLocalsAndReturnsTests.cs (2)
2367
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
2435
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)
4557
var
compilationVerifier = CompileAndVerify(compilation1);
6478
var
verifier = CompileAndVerify(text, parseOptions: TestOptions.Regular11);
6990
var
verifier = CompileAndVerify(text, parseOptions: TestOptions.Regular11).
7104
var
verifier = CompileAndVerify(source, new[] { CSharpRef }, parseOptions: TestOptions.Regular11);
7175
var
verifier = CompileAndVerify(source, new[] { CSharpRef }, parseOptions: TestOptions.Regular11);
7799
var
compilationVerifier = CompileAndVerify(compilation1);
12932
var
verifier = CompileAndVerify(text, parseOptions: TestOptions.Regular11);
16035
var
c = CompileAndVerify(text, expectedOutput: "7788", verify: Verification.Fails, options: TestOptions.UnsafeReleaseExe);
20373
var
verifier = CompileAndVerify(source: text, expectedOutput: @"ffffffffffffffffffffffffffffffffffffffffffffffff
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)
5644
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
6064
var
verifier = CompileAndVerify(
6135
var
verifier = CompileAndVerify(
9307
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
9339
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
9355
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
9371
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
9387
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
9464
var
verifier = CompileAndVerify(comp, expectedOutput: "42");
9586
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)
3176
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
9251
var
compilation = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails);
9368
var
compilation = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails);
Semantics\UserDefinedConversionTests.cs (12)
1157
var
verifier = CompileAndVerify(source: source1 + source3 + source5, options: TestOptions.UnsafeReleaseExe, expectedOutput: "");
1284
var
verifier = CompileAndVerify(source, expectedOutput: "23");
1310
var
verifier = CompileAndVerify(source, expectedOutput: "a");
1343
var
verifier = CompileAndVerify(source, expectedOutput: "b");
1369
var
verifier = CompileAndVerify(source, expectedOutput: "1");
1439
var
verifier = CompileAndVerify(source, expectedOutput: "a");
1471
var
verifier = CompileAndVerify(source: source1, expectedOutput: "");
1719
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1772
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1829
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped);
1864
var
verifier = CompileAndVerify(comp, expectedOutput: "0", verify: Verification.Skipped);
1909
var
verifier = CompileAndVerify(comp, expectedOutput: "0", verify: Verification.Skipped);
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)
417
var
verifier = CompileAndVerify(comp, expectedOutput: @"
1650
var
verifier = CompileAndVerify(comp, expectedOutput: @"
1703
var
verifier = CompileAndVerify(comp, expectedOutput: @"
1756
var
verifier = CompileAndVerify(comp, expectedOutput: @"
1818
var
verifier = CompileAndVerify(comp, expectedOutput: @"
1878
var
verifier = CompileAndVerify(comp, expectedOutput: @"
2005
var
verifier = CompileAndVerify(comp, expectedOutput: @"
2038
var
verifier = CompileAndVerify(comp, expectedOutput: "{ 0x63 0x61 0x74 }", verify: Verification.Fails).VerifyDiagnostics();
3331
var
verifier = CompileAndVerify(comp, verify: Verification.Fails).VerifyDiagnostics();
3367
var
verifier = CompileAndVerify(comp, verify: Verification.Fails).VerifyDiagnostics();
3430
var
verifier = CompileAndVerify(comp, expectedOutput: @"ArgumentOutOfRangeException", verify: Verification.Fails).VerifyDiagnostics();
3478
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3520
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3569
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3618
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3668
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3715
var
verifier = CompileAndVerify(comp, expectedOutput: @"
3756
var
verifier = CompileAndVerify(comp, expectedOutput: @"
4045
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 (223)
DocumentationComments\DocumentationCommentCompilerTests.cs (4)
1282
var
verifier = CompileAndVerify(compilation, symbolValidator: module =>
1339
var
verifier = CompileAndVerify(compilation, symbolValidator: module =>
1402
var
verifier = CompileAndVerify(compilation, symbolValidator: module =>
1465
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)
2031
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)
49799
var
verifier = CompileAndVerify(compilation1, expectedOutput: !ExecutionConditionUtil.IsMonoOrCoreClr ? null : @"M1", verify: VerifyOnMonoOrCoreClr);
50661
var
verifier = CompileAndVerify(compilation0, expectedOutput: !ExecutionConditionUtil.IsMonoOrCoreClr ? null : @"M1", verify: VerifyOnMonoOrCoreClr);
50714
var
verifier = CompileAndVerify(compilation0, expectedOutput: !ExecutionConditionUtil.IsMonoOrCoreClr ? null : @"M1", verify: VerifyOnMonoOrCoreClr);
50767
var
verifier = CompileAndVerify(compilation0, expectedOutput: !ExecutionConditionUtil.IsMonoOrCoreClr ? null : @"A", verify: VerifyOnMonoOrCoreClr);
68955
var
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70,
Symbols\ExtendedPartialMethodsTests.cs (20)
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(
1246
var
verifier = CompileAndVerify(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods, expectedOutput: "1");
1506
var
verifier = CompileAndVerify(
1542
var
verifier = CompileAndVerify(
1987
var
verifier = CompileAndVerify(
2014
var
verifier = CompileAndVerify(
2084
var
verifier = CompileAndVerify(
2138
var
verifier = CompileAndVerify(
2203
var
verifier = CompileAndVerify(
2246
var
verifier = CompileAndVerify(
2258
var
verifier = CompileAndVerify(
2287
var
verifier = CompileAndVerify(
2299
var
verifier = CompileAndVerify(
2345
var
verifier = CompileAndVerify(
2394
var
verifier = CompileAndVerify(
2428
var
verifier = CompileAndVerify(source2, references: new[] { reference }, parseOptions: TestOptions.RegularWithExtendedPartialMethods);
2486
var
verifier = CompileAndVerify(
Symbols\ExtensionMethodTests.cs (9)
879
var
compilation = CompileAndVerify(source, verify: Verification.FailsILVerify);
946
var
compilation = CompileAndVerify(source, verify: Verification.FailsILVerify);
2141
var
compilation = CompileAndVerify(source, expectedOutput:
2263
var
compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: "orange, apple");
2302
var
compilation = CompileAndVerify(source, expectedOutput:
2383
var
compilation = CompileAndVerify(source, expectedOutput:
2653
var
compilation = CompileAndVerify(source, expectedOutput:
2752
private
CompilationVerifier
CompileAndVerify(string source, string expectedOutput = null, Action<ModuleSymbol> validator = null,
3303
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)
1140
var
compilation = CompileAndVerify(source, expectedOutput:
1203
var
compilation = CompileAndVerify(source);
1243
var
compilation = CompileAndVerify(source);
1295
var
compilation = CompileAndVerify(source, expectedOutput:
1351
var
compilation = CompileAndVerify(source);
1467
var
compilation = CompileAndVerify(source, expectedOutput:
1586
var
compilation = CompileAndVerify(source, expectedOutput:
1653
var
compilation = CompileAndVerify(source, expectedOutput: "2, 1");
1713
var
compilation = CompileAndVerify(source, expectedOutput: "1, 2");
2464
var
compilation = CompileAndVerify(source, expectedOutput:
2525
var
compilation = CompileAndVerify(source);
4539
var
compilation = CompileAndVerify(source, expectedOutput:
5092
var
compilation = CompileAndVerify(source);
5693
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)
124
var
compilation = CompileAndVerify(source);
2793
var
compilation2 = CompileAndVerify(source2, references: new[] { reference1 }, expectedOutput:
Symbols\Metadata\PE\TypeForwarders.cs (3)
1457
var
verifier1 = CompileAndVerify(comp1);
1499
var
verifier2 = CompileAndVerify(comp2, symbolValidator: metadataValidator, sourceSymbolValidator: metadataValidator);
1766
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\RequiredMembersTests.cs (10)
491
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator);
609
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator);
661
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator);
704
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator);
740
var
verifier = CompileAndVerify(comp, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator);
1404
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator);
3317
var
verifier = CompileAndVerify(comp, symbolValidator: verify, sourceSymbolValidator: verify);
3346
var
verifier = CompileAndVerify(comp, symbolValidator: verify, sourceSymbolValidator: verify);
3375
var
verifier = CompileAndVerify(comp, symbolValidator: verify, sourceSymbolValidator: verify);
3405
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 (27)
209
var
verifier = CompileAndVerify(source, expectedOutput: "1", symbolValidator: symbolValidator);
259
var
verifier = CompileAndVerify(new[] { ("", "file1.cs"), (source, "file2.cs") }, expectedOutput: "1", symbolValidator: symbolValidator);
306
var
verifier = CompileAndVerify(source, expectedOutput: "E2", symbolValidator: symbolValidator);
358
var
verifier = CompileAndVerify(source, expectedOutput: "(<>FE3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855__E)1", symbolValidator: symbolValidator);
434
var
verifier = CompileAndVerify(source, expectedOutput: "(<>FE3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855__E)1", symbolValidator: symbolValidator);
495
var
verifier = CompileAndVerify(SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.RegularPreview, path: "path/to/MyFile.cs", encoding: Encoding.Default), expectedOutput: "1", symbolValidator: symbolValidator);
538
var
verifier = CompileAndVerify(SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.RegularPreview, path: "path/to/My<>File.cs", encoding: Encoding.Default), expectedOutput: "1", symbolValidator: symbolValidator);
569
var
verifier = CompileAndVerify(SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.RegularPreview, path: "path/to/MyGeneratedFile.g.cs", encoding: Encoding.Default), expectedOutput: "1", symbolValidator: symbolValidator);
808
var
verifier = CompileAndVerify(comp, expectedOutput: "1", symbolValidator: symbolValidator);
867
var
verifier = CompileAndVerify(SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.RegularPreview, path: "path/to/My+File.cs", encoding: Encoding.Default), expectedOutput: "1", symbolValidator: validateSymbols);
928
var
verifier = CompileAndVerify(new[] { (source1 + main, "file1.cs"), (source2, "file2.cs") }, expectedOutput: "1");
1065
var
verifier = CompileAndVerify(new[] { (source1, "file1.cs"), (source2, "file2.cs"), (main, "file3.cs") }, expectedOutput: "2");
1131
var
verifier = CompileAndVerify(new[] { (source1, "file1.cs"), (main, "file2.cs") }, expectedOutput: "2");
1193
var
verifier = CompileAndVerify(new[] { (source1, "file1.cs"), (main, "file2.cs") }, expectedOutput: "2");
1646
var
verifier = CompileAndVerify(new[] { (userCode, "file1.cs"), (generatedCode, "file2.cs") }, expectedOutput: "OtherFile.csProgram.cs");
1693
var
verifier = CompileAndVerify(new[] { (userCode, "file1.cs"), (generatedCode, "file2.cs") }, expectedOutput: "OtherFile.csProgram.cs");
1737
var
verifier = CompileAndVerify(new[] { (userCode, "file1.cs"), (generatedCode, "file2.cs") }, expectedOutput: "OtherFile.cs");
2213
var
verifier = CompileAndVerify(new[] { (source1, "file1.cs"), (source2, "file2.cs") }, expectedOutput: "2");
2253
var
verifier = CompileAndVerify(new[] { (source1, "file1.cs"), (source2, "file2.cs") }, expectedOutput: "1");
2634
var
verifier = CompileAndVerify(source, expectedOutput: "1");
2771
var
verifier = CompileAndVerify(new[] { (usings, "file1.cs"), (source, "file2.cs"), (IsExternalInitTypeDefinition, "file3.cs") }, expectedOutput: "1");
2907
var
verifier = CompileAndVerify(source, expectedOutput: "1");
2941
var
verifier = CompileAndVerify(new[] { (source1, "file1.cs"), (source2, "file2.cs") }, expectedOutput: "1");
2989
var
verifier = CompileAndVerify(new[] { (source1, "file1.cs"), (source2, "file2.cs") }, expectedOutput: "2");
3347
var
verifier = CompileAndVerify(source, expectedOutput: "1");
3368
var
verifier = CompileAndVerify(source, expectedOutput: "1");
3389
var
verifier = CompileAndVerify(source, expectedOutput: "1");
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();
13157
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
13242
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
13333
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
14045
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
14547
var
verifier = CompileAndVerify(compilation2, verify: Verification.Skipped).VerifyDiagnostics();
14685
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
15103
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
15375
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
16500
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
16585
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
16789
var
verifier = CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
20816
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
20933
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
21044
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
21179
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
21596
var
verifier = CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
24414
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
24603
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
24914
var
verifier = CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
26942
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
27143
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
27579
var
verifier = CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
29275
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
29391
var
verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics();
30174
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
30353
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
30811
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
31110
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
31166
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
31224
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
31272
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
31315
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
31369
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
31418
var
verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
Symbols\SymbolErrorTests.cs (1)
18361
var
verifier = CompileAndVerify(comp, verify: Verification.Skipped).
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)
608
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)
713
internal
CompilationVerifier
CompileAndVerifyWithMscorlib40(
749
internal
CompilationVerifier
CompileAndVerifyWithMscorlib46(
785
internal
CompilationVerifier
CompileAndVerifyExperimental(
827
internal
CompilationVerifier
CompileAndVerifyWithWinRt(
863
internal
CompilationVerifier
CompileAndVerifyWithCSharp(
899
internal
CompilationVerifier
CompileAndVerify(
936
internal
CompilationVerifier
CompileAndVerify(
979
internal
CompilationVerifier
CompileAndVerifyFieldMarshal(CSharpTestSource source, Dictionary<string, byte[]> expectedBlobs, bool isField = true) =>
989
internal
CompilationVerifier
CompileAndVerifyFieldMarshal(CSharpTestSource source, Func<string, PEAssembly, byte[]> getExpectedBlob, bool isField = true) =>
1415
public
CompilationVerifier
CompileWithCustomILSource(string cSharpSource, string ilSource, Action<CSharpCompilation> compilationVerifier = null, bool importInternals = true, string expectedOutput = null, TargetFramework targetFramework = TargetFramework.Standard)
1452
internal
CompilationVerifier
CompileAndVerifyException<T>(string source, string expectedMessage = null, bool allowUnsafe = false, Verification verify = default) where T : Exception
1458
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)
180
var
verifier = CompileAndVerifyWithWinRt(source, options: TestOptions.ReleaseWinMD);
216
var
verifier = CompileAndVerifyWithWinRt(source, options: TestOptions.ReleaseWinMD);
280
var
verifier = CompileAndVerifyWithWinRt(source, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseWinMD);
373
var
verifier = CompileAndVerifyWithWinRt(source, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseWinMD);
462
var
verifier = CompileAndVerifyWithWinRt(source, options: TestOptions.ReleaseWinMD);
CodeGen\WinRTCollectionTests.cs (21)
90
var
verifier = this.CompileAndVerifyOnWin8Only(source, expectedOutput: expectedOutput);
188
var
verifier = this.CompileAndVerifyOnWin8Only(
253
var
verifier = this.CompileAndVerifyOnWin8Only(
436
var
verifier = CompileAndVerifyWithWinRt(source,
1833
var
verifier = CompileAndVerifyWithWinRt(source,
3194
var
verifier = CompileAndVerifyWithWinRt(source,
4437
var
verifier = CompileAndVerifyWithWinRt(source,
4803
var
verifier = CompileAndVerifyWithWinRt(source,
4989
var
verifier = CompileAndVerifyWithWinRt(source,
5186
var
verifier = CompileAndVerifyWithWinRt(source,
5407
var
verifier = CompileAndVerifyWithWinRt(source,
5544
var
verifier = CompileAndVerifyWithWinRt(source,
5814
var
verifier = CompileAndVerifyWithWinRt(source,
6041
var
verifier = CompileAndVerifyWithWinRt(source,
6240
var
verifier = CompileAndVerifyWithWinRt(source,
6599
var
verifier = CompileAndVerifyWithWinRt(source,
6759
var
verifier = CompileAndVerifyWithWinRt(
7031
var
verifier = CompileAndVerifyWithWinRt(
7158
var
verifier = CompileAndVerifyWithWinRt(
7279
var
verifier = CompileAndVerifyWithWinRt(
7358
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)
70
internal
CompilationVerifier
CompileAndVerifyCommon(
97
CompilationVerifier
result = null;
99
var
verifier = Emit(compilation,
129
internal
CompilationVerifier
CompileAndVerifyFieldMarshalCommon(Compilation compilation, Dictionary<string, byte[]> expectedBlobs, bool isField = true)
141
internal
CompilationVerifier
CompileAndVerifyFieldMarshalCommon(Compilation compilation, Func<string, PEAssembly, byte[]> getExpectedBlob, bool isField = true)
146
internal static void RunValidators(
CompilationVerifier
verifier, Action<PEAssembly> assemblyValidator, Action<IModuleSymbol> symbolValidator)
171
internal
CompilationVerifier
Emit(
185
var
verifier = new CompilationVerifier(compilation, VisualizeRealIL, dependencies);
CompilationVerifier.cs (7)
469
public
CompilationVerifier
VerifyIL(
483
public
CompilationVerifier
VerifyIL(
495
public
CompilationVerifier
VerifyMethodBody(
531
public
CompilationVerifier
VerifyMissing(
553
private
CompilationVerifier
VerifyILImpl(
641
public
CompilationVerifier
VerifyMemberInIL(string methodName, bool expected)
647
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)
6282
Dim verifier As
CompilationVerifier
= CompileAndVerify(source,
6336
Private Shared Sub AssertNoErrorsOrWarnings(verifier As
CompilationVerifier
)
Emit\CompilationEmitTests.vb (2)
889
Dim reference =
CompilationVerifier
.LoadTestEmittedExecutableForSymbolValidation(image, OutputKind.DynamicallyLinkedLibrary)
964
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)
4200
Private Shared Sub AssertTheseDiagnostics(verifier As
CompilationVerifier
, diagnostics As XElement)
ExpressionTrees\CodeGenExprLambda.vb (1)
1819
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 (9)
Reader\PdbTestUtilities.cs (1)
26
public static ISymUnmanagedReader3 CreateSymReader(this
CompilationVerifier
verifier)
Reader\PdbValidation.cs (8)
36
public static
CompilationVerifier
VerifyPdb(
37
this
CompilationVerifier
verifier,
50
public static
CompilationVerifier
VerifyPdb(
51
this
CompilationVerifier
verifier,
64
public static
CompilationVerifier
VerifyPdb(
65
this
CompilationVerifier
verifier,
79
public static
CompilationVerifier
VerifyPdb(
80
this
CompilationVerifier
verifier,