1 instantiation of CompilationVerifier
Microsoft.CodeAnalysis.Test.Utilities (1)
CommonTestBase.cs (1)
189var verifier = new CompilationVerifier(compilation, VisualizeRealIL, dependencies);
5155 references to CompilationVerifier
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2327)
BreakingChanges.cs (5)
1134var verifier = CompileAndVerify(source, expectedOutput: " ++ EX 1"); 1411var cs1Verifier = CompileAndVerify(cs1Compilation); 1418var cs2Verifier = CompileAndVerify(cs2Compilation); 1425var cs3Verifier = CompileAndVerify(cs3Compilation); 1630var verifier = CompileAndVerify(comp, expectedOutput: "3");
CodeGen\CodeGenAsyncEHTests.cs (2)
26private CompilationVerifier CompileAndVerify(string source, string expectedOutput = null, IEnumerable<MetadataReference> references = null, CSharpCompilationOptions options = null) 940var v = CompileAndVerify(source, s_asyncRefs, targetFramework: TargetFramework.Empty, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: expected, symbolValidator: module =>
CodeGen\CodeGenAsyncIteratorTests.cs (24)
182var v = CompileAndVerify(comp, expectedOutput: "hello world"); 361var v = CompileAndVerify(comp, expectedOutput: "hello world!"); 719var verifier = CompileAndVerify(comp, expectedOutput: "123", verify: Verification.FailsILVerify); 878var verifier = CompileAndVerify(comp, expectedOutput: "123", verify: Verification.FailsILVerify); 2650var verifier = CompileAndVerify(comp, expectedOutput: "0 1 2 3 4 5"); 3207var verifier = CompileAndVerify(comp); 3475var verifier = CompileAndVerify(comp); 3744var verifier = CompileAndVerify(comp); 4008var verifier = CompileAndVerify(comp); 7143var verifier = CompileAndVerify(comp, expectedOutput: "42 43 Cancelled"); 7276var verifier = CompileAndVerify(comp, expectedOutput: "42 43 Cancelled"); 8233var v = CompileAndVerify(comp, expectedOutput: "BEFORE INSIDE INSIDE2 AFTER"); 8282var v = CompileAndVerify(comp, expectedOutput: "BEFORE INSIDE INSIDE2 AFTER"); 8331var v = CompileAndVerify(comp, expectedOutput: "BEFORE INSIDE INSIDE2 AFTER"); 8855var verifier = CompileAndVerify(comp, 9053var verifier = CompileAndVerify(comp, 9094var verifier = CompileAndVerify(comp, 9139var verifier = CompileAndVerify(comp, 9180var verifier = CompileAndVerify(comp, 9376var verifier = CompileAndVerify(comp, 9422var verifier = CompileAndVerify(comp, 9474var verifier = CompileAndVerify(src, expectedOutput: ExpectedOutput("value value True"), verify: Verification.Skipped, targetFramework: TargetFramework.Net80).VerifyDiagnostics(); 9913var verifier = CompileAndVerify(src, expectedOutput: ExpectedOutput("4242"), references: [libComp.EmitToImageReference()], 10294var verifier = CompileAndVerify(src, expectedOutput: ExpectedOutput("False 0 False 1 True"),
CodeGen\CodeGenAsyncLocalsTests.cs (10)
27private CompilationVerifier CompileAndVerify(string source, string expectedOutput = null, IEnumerable<MetadataReference> references = null, CSharpCompilationOptions options = null, Verification verify = default) 33private string GetFieldLoadsAndStores(CompilationVerifier c, string qualifiedMethodName) 306var vd = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 512var verifier = CompileAndVerify(source, expectedOutput: expected); 642var verifier = CompileAndVerify(source, expectedOutput: expected); 992var c = CompileAndVerify(source, expectedOutput: null, options: TestOptions.ReleaseDll); 1150var c = CompileAndVerify(source, expectedOutput: null, options: TestOptions.ReleaseDll); 1301var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"1", verify: Verification.Fails); 1558var verifier = CompileAndVerify(text, options: TestOptions.ReleaseExe, expectedOutput: @"2"); 1883var verifier = CompileAndVerify(text, options: TestOptions.ReleaseExe, expectedOutput: @"2");
CodeGen\CodeGenAsyncMainTests.cs (8)
450var verifier = CompileAndVerify(c, expectedOutput: "hello async main", expectedReturnCode: 0); 490var verifier = CompileAndVerify(c, expectedOutput: "hello async main", expectedReturnCode: 10); 509var verifier = CompileAndVerify(c, expectedOutput: "hello async main", expectedReturnCode: 10); 527var verifier = CompileAndVerify(c, expectedOutput: "hello async main", expectedReturnCode: 0); 567var verifier = CompileAndVerify(c, expectedOutput: "hello async main", expectedReturnCode: 10, args: new string[] { "async main" }); 585var verifier = CompileAndVerify(c, expectedOutput: "hello async main", expectedReturnCode: 0, args: new string[] { "async main" }); 1567var verifier = CompileAndVerify(comp, expectedOutput: ""); 1809var verifier = CompileAndVerify(comp, expectedOutput: "");
CodeGen\CodeGenAsyncMethodBuilderOverrideTests.cs (5)
130var verifier = CompileAndVerify(compilation, expectedOutput: "M F G 3"); 536var verifier = CompileAndVerify(compilation, expectedOutput: "M F G 3"); 843var verifier = CompileAndVerify(compilation, expectedOutput: "M F 3"); 942var verifier = CompileAndVerify(compilation, expectedOutput: "Overload1 Lambda1 Overload2 Lambda2"); 2136var verifier = CompileAndVerify(comp, expectedOutput: "42");
CodeGen\CodeGenAsyncSpillTests.cs (12)
23private CompilationVerifier CompileAndVerify(string source, string expectedOutput = null, IEnumerable<MetadataReference> references = null, CSharpCompilationOptions options = null) 596var v = CompileAndVerify(source, options: TestOptions.DebugDll); 759var v = CompileAndVerify(source, options: TestOptions.ReleaseDll); 3278var verifier = CompileAndVerify(source, expectedOutput: "System.Int32", 3401var v = CompileAndVerify(source, expected); 3437var v = CompileAndVerify(source, "42"); 3578var v = CompileAndVerify(source, options: TestOptions.DebugExe); 3710var v = CompileAndVerify( 3752var v = CompileAndVerify( 6441var verifier = CompileAndVerify(source, expectedOutput: "1"); 6477var verifier = CompileAndVerify(source, expectedOutput: "1"); 6508var verifier = CompileAndVerify(source, expectedOutput: "1");
CodeGen\CodeGenAsyncTests.cs (10)
36private CompilationVerifier CompileAndVerify(string source, string expectedOutput, IEnumerable<MetadataReference> references = null, CSharpCompilationOptions options = null, Verification verify = default) 2195var c = CompileAndVerify(source, expectedOutput: expected); 2340var c = CompileAndVerify(source, options: TestOptions.ReleaseDebugExe, expectedOutput: expected); 2488var c = CompileAndVerify(source, expectedOutput: expected, options: TestOptions.DebugExe); 2643var c = CompileAndVerify(source, expectedOutput: expected); 3451var v = CompileAndVerify(source, null, options: TestOptions.ReleaseDll); 3914var v = CompileAndVerify(source, null, options: TestOptions.ReleaseDll); 4236var v = CompileAndVerify(source, null, options: TestOptions.DebugDll); 5935var verifier = CompileAndVerify(comp); 6135var verifier = CompileAndVerify(src, expectedOutput: ExpectedOutput("4242"), references: [libComp.EmitToImageReference()],
CodeGen\CodeGenAwaitForeachTests.cs (4)
3357var verifier = CompileAndVerify(comp, 3784var 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)"); 5126var verifier = CompileAndVerify(comp, expectedOutput: "NextAsync(0) Current(1) Got NextAsync(1) Current(2) Got NextAsync(2) Current(3) Got NextAsync(3)"); 5352var verifier = CompileAndVerify(comp, expectedOutput: "NextAsync(0) Current(1) Got NextAsync(1) Current(2) Got NextAsync(2) Current(3) Got NextAsync(3)");
CodeGen\CodeGenAwaitUsingTests.cs (6)
1121var verifier = CompileAndVerify(comp, expectedOutput: "body DisposeAsync"); 1295var verifier = CompileAndVerify(comp, expectedOutput: "body DisposeAsync"); 1470var verifier = CompileAndVerify(comp, expectedOutput: "body DisposeAsync"); 1715var verifier = CompileAndVerify(comp, expectedOutput: "body DisposeAsync"); 1884var verifier = CompileAndVerify(comp, expectedOutput: "body DisposeAsync"); 2699var verifier = CompileAndVerify(comp, expectedOutput: "using dispose_start dispose_end return");
CodeGen\CodeGenCheckedTests.cs (38)
46var verifier = CompileAndVerify(source); 120var verifier = CompileAndVerify(source); 218var verifier = CompileAndVerify(source); 391var verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 611var verifier = CompileAndVerify(source); 680var verifier = CompileAndVerify(source); 766var verifier = CompileAndVerify(source); 847var verifier = CompileAndVerify(source); 904var verifier = CompileAndVerify(source); 991var verifier = CompileAndVerify(source); 1045var verifier = CompileAndVerify(source); 1201var verifier = CompileAndVerify(source); 1297var verifier = CompileAndVerify(source); 1338var verifier = CompileAndVerify(@" 1367var verifier = CompileAndVerify(@" 1395var verifier = CompileAndVerify(@" 1420var verifier = CompileAndVerify(@" 1447var verifier = CompileAndVerify(@" 1473var verifier = CompileAndVerify(@" 1499var verifier = CompileAndVerify(@" 1526var verifier = CompileAndVerify(@" 1554var verifier = CompileAndVerify(@" 1582var verifier = CompileAndVerify(@" 1610var verifier = CompileAndVerify(@" 1639var verifier = CompileAndVerify(@" 1667var verifier = CompileAndVerify(@" 1695var verifier = CompileAndVerify(@" 1723var verifier = CompileAndVerify(@" 1751var verifier = CompileAndVerify(@" 1775var verifier = CompileAndVerify(@" 1798var verifier = CompileAndVerify(@" 1821var verifier = CompileAndVerify(@" 1846var verifier = CompileAndVerify(@" 2026var verifier = CompileAndVerify(source); 2340var verifier = CompileAndVerify(source); 2701var verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 2748var verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 2850var verifier = CompileAndVerify(comp, expectedOutput: "RAN1 RAN2 RAN3");
CodeGen\CodeGenClosureLambdaTests.cs (31)
22var verifier = CompileAndVerify(@" 131var compilation = CompileAndVerify(source, expectedOutput: @"12"); 188var compilation = CompileAndVerify(source, expectedOutput: @"12 256var compilation = CompileAndVerify(source, expectedOutput: @"12"); 801var verifier = CompileAndVerify(source, expectedOutput: "pass"); 866var verifier = CompileAndVerify(source, expectedOutput: "pass"); 946var verifier = CompileAndVerify(source, expectedOutput: "pass"); 968var verifier = CompileAndVerify(source, expectedOutput: "pass"); 1043var verifier = CompileAndVerify(source, expectedOutput: "pass"); 1115var verifier = CompileAndVerify(source, expectedOutput: "pass_xy"); 1219var verifier = CompileAndVerify(source, expectedOutput: "pass_xy"); 3248var verifier = CompileAndVerify(source, expectedOutput: "42", 4409var verifier = CompileAndVerify( 4432var compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"True 4454var compilation = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"True 4480var verifier = CompileAndVerify( 4538var verifier = CompileAndVerify( 4613var verifier = CompileAndVerify( 4640var verifier = CompileAndVerify( 4682var compilation = CompileAndVerify(source, expectedOutput: "0"); 4716var verifier = CompileAndVerify(comp, expectedSignatures: new[] 4808var verifier = CompileAndVerify(comp); 4937var verifier = CompileAndVerify(comp); 5065var compilation = CompileAndVerify(source, expectedOutput: "success"); 5122var compilation = CompileAndVerify(source); 5153var compilation = CompileAndVerify(source); 5358var compilation = CompileAndVerify(source, expectedOutput: @"True"); 5584var compilation = CompileAndVerify(source, expectedOutput: @"0-System.String;"); 5642var compilation = CompileAndVerify(source, expectedOutput: @"0-System.String;"); 5724var compilation = CompileAndVerify(source, expectedOutput: @"0-System.String;"); 5781var compilation = CompileAndVerify(source, expectedOutput: @"0-System.String;");
CodeGen\CodeGenConditionalOperatorTests.cs (35)
41var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 171var verifier = CompileAndVerify(source, 373var verifier = CompileAndVerify(source, 456var verifier = CompileAndVerify(source, 569var verifier = CompileAndVerify(comp, expectedOutput: """ 624var verify = CompileAndVerify(src, 748var verify = CompileAndVerify(src, 874var verify = CompileAndVerify(src, 1003var verify = CompileAndVerify(src, 1152var verify = CompileAndVerify(src, 1236var verify = CompileAndVerify(src, 1326var verify = CompileAndVerify(src, 1432var verify = CompileAndVerify(src, 1519var comp = CompileAndVerify(source, expectedOutput: "1"); 1548var comp = CompileAndVerify(source, expectedOutput: @" 1581var comp = CompileAndVerify(source); 1621var comp = CompileAndVerify(source); 1687var comp = CompileAndVerify(source, parseOptions: TestOptions.Regular10); 1733var comp = CompileAndVerify(source, expectedOutput: "00"); 1782var comp = CompileAndVerify(source, expectedOutput: @" 1842var comp = CompileAndVerify(source); 1888var comp = CompileAndVerify(source); 1930var comp = CompileAndVerify(source); 2008var comp = CompileAndVerify(source); 2777var verify = CompileAndVerify(src, 3058var comp = CompileAndVerify(@" 3289var verify = CompileAndVerify(source, expectedOutput: expectedOutput); 3386var verify = CompileAndVerify(source, expectedOutput: @"0 3465var verify = CompileAndVerify(source, expectedOutput: @"0 3540var verify = CompileAndVerify(source, expectedOutput: @"0 3613var verify = CompileAndVerify(source, expectedOutput: @"0 3680var verifier = CompileAndVerify(source, expectedOutput: @"abc 3742var verifier = CompileAndVerify(source, expectedOutput: @"abc 3800var verifier = CompileAndVerify(source, expectedOutput: "11True").VerifyDiagnostics(); 3861var verifier = CompileAndVerify(source, expectedOutput: "11True").VerifyDiagnostics();
CodeGen\CodeGenConversionTests.cs (20)
81var compilationVerifier = CompileAndVerify(source, expectedOutput: @""); 116var compilationVerifier = CompileAndVerify(source, expectedOutput: @"Goo<T>(J<T> x) 174var compilation = CompileAndVerify(text); 281var verifier1 = CompileAndVerify(source1 + source2, expectedOutput: expectedOutput); 379var verifier1 = CompileAndVerify(source1 + source2, expectedOutput: expectedOutput); 404var compilation = CompileAndVerify(text); 450var compilation = CompileAndVerify(text); 498var compilation = CompileAndVerify(text); 542var compilation = CompileAndVerify(text, expectedOutput: "Value is: 1"); 601var compilation = CompileAndVerify(text, expectedOutput: "Value is: 1"); 649var compilation = CompileAndVerify(text, expectedOutput: "Value is: 1"); 711var compilation = CompileAndVerify(source, expectedOutput: "TrueTrue"); 777var compilation = CompileAndVerify(source); 869var compilation = CompileAndVerify(source); 904var compilation = CompileAndVerify(source); 939var compilation = CompileAndVerify(source); 975var compilation = CompileAndVerify(source); 1012var compilation = CompileAndVerify(source); 1118var comp = CompileAndVerify(source); 1159var comp = CompileAndVerify(source);
CodeGen\CodeGenDeconstructTests.cs (133)
108var comp = CompileAndVerifyWithMscorlib40(source, expectedOutput: "1 hello", references: s_valueTupleRefs, sourceSymbolValidator: validator); 196var comp = CompileAndVerify(source, expectedOutput: "1 hello"); 250var comp = CompileAndVerify(source, expectedOutput: "1 hello"); 390var comp = CompileAndVerify(source, expectedOutput: expected); 436var comp = CompileAndVerify(source, expectedOutput: expected); 481var comp = CompileAndVerify(source, expectedOutput: expected); 527var comp = CompileAndVerify(source, expectedOutput: expected); 587var comp = CompileAndVerify(source, expectedOutput: expected); 648var comp = CompileAndVerify(source, expectedOutput: expected); 681var comp = CompileAndVerify(source, expectedOutput: "1 hello world"); 709var comp = CompileAndVerify(source, expectedOutput: "1 hello", references: new[] { CSharpRef }); 748var comp = CompileAndVerify(source, expectedOutput: "initial modified 1 hello", references: new[] { CSharpRef }); 781var comp = CompileAndVerify(source, expectedOutput: "2 hello"); 836var comp = CompileAndVerify(source, expectedOutput: "1 hello", references: new[] { CSharpRef }); 868var comp = CompileAndVerify(source, expectedOutput: "1 hello world"); 899var comp = CompileAndVerify(source, expectedOutput: "2 3"); 939var comp = CompileAndVerify(source, expectedOutput: expected); 981var comp = CompileAndVerify(source, expectedOutput: expected); 1029var comp = CompileAndVerify(source, expectedOutput: expected); 1085var comp = CompileAndVerify(source, expectedOutput: expected); 1106var comp = CompileAndVerify(source, expectedOutput: "1 hello"); 1156var comp = CompileAndVerify(source, expectedOutput: "1 hello"); 1177var comp = CompileAndVerify(source, expectedOutput: "4 2"); 1215var comp = CompileAndVerify(source, expectedOutput: "9 10"); 1267var comp = CompileAndVerify(source, expectedOutput: "4 2"); 1288var comp = CompileAndVerify(source, expectedOutput: "hello"); 1324var comp = CompileAndVerify(source); 1372var comp = CompileAndVerify(source, sourceSymbolValidator: validator); 1429var comp = CompileAndVerify(source, 1684var comp = CompileAndVerify(source, 1896var comp = CompileAndVerify(source, expectedOutput: "(1, 2)"); 1931var comp = CompileAndVerify(source, expectedOutput: expected); 1959var comp = CompileAndVerify(source, expectedOutput: expected); 2026var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 2084var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 2175var comp = CompileAndVerify(source, expectedOutput: "4 2"); 2210var comp = CompileAndVerify(source, expectedOutput: "(1, 1) 2"); 2234var comp = CompileAndVerify(source, expectedOutput: "(1, 1) 2", parseOptions: TestOptions.Regular.WithRefsFeature()); 2260var comp = CompileAndVerify(source, expectedOutput: "1 2", parseOptions: TestOptions.Regular.WithRefsFeature()); 2282var comp = CompileAndVerify(source, expectedOutput: "1 hello world", parseOptions: TestOptions.Regular.WithRefsFeature()); 2374var comp = CompileAndVerify(source, expectedOutput: "override", parseOptions: TestOptions.Regular.WithRefsFeature()); 2402var comp = CompileAndVerify(source, expectedOutput: expected, parseOptions: TestOptions.Regular.WithRefsFeature()); 2432var comp = CompileAndVerify(source, expectedOutput: "1 hello"); 2495var comp = CompileAndVerify(source, expectedOutput: "1 hello"); 2560var comp = CompileAndVerify(source, expectedOutput: "Deconstructed"); 2592var comp = CompileAndVerify(source, expectedOutput: "Deconstructed"); 2661var comp = CompileAndVerify(source, expectedOutput: "2 hello"); 2694var comp = CompileAndVerify(source, expectedOutput: "1 a b", sourceSymbolValidator: validator); 2713var comp = CompileAndVerify(source, expectedOutput: "nothing"); 2749var comp = CompileAndVerify(source, expectedOutput: "1 a b"); 2776var comp = CompileAndVerify(source, expectedOutput: "1 2 3"); 2804var comp = CompileAndVerify(source, expectedOutput: "1 a b"); 2863var comp = CompileAndVerify(source, expectedOutput: expected); 2923var comp = CompileAndVerify(source, expectedOutput: expected); 2971var comp = CompileAndVerify(source, expectedOutput: expected); 3000var comp = CompileAndVerify(source, expectedOutput: "1 hello"); 3034var comp = CompileAndVerify(source, expectedOutput: "1 hello"); 3068var comp = CompileAndVerify(source, expectedOutput: "2 hello"); 3087var comp = CompileAndVerify(source, expectedOutput: "1 hello"); 3153var comp = CompileAndVerify(source, expectedOutput: "1 2 hello", sourceSymbolValidator: validator); 3215var comp = CompileAndVerify(source, expectedOutput: "1 2 3 hello 5", 3254var comp = CompileAndVerify(source, expectedOutput: "1 2 3", 3305var comp = CompileAndVerify(source, expectedOutput: "1 2 hello", sourceSymbolValidator: validator); 3342var comp = CompileAndVerify(source, sourceSymbolValidator: validator, 3381var comp = CompileAndVerify(source, expectedOutput: "1 2 hello", sourceSymbolValidator: validator); 3401var comp = CompileAndVerify(source, expectedOutput: "var"); 3418var comp = CompileAndVerify(source, expectedOutput: " 1 2"); 3454var comp = CompileAndVerify(source, expectedOutput: " 2 3", sourceSymbolValidator: validator); 3496var comp = CompileAndVerify(source, expectedOutput: " (1, 2)", sourceSymbolValidator: validator); 3514var comp = CompileAndVerify(source, expectedOutput: " 2 3 4"); 3557var comp = CompileAndVerify(source, expectedOutput: expected, parseOptions: TestOptions.Regular, 3709var comp = CompileAndVerify(source, expectedOutput: "var 2", sourceSymbolValidator: validator); 3762var comp = CompileAndVerify(source, expectedOutput: "1 2 3 4", sourceSymbolValidator: validator); 3815var comp = CompileAndVerify(source, expectedOutput: "var 2", sourceSymbolValidator: validator); 3856var comp = CompileAndVerify(source, expectedOutput: "1 2", sourceSymbolValidator: validator); 3897var comp = CompileAndVerify(source, expectedOutput: @"1 3951var comp = CompileAndVerify(source, expectedOutput: "1 var", sourceSymbolValidator: validator); 3997var comp = CompileAndVerify(source, expectedOutput: "1 2", sourceSymbolValidator: validator); 4060var comp = CompileAndVerify(source, expectedOutput: "1 2", sourceSymbolValidator: validator); 4063var comp7_1 = CompileAndVerify(source, expectedOutput: "1 2", 4149var comp = CompileAndVerify(source, expectedOutput: "1 2 - 3 4 -", sourceSymbolValidator: validator); 4232var comp = CompileAndVerify(source, expectedOutput: "1 2 - 3 4 - 5 6 - 7 8 -", sourceSymbolValidator: validator); 4343var comp = CompileAndVerify(source, expectedOutput: "1 1 - 2 2 - 3 3 - ", sourceSymbolValidator: validator); 4464var comp = CompileAndVerify(source, expectedOutput: "1 2 3 4 5 - 6 7 8 9 10 -", sourceSymbolValidator: validator); 4485var comp = CompileAndVerify(source, expectedOutput: "1 2 3 4 5 - 6 7 8 9 10 -"); 4506var comp = CompileAndVerify(source, expectedOutput: "1 2 3 4 5 - 6 7 8 9 10 -"); 4535var comp = CompileAndVerify(source, expectedOutput: "1 1 1 - 2 2 2 - "); 4562var comp = CompileAndVerify(source, expectedOutput: "42 hello"); 4618var comp = CompileAndVerify(source, expectedOutput: expected, sourceSymbolValidator: validator); 4702var comp = CompileAndVerify(source, expectedOutput: expected); 4731var comp = CompileAndVerify(source, expectedOutput: expected); 4749var comp = CompileAndVerify(source, expectedOutput: "1 2 - 3 4 -"); 4774var comp = CompileAndVerify(source, expectedOutput: "0 10 "); 4797var comp = CompileAndVerify(source, expectedOutput: "hello world", references: new[] { CSharpRef }); 4820var comp = CompileAndVerify(source, expectedOutput: "3 4", references: new[] { CSharpRef }); 4849var comp = CompileAndVerify(source, expectedOutput: "hello world", references: new[] { CSharpRef }); 4872var comp = CompileAndVerify(source, expectedOutput: "hello world", references: new[] { CSharpRef }); 4901var comp = CompileAndVerify(source, expectedOutput: "hello world", references: new[] { CSharpRef }); 4925var comp = CompileAndVerify(source, expectedOutput: "3 4", references: new[] { CSharpRef }); 4947var comp = CompileAndVerify(source, expectedOutput: "1 2 3"); 5049var verifier = CompileAndVerify(comp, expectedOutput: "hello 42", sourceSymbolValidator: validator); 5140var verifier = CompileAndVerify(comp, expectedOutput: "hello 42 43"); 5154var verifier = CompileAndVerify(comp, expectedOutput: "hello 42"); 5200var verifier = CompileAndVerify(comp, expectedOutput: "hello 42 43", sourceSymbolValidator: validator); 5215var verifier = CompileAndVerify(comp, expectedOutput: "1 2 3"); 5324var verifier = CompileAndVerify(comp, expectedOutput: "hello 42 world", sourceSymbolValidator: validator); 5360var verifier = CompileAndVerify(comp, expectedOutput: "hello 42 world", sourceSymbolValidator: validator); 6449var comp = CompileAndVerify(source, expectedOutput: @"2", sourceSymbolValidator: validator); 6527var comp = CompileAndVerify(source, expectedOutput: "ctor"); 7618var comp = CompileAndVerify(source, expectedOutput: "5 (Goo, 34983490)"); 7640var comp = CompileAndVerify(source, expectedOutput: "42", verify: Verification.Passes); 7783var comp = CompileAndVerify(source, expectedOutput: 7817var comp = CompileAndVerify(source, expectedOutput: 7862var comp2 = CompileAndVerify(source2, targetFramework: TargetFramework.Empty, expectedOutput: 7921var comp2 = CompileAndVerify(source2, targetFramework: TargetFramework.Empty, expectedOutput: 8007var comp = CompileAndVerify(source, expectedOutput: "1 hello"); 8059var comp = CompileAndVerify(source, expectedOutput: "1 hello"); 8109var comp = CompileAndVerify(source, expectedOutput: "1 hello 2"); 8162var comp = CompileAndVerify(source, expectedOutput: "1 2"); 8209var verifier = CompileAndVerify(comp, expectedOutput: "3"); 8710var verifier = CompileAndVerify(comp); 8732var verifier = CompileAndVerify(comp); 9096var comp = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: "102030405060"); 9154var comp = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: "102030405060"); 9212var comp = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: "102030405060"); 9298var comp = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expected); 9389var comp = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 9406var comp = CompileAndVerify(source); 9525var comp = CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: @"1 hello 9653var comp = CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: @"1 hello True 9817var comp = CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: @"1 hello 9902var comp = CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: @"1 hello 10067var comp = CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: @"1 hello True
CodeGen\CodeGenDisplayClassOptimisationTests.cs (52)
16private static void VerifyTypeIL(CompilationVerifier compilation, string typeName, string expected) 45var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"3", options: TestOptions.ReleaseExe); 129var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"3", options: TestOptions.DebugExe); 260var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"three 435var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 587var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 733var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"three 952var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"one 1132var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"one 1367var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 1733var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "one"); 1842var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "one"); 1994var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "one"); 2159var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"Program+Disposable 2313var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"Program+Disposable 2516var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"Program+Disposable 2849var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"one 3052var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"two 3255var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"one"); 3451var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"one"); 3588var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"one"); 3732var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"three 3943var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 4033var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @""); 4121var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 4225var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 4328var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 4424var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 4524var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 4617var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 4735var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 4852var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 4971var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 5091var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 5221var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 5338var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 5467var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 5567var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 5664var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 5798var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"4"); 5941var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"2"); 6094var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"3"); 6229var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"3"); 6361var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1 6553var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1 6751var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"3 6919var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"3 7087var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"3 7265var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 7401var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 7603var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 8052var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
CodeGen\CodeGenDynamicTests.cs (15)
26private CompilationVerifier CompileAndVerifyIL( 44var unoptimizedVerifier = CompileAndVerify(unoptimizedCompilation, verify: verify); 45var optimizedVerifier = CompileAndVerify(optimizedCompilation, verify: verify); 310var c = CompileAndVerifyWithMscorlib40(source, new[] { systemCoreRef, csrtRef, funcRef }); 584var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: peModule => 640var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: peModule => 675var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: peModule => 801var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: peModule => 821var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: peModule => 2281var verifier = CompileAndVerifyWithCSharp(source, symbolValidator: module => 3378var verifier = CompileAndVerifyIL(source, "C.M", expectedUnoptimizedIL: @" 7496var verifier = CompileAndVerify(script); 14427var comp = CompileAndVerifyWithMscorlib40(source, expectedOutput: "hello!", references: new[] { ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef, SystemCoreRef }); 15857var comp = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "321 123", references: new[] { CSharpRef }); 16410private static void VerifyTypeIL(CompilationVerifier compilation, string typeName, string expected)
CodeGen\CodeGenExplicitImplementationTests.cs (7)
435var comp = CompileAndVerify(source, 589var comp = CompileAndVerify(source, 670var comp = CompileAndVerify(source, 748var comp = CompileAndVerify(source, expectedOutput: @" 813var comp = CompileAndVerify(source, expectedOutput: @" 960var comp = CompileAndVerify(source, expectedSignatures: new[] 1062var verifier2 = CompileAndVerify(comp2, expectedSignatures: new[]
CodeGen\CodeGenExprLambdaTests.cs (31)
20protected CompilationVerifier CompileAndVerifyUtil( 392var verifier = CompileAndVerify(new[] { ExpressionTestLibrary, @" 417var verifier = CompileAndVerify(@" 648var compilation = CompileAndVerifyUtil( 670var compilation = CompileAndVerifyUtil( 696var compilation = CompileAndVerifyUtil( 721var compilation = CompileAndVerifyUtil( 743var compilation = CompileAndVerifyUtil( 789var compilation = CompileAndVerifyUtil( 811var compilation = CompileAndVerifyUtil( 919var compilation = CompileAndVerifyUtil( 974var compilation = CompileAndVerifyUtil( 1026var compilation = CompileAndVerifyUtil( 1078var compilation = CompileAndVerifyUtil( 1130var compilation = CompileAndVerifyUtil( 1182var compilation = CompileAndVerifyUtil( 1234var compilation = CompileAndVerifyUtil( 1280var compilation = CompileAndVerifyUtil( 1329var compilation = CompileAndVerifyUtil( 1391var compilation = CompileAndVerifyUtil( 1413var compilation = CompileAndVerifyUtil( 1515var compilation = CompileAndVerifyUtil( 1566var compilation = CompileAndVerifyUtil( 1634var compilation = CompileAndVerifyUtil( 1663var compilation = CompileAndVerifyUtil( 1713var compilation = CompileAndVerifyUtil( 1751var compilation = CompileAndVerifyUtil( 1814var compilation = CompileAndVerifyUtil( 3218var c = CompileAndVerifyUtil(text, 4046var verifier = CompileAndVerifyUtil( 4197var verifier = CompileAndVerifyUtil(
CodeGen\CodeGenForEachTests.cs (36)
39var compilation = CompileAndVerify(source, expectedOutput: @" 107var compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @" 216var compilation = CompileAndVerify(source, expectedOutput: @" 381var compilation = CompileAndVerify(source, expectedOutput: @" 442var compilation = CompileAndVerify(source, expectedOutput: @" 510var compilation = CompileAndVerify(source, expectedOutput: @" 577var compilation = CompileAndVerify(source, expectedOutput: @" 640var compilation = CompileAndVerify(source, expectedOutput: @" 702var compilation = CompileAndVerify(source, expectedOutput: @" 844var compilation = CompileAndVerify(source, expectedOutput: @" 889var compilation = CompileAndVerify(source, expectedOutput: @" 954var compilation = CompileAndVerify(source, expectedOutput: @" 1018var compilation = CompileAndVerify(source, expectedOutput: @" 1088var compilation = CompileAndVerify(source, expectedOutput: @" 1149var compilation = CompileAndVerify(source, expectedOutput: @" 1219var compilation = CompileAndVerify(source, expectedOutput: @" 1281var compilation = CompileAndVerify(source, expectedOutput: @" 1357var compilation = CompileAndVerify(source, expectedOutput: @" 1398var verifier = CompileAndVerify(compilation, verify: Verification.FailsILVerify, expectedOutput: @" 1462var compilation = CompileAndVerify(source, verify: Verification.FailsILVerify, expectedOutput: @" 1497var compilation = CompileAndVerify(source, verify: Verification.FailsILVerify, expectedOutput: @" 1683var compilation = CompileAndVerify(source, expectedOutput: @" 1716var compilation = CompileAndVerify(source, expectedOutput: @" 1793var compilation = CompileAndVerify(source, expectedOutput: @" 1899var compilation = CompileAndVerify(source, expectedOutput: @" 1943var compilation = CompileAndVerify(source, expectedOutput: @" 1985var compilation = CompileAndVerify(source, expectedOutput: "1"); 2011var compilation = CompileAndVerify(source, expectedOutput: "1"); 2035var compilation = CompileAndVerify(source, expectedOutput: @" 2108var compilation = CompileAndVerify(source, expectedOutput: @" 2173var compilation = CompileAndVerify(source, expectedOutput: @" 2360var compilation = CompileAndVerify(source); 4355var verifier = CompileAndVerify(source, expectedOutput: "9123"); 4407var verifier = CompileAndVerify(source, expectedOutput: "1235", verify: Verification.FailsILVerify); 5634var verifier = CompileAndVerify(comp); 5704var verifier = CompileAndVerify(comp);
CodeGen\CodeGenFunctionPointersTests.cs (113)
28private CompilationVerifier CompileAndVerifyFunctionPointers( 59private CompilationVerifier CompileAndVerifyFunctionPointersWithIl(string source, string ilStub, Action<ModuleSymbol>? symbolValidator = null, string? expectedOutput = null) 87var verifier = CompileAndVerifyFunctionPointers($@" 110var comp = CompileAndVerifyFunctionPointers(@" 131var verifier = CompileAndVerifyFunctionPointers(@" 155var verifier = CompileAndVerifyFunctionPointers(@" 179var verifier = CompileAndVerifyFunctionPointers(@" 214var verifier = CompileAndVerifyFunctionPointers(@" 469var verifier = CompileAndVerifyFunctionPointersWithIl(source, il, expectedOutput: "12345678"); 595var verifier = CompileAndVerifyFunctionPointers(@" 633var verifier = CompileAndVerifyFunctionPointers(@" 725var verifier = CompileAndVerifyFunctionPointers(@" 755var verifier = CompileAndVerifyFunctionPointers(@" 808var verifier = CompileAndVerifyFunctionPointers(@" 859var verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub: ilSource, symbolValidator: symbolValidator); 1064var verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: "Called"); 1129var verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: "Called"); 1194var verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: "Called"); 1250var verifier = CompileAndVerifyFunctionPointers(source, expectedOutput: "Hello World"); 1273var verifier = CompileAndVerifyFunctionPointers(new[] { $@" 1338var verifier = CompileAndVerifyFunctionPointers(source); 1358var verifier = CompileAndVerifyFunctionPointers(@" 1481var verifier = CompileAndVerifyFunctionPointers(new[] { @" 1574var verifier = CompileAndVerifyFunctionPointers(@" 1815var verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: @" 1910var verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: @" 1979var verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: @" 2060var verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: @" 2139var verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: @" 2210var verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: @"Ref set"); 2281var verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: @"Field"); 2346var verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: @"Field"); 2435var verifier = CompileAndVerifyFunctionPointersWithIl(source, ilStub, expectedOutput: @" 2480var verifier = CompileAndVerifyFunctionPointers(@" 2677var verifier = CompileAndVerifyFunctionPointers(@" 2702var verifier = CompileAndVerifyFunctionPointers(@" 2732var verifier = CompileAndVerifyFunctionPointers(@" 2783var verifier = CompileAndVerifyFunctionPointers(@" 2823var verifier = CompileAndVerifyFunctionPointers(@" 2860var verifier = CompileAndVerifyFunctionPointers(@" 2895var verifier = CompileAndVerifyFunctionPointers(@" 2937var verifier = CompileAndVerifyFunctionPointers(@" 2972var verifier = CompileAndVerifyFunctionPointers($@" 3017var verifier = CompileAndVerifyFunctionPointers(@" 3285var verifier = CompileAndVerifyFunctionPointers(@" 3519var verifier = CompileAndVerifyFunctionPointers(@" 3805var verifier = CompileAndVerifyFunctionPointers(@" 3867var verifier = CompileAndVerifyFunctionPointers(@" 3931var verifier = CompileAndVerifyFunctionPointers(@" 4143var verifier = CompileAndVerifyFunctionPointers(@" 4179var verifier = CompileAndVerifyFunctionPointers(@" 4240var verifier = CompileAndVerifyFunctionPointers(@" 4308var verifier = CompileAndVerifyFunctionPointers(@" 4345var verifier = CompileAndVerifyFunctionPointers(@" 4417var verifier = CompileAndVerifyFunctionPointers(@" 4482var verifier = CompileAndVerifyFunctionPointers(@" 4528var verifier = CompileAndVerifyFunctionPointers(@" 4586var verifier = CompileAndVerifyFunctionPointers(@" 4645var verifier = CompileAndVerifyFunctionPointers(@" 4700var verifier = CompileAndVerifyFunctionPointers(@" 4756var verifier = CompileAndVerifyFunctionPointers(@" 4818var verifier = CompileAndVerifyFunctionPointers(@" 4888var verifier = CompileAndVerifyFunctionPointers(@" 4932var verifier = CompileAndVerifyFunctionPointers(@" 4964var verifier = CompileAndVerifyFunctionPointers(@" 5038var verifier = CompileAndVerifyFunctionPointers(@" 5057var verifier = CompileAndVerifyFunctionPointers(@" 5088var verifier = CompileAndVerifyFunctionPointers(@" 5353var verifier = CompileAndVerifyFunctionPointers(@" 5455var comp = CompileAndVerifyFunctionPointers($@" 5485var comp = CompileAndVerifyFunctionPointers(@" 5601var verifier = CompileAndVerifyFunctionPointersWithIl(source, il, symbolValidator: symbolValidator); 5780var verifier = CompileAndVerifyFunctionPointersWithIl(source, il, expectedOutput: "LL"); 5856var verifier = CompileAndVerifyFunctionPointersWithIl(source, il, expectedOutput: "LL"); 5881var verifier = CompileAndVerifyFunctionPointers(@" 5922var verifier = CompileAndVerifyFunctionPointers(@" 6013var verifier = CompileAndVerifyFunctionPointers(@" 6051var verifier = CompileAndVerifyFunctionPointers(@" 6970var verifier = CompileAndVerifyFunctionPointersWithIl(source, il, expectedOutput: @" 7146var comp = CompileAndVerifyFunctionPointers(@" 7184var verifier = CompileAndVerifyFunctionPointers(@" 7211var verifier = CompileAndVerifyFunctionPointers(@" 7257var verifier = CompileAndVerifyFunctionPointers(@" 7467var verifier = CompileAndVerifyFunctionPointers(source, expectedOutput: "", options: TestOptions.UnsafeReleaseExe); 10707var verifier = CompileAndVerifyFunctionPointers(new[] { @" 10741var verifier = CompileAndVerifyFunctionPointers(new[] { @" 10827var verifier = CompileAndVerifyFunctionPointers(@" 10867var verifier = CompileAndVerifyFunctionPointers(@" 10917var verifier = CompileAndVerifyFunctionPointers(@" 11022var verifier = CompileAndVerify(comp, expectedOutput: "2", verify: Verification.Skipped); 11066var verifier = CompileAndVerifyFunctionPointers(@" 11098var verifier = CompileAndVerifyFunctionPointers(@" 11135var verifier = CompileAndVerifyFunctionPointers(@" 11173var verifier = CompileAndVerifyFunctionPointers(@" 11206var verifier = CompileAndVerifyFunctionPointers(@" 11248var verifier = CompileAndVerifyFunctionPointers(@" 11314var verifier = CompileAndVerifyFunctionPointers(@" 11363var verifier = CompileAndVerifyFunctionPointers(@" 11422var verifier = CompileAndVerifyFunctionPointers(@" 11673var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.UnsafeDebugExe, symbolValidator: static module => 11736var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.UnsafeDebugExe, symbolValidator: static module => 11799var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.UnsafeDebugExe, symbolValidator: static module => 11858var verifier = CompileAndVerify(source, options: TestOptions.UnsafeDebugExe, expectedOutput: "True", symbolValidator: static module => 11890var verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, 12133var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.UnsafeDebugExe, symbolValidator: static module => 12276var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.UnsafeDebugExe, symbolValidator: static module => 12315var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.UnsafeDebugExe, symbolValidator: static module => 12359var verifier = CompileAndVerify(source, expectedOutput: expectedOutput, options: TestOptions.UnsafeDebugExe, symbolValidator: module => 12420var verifier = CompileAndVerifyFunctionPointers(code, expectedOutput: "true"); 12466var verifier = CompileAndVerifyFunctionPointers(code, expectedOutput: "true"); 12512var verifier = CompileAndVerifyFunctionPointers(code, expectedOutput: "true"); 12558var verifier = CompileAndVerifyFunctionPointers(code, expectedOutput: "true"); 12763private static ModuleSymbol GetSourceModule(CompilationVerifier verifier)
CodeGen\CodeGenImplicitImplementationTests.cs (12)
959var comp = CompileAndVerify(source, 1214var comp = CompileAndVerify(source, expectedOutput: @" 1358var comp = CompileAndVerify(source, expectedOutput: @" 1431var comp = CompileAndVerify(source, 1491var comp = CompileAndVerify(source, 1551var comp = CompileAndVerify(source, expectedOutput: @" 1613var comp = CompileAndVerify(source, expectedOutput: @" 1678var comp = CompileAndVerify(source, expectedOutput: @" 1743var comp = CompileAndVerify(source, expectedOutput: @" 1811var comp = CompileAndVerify(source, expectedOutput: @" 1857var comp = CompileAndVerify(text, 2054var comp = CompileAndVerify(source, expectedOutput: @"
CodeGen\CodeGenImplicitlyTypeArraysTests.cs (2)
254var compilation = CompileAndVerify( 435var compilation = CompileAndVerify(
CodeGen\CodeGenIncrementTests.cs (1)
443var compilation = CompileAndVerify(source);
CodeGen\CodeGenInParametersTests.cs (51)
21var comp = CompileAndVerify(@" 83var comp = CompileAndVerify(@" 147var comp = CompileAndVerify(@" 180var comp = CompileAndVerify(@" 215var comp = CompileAndVerify(@" 254var comp = CompileAndVerify(@" 291var comp = CompileAndVerify(@" 334var comp = CompileAndVerify(@" 367var comp = CompileAndVerify(@" 397var comp = CompileAndVerify(@" 449var comp = CompileAndVerify(@" 502var verifier = CompileAndVerify(@" 561var verifier = CompileAndVerify(@" 643var comp = CompileAndVerify(@" 691var comp = CompileAndVerify(@" 752var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails); 800var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: @"42 854var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: @"42 917var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: "42"); 977var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: "42"); 1038var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: "42"); 1089var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: @"hi 1126var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails); 1333var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails); 1376var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails); 1446var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"42"); 1479var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"42"); 1616var verifier = CompileAndVerify(text, verify: Verification.Fails, expectedOutput: "6"); 1752var result = CompileAndVerify(comp, verify: Verification.Fails, expectedOutput: @"47"); 2344var v = CompileAndVerify(comp, verify: Verification.Fails, expectedOutput: @" 2574var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"0"); 2632var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @""); 2724var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"4242420"); 3736var verifier = CompileAndVerify(compilation, expectedOutput: "XX"); 3774var verifier = CompileAndVerify(compilation, expectedOutput: "5050"); 3825var verifier = CompileAndVerify(compilation, expectedOutput: "5050"); 3883var verifier = CompileAndVerify(compilation, expectedOutput: "5050"); 3947var verifier = CompileAndVerify(compilation, expectedOutput: "555555"); 4011var verifier = CompileAndVerify(compilation, expectedOutput: "0011", verify: Verification.FailsPEVerify); 4089var verifier = CompileAndVerify(compilation, expectedOutput: ""); 4145var verifier = CompileAndVerify(compilation, expectedOutput: "hihi"); 4203var verifier = CompileAndVerify(compilation, expectedOutput: "hihi"); 4266var verifier = CompileAndVerify(compilation, expectedOutput: "11"); 4339var verifier = CompileAndVerify(compilation, expectedOutput: "TestTest"); 4396var verifier = CompileAndVerify(compilation, expectedOutput: "TestTestDerivedDerived"); 4453var verifier = CompileAndVerify(source, expectedOutput: "00"); 4525var verifier = CompileAndVerify(source, expectedOutput: "00"); 4603var verifier = CompileAndVerify(source, expectedOutput: "00", verify: Verification.FailsPEVerify); 4687var verifier = CompileAndVerify(source, expectedOutput: "12"); 4754var comp = CompileAndVerify(text, expectedOutput: "00"); 4870var verifier = CompileAndVerify(libUser);
CodeGen\CodeGenInterfaceImplementation.cs (30)
140var comp = CompileAndVerify(source, 253var comp = CompileAndVerify(source, 434var comp = CompileAndVerify(source, 517var comp = CompileAndVerify(source, 594var comp = CompileAndVerify(source, 677var comp = CompileAndVerify(source, 756var comp = CompileAndVerify(source, 854var comp = CompileAndVerify(source, 945var comp = CompileAndVerify(source, 1028var comp = CompileAndVerify(source, 1105var comp = CompileAndVerify(source, 1188var comp = CompileAndVerify(source, 1265var comp = CompileAndVerify(source, 1348var comp = CompileAndVerify(source, 1426var comp = CompileAndVerify(source, 1511var comp = CompileAndVerify(source, 1590var comp = CompileAndVerify(source, 1675var comp = CompileAndVerify(source, 1753var comp = CompileAndVerify(source, 1835var comp = CompileAndVerify(source, 1928var comp = CompileAndVerify(source, 2033var comp = CompileAndVerify(source, 2100var comp = CompileAndVerify(source, 2242var comp = CompileAndVerify(source, expectedOutput: @" 2361var comp = CompileAndVerify(source, expectedOutput: @" 2425var comp = CompileAndVerify(source, expectedOutput: @" 2481var comp = CompileAndVerify(source, expectedOutput: @" 2561var comp = CompileAndVerify(source, expectedSignatures: new[] 2641var verifier = CompileAndVerify(comp, expectedSignatures: new[] 2748var verifier = CompileAndVerify(comp, expectedSignatures: new[]
CodeGen\CodeGenInterpolatedString.cs (5)
75var comp = CompileAndVerify(source, expectedOutput: @" 123var comp = CompileAndVerify(source, expectedOutput: @"True 165var comp = CompileAndVerify(source, expectedOutput: @"a: a 240var comp = CompileAndVerify(source, expectedOutput: @"a 282var comp = CompileAndVerify(source, expectedOutput: @"a => Format(""a: {0}"", a)");
CodeGen\CodeGenIterators.cs (30)
87var compilation = CompileAndVerify(source, expectedOutput: "123456789X"); 124var compilation = CompileAndVerify(source, expectedOutput: "0123456789"); 170var compilation = CompileAndVerifyWithMscorlib40(source, expectedOutput: "12324565"); 304var compilation = CompileAndVerify(source, expectedOutput: "0|01Z|012XZ|012X3Z|012X34YZ|012X34Y5Z|012X34Y5Z6"); 1176var rel = CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1193var dbg = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1940var verifier = this.CompileAndVerify(comp); 1973var verifier = this.CompileAndVerify(comp); 2392var verifier = CompileAndVerify(compilation, verify: Verification.FailsPEVerify); 2569var v = CompileAndVerify(source, options: TestOptions.ReleaseDll); 2918var compilation = CompileAndVerify(source, expectedOutput: "FalseTrueFalseTrue", options: TestOptions.ReleaseExe); 3025var verifier = CompileAndVerify(src, expectedOutput: "42 42").VerifyDiagnostics(); 3058var verifier = CompileAndVerify(src, expectedOutput: "ran ran True").VerifyDiagnostics(); 3095var verifier = CompileAndVerify(src, expectedOutput: "ran ran True").VerifyDiagnostics(); 3133var verifier = CompileAndVerify(comp, expectedOutput: "100 100 True").VerifyDiagnostics(); 3186var verifier = CompileAndVerify(src, expectedOutput: "42 value value True").VerifyDiagnostics(); 3239var verifier = CompileAndVerify(src, expectedOutput: "42 value value True").VerifyDiagnostics(); 3314var verifier = CompileAndVerify(src, expectedOutput: "42 4242").VerifyDiagnostics(); 3344var verifier = CompileAndVerify(src, expectedOutput: "value value value").VerifyDiagnostics(); 3381var verifier = CompileAndVerify(src, expectedOutput: "42 42").VerifyDiagnostics(); 3419var verifier = CompileAndVerify(src, expectedOutput: "42").VerifyDiagnostics(); 3459var verifier = CompileAndVerify(src, expectedOutput: "value value ran True").VerifyDiagnostics(); 3532var verifier = CompileAndVerify(src, expectedOutput: "value value exception True").VerifyDiagnostics(); 3680var verifier = CompileAndVerify(src, expectedOutput: "10 42 42").VerifyDiagnostics(); 3739var verifier = CompileAndVerify(src, expectedOutput: "10 42 42", references: [libComp.EmitToImageReference()]).VerifyDiagnostics(); 3856var verifier = CompileAndVerify(src, expectedOutput: "values2 values2 values3 values3 True").VerifyDiagnostics(); 3887var verifier = CompileAndVerify(src, expectedOutput: "ran ran").VerifyDiagnostics(); 3934var verifier = CompileAndVerify(src, expectedOutput: "value value outer True").VerifyDiagnostics(); 4031var verifier = CompileAndVerify(comp, expectedOutput: "FalseTrue", verify: Verification.Skipped).VerifyDiagnostics(); 4070var verifier = CompileAndVerify(src, expectedOutput: "ran ran True").VerifyDiagnostics();
CodeGen\CodeGenLocalFunctionTests.cs (34)
23public static IMethodSymbol FindLocalFunction(this CompilationVerifier verifier, string localFunctionName) 73var verifier = CompileAndVerify(src, expectedOutput: @" 390var verifier = CompileAndVerify(comp, expectedOutput: "5"); 461var verifier = CompileAndVerify(@" 827var verifier = CompileAndVerify(@" 1030var comp = CompileAndVerify(@" 1545var comp = CompileAndVerify(src); 2592var verify = VerifyOutputInMain(source, "2", "System"); 2609var verify = VerifyOutputInMain(source, "2", "System"); 2716var verify = VerifyOutputInMain(source, "2", "System"); 3131var verify = VerifyOutputInMain(source, "2", "System"); 3156var verify = VerifyOutputInMain(source, "4", "System"); 3200var verify = VerifyOutputInMain(source, "2", "System"); 3249var verify = VerifyOutput(source, "2"); 3274var verify = VerifyOutputInMain(source, "2", "System"); 3308var verify = VerifyOutputInMain(source, "2", "System"); 3396var verify = VerifyOutput(source, "2"); 4238var verify = VerifyOutputInMain(source, "2", "System"); 5133var c = CompileAndVerify(@" 5316var verifier = CompileAndVerify( 5349var verifier = CompileAndVerify( 5383var verifier = CompileAndVerify( 5416var verifier = CompileAndVerify( 5671var verifier = CompileAndVerify( 5737var verifier = CompileAndVerify( 5812var verifier = CompileAndVerify( 5887var verifier = CompileAndVerify( 5955var verifier = CompileAndVerify( 5993var verifier = CompileAndVerify( 6049var verifier = CompileAndVerify( 6106var verifier = CompileAndVerify( 6301internal CompilationVerifier VerifyOutput(string source, string output, CSharpCompilationOptions options, Verification verify = default) 6307internal CompilationVerifier VerifyOutput(string source, string output) 6313internal CompilationVerifier VerifyOutputInMain(string methodBody, string output, params string[] usings)
CodeGen\CodeGenLockTests.cs (16)
37var verifier = CompileAndVerify(text); 92var verifier = CompileAndVerify(text); 146var verifier = CompileAndVerify(text); 202var verifier = CompileAndVerify(text); 259var verifier = CompileAndVerify(text); 313var verifier = CompileAndVerify(text); 367var verifier = CompileAndVerify(text); 421var verifier = CompileAndVerify(text); 1363var verifier = CompileAndVerify(compilation); 1413var verifier = CompileAndVerify(compilation); 1462var verifier = CompileAndVerify(compilation); 1513var verifier = CompileAndVerify(compilation); 1565var verifier = CompileAndVerify(compilation); 1614var verifier = CompileAndVerify(compilation); 1663var verifier = CompileAndVerify(compilation); 1712var verifier = CompileAndVerify(compilation);
CodeGen\CodeGenMscorlib.cs (1)
1041var c = CompileAndVerify(comp, verify: Verification.Skipped);
CodeGen\CodeGenNullCoalescingAssignmentTests.cs (15)
59var verifier = CompileAndVerify(source, expectedOutput: @" 151var verifier = CompileAndVerify(@" 246var verifier = CompileAndVerify(@" 408var verifier = CompileAndVerify(source, expectedOutput: @" 442var verifier = CompileAndVerify(@" 771var verifier = CompileAndVerify(@" 1025var verifier = CompileAndVerify(@" 1325var verifier = CompileAndVerify(source, expectedOutput: "Test String"); 1411var verifier = CompileAndVerify(@" 1703var verifier = CompileAndVerify(@" 2159var verifier = CompileAndVerify(@" 2222var verifier = CompileAndVerify(@" 2379var verifier = CompileAndVerify(source, expectedOutput: "1"); 2535var verifier = CompileAndVerify(testSource, references: new[] { reference1 }); 2808var verifier = CompileAndVerify(@"
CodeGen\CodeGenOperators.cs (97)
37var compilation = CompileAndVerify(source, expectedOutput: "False", options: TestOptions.ReleaseExe); 88var compilation = CompileAndVerify(source, expectedOutput: "False", options: TestOptions.ReleaseExe); 156var compilation = CompileAndVerify(source, expectedOutput: "False", options: TestOptions.ReleaseExe); 227var compilation = CompileAndVerify(source, expectedOutput: "False Branch not taken-True Branch taken", options: TestOptions.ReleaseExe); 299var compilation = CompileAndVerify(source, expectedOutput: "True Branch taken", options: TestOptions.ReleaseExe); 352var compilation = CompileAndVerify(source, expectedOutput: "True Branch taken", options: TestOptions.ReleaseExe); 427var compilation = CompileAndVerify(source, expectedOutput: expectedOutput); 493var compilation = CompileAndVerify(source, expectedOutput: expectedOutput); 548var compilation = CompileAndVerify(source); 582var compilation = CompileAndVerify(source); 601var comp = CompileAndVerify(text, expectedOutput: "False"); 634var comp = CompileAndVerify(text, expectedOutput: "False"); 666var comp = CompileAndVerify(text, expectedOutput: "False"); 696var comp = CompileAndVerify(text, expectedOutput: "False"); 729var comp = CompileAndVerify(text, expectedOutput: @"False 817var comp = CompileAndVerify(text, expectedOutput: @"123456"); 906var compilation = CompileAndVerify(source); 953var compilation = CompileAndVerify(source); 1026var comp = CompileAndVerify(source, 1088var compilation = CompileAndVerify(source, expectedOutput: string.Empty); 1221var compilation = CompileAndVerify(source, expectedOutput: string.Empty); 1295var compilation = CompileAndVerify(source, expectedOutput: string.Empty); 1362var compilation = CompileAndVerify(source, expectedOutput: string.Empty); 1431var comp = CompileAndVerify(source, expectedOutput: @" 1512var comp = CompileAndVerify(source, expectedOutput: @" 1564var compilation = CompileAndVerify(source, expectedOutput: "Goo"); 1627var comp = CompileAndVerify(source, expectedOutput: "System.Collections.Generic.IEnumerable`1[System.Int32]"); 1674var comp = CompileAndVerify(source, expectedOutput: "System.Collections.Generic.IEnumerable`1[System.Int32]"); 1721var comp = CompileAndVerify(source, expectedOutput: "System.Collections.Generic.IEnumerable`1[System.Int32]System.Collections.Generic.IEnumerable`1[System.Int32]"); 1768var comp = CompileAndVerify(source, expectedOutput: "System.Collections.Generic.IEnumerable`1[System.Int32]"); 1817var comp = CompileAndVerify(source); 1864var verify = CompileAndVerify(src, 2005var comp = CompileAndVerify(source); 2064var comp = CompileAndVerify(source); 2130var comp = CompileAndVerify(source); 2193var comp = CompileAndVerify(source); 2568var verifier = CompileAndVerify(source, 2660var verifier = CompileAndVerify(source, 2767var verifier = CompileAndVerify(source, expectedOutput: @"0"); 2794var verifier = CompileAndVerify(source, expectedOutput: @"PASS"); 2819var verifier = CompileAndVerify(source, expectedOutput: @"0"); 2857var verifier = CompileAndVerify(source, expectedOutput: @"01"); 2892var verifier = CompileAndVerify(source, expectedOutput: @"10"); 2928var verifier = CompileAndVerify(source, expectedOutput: @"0"); 3047var compilation = CompileAndVerify(source, expectedOutput: expectedOutput); 3097var compilation = CompileAndVerify(source, expectedOutput: expectedOutput); 3116var comp = CompileAndVerify(text, expectedOutput: ""); 3251var verifier = CompileAndVerify(source: source, expectedOutput: "Pass"); 3420var comp = CompileAndVerify(text, expectedOutput: @"False 3480var comp = CompileAndVerify(text, options: TestOptions.DebugExe, expectedOutput: @"True 3543var comp = CompileAndVerify(text, expectedOutput: @"one"); 3661var comp = CompileAndVerify(text, expectedOutput: @" 3793var comp = CompileAndVerify(text, expectedOutput: @"ttff"); 3827var comp = CompileAndVerify(text, expectedOutput: expectedOutput); 3861var comp = CompileAndVerify(text).VerifyIL("C.M", @" 3901var comp = CompileAndVerify(text, expectedOutput: @"True 3933var comp = CompileAndVerify(text, expectedOutput: @" 3972var comp = CompileAndVerify(text, expectedOutput: @" 4013var comp = CompileAndVerify(text, expectedOutput: @" 4168var comp = CompileAndVerify(source, expectedOutput: "System.Collections.Generic.IEnumerable`1[System.Int32]"); 4220var comp = CompileAndVerify(source, expectedOutput: "System.Collections.Generic.IEnumerable`1[System.Int32]System.Collections.Generic.IEnumerable`1[System.Int32]"); 4274var comp = CompileAndVerify(source, expectedOutput: "System.Collections.Generic.IEnumerable`1[System.Int32]"); 4321var comp = CompileAndVerify(source); 4369var comp = CompileAndVerify(source); 4430var comp = CompileAndVerify(source); 4501var comp = CompileAndVerify(source); 4567var comp = CompileAndVerify(new string[] { source }, expectedOutput: @""); 4636var comp = CompileAndVerify(source); 4703var comp = CompileAndVerify(source); 4760var comp = CompileAndVerify(source); 4822var comp = CompileAndVerify(source); 4864var comp = CompileAndVerify(source); 4921var comp = CompileAndVerify(source); 4995var comp = CompileAndVerify(source); 5022var comp = CompileAndVerify(source); 5060var comp = CompileAndVerify(source); 5102var comp = CompileAndVerify(source); 5140var comp = CompileAndVerify(source); 5227var compilation = CompileAndVerify(source, expectedOutput: @"3 5301var result = CompileAndVerify(source, options: TestOptions.ReleaseExe); 5356var result = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: "True"); 5404var result = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: "11461640193"); 5556var result = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"5180801 5761var result = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 5861var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 5919var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 5982var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 6054var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 6085var verifier = CompileAndVerify(comp); 6141var verifier = CompileAndVerify(comp); 6328var cv = CompileAndVerify(comp, expectedOutput: @"TrueFalse"); 6414var verifier = CompileAndVerify(code, expectedOutput: "Run"); 6496var verifier = CompileAndVerify(code, expectedOutput: "Run"); 6656var verifier = CompileAndVerify(code, expectedOutput: "Run"); 6724var verifier = CompileAndVerify(code, expectedOutput: "Run"); 6798var verifier = CompileAndVerify(code, expectedOutput: "12"); 6881var verifier = CompileAndVerify(code, expectedOutput: "12");
CodeGen\CodeGenOptimizedNullableOperators.cs (82)
66var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 111var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 144var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 177var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 213var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 282var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 316var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 359var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 395var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 437var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 566var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 739var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 783var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 922var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 985var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 1131var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 1176var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 1293var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 1420var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 1593var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 1793var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 1919var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 1955var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 2002var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 2131var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 2233var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 2281var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 2356var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 2408var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 2496var comp = CompileAndVerify(source, expectedOutput: expectedOutput); 2526var comp = CompileAndVerify(source, expectedOutput: @" 2682var comp = CompileAndVerify(source, expectedOutput: @" 2753var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 2799var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 2842var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 2879var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 2927var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 2972var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3009var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3046var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3083var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3121var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3159var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3199var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3246var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3290var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3337var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3386var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3434var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3482var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3532var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3582var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3638var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3691var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3747var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3800var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3857var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3911var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3961var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4016var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4076var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4129var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4190var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4251var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4298var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4336var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4396var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4449var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4509var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4562var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4610var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4649var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4697var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4736var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4784var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4823var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4871var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4910var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4970var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 5023var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 5072var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 5112var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output);
CodeGen\CodeGenOverridingAndHiding.cs (50)
109var comp = CompileAndVerify(source, 191var comp = CompileAndVerify(source, 314var comp = CompileAndVerify(source, 388var comp = CompileAndVerify(source, 472var comp = CompileAndVerify(source, 576var comp = CompileAndVerify(source, 671var comp = CompileAndVerify(source, expectedOutput: @" 758var comp = CompileAndVerify(source, expectedOutput: @" 825var comp = CompileAndVerify(source); 936var comp = CompileAndVerify(source, 1028var comp = CompileAndVerify(source, expectedOutput: @" 1115var comp = CompileAndVerify(source, expectedOutput: @"2545571191011111114151617"); 1264var verifier = CompileAndVerify(compilation, expectedOutput: substitutedExpected); 1315var comp = CompileAndVerify(source, 1372var comp = CompileAndVerify(source, 1415var comp = CompileAndVerify(source, 1481var comp = CompileAndVerify(source, 1561var comp = CompileAndVerify(source, 1715var comp = CompileAndVerify(source, expectedOutput: @" 1896var comp = CompileAndVerify(source, expectedOutput: @"Derived2.Method() 1966var comp = CompileAndVerify(text, expectedSignatures: new[] 2007var comp = CompileAndVerify(source, expectedSignatures: new[] 2043var comp = CompileAndVerify(source, expectedSignatures: new[] 2080var comp = CompileAndVerify(source, expectedSignatures: new[] 2114var comp = CompileAndVerify(source, expectedSignatures: new[] 2159var comp = CompileAndVerify(source, expectedSignatures: new[] 2213var comp = CompileAndVerify(source, expectedSignatures: new[] 2260var comp = CompileAndVerify(source2, new[] { new CSharpCompilationReference(compilation1) }, expectedSignatures: new[] 2298var comp = CompileAndVerify(source, expectedSignatures: new[] 2338var comp = CompileAndVerify(source, expectedSignatures: new[] 2378var comp = CompileAndVerify(source, expectedSignatures: new[] 2443var comp = CompileAndVerify(source, 2656var comp = CompileAndVerify( 2761var comp = CompileAndVerify( 3225var verifier = CompileAndVerify( 3293var comp = CompileAndVerify(source, 3525var verifier = CompileAndVerify( 3559var verifier = CompileAndVerify(text, 3586var verifier = CompileAndVerify(text, 3651var comp = CompileAndVerify(source, 3703var verifier = CompileAndVerify(text, 4017var verifier = CompileAndVerify( 4132var verifier = CompileAndVerify(source, symbolValidator: validator(true), sourceSymbolValidator: validator(false), expectedOutput: @"System.Int32[]"); 4181var comp = CompileAndVerify(source2, references: new[] { new CSharpCompilationReference(compref) }, expectedOutput: "M"); 4205var cs1Verifier = CompileAndVerify(cs1Compilation); 4247var cs2Verifier = CompileAndVerify(cs2Compilation, 4274var cs1Verifier = CompileAndVerify(cs1Compilation); 4319var cs2Verifier = CompileAndVerify(cs2Compilation, expectedOutput: @"C4 4349var comp = CompileAndVerify(source, expectedOutput: 4422var cs1Verifier = CompileAndVerify(cs1Compilation);
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (36)
658var cv = CompileAndVerify(comp, expectedOutput: "", verify: Verification.Passes); 726var cv = CompileAndVerify(comp, expectedOutput: "100", verify: Verification.Passes); 765var verifier = CompileAndVerify(compilation, expectedOutput: "10;20;", verify: Verification.Skipped); 804var verifier = CompileAndVerify(compilation, expectedOutput: "10;20;", verify: Verification.Skipped); 899var verifier = CompileAndVerify(compilation, verify: Verification.Skipped); 946var verifier = CompileAndVerify(compilation, verify: Verification.Skipped); 1027var verifier = CompileAndVerify(compilation, verify: Verification.Skipped); 1051var verifier = CompileAndVerify(compilation, verify: Verification.Skipped); 1094var verifier = CompileAndVerify(compilation, verify: Verification.Skipped); 1173var verifier = CompileAndVerify(compilation, verify: Verification.Skipped); 1317var verifier = CompileAndVerify(compilation, verify: Verification.Skipped); 1369var verifier = CompileAndVerify(compilation, expectedOutput: "AF2D4567", verify: Verification.Skipped); 1482var verifier = CompileAndVerify(compilation, verify: Verification.Skipped); 1516var verifier = CompileAndVerify(compilation, verify: Verification.Passes); 1549var verifier = CompileAndVerify(compilation, expectedOutput: "000000", verify: Verification.Passes); 1626var verifier = CompileAndVerify(compilation, expectedOutput: "3402", verify: Verification.Fails with { ILVerifyMessage = ilVerifyMessage, PEVerifyMessage = peVerifyMessage }); 2407var verifier = CompileAndVerify(compilation, verify: Verification.Skipped); 2514var verifier = CompileAndVerify(compilation, verify: Verification.Skipped); 2567var verifier = CompileAndVerify(compilation, verify: Verification.Skipped); 2615var verifier = CompileAndVerify(compilation, verify: Verification.Skipped); 2666var verifier = CompileAndVerify(compilation, verify: Verification.Skipped); 2737var verifier = CompileAndVerify(compilation, expectedOutput: "ran", 2807var verifier = CompileAndVerify(compilation, expectedOutput: "2 hello world", 2879var verifier = CompileAndVerify(compilation, expectedOutput: "2 hello world", 2924var verifier = CompileAndVerify(compilation, expectedOutput: "hello world", 2992var verifier = CompileAndVerify(compilation, expectedOutput: "1 1", 3037var verifier = CompileAndVerify(compilation, expectedOutput: "1 2147483647", verify: Verification.FailsILVerify); 3085var verifier = CompileAndVerify(compilation, expectedOutput: "1 1", 3130var verifier = CompileAndVerify(compilation, expectedOutput: "1 4294967295", verify: Verification.Skipped); 3175var verifier = CompileAndVerify(compilation, expectedOutput: "1 1", 3244var verifier = CompileAndVerify(compilation, expectedOutput: "1 1", 3287var verifier = CompileAndVerify(compilation, verify: Verification.Skipped); 3386var verifier = CompileAndVerify(compilation, expectedOutput: "2 True False", verify: Verification.Skipped).VerifyDiagnostics(); 3411var verifier = CompileAndVerify(compilation, verify: Verification.Skipped); 3434var verifier = CompileAndVerify(compilation, verify: Verification.Skipped); 3528var verifier = CompileAndVerify(compilation, verify: Verification.Passes);
CodeGen\CodeGenReadonlyStructTests.cs (25)
51var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: @"12"); 122var comp = CompileAndVerify(text, new[] { ref1 }, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: @"12"); 188var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.FailsPEVerify, expectedOutput: @"12"); 262var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.FailsPEVerify, expectedOutput: @"hello2"); 343var comp = CompileAndVerify(text, new[] { ref1 }, parseOptions: TestOptions.Regular, verify: Verification.FailsPEVerify, expectedOutput: @"hello2"); 416var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"12"); 462var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"12"); 513var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"Program+S1Program+S1"); 570var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"4242"); 1720var verifier = CompileAndVerify(csharp, expectedOutput: "123"); 1786var verifier = CompileAndVerify(csharp, expectedOutput: "123"); 1860var verifier = CompileAndVerify(csharp, references: new[] { image }, expectedOutput: "1123"); 1936var verifier = CompileAndVerify(csharp, references: new[] { image }, expectedOutput: "1123"); 1984var comp = CompileAndVerify(csharp); 2010var comp = CompileAndVerify(csharp); 2035var comp = CompileAndVerify(csharp); 2061var comp = CompileAndVerify(csharp); 2095var comp = CompileAndVerify(csharp); 2133var comp = CompileAndVerify(csharp); 2168var comp = CompileAndVerify(csharp); 2233var verifier = CompileAndVerify(csharp); 2318var verifier = CompileAndVerify(csharp); 2386var verifier = CompileAndVerify(csharp); 2484var verifier = CompileAndVerify(csharp); 2580var verifier = CompileAndVerify(csharp, parseOptions: parseOptions, verify: verify);
CodeGen\CodeGenRefConditionalOperatorTests.cs (22)
41var comp = CompileAndVerify(source, expectedOutput: "3344"); 93var comp = CompileAndVerify(source, expectedOutput: "44", verify: Verification.Fails); 129var comp = CompileAndVerify(source, expectedOutput: "44", verify: Verification.Passes); 165var comp = CompileAndVerify(source, expectedOutput: "55", verify: Verification.Passes); 203var comp = CompileAndVerify(source, expectedOutput: "5555", verify: Verification.Passes); 250var comp = CompileAndVerify(source, expectedOutput: "67", verify: Verification.Fails); 304var comp = CompileAndVerify(source, expectedOutput: "446767", verify: Verification.Passes); 364var comp = CompileAndVerify(source, expectedOutput: "1"); 438var comp = CompileAndVerify(source, expectedOutput: @"False 837var comp = CompileAndVerify(source, expectedOutput: "1", verify: Verification.Passes); 881var comp = CompileAndVerify(source, expectedOutput: "1", verify: Verification.Passes); 912var comp = CompileAndVerify(source, expectedOutput: "1", verify: Verification.Passes); 1000var comp = CompileAndVerify(source, expectedOutput: "1"); 1065var comp = CompileAndVerifyWithMscorlib40(source, references: new[] { Net40.References.System, ValueTupleRef, Net40.References.SystemCore }, expectedOutput: "00", verify: Verification.FailsPEVerify); 1153var comp = CompileAndVerify(source, expectedOutput: "00", verify: Verification.FailsPEVerify); 1268var verifier = CompileAndVerify(comp, expectedOutput: "run", verify: verify); 1355var verifier = CompileAndVerify(comp, expectedOutput: "0run", verify: Verification.Fails); 1404var comp = CompileAndVerify(source, expectedOutput: "0123-1230", options: TestOptions.ReleaseExe); 1539var comp = CompileAndVerify(source, expectedOutput: "0123-1230", options: TestOptions.ReleaseExe); 1684var comp = CompileAndVerify(source, expectedOutput: "0123-1230", options: TestOptions.ReleaseExe); 1837var comp = CompileAndVerify(source, expectedOutput: "0123-1230", options: TestOptions.ReleaseExe); 2060var comp = CompileAndVerify(source, expectedOutput: "124-123", options: TestOptions.ReleaseExe);
CodeGen\CodeGenRefLocalTests.cs (64)
37var verifier = CompileAndVerify(src, verify: Verification.Fails); 74var verifier = CompileAndVerify(@" 129var verifier = CompileAndVerify(@" 154var verifier = CompileAndVerify(@" 195var verifier = CompileAndVerify(@" 236var verifier = CompileAndVerify(@" 269var verifier = CompileAndVerify(@" 369var verifier = CompileAndVerify(@" 538var comp = CompileAndVerify(@" 571var comp = CompileAndVerify(@" 601var comp = CompileAndVerify(@" 646var comp = CompileAndVerify(@" 696var comp = CompileAndVerify(@" 785var comp = CompileAndVerify(@" 870var comp = CompileAndVerify(@" 924var comp = CompileAndVerify(@" 947var comp = CompileAndVerify(@" 1031var comp = CompileAndVerify(@" 1060var comp = CompileAndVerify(@" 1112var comp = CompileAndVerify(@" 1140var comp = CompileAndVerify(@" 1177var comp = CompileAndVerify(@" 1251var comp = CompileAndVerify(@" 1322var comp = CompileAndVerify(@" 1367var comp = CompileAndVerify(@" 1420var comp = CompileAndVerify(@" 1469var comp = CompileAndVerify(@" 1510var comp = CompileAndVerify(@" 1605var comp = CompileAndVerify(@" 2205var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails); 2276var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails); 2366var comp = CompileAndVerify(text, options: TestOptions.DebugDll); 2428var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails); 2495var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails); 2577var comp = CompileAndVerify(text, options: TestOptions.DebugDll); 2672var comp = CompileAndVerify(text, options: TestOptions.DebugDll); 2748var comp = CompileAndVerify(text, options: TestOptions.DebugDll); 2799var comp = CompileAndVerify(text, options: TestOptions.DebugDll); 2880var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails); 2951var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails); 3048var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails); 3158var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails); 3235var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails); 3341var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails); 3486var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "22" : null, 3526var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "32" : null, 3563var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "2" : null, 3611var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null, 3664var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null, 3701var verifier = CompileAndVerify(source, expectedOutput: "22"); 3738var verifier = CompileAndVerify(source, expectedOutput: "32"); 3776var verifier = CompileAndVerify(source, expectedOutput: "22"); 3821var verifier = CompileAndVerify(source, expectedOutput: "32"); 4242var verifier = CompileAndVerify(comp, expectedOutput: "run", verify: verify); 4311var verifier = CompileAndVerify(comp, expectedOutput: "0", verify: Verification.Fails); 4376var verifier = CompileAndVerify(comp, expectedOutput: "run", verify: verify); 4428var verifier = CompileAndVerify(comp, expectedOutput: "run", verify: verify); 4484var verifier = CompileAndVerify(comp, expectedOutput: "run", verify: verify); 4508var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: ""); 4561var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: ""); 4613var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: ""); 4664var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: ""); 4713var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: ""); 4749var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "");
CodeGen\CodeGenRefOutTests.cs (8)
351var verifier = CompileAndVerify(compilation, expectedOutput: "042"); 413var verifier = CompileAndVerify(compilation, expectedOutput: "Q"); 475var verifier = CompileAndVerify(compilation, expectedOutput: "Q"); 543var verifier = CompileAndVerify(comp, expectedOutput: "run", verify: Verification.Fails); 630var verifier = CompileAndVerify(comp, expectedOutput: "run", verify: Verification.Fails); 692var verifier = CompileAndVerify(comp, expectedOutput: "run", verify: Verification.Fails); 778var verifier = CompileAndVerify(comp, expectedOutput: "0run", verify: Verification.Fails); 830var verifier = CompileAndVerify(comp, expectedOutput: "run", verify: Verification.Fails);
CodeGen\CodeGenRefReadonlyReturnTests.cs (12)
62var comp = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), verify: Verification.Fails); 116var comp = CompileAndVerify(@" 238var comp = CompileAndVerify(@" 286var comp = CompileAndVerify(@" 307var comp = CompileAndVerify(@" 358var verifier = CompileAndVerify(@" 385var verifier = CompileAndVerify(@" 412var verifier = CompileAndVerify(@" 466var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular); 805var comp = CompileAndVerifyWithMscorlib40(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, parseOptions: TestOptions.Regular, verify: Verification.Passes); 883var comp = CompileAndVerifyWithMscorlib40(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, parseOptions: TestOptions.Regular, verify: Verification.Fails); 1201var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular);
CodeGen\CodeGenRefReturnTests.cs (22)
21private CompilationVerifier CompileAndVerifyRef( 194var v = CompileAndVerifyRef(text, expectedOutput: "42"); 246var compilation = CompileAndVerifyRef(text); 310var compilation = CompileAndVerifyRef(text, verify: Verification.Passes); 388var compilation = CompileAndVerifyRef(text); 441var compilation = CompileAndVerifyRef(text); 502var compilation = CompileAndVerifyRef(text, verify: Verification.Passes); 575var compilation = CompileAndVerifyRef(text); 658var compilation = CompileAndVerifyRef(text); 721var compilation = CompileAndVerifyRef(text); 765var compilation = CompileAndVerifyRef(text, verify: Verification.Fails); 825var compilation = CompileAndVerifyRef(text); 877var compilation = CompileAndVerifyRef(text); 947var compilation = CompileAndVerifyRef(text); 1022var compilation = CompileAndVerifyRef(text); 1080var compilation = CompileAndVerifyRef(text); 1159var compilation = CompileAndVerifyRef(text); 2589var v = CompileAndVerify(text, expectedOutput: "12345"); 2709var v = CompileAndVerify(source, expectedOutput: "2"); 2787var v = CompileAndVerify(source, expectedOutput: "23"); 2969var v = CompileAndVerify(comp, verify: Verification.Fails, expectedOutput: "2"); 3082var v = CompileAndVerify(comp, verify: Verification.Fails, expectedOutput: "2");
CodeGen\CodeGenScriptTests.cs (2)
497var verifier = CompileAndVerify(compilation, expectedOutput: @"complete"); 557var verifier = CompileAndVerify(s0, verify: Verification.FailsPEVerify);
CodeGen\CodeGenShortCircuitOperatorTests.cs (100)
57var compilation = CompileAndVerify(source, expectedOutput: @" 209var compilation = CompileAndVerify(source, expectedOutput: @" 376var compilation = CompileAndVerify(source, expectedOutput: @" 964var comp = CompileAndVerify(source, expectedOutput: "NULL#System.Int32[]"); 1013var comp = CompileAndVerify(source, expectedOutput: "NULL#System.Int32[]"); 1057var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: "NULL#System.Int32[]"); 1203var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: "NULL#y"); 1226var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: "NULL#-1"); 1250var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: "NULL#y"); 1274var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: "NULL#3"); 1298var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: "NULL#3"); 1316var comp = CompileAndVerify(source, expectedOutput: ""); 1356var comp = CompileAndVerify(source, expectedOutput: ""); 1406var comp = CompileAndVerify(source, expectedOutput: ""); 1452var comp = CompileAndVerify(source, expectedOutput: @"3 1516var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: ""); 1573var comp = CompileAndVerify(source, expectedOutput: ""); 1634var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: @"3 1709var comp = CompileAndVerify(source, expectedOutput: @"3 1777var comp = CompileAndVerify(source, expectedOutput: @"System.Exception: a 1847var comp = CompileAndVerify(source, expectedOutput: @"print0 1914var comp = CompileAndVerify(source, expectedOutput: @"print0 2016var comp = CompileAndVerify(source, targetFramework: TargetFramework.Empty, references: new[] { MscorlibRef_v4_0_30316_17626 }, expectedOutput: @"print0 2073var comp = CompileAndVerify(source, targetFramework: TargetFramework.Empty, references: new[] { MscorlibRef_v4_0_30316_17626 }, expectedOutput: @"print0 2125var comp = CompileAndVerify(source, expectedOutput: @"False 2217var comp = CompileAndVerify(source, expectedOutput: @"False 2313var comp = CompileAndVerify(source, expectedOutput: @"False 2390var comp = CompileAndVerify(source, expectedOutput: @"False 2462var comp = CompileAndVerify(source, expectedOutput: @"False 2544var comp = CompileAndVerify(source, expectedOutput: @"False 2631var comp = CompileAndVerify(source, references: new MetadataReference[] { CSharpRef }, expectedOutput: @"False 2690var comp = CompileAndVerify(source, references: new MetadataReference[] { CSharpRef }, expectedOutput: @"False 2756var comp = CompileAndVerify(c, expectedOutput: @"False 2825var comp = CompileAndVerify(c, expectedOutput: @"False 2906var comp = CompileAndVerify(c, expectedOutput: @"False 2976var comp = CompileAndVerify(c, expectedOutput: @"False 3059var comp = CompileAndVerify(c, expectedOutput: @"False 3142var comp = CompileAndVerify(c, expectedOutput: @"False 3191var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: @"System.Nullable`1[System.Int64]"); 3248var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: @"System.Nullable`1[System.Int64]"); 3302var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: @""); 3459var comp = CompileAndVerify(source, expectedOutput: @"0 3530var comp = CompileAndVerify(source, expectedOutput: @"0 3609var comp = CompileAndVerify(source, expectedOutput: @"0 3684var comp = CompileAndVerify(source, expectedOutput: @"0 3767var comp = CompileAndVerify(source, expectedOutput: @"0 3842var comp = CompileAndVerify(source, expectedOutput: @" 3900var comp = CompileAndVerify(source, expectedOutput: @"False 3998var comp = CompileAndVerify(source, expectedOutput: @"True 4123var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: @" > 4234var comp = CompileAndVerify(source, expectedOutput: @""); 4304var comp = CompileAndVerify(source, expectedOutput: @""); 4395var comp = CompileAndVerify(source, expectedOutput: @"Success"); 4468var comp = CompileAndVerify(source, expectedOutput: @"Success"); 4506var comp = CompileAndVerify(source, expectedOutput: @""); 4583var comp = CompileAndVerify(source, expectedOutput: @""); 4666var comp = CompileAndVerify(source, expectedOutput: @"not empty 4895var comp = CompileAndVerify(source, expectedOutput: @"1"); 4952var verifier = CompileAndVerify(source, expectedOutput: @"0 4993var verifier = CompileAndVerify(source, expectedOutput: @"0 5036var verifier = CompileAndVerify(source, expectedOutput: @"01/01/0001 00:00:00 5085var verifier = CompileAndVerify(source, expectedOutput: @"0 5135var verifier = CompileAndVerify(source, expectedOutput: @"--- 5181var verifier = CompileAndVerify(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), verify: Verification.Fails, expectedOutput: @"--- 5232var verifier = CompileAndVerify(source, verify: Verification.FailsILVerify, options: TestOptions.DebugExe.WithAllowUnsafe(true), expectedOutput: @"--- 5289var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"--- 5416var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"--- 5543var verifier = CompileAndVerify(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), verify: Verification.Fails, expectedOutput: @"--- 5669var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @" --- 5718var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"--- 5807var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"--- 5886var verifier = CompileAndVerify(source, expectedOutput: @"False"); 5923var verifier = CompileAndVerify(source, expectedOutput: @"False"); 5977var verifier = CompileAndVerify(source, expectedOutput: @"False 6045var verifier = CompileAndVerify(source, expectedOutput: @"FalseTrueTrue"); 6085var verifier = CompileAndVerify(source, expectedOutput: @"TrueTrueFalse"); 6128var verifier = CompileAndVerify(source, expectedOutput: @"TrueTrueFalseFalse"); 6192var comp = CompileAndVerify(c, expectedOutput: @"FalseTrueTrue"); 6229var comp = CompileAndVerify(c, expectedOutput: @"FalseTrueTrue"); 6272var comp = CompileAndVerify(c, expectedOutput: @"FalseTrueTrue"); 6308var comp = CompileAndVerify(c, expectedOutput: @"# 6351var comp = CompileAndVerify(c, expectedOutput: @"False 6386var comp = CompileAndVerify(c, expectedOutput: @"False 6441var verifier = CompileAndVerify(source, expectedOutput: @"==True 6520var verifier = CompileAndVerify(source, expectedOutput: @"==True 6598var verifier = CompileAndVerify(source, expectedOutput: @"False 6672var verifier = CompileAndVerify(source, expectedOutput: @"False 6737var comp = CompileAndVerify(source, expectedOutput: @"1 6790var verifier = CompileAndVerify(source, expectedOutput: @"TrueTrueFalse"); 6839var verifier = CompileAndVerify(source, expectedOutput: @"TrueTrueFalseFalse"); 6889var verifier = CompileAndVerify(source, expectedOutput: @"0"); 6947var verifier = CompileAndVerify(source, expectedOutput: @"42"); 6992var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: 7052var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: 7119var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: 7179var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: 7234var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: 7278var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: 7324var comp = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"", verify: Verification.Fails); 7392var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"");
CodeGen\CodeGenStackAllocInitializerTests.cs (14)
913var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "" : null, 951var verifier = CompileAndVerify(source, expectedOutput: expectedOutput, 1004var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "" : null, 1107var verifier = CompileAndVerify(source, expectedOutput: expectedOutput, 1161var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "123" : null, 1206var verifier = CompileAndVerify(source, expectedOutput: expectedOutput, 1263var verifier = CompileAndVerify(source, expectedOutput: expectedOutput, 1318var verifier = CompileAndVerify(source, expectedOutput: expectedOutput, 1371var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "12" : null, 1418var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "" : null, 1456var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "" : null, 1497var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsCoreClr ? output : null, 1579var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "123" : null, 1636var verifier = CompileAndVerify(source, expectedOutput: expectedOutput,
CodeGen\CodeGenStringConcat.cs (31)
41var comp = CompileAndVerify(source, expectedOutput: @"AB 99var comp = CompileAndVerify(source, expectedOutput: "A"); 117var comp = CompileAndVerify(source); 147var comp = CompileAndVerify(source, expectedOutput: @"AB 204var comp = CompileAndVerify(source, expectedOutput: @"qqqqqqqq" 243var comp = CompileAndVerify(source, expectedOutput: @"FABF 408var comp = CompileAndVerify(source, expectedOutput: @"test_field: 2"); 455var comp = CompileAndVerify(source, expectedOutput: @"FFABFF"); 510var comp = CompileAndVerify(source, expectedOutput: @"O 576var comp = CompileAndVerify(source, expectedOutput: @"Y 642var comp = CompileAndVerify(source, expectedOutput: @"O 687var comp = CompileAndVerify(source, expectedOutput: @"O 738var comp = CompileAndVerify(source, expectedOutput: @"Start 786var comp = CompileAndVerify(source); 830var comp = CompileAndVerify(source, expectedOutput: @"A0 971var comp = CompileAndVerify(source, expectedOutput: @"A 1062var comp = CompileAndVerify(source, expectedOutput: @"PPFF 1152var comp = CompileAndVerify(source, expectedOutput: @"PPFF 1236var comp = CompileAndVerify(source, expectedOutput: @"1111 1296var comp = CompileAndVerify(source, expectedOutput: @"abcdefbye"); 1338var comp = CompileAndVerify(source, expectedOutput: "\"\""); 1376var comp = CompileAndVerify(source, expectedOutput: "\"\""); 1418var comp = CompileAndVerify(source, expectedOutput: @"1111"); 1517var comp = CompileAndVerify(source, expectedOutput: @"RRRR"); 1569var comp = CompileAndVerify(source, expectedOutput: @"RRRR"); 1618var comp = CompileAndVerify(source, expectedOutput: @"SSSS"); 1663var comp = CompileAndVerify(source, expectedOutput: @"ST"); 1696var comp = CompileAndVerify(source, expectedOutput: @"S"); 1752var comp = CompileAndVerify(source, expectedOutput: @"a1 1966var comp = CompileAndVerify(source, expectedOutput: "3+4=7"); 2036var comp = CompileAndVerify(source, expectedOutput: "S13O1S24O2");
CodeGen\CodeGenStructsAndEnum.cs (29)
46var compilation = CompileAndVerify(source, expectedOutput: "0427"); 103var compilation = CompileAndVerify(source, expectedOutput: "042"); 151var compilation = CompileAndVerify(source, expectedOutput: "0708589934592"); 203var compilation = CompileAndVerify(source, expectedOutput: @"0"); 262var compilation = CompileAndVerify(source, expectedOutput: @""); 337var compilation = CompileAndVerify(source, expectedOutput: @"Program+S1"); 383var compilation = CompileAndVerify(source, expectedOutput: @"S::M 451var compilation = CompileAndVerify(source, expectedOutput: @" 661var compilation = CompileAndVerify(source, expectedOutput: ""); 742var compilation = CompileAndVerify(source, expectedOutput: ""); 842var compilation = CompileAndVerify(source, expectedOutput: ""); 955var compilation = CompileAndVerify(source, expectedOutput: ""); 1093var compilation = CompileAndVerify(source, expectedOutput: "1111"); 1192var compilation = CompileAndVerify(source, expectedOutput: "1111"); 1284var compilation = CompileAndVerify(source, expectedOutput: "11"); 1371var compilation = CompileAndVerify(source, expectedOutput: ""); 1479var compilation = CompileAndVerify(source, expectedOutput: ""); 1553var compilation = CompileAndVerify(source, expectedOutput: "S1", verify: Verification.Skipped); 1631var compilation = CompileAndVerify(source); 1660var compilation = CompileAndVerify(source, expectedOutput: "B"); 1729var compilation = CompileAndVerify(source, expectedOutput: @"ca761232-ed42-11ce-bacd-00aa0057b223 1828var compilation = CompileAndVerify(source, expectedOutput: "False"); 1884var compilation = CompileAndVerify(source, expectedOutput: "False"); 1952var compilation = CompileAndVerify(source, expectedOutput: "False"); 2006var compilation = CompileAndVerify(source, expectedOutput: "False"); 2099var compilation = CompileAndVerify(source, verify: Verification.Fails, expectedOutput: "True"); 2214var compilation = CompileAndVerify(source, verify: Verification.Fails, expectedOutput: @"353 2286var compilation = CompileAndVerify(source); 2369var compilation = CompileAndVerify(source, expectedOutput: "0");
CodeGen\CodeGenTests.cs (196)
81var result = CompileAndVerify(source, verify: Verification.FailsILVerify, options: TestOptions.DebugDll); 169var result = CompileAndVerify(source, verify: Verification.FailsILVerify, options: TestOptions.DebugDll); 239var result = CompileAndVerify(source, options: TestOptions.DebugDll); 300var result = CompileAndVerify(source, options: TestOptions.DebugDll); 335var result = CompileAndVerify(source, options: TestOptions.ReleaseDll); 383var result = CompileAndVerify(source, options: TestOptions.ReleaseDll); 436var result = CompileAndVerify(source, options: TestOptions.ReleaseDll); 535var result = CompileAndVerify(compilation); 609var result = CompileAndVerify(compilation); 712var compilation = CompileAndVerify(source, expectedOutput: @" 752var compilation = CompileAndVerify(source, expectedOutput: @" 868var result = CompileAndVerify(compilation, expectedOutput: "Struct1 Struct2 "); 903var compilation = CompileAndVerify(source); 953var compilation = CompileAndVerify(source); 1109var compilation = CompileAndVerify(source); 1510var compilation = CompileAndVerify(source); 1537var compilation = CompileAndVerify(source); 1582var compilation = CompileAndVerify(source); 1621var compilation = CompileAndVerify(source); 1666var compilation = CompileAndVerify(source, expectedOutput: "42"); 1695var compilation = CompileAndVerify(source, expectedOutput: "42"); 1724var compilation = CompileAndVerify(source, expectedOutput: "42"); 1756var compilation = CompileAndVerify(source, expectedOutput: "123"); 1814var v = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "42123"); 1865var compilation = CompileAndVerify(source, expectedOutput: ""); 1907var compilation = CompileAndVerify(source, expectedOutput: @" 1954var compilation = CompileAndVerify(source, expectedOutput: @" 1990var compilation = CompileAndVerify(source, expectedOutput: @"System.Exception: hello"); 2028var compilation = CompileAndVerify(source, expectedOutput: @"hi"); 2053var compilation = CompileAndVerify(source); 2087var compilation = CompileAndVerify(source); 2125var compilation = CompileAndVerify(source, expectedOutput: "S"); 2155var compilation = CompileAndVerify(source, expectedOutput: "2"); 2183var compilation = CompileAndVerify(source, expectedOutput: "S"); 2219var compilation = CompileAndVerify(source, expectedOutput: "T2"); 2256var compilation = CompileAndVerify(source, expectedOutput: "C<int>.S;C<string>.S;C<string>.T2"); 2287var compilation = CompileAndVerify(source, expectedOutput: "p, q"); 2347var compilation = CompileAndVerify(source); 2397var compilation = CompileAndVerify(source); 3006var compilation = CompileAndVerify(source, expectedOutput: "1System.Reflection.Missing"); 3033var compilation = CompileAndVerify(source, expectedOutput: "2147483647"); 3070var compilation = CompileAndVerify(source, expectedOutput: "42"); 3111var compilation = CompileAndVerify(source, expectedOutput: "0427"); 3165var compilation = CompileAndVerify(source, options: TestOptions.ReleaseDebugExe, expectedOutput: "0427"); 3219var compilation = CompileAndVerify(source, expectedOutput: "042"); 3270var compilation = CompileAndVerify(source, expectedOutput: "123123123123123"); 3335var compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: "222333"); 3389var compilation = CompileAndVerify(source, expectedOutput: "222333"); 3482var compilation = CompileAndVerify(source, expectedOutput: "03450"); 3566var compilation = CompileAndVerify(source, expectedOutput: "03450"); 3656var compilation = CompileAndVerify(source, expectedOutput: @" 3837var compilation = CompileAndVerify(source, expectedOutput: "hihi4242123123"); 3956var compilation = CompileAndVerify(source, expectedOutput: "D+BooSystem.Int32123"); 4044var compilation = CompileAndVerify(source, expectedOutput: "B ctor-D ctor"); 4111var compilation = CompileAndVerify(source, expectedOutput: @" 4214var compilation = CompileAndVerify(source, expectedOutput: @" 4272var compilation = CompileAndVerify(source, expectedOutput: @"abcdef"); 4315var verifier = CompileAndVerify(@" 4514var compilation = CompileAndVerify(source, expectedOutput: @"123"); 4570var compilation = CompileAndVerify(source, expectedOutput: @"0123401234"); 4678var compilation = CompileAndVerify(source, expectedOutput: @" 4720var compilation = CompileAndVerify(source, expectedOutput: @"012344321"); 4763var compilation = CompileAndVerify(source, expectedOutput: @"-100-11-1"); 4830var compilation = CompileAndVerify(source, expectedOutput: @"2 8 16 24 576 288"); 4915var compilation = CompileAndVerify(source, expectedOutput: @"True False True True"); 4982var compilation = CompileAndVerify(source, expectedOutput: @"-25 4294967295 1073741823"); 5048var compilation = CompileAndVerify(source, expectedOutput: @" 5101var compilation = CompileAndVerify(source, expectedOutput: @"PASS", verify: Verification.Passes); 5162var compilation = CompileAndVerify(source, expectedOutput: @"hi", verify: Verification.Fails); 5254var compilation = CompileAndVerify(source, expectedOutput: @"hihi", verify: Verification.Fails); 5311var compilation = CompileAndVerify(source, expectedOutput: @" 5502var compilation = CompileAndVerify(source, expectedOutput: @"42123"); 5541var compilation = CompileAndVerify(source, expectedOutput: @"True"); 5582var compilation = CompileAndVerify(source, expectedOutput: @"True"); 5685var v = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"1"); 5789var compilation = CompileAndVerify(source, expectedOutput: @"1"); 5842var compilation = CompileAndVerify(source, expectedOutput: @"True"); 5902var compilation = CompileAndVerify(source, expectedOutput: @"TrueTrueTrueTrueTrue"); 5962var compilation = CompileAndVerify(source, expectedOutput: @"12"); 5999var compilation = CompileAndVerify(source, expectedOutput: @"onetwo"); 6057var compilation = CompileAndVerify(source, expectedOutput: @"23"); 6103var compilation = CompileAndVerify(source, expectedOutput: @"onetwo"); 6142var compilation = CompileAndVerify(source, expectedOutput: @"A#A##"); 6195var compilation = CompileAndVerify(source, expectedOutput: @"12"); 6236var compilation = CompileAndVerify(source, expectedOutput: @"CurrentCultureIgnoreCaseInvariantCulture"); 6275var compilation = CompileAndVerify(source, expectedOutput: @"12"); 6366var compilation = CompileAndVerify(source, expectedOutput: @"BCDE2442"); 6439var compilation = CompileAndVerify(source, expectedOutput: @"hi"); 6576var compilation = CompileAndVerify(source, expectedOutput: @"hi"); 6670var compilation = CompileAndVerifyWithMscorlib40(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @" 6793var compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"3-5"); 6855var compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"30"); 6927var compilation = CompileAndVerifyWithMscorlib40(source, expectedOutput: @" 7010var verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 7066var compilation = CompileAndVerify(source, expectedOutput: @"0"); 7122var compilation = CompileAndVerify(source, options: TestOptions.ReleaseDebugExe, expectedOutput: @"0"); 7172var compilation = CompileAndVerify(source, expectedOutput: @"123"); 7211var compilation = CompileAndVerify(source); 7249var compilation = CompileAndVerify(source); 7290var compilation = CompileAndVerify(source); 7328var compilation = CompileAndVerify(source, expectedOutput: @""); 7366var compilation = CompileAndVerify(source, expectedOutput: @"123"); 7406var compilation = CompileAndVerify(source, expectedOutput: @"Program+Shade 7491var compilation = CompileAndVerify(source, expectedOutput: @"2"); 7593var compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @" 7692var compilation = CompileAndVerify(source, expectedOutput: "True6False"); 7743var compilation = CompileAndVerify(source, expectedOutput: "6"); 7803var compilation = CompileAndVerify(source, expectedOutput: @" 7876var compilation = CompileAndVerify(source, options: TestOptions.DebugExe.WithModuleName("MODULE")); 7972var compilation = CompileAndVerify(source, expectedOutput: "Hello"); 8033var compilation = CompileAndVerify(source, expectedOutput: @"224"); 8107var compilation = CompileAndVerify(source, expectedOutput: @"result=One,Two"); 8186var compilation = CompileAndVerify(source, expectedOutput: @"6"); 8392var compilation = CompileAndVerify(source, expectedOutput: @" 8506var compilation = CompileAndVerify(source, expectedOutput: @"first 8552var compilation = CompileAndVerify(source, expectedOutput: @"1 8626var compilation = CompileAndVerify(source, expectedOutput: @"2 8697var compilation = CompileAndVerify(source, expectedOutput: @"2 8743var compilation = CompileAndVerify(source, expectedOutput: @"2 8784var compilation = CompileAndVerify(source, expectedOutput: @"2 8863var compilation = CompileAndVerify(source, expectedOutput: @"2 8937var compilation = CompileAndVerify(source, expectedOutput: @"2 9006var compilation = CompileAndVerify(source, options: TestOptions.ReleaseDebugExe, expectedOutput: @"2 9078var compilation = CompileAndVerify(source, expectedOutput: @"1"); 9123var compilation = CompileAndVerify(source, expectedOutput: @"42"); 9170var compilation = CompileAndVerify(source, expectedOutput: @"42", options: TestOptions.ReleaseDebugExe); 9220var compilation = CompileAndVerify(source, expectedOutput: @"42"); 9546var compilation = CompileAndVerify(source, expectedOutput: @"M() Called!M() Called!"); 9595var compilation = CompileAndVerify(source, expectedOutput: @"123"); 9667var compilation = CompileAndVerify(source, expectedOutput: @"12"); 9786var compilation = CompileAndVerify(source, expectedOutput: @"6"); 9883var compilation = CompileAndVerify(source, expectedOutput: "0"). 10015var compilation = CompileAndVerify(source, expectedOutput: @"1"); 10045var comp = CompileAndVerify(source, expectedOutput: @"False"); 10568var compilation = CompileAndVerify(source); 10717var compilation = CompileAndVerify(source, expectedOutput: 10732var compilation = CompileAndVerify(source, expectedOutput: 11119var compilation = CompileAndVerify(source, expectedOutput: "101"); 11155var compilation = CompileAndVerify(source, expectedOutput: "99.9"); 11197var compilation = CompileAndVerify(source); 11220var compilation = CompileAndVerify(source, expectedOutput: "11"); 11253var compilation = CompileAndVerify(source, expectedOutput: @" 11286var compilation = CompileAndVerify(source, expectedOutput: @" 11318var compilation = CompileAndVerify(source, expectedOutput: @" 11337var compilation = CompileAndVerify(source, expectedOutput: "79228162514264337593543950335"); 11366var compilation = CompileAndVerify(source, expectedOutput: "79228162514264337593543950334-1"); 11422var compilation = CompileAndVerify(source, expectedOutput: @" 11489var compilation = CompileAndVerify(source, expectedOutput: @" 11564var compilation = CompileAndVerify(source, expectedOutput: @" 11685var compilation = CompileAndVerify(source, expectedOutput: @" 11895var compilation = CompileAndVerify(source, expectedOutput: @"bye"); 11950var compilation = CompileAndVerify(source, expectedOutput: @"0"); 12013var compilation = CompileAndVerify(source, expectedOutput: @"1A"); 12045var compilation = CompileAndVerify(source, expectedOutput: @"1A"); 12086var compilation = CompileAndVerify(source, expectedOutput: "null;null;C1;"); 12117var compilation = CompileAndVerify(source, expectedOutput: @"1A"); 12146var compilation = CompileAndVerify(source, expectedOutput: @"00"); 12182var compilation = CompileAndVerify(source, expectedOutput: @"0"); 12211var compilation = CompileAndVerify(source, expectedOutput: @"0"); 12299var comp = CompileAndVerify(source, expectedOutput: @"42", parseOptions: TestOptions.Regular7_2, verify: Verification.FailsPEVerify); 12453var comp = CompileAndVerify(source, expectedOutput: @"-10", verify: Verification.FailsPEVerify); 12525var compilation = CompileAndVerify(source, expectedOutput: @"123"); 12583var compilation = CompileAndVerify(source, expectedOutput: @""); 12637var compilation = CompileAndVerify(source, expectedOutput: @"notequal1 12766var compilation = CompileAndVerify(source, expectedOutput: @"True 13007var compilation = CompileAndVerify(source, expectedOutput: expectedOutput); 13044var compilation = CompileAndVerify(source, expectedOutput: expectedOutput); 13223var compilation = CompileAndVerify(source, expectedOutput: expectedOutput); 13347var compilation = CompileAndVerify( 13410var compilation = CompileAndVerifyWithMscorlib40(code, expectedOutput: "4"); 13435var comp = CompileAndVerify(code, expectedOutput: "5", options: TestOptions.DebugExe); 13657var v = CompileAndVerify(comp); 13962var compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"False 14985var compilation = CompileAndVerify(source, expectedOutput: @"42 15040var compilation = CompileAndVerify(source, expectedOutput: @"42"); 15089var compilation = CompileAndVerify(source, expectedOutput: @"42"); 15135var compilation = CompileAndVerify(source, references: new[] { testReference }); 15177var compilation = CompileAndVerify(source, expectedOutput: "2"); 15231var compilation = CompileAndVerify(source, expectedOutput: "True"); 15277var compilation = CompileAndVerify(source, expectedOutput: "hi"); 15324var compilation = CompileAndVerify(source, expectedOutput: "o"); 15377var compilation = CompileAndVerify(source, expectedOutput: "hi"); 15462var compilation = CompileAndVerify(source, expectedOutput: ""); 15560var compilation = CompileAndVerifyWithMscorlib40(source, new[] { SystemCoreRef, CSharpRef }, expectedOutput: "2"); 15631var compilation = CompileAndVerifyWithMscorlib40(source, new[] { SystemCoreRef, CSharpRef }, expectedOutput: "2"); 15744var compilation = CompileAndVerifyWithMscorlib40(source, new[] { SystemCoreRef, CSharpRef }, expectedOutput: "long.ex caught"); 15790var compilation = CompileAndVerifyWithMscorlib40(source, new[] { SystemCoreRef, CSharpRef }, expectedOutput: "long.ex caught"); 16115var compilation = CompileAndVerify(source, expectedOutput: @" 16257var compilation = CompileAndVerify(source); 16796var verifier = CompileAndVerify(source, expectedOutput: "B"); 16835var verifier = CompileAndVerify(source, expectedOutput: "AB"); 16881var verifier = CompileAndVerify(source, expectedOutput: "3"); 16925var verifier = CompileAndVerify(source, expectedOutput: "Object[]AString[]B"); 16975var verifier = CompileAndVerify(source, expectedOutput: "2"); 17241var compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithAllowUnsafe(true), verify: Verification.Skipped, expectedOutput: @""); 17313var verifier = CompileAndVerify(comp, expectedOutput: "System.Int32").VerifyDiagnostics();
CodeGen\CodeGenThrowTests.cs (10)
27var compilation = CompileAndVerifyException<Exception>(source, "TestThrowNewExpression"); 51var compilation = CompileAndVerifyException<Exception>(source, "TestThrowLocalExpression"); 74var compilation = CompileAndVerifyException<NullReferenceException>(source); 103var compilation = CompileAndVerify(source); 140var compilation = CompileAndVerify(source); 168var compilation = CompileAndVerify(source); 205var compilation = CompileAndVerify(source); 233var compilation = CompileAndVerify(source); 340var compilation = CompileAndVerify(source); 365var compilation = CompileAndVerify(source);
CodeGen\CodeGenTryFinally.cs (46)
46var compilation = CompileAndVerify(source); 118var compilation = CompileAndVerify(source); 201var compilation = CompileAndVerify(source, expectedOutput: "1, 3, 4, 1, 2, 3, "); 261var compilation = CompileAndVerify(source, expectedOutput: "before, catch, before, after,"); 319var compilation = CompileAndVerify(source, expectedOutput: ""); 387var compilation = CompileAndVerify(source, expectedOutput: ""); 462var compilation = CompileAndVerify(source, expectedOutput: "hellobyebye"); 547var compilation = CompileAndVerify(source); 634var compilation = CompileAndVerify(source); 701var compilation = CompileAndVerify(source); 765var compilation = CompileAndVerify(source); 901var compilation = CompileAndVerify(source, expectedOutput: ""); 980var compilation = CompileAndVerify(source, expectedOutput: 1072var compilation = CompileAndVerify(source, expectedOutput: @" 1161var compilation = CompileAndVerify(source, expectedOutput: @" 1268var compilation = CompileAndVerify(source, expectedOutput: @" 1387var compilation = CompileAndVerify(source, expectedOutput: @" 1524var compilation = CompileAndVerify(source, expectedOutput: @" 1657var compilation = CompileAndVerify(source, expectedOutput: @" 1791var compilation = CompileAndVerify(source, expectedOutput: @" 1917var compilation = CompileAndVerify(source); 2083var compilation = CompileAndVerify(source); 2290var comp = CompileAndVerify(src, 2496var comp = CompileAndVerify(src, expectedOutput: "TryCatchS1Finally"); 2573var comp = CompileAndVerify(src); 2611var comp = CompileAndVerify(src); 2649var comp = CompileAndVerify(src); 2716var comp = CompileAndVerify(src, expectedOutput: "ExceptionFilter"); 2798var comp = CompileAndVerify(src, expectedOutput: "FinallyOuterCatch"); 2871var compilation = CompileAndVerify(source, expectedOutput: "M(0)=-4, M(1)=11, M(2)=6"); 2956var compilation = CompileAndVerify(source); 3028var compilation = CompileAndVerify(source, expectedOutput: 3151var compilation = CompileAndVerify(source, expectedOutput: ""); 3212var compilation = CompileAndVerify(source, expectedOutput: "0"); 3266var compilation = CompileAndVerify(source, expectedOutput: "hello"); 3321var compilation = CompileAndVerify(source, expectedOutput: "0"); 3393var compilation = CompileAndVerify(source, expectedOutput: "0"); 3476var compilation = CompileAndVerify(source, expectedOutput: "0"); 3552var compilation = CompileAndVerify(source, expectedOutput: @"2 3629var compilation = CompileAndVerify(source, expectedOutput: @"2 3682var compilation = CompileAndVerify(source, expectedOutput: @""); 3826var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: "M1M4M1M2Catch", 3924var verifier = CompileAndVerify(source, options: TestOptions.ReleaseDll).VerifyDiagnostics(); 4085var verifier = CompileAndVerify(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 4149var verifier = CompileAndVerify(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 4212var verifier = CompileAndVerify(source, options: TestOptions.ReleaseDll).VerifyDiagnostics(
CodeGen\CodeGenTupleEqualityTests.cs (34)
193var comp = CompileAndVerify(source); 239var comp = CompileAndVerify(source); 280var comp = CompileAndVerify(source); 328var comp = CompileAndVerify(source, expectedOutput: "True False False"); 410var comp = CompileAndVerify(source, expectedOutput: "True"); 450var comp = CompileAndVerify(source, expectedOutput: "TrueFalse"); 493var comp = CompileAndVerify(source, expectedOutput: "FalseTrue"); 533var comp = CompileAndVerify(source, expectedOutput: "FalseTrue"); 569var comp = CompileAndVerify(source, expectedOutput: "True"); 629var comp = CompileAndVerify(source, expectedOutput: "1 == 1, 2 == 2, True"); 661var comp = CompileAndVerify(source, expectedOutput: "2 == 2, 2 == 2, True"); 676var comp = CompileAndVerify(source); 707var comp = CompileAndVerify(source); 3273var verifier = CompileAndVerify(comp, expectedOutput: "True False False True False"); 3358var verifier = CompileAndVerify(comp, expectedOutput: "True"); 3393var verifier = CompileAndVerify(comp, expectedOutput: "True"); 3428var verifier = CompileAndVerify(comp, expectedOutput: "True"); 3644var verifier = CompileAndVerify(comp, expectedOutput: "True"); 3679var verifier = CompileAndVerify(comp, expectedOutput: "False True True False True"); 3803var verifier = CompileAndVerify(comp, expectedOutput: "True False False True False"); 3906var verifier = CompileAndVerify(comp, expectedOutput: "True False False Convert4 Convert4 True Convert5 False Convert6 Convert20 False "); 4000var verifier = CompileAndVerify(comp, expectedOutput: "FalseTrueFalse"); 4078var verifier = CompileAndVerify(comp, expectedOutput: "False False Convert1 True Convert1 True Convert10 False Convert10 False"); 4119var verifier = CompileAndVerify(comp, expectedOutput: "FalseTrueFalse"); 4335var verifier = CompileAndVerify(comp, expectedOutput: "TrueFalse"); 4383var verifier = CompileAndVerify(comp, expectedOutput: "True"); 5587var comp = CompileAndVerify(source, expectedOutput: "True"); 5606var comp = CompileAndVerify(source, expectedOutput: "False"); 5634var comp = CompileAndVerify(source, expectedOutput: "True"); 5662var comp = CompileAndVerify(source, expectedOutput: "True"); 5682var comp = CompileAndVerify(source, expectedOutput: "1").VerifyDiagnostics(); 5747var comp = CompileAndVerify(source, expectedOutput: "M11").VerifyDiagnostics(); 5799var comp = CompileAndVerify(source, expectedOutput: "1").VerifyDiagnostics(); 5879var comp = CompileAndVerify(source, expectedOutput: "1").VerifyDiagnostics();
CodeGen\CodeGenTupleTest.cs (181)
1032var comp = CompileAndVerify(source, expectedOutput: "{1, 2}"); 1216var comp = CompileAndVerify(source, expectedOutput: "2"); 1249var comp = CompileAndVerify(source, expectedOutput: "{, }"); 1282var comp = CompileAndVerify(source, expectedOutput: "{1, {2, {3, 4}}}"); 1326var comp = CompileAndVerify(source, expectedOutput: @"2 1372var comp = CompileAndVerify(source, expectedOutput: @"2 1418var comp = CompileAndVerify(source, expectedOutput: @"2 1464var comp = CompileAndVerify(source, expectedOutput: @"2 1518var comp = CompileAndVerify(source, expectedOutput: @"{1, hello, 2}"); 1638var comp = CompileAndVerify(source, expectedOutput: @"1 1656var comp = CompileAndVerify(source, expectedOutput: @"1 hello hello 3"); 1716var comp = CompileAndVerify(source, expectedOutput: @"1 hello 3"); 1748var comp = CompileAndVerify(source, expectedOutput: @"4"); 1805var comp = CompileAndVerify(source, expectedOutput: @"42"); 1843var comp = CompileAndVerify(source, expectedOutput: @"{42, 42}"); 1908var comp = CompileAndVerify(source, targetFramework: TargetFramework.Mscorlib46Extended, expectedOutput: @"42"); 1974var comp = CompileAndVerify(source, expectedOutput: @"42"); 2042var comp = CompileAndVerify(source, expectedOutput: @"42"); 2171var comp = CompileAndVerify(source, expectedOutput: 2213var verifier = CompileAndVerify(source, expectedOutput: @"42", options: TestOptions.ReleaseExe); 2333var verifier = CompileAndVerify(source, expectedOutput: @"{42, 42}", options: TestOptions.ReleaseExe); 2480var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Mscorlib46Extended, expectedOutput: @"42", options: TestOptions.ReleaseExe); 2622var verifier = CompileAndVerify(source, expectedOutput: @"42", options: TestOptions.ReleaseExe); 2764var verifier = CompileAndVerify(source, expectedOutput: @"42", options: TestOptions.ReleaseExe); 2881var comp = CompileAndVerify(source, 3080var comp = CompileAndVerify(source, expectedOutput: @"0 3194var verifier = CompileAndVerify(source, expectedOutput: @"1 2 3 4 5"); 3227var verifier = CompileAndVerify(source, expectedOutput: @"1 2 3 4 5 6 7 Alice 2 3 4 5", sourceSymbolValidator: validator); 3260var verifier = CompileAndVerify(source, expectedOutput: @"1 2 3 4 5 6 7 Alice 2 3 4 5", sourceSymbolValidator: validator); 3440var comp = CompileAndVerify(source, 3474var 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); 3492var comp = CompileAndVerify(source, 3511var comp = CompileAndVerify(source, 3531var comp = CompileAndVerify(source, 3611var comp = CompileAndVerify(source, 3652var verifier = CompileAndVerify(source, expectedOutput: @"1 2 3 4 5 6 7 Alice 2 3 4 5 6 7 Bob 2 3", sourceSymbolValidator: validator); 3709var verifier = CompileAndVerify(source, sourceSymbolValidator: validator); 3945var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 4029var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 4050var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 4084var verifier7_1 = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 4130var verifier = CompileAndVerify(source, expectedOutput: @"1 4 7 Alice 7 Bob 3"); 4160var verifier = CompileAndVerify(source, expectedOutput: @"Alice 1", sourceSymbolValidator: validator); 4182var comp = CompileAndVerify(source, 4229var comp = CompileAndVerify(source, 4278var v = CompileAndVerify(comp, expectedOutput: @" 4426var 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) }); 4743var comp = CompileAndVerify(source, expectedOutput: @"5 3"); 4772var comp = CompileAndVerify(source, expectedOutput: @"1 7 8"); 4801var comp = CompileAndVerify(source, expectedOutput: @"5 3"); 4875var comp = CompileAndVerify(source, expectedOutput: @"5 3"); 4910var comp = CompileAndVerify(source, expectedOutput: @"CB CA CC"); 5240var comp = CompileAndVerify(source, 5296var comp = CompileAndVerify(source, 5322var comp = CompileAndVerify(source, 5349var comp = CompileAndVerify(source, 5374var comp = CompileAndVerify(source, 5397var comp = CompileAndVerify(source, 5590var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: expectedOutput); 5650var comp = CompileAndVerify(source, expectedOutput: "Item1: 2 Rest: (2, 2)", references: new[] { CSharpRef }); 5672var comp = CompileAndVerify(source, expectedOutput: "a:1, h:8, i:9, Item9:9, Rest:(8, 9)", references: new[] { CSharpRef }); 5696var comp = CompileAndVerify(source, expectedOutput: "done", references: new[] { CSharpRef }); 5731var comp = CompileAndVerify(source, expectedOutput: expectedOutput, references: new[] { CSharpRef }); 5782var comp = CompileAndVerify(source, expectedOutput: "12345678901234567890123456789012345"); 6995var comp = CompileAndVerify(source, expectedOutput: @" 7677var comp = CompileAndVerify(source, 7756var comp = CompileAndVerify(source, 7795var comp = CompileAndVerify(source, 7828var comp = CompileAndVerify(source, 7867var comp = CompileAndVerify(source, expectedOutput: @" 7901var comp = CompileAndVerify(source, 7933var comp = CompileAndVerify(source, expectedOutput: 7975var comp = CompileAndVerify(source, expectedOutput: @" 9397var comp = CompileAndVerify(source, 9436var comp = CompileAndVerify(source, 9473var comp = CompileAndVerify(source, 9510var comp = CompileAndVerify(source, 9544var comp = CompileAndVerify(source, 9582var comp = CompileAndVerify(source, 9618var comp = CompileAndVerify(source, expectedOutput: @" 9653var comp = CompileAndVerify(source, 9697var comp = CompileAndVerify(source, expectedOutput: @" 9748var comp = CompileAndVerify(source, expectedOutput: @" 9781var comp = CompileAndVerify(source, expectedOutput: @" 10163var comp = CompileAndVerify(source, 10200var comp = CompileAndVerify(source, 10299var comp = CompileAndVerify(source, 10332var comp = CompileAndVerify(source, 10792var comp = CompileAndVerify(source, 10825var comp = CompileAndVerify(source, 10855var comp = CompileAndVerify(source, 10885var comp = CompileAndVerify(source, 11009var comp = CompileAndVerify(source, 11343var comp = CompileAndVerify(source, 11723var comp = CompileAndVerify(source, 11862var comp = CompileAndVerify(source, 12139var comp = CompileAndVerify(source, 12674var comp = CompileAndVerify(source, expectedOutput: @"1 13960var comp = CompileAndVerify(source, 14206var comp = CompileAndVerify(source, 15092var comp = CompileAndVerify(source, 15156var comp = CompileAndVerify(source, 15710var comp = CompileAndVerify(source, 15782var comp = CompileAndVerify(source, 15997var comp = CompileAndVerify(source, expectedOutput: 16642var comp = CompileAndVerify(source, 16661var comp = CompileAndVerify(source, 16687var comp = CompileAndVerify(source, expectedOutput: "(1, Alice, 2, Brenda, 3, Chloe, 4, Dylan)"); 16709var comp = CompileAndVerify(source, expectedOutput: "1 1 (8) 8 8"); 17480var comp = CompileAndVerifyWithMscorlib40(source, expectedOutput: "(1, 2)", references: new[] { tupleComp.ToMetadataReference() }); 17525var comp = CompileAndVerify(source, expectedOutput: @" 17574var comp = CompileAndVerify(source, expectedOutput: @" 17614var comp = CompileAndVerify(source, 17703var comp = CompileAndVerify(source, 17792var comp = CompileAndVerify(source, 17832var comp = CompileAndVerify(source, 17892var comp = CompileAndVerify(source, 18020var comp = CompileAndVerify(source, 18078var comp = CompileAndVerify(source, 18287var comp = CompileAndVerify(source, expectedOutput: @" 18319var comp = CompileAndVerify(source, expectedOutput: @" 18343var comp = CompileAndVerify(source, expectedOutput: @" 18413var comp = CompileAndVerify(source, expectedOutput: @" 18483var comp = CompileAndVerify(source, parseOptions: TestOptions.Regular, expectedOutput: @" 18598var comp = CompileAndVerify(source, expectedOutput: @" 18706var comp = CompileAndVerify(source, 18739var comp = CompileAndVerify(source, 18777var comp = CompileAndVerify(source, 19339var verifier = CompileAndVerify(comp, expectedOutput: "(42, 43)"); 21451var comp = CompileAndVerify(source, 21478var comp = CompileAndVerify(source, 21502var comp = CompileAndVerify(source, 21544var comp = CompileAndVerify(source, 21586var comp = CompileAndVerify(source, 21628var comp = CompileAndVerify(source, 21670var comp = CompileAndVerify(source, 21705var comp = CompileAndVerify(source, 21750var comp = CompileAndVerify(source, 21788var comp = CompileAndVerify(source, 22141var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Mscorlib46, expectedOutput: @"5", options: TestOptions.ReleaseExe); 23297var comp = CompileAndVerify(source); 23335var comp = CompileAndVerify(source, 23446var comp = CompileAndVerify(source, expectedOutput: "42qq", references: new[] { libComp.ToMetadataReference() }, options: TestOptions.DebugExe, verify: Verification.Fails); 23502var comp = CompileAndVerifyWithMscorlib40(source, expectedOutput: "42qq", references: s_valueTupleRefs.Concat(new[] { libCompRef }).ToArray(), options: TestOptions.DebugExe, verify: Verification.Fails); 23544var comp = CompileAndVerify(source, 23584var comp = CompileAndVerify(source, 23628var comp = CompileAndVerify(source, 23663var comp = CompileAndVerify(source, 23694var comp = CompileAndVerify(source, 23740var comp = CompileAndVerify(source, 23901var comp = CompileAndVerify(source, expectedOutput: "42qq", references: new[] { libCompRef }, options: TestOptions.DebugExe, verify: Verification.Passes); 23961var comp = CompileAndVerify(source, 25124var comp = CompileAndVerify(source, 25158var comp = CompileAndVerify(source, 25549var verifier = CompileAndVerify(comp, expectedOutput: @"(-1, 255)(-1, 255)overflow"); 25616var comp = CompileAndVerify(source, 25941var comp = CompileAndVerify(source, expectedOutput: "24"); 25960var comp = CompileAndVerify(source, expectedOutput: "4"); 25984var comp = CompileAndVerify(source, 26009var comp = CompileAndVerify(source, 26035var comp = CompileAndVerify(source, 26061var comp = CompileAndVerify(source, 26084var comp = CompileAndVerify(source, 26105var comp = CompileAndVerify(source, 26152var comp = CompileAndVerify(source, 26174var comp = CompileAndVerify(source, expectedOutput: "3"); 27337var verifier = CompileAndVerify(comp1, verify: Verification.Skipped); // unsafe code 27655var verifier = CompileAndVerify(comp, expectedOutput: @"Done."); 27951var verifier = CompileAndVerify(comp, symbolValidator: verifyModule, sourceSymbolValidator: verifyModule); 28027var verifier = CompileAndVerify(comp, symbolValidator: verifyModule, sourceSymbolValidator: verifyModule); 28390var verifier = CompileAndVerify(comp, symbolValidator: verifyModule, sourceSymbolValidator: verifyModule); 28485var verifier = CompileAndVerify(comp, symbolValidator: verifyModule, sourceSymbolValidator: verifyModule); 28958var comp = CompileAndVerify($@" 29096var verifier = CompileAndVerify(source + trivial2uple, expectedOutput: 29179var verifier = CompileAndVerify(source, options: TestOptions.ReleaseDll); 29229var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: """ 29352var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: """ 29457var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: """ 29573var verifier = CompileAndVerify(source, expectedOutput: "(2, 3, 1)"); 29666var verifier = CompileAndVerify(source, expectedOutput: "(2, 3, 4, 5, 6, 7, 8, 9, 1)"); 29746var verifier = CompileAndVerify(source, expectedOutput: """
CodeGen\CodeGenTypeofTests.cs (11)
30var comp = CompileAndVerify(source, expectedOutput: "C"); 77var comp = CompileAndVerify(source, expectedOutput: @" 150var comp = CompileAndVerify(source, expectedOutput: @" 207var comp = CompileAndVerify(source, expectedOutput: @" 259var comp = CompileAndVerify(source, expectedOutput: @" 332var comp = CompileAndVerify(source, expectedOutput: expected); 391var comp = CompileAndVerify(source, expectedOutput: expected); 436var comp = CompileAndVerify(source, expectedOutput: ""); 462var comp = CompileAndVerify(source, expectedOutput: @" 532var comp = CompileAndVerify(source, expectedOutput: @" 618var comp = CompileAndVerify(source, expectedOutput: @"
CodeGen\CodeGenUsingStatementTests.cs (21)
71var verifier = CompileAndVerify(text, expectedOutput: @"Before 108var verifier = CompileAndVerify(text, expectedOutput: @"Before 144var verifier = CompileAndVerify(text, expectedOutput: @"Before 198var verifier = CompileAndVerify(text, expectedOutput: @"Before 274var verifier = CompileAndVerify(text, expectedOutput: expected); 330var verifier = CompileAndVerify(text, expectedOutput: @"Creating A 382var verifier = CompileAndVerify(text, expectedOutput: @"Before 419var verifier = CompileAndVerify(text, expectedOutput: @"Before 455var verifier = CompileAndVerify(text, expectedOutput: @"Before 509var verifier = CompileAndVerify(text, expectedOutput: @"Before 585var verifier = CompileAndVerify(text, expectedOutput: expected); 641var verifier = CompileAndVerify(text, expectedOutput: @"Creating A 693var verifier = CompileAndVerify(text, expectedOutput: @"Before 781var verifier = CompileAndVerify(text, expectedOutput: @"Before 867var verifier = CompileAndVerify(text, expectedOutput: @"Before 939var verifier = CompileAndVerify(text, expectedOutput: @"Before 2041var comp = CompileAndVerify(source, expectedOutput: @"InUsing"); 2097var comp = CompileAndVerify(source, expectedOutput: ""); 2165var comp = CompileAndVerify(source, expectedOutput: expected); 2830var comp = CompileAndVerify(source, expectedOutput: @""); 3126var verifier = CompileAndVerify(source, expectedOutput: "12");
CodeGen\DestructorTests.cs (8)
51var compVerifier = CompileAndVerify(text, 105var compVerifier = CompileAndVerify(text, 164var compVerifier = CompileAndVerify(text, 250var compVerifier = CompileAndVerify(text, 351var compVerifier = CompileAndVerify(text, 406var compVerifier = CompileAndVerify(text, 463var compVerifier = CompileAndVerify(text, 498var compVerifier = CompileAndVerify(text);
CodeGen\EventTests.cs (8)
36var compVerifier = CompileAndVerify(text, 70var compVerifier = CompileAndVerify(text, 100var compVerifier = CompileAndVerify(text, 163var compVerifier = CompileAndVerify(text, 434var compVerifier = CompileAndVerify(text, 711var verifier = CompileAndVerify(compilation, 783var verifier = CompileAndVerify(compilation, 843var verifier = CompileAndVerify(compilation);
CodeGen\FixedSizeBufferTests.cs (3)
26var verifier = CompileAndVerify(@" 1079var verifier = CompileAndVerify(@" 1108var verifier = CompileAndVerify(@"
CodeGen\ForLoopsTests.cs (18)
35var compilation = CompileAndVerify(source, expectedOutput: "81"); 87var compilation = CompileAndVerify(source, expectedOutput: "1, 1"); 144var compilation = CompileAndVerify(source, expectedOutput: "1, 0"); 188var compilation = CompileAndVerify(source, expectedOutput: "0, 0"); 235var compilation = CompileAndVerify(source, expectedOutput: "5, 3, 4, 4"); 318var compilation = CompileAndVerify(source, expectedOutput: "6"); 363var compilation = CompileAndVerify(source, expectedOutput: "6"); 726var c = CompileAndVerify(source, options: TestOptions.ReleaseDll); 907var c = CompileAndVerify(source, options: TestOptions.ReleaseDll); 961var c = CompileAndVerify(source, options: TestOptions.ReleaseDll); 1265var c = CompileAndVerify(source, options: TestOptions.ReleaseDll); 1621var comp = CompileAndVerify(text, expectedOutput: @"1 1657var comp = CompileAndVerify(text, expectedOutput: @"1 1706var comp = CompileAndVerify(text, expectedOutput: @"1 1813var comp = CompileAndVerify(text, expectedOutput: @"1 1836var comp = CompileAndVerify(text, expectedOutput: @"1 1863var comp = CompileAndVerify(text, expectedOutput: @"-1 1916var c = CompileAndVerify(text, options: TestOptions.DebugExe);
CodeGen\GotoTest.cs (5)
222var c = CompileAndVerify(text); 318var c = CompileAndVerify(text); 359var c = CompileAndVerify(text); 393var c = CompileAndVerify(text, expectedOutput: @"a 503var c = CompileAndVerify(source, options: TestOptions.ReleaseDll);
CodeGen\IndexAndRangeTests.cs (28)
20private CompilationVerifier CompileAndVerifyWithIndexAndRange(string s, string expectedOutput = null) 126var verifier = CompileAndVerifyWithIndexAndRange(src); 191var verifier = CompileAndVerify(comp, expectedOutput: @"0 281var verifier = CompileAndVerify(comp, expectedOutput: @"0 413var verifier = CompileAndVerify(comp, expectedOutput: @"0 510var verifier = CompileAndVerify(comp, expectedOutput: @" 677var verifier = CompileAndVerify(comp, expectedOutput: @" 830var verifier = CompileAndVerify(comp, expectedOutput: @" 952var verifier = CompileAndVerify(comp, expectedOutput: @"0 1025var verifier = CompileAndVerify(comp, expectedOutput: @"5 1099var verifier = CompileAndVerify(comp, expectedOutput: @"f 1184var verifier = CompileAndVerify(comp, expectedOutput: @"5 1276var verifier = CompileAndVerifyWithIndexAndRange(src, expectedOutput: @" 1298var verifier = CompileAndVerifyWithIndexAndRange(src, expectedOutput: @"5 1356var verifier = CompileAndVerifyWithIndexAndRange(src, @" 1447var verifier = CompileAndVerifyWithIndexAndRange(src, @" 1473var verifier = CompileAndVerifyWithIndexAndRange(@" 1628var verifier = CompileAndVerifyWithIndexAndRange(@" 1753var verifier = CompileAndVerifyWithIndexAndRange(@" 1779var verifier = CompileAndVerifyWithIndexAndRange(@" 1823var verifier = CompileAndVerify(comp); 1900var verifier = CompileAndVerify(comp, expectedOutput: @"2 1965var verifier = CompileAndVerifyWithIndexAndRange(@" 2048var verifier = CompileAndVerifyWithIndexAndRange(@" 2100var verifier = CompileAndVerify(comp, verify: Verification.Passes, expectedOutput: @"3 3362var verifier = CompileAndVerify(comp, expectedOutput: 4152var verifier = CompileAndVerifyWithIndexAndRange(src, expectedOutput: "1").VerifyDiagnostics(); 4204var verifier = CompileAndVerifyWithIndexAndRange(src, expectedOutput: "1").VerifyDiagnostics();
CodeGen\IndexerTests.cs (16)
32var compVerifier = CompileAndVerify(text, 51var compVerifier = CompileAndVerify(text, 69var compVerifier = CompileAndVerify(text, 87var compVerifier = CompileAndVerify(text, 106var compVerifier = CompileAndVerify(text, 125var compVerifier = CompileAndVerify(text, 171var compVerifier = CompileAndVerify(text, symbolValidator: validator, expectedSignatures: new[] 193var compVerifier = CompileAndVerify(text, 217var compVerifier = CompileAndVerify(text, 241var compVerifier = CompileAndVerify(text, 423var compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE")); 571var compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE")); 675var compVerifier = CompileAndVerify(text, expectedOutput: @" 719var compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE")); 944var compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE")); 1110var verifier = CompileAndVerify(text, expectedOutput: @"2");
CodeGen\ITuplePatternTests.cs (3)
56var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 140var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 229var verifier = CompileAndVerify(CreatePatternCompilation(source, TestOptions.DebugDll));
CodeGen\ObjectAndCollectionInitializerTests.cs (38)
38var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 79var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 134var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 191var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 244var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 289var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 328var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 371var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 434var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 517var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 585var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 668var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 756var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 813var compVerifier = CompileAndVerify(source, expectedOutput: ""); 851var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 894var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 951var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 1041var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 1326var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 1522var compVerifier = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: expectedOutput); 1660var compVerifier = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: expectedOutput); 1873var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 1988var compVerifier = CompileAndVerify(source, targetFramework: TargetFramework.StandardAndCSharp, expectedOutput: expectedOutput); 2044var compVerifier = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: expectedOutput); 2100var compVerifier = CompileAndVerify(source, targetFramework: TargetFramework.StandardAndCSharp, expectedOutput: expectedOutput); 2397var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 2455var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 2537var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 2641var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 2727var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 2824var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 2909var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 3002var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 3115var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 3210var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 3303var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 3425var compVerifier = CompileAndVerify(source, expectedOutput: expectedOutput); 3581var verifier = CompileAndVerify(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), verify: Verification.Fails, expectedOutput:
CodeGen\PatternTests.cs (87)
238var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 335var compVerifier = CompileAndVerify(compilation); 408var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 505var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 637var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 773var compVerifier = CompileAndVerify(compilation); 834var compVerifier = CompileAndVerify(compilation); 859var compVerifier = CompileAndVerify(compilation); 895var compVerifier = CompileAndVerify(compilation); 934var compVerifier = CompileAndVerify(compilation); 970var compVerifier = CompileAndVerify(compilation); 1010var compVerifier = CompileAndVerify(compilation); 1057var compVerifier = CompileAndVerify(compilation); 1108var compVerifier = CompileAndVerify(compilation); 1143var compVerifier = CompileAndVerify(compilation); 1181var compVerifier = CompileAndVerify(compilation); 1225var compVerifier = CompileAndVerify(compilation); 1284var compVerifier = CompileAndVerify(compilation); 1341var compVerifier = CompileAndVerify(compilation); 1401var compVerifier = CompileAndVerify(compilation); 1473var compVerifier = CompileAndVerify(compilation); 1537var compVerifier = CompileAndVerify(compilation); 1600var compVerifier = CompileAndVerify(compilation); 1659var compVerifier = CompileAndVerify(compilation); 1714var compVerifier = CompileAndVerify(compilation); 1775var compVerifier = CompileAndVerify(compilation); 1842var compVerifier = CompileAndVerify(compilation); 1906var compVerifier = CompileAndVerify(compilation); 1978var compVerifier = CompileAndVerify(compilation); 2040var compVerifier = CompileAndVerify(compilation); 2103var verifier = CompileAndVerify(source); 2175var compVerifier = CompileAndVerify(compilation); 2269var compVerifier = CompileAndVerify(compilation); 2406var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 2540var compVerifier = CompileAndVerify(compilation); 2616var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 2651var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 2670var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 2729var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 2795var compVerifier = CompileAndVerify(compilation); 2841var compVerifier = CompileAndVerify(compilation, expectedOutput: "TrueFalse"); 2908var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 3003var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 3060var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 3101var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 3135var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 3240var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 3268var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 3298var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 3387var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 3473var v = CompileAndVerify(source, options: TestOptions.DebugExe); 3553var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 3635var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 3707var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 3783var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 4060var compVerifier = CompileAndVerify(compilation, expectedOutput: "TrueFalse"); 4096var compVerifier = CompileAndVerify(compilation, expectedOutput: "TrueFalse"); 4123var compVerifier = CompileAndVerify(compilation); 4175var compVerifier = CompileAndVerify(compilation); 4215var compVerifier = CompileAndVerify(compilation); 4250var compVerifier = CompileAndVerify(compilation); 4331var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 4510var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 4547var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 4581var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 4613var verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 4670var verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 4716var verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 4776var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 4809var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 4883var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 4919var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 4956var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput, verify: Verification.Skipped); 5458var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 5510var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 5610var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 5718var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 5882var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 6026var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 6195var verifier = CompileAndVerify(source, expectedOutput: "012323", options: TestOptions.DebugExe); 6280var verifier = CompileAndVerify(source, expectedOutput: " 0 1 2 3 2 3", options: TestOptions.DebugExe); 6369var verifier = CompileAndVerify(source, expectedOutput: "0123452345", options: TestOptions.DebugExe); 6465var verifier = CompileAndVerify(source, expectedOutput: "0123233", options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6550var verifier = CompileAndVerify(source, options: TestOptions.DebugDll); 6650var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "012"); 6745var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: """ 6852var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "System.ActionSystem.Action");
CodeGen\PropertyTests.cs (1)
31var verifier = CompileAndVerify(compilation);
CodeGen\SwitchTests.cs (88)
42var compVerifier = CompileAndVerify(text, expectedOutput: "0"); 80var compVerifier = CompileAndVerify(text, expectedOutput: "0"); 118var compVerifier = CompileAndVerify(text, expectedOutput: "0"); 156var compVerifier = CompileAndVerify(text, expectedOutput: "0"); 191var compVerifier = CompileAndVerify(text, expectedOutput: "0"); 240var compVerifier = CompileAndVerify(text, expectedOutput: "0"); 313var compVerifier = CompileAndVerify(text, expectedOutput: "0"); 376var compVerifier = CompileAndVerify(text, expectedOutput: "1"); 429var compVerifier = CompileAndVerify(text, expectedOutput: "1", options: TestOptions.DebugExe); 493var compVerifier = CompileAndVerify(text, expectedOutput: "1"); 543var compVerifier = CompileAndVerify(text, expectedOutput: "1"); 590var compVerifier = CompileAndVerify(text, expectedOutput: "1"); 641var compVerifier = CompileAndVerify(text, expectedOutput: "1"); 705var compVerifier = CompileAndVerify(text, expectedOutput: "4"); 796var compVerifier = CompileAndVerify(text, expectedOutput: "4"); 902var compVerifier = CompileAndVerify(text, expectedOutput: "1"); 955var compVerifier = CompileAndVerify(text, expectedOutput: "1"); 1003var compVerifier = CompileAndVerify(text, expectedOutput: "1"); 1067var compVerifier = CompileAndVerify(text, expectedOutput: "0"); 1154var compVerifier = CompileAndVerify(text, expectedOutput: "194"); 1243var compVerifier = CompileAndVerify(text, expectedOutput: "maxminonedefault"); 1312var compVerifier = CompileAndVerify(text, expectedOutput: "42"); 1408var compVerifier = CompileAndVerify(text, expectedOutput: "0"); 1512var compVerifier = CompileAndVerify(text, expectedOutput: "0"); 1604var compVerifier = CompileAndVerify(text, expectedOutput: "0"); 1651var compVerifier = CompileAndVerify(text, expectedOutput: "0"); 1700var compVerifier = CompileAndVerify(text, expectedOutput: "0"); 1766var compVerifier = CompileAndVerify(text, expectedOutput: "0"); 1809var compVerifier = CompileAndVerify(text, expectedOutput: "0"); 1863var compVerifier = CompileAndVerify(text, expectedOutput: "0"); 1973var compVerifier = CompileAndVerify(text, expectedOutput: expectedOutput); 2110var compVerifier = CompileAndVerify(text, expectedOutput: "0"); 2197var compVerifier = CompileAndVerify(text, expectedOutput: "0"); 2309var verifier = CompileAndVerify(text, expectedOutput: "null 1"); 2432var verifier = CompileAndVerify(text, expectedOutput: "null default 100 default "); 2582var compVerifier = CompileAndVerify(text, expectedOutput: "True"); 2684var compVerifier = CompileAndVerify(text, expectedOutput: "True"); 2740var compVerifier = CompileAndVerify(text, expectedOutput: "0"); 2801var compVerifier = CompileAndVerify(text, expectedOutput: "0"); 2899var compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), 3348var compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), 4032var compVerifier = CompileAndVerify(text, expectedOutput: "1", parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 4040private static void VerifySynthesizedStringHashMethod(CompilationVerifier compVerifier, bool expected) 4125var verifier = CompileAndVerify(source, expectedOutput: @"0"); 4519var verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify); 5991var compVerifier = CompileAndVerify(text); 7161var compVerifier = CompileAndVerify(text, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch(), expectedOutput: "3"); 7330var compVerifier = CompileAndVerify(text, expectedOutput: "0"); 7416var compVerifier = CompileAndVerify(text, expectedOutput: "0"); 7518var compVerifier = CompileAndVerify(text, expectedOutput: "0"); 7578var compVerifier = CompileAndVerify(text); 7622var compVerifier = CompileAndVerify(text, expectedOutput: "0"); 7671var compVerifier = CompileAndVerify(text, expectedOutput: "0"); 7721var compVerifier = CompileAndVerify(text, expectedOutput: "0"); 7760var compVerifier = CompileAndVerify(text, expectedOutput: "0"); 7801var compVerifier = CompileAndVerify(text, expectedOutput: "0"); 8475var compVerifier = CompileAndVerify(text, expectedOutput: ""); 8523var compVerifier = CompileAndVerify(text, expectedOutput: ""); 8569var compVerifier = CompileAndVerify(text, expectedOutput: ""); 8619var compVerifier = CompileAndVerify(text, expectedOutput: ""); 8677var compVerifier = CompileAndVerify(text, expectedOutput: "In DEFAULT case"); 8756var compVerifier = CompileAndVerify(text, expectedOutput: "In DEFAULT case"); 8795var compVerifier = CompileAndVerify(source, 8862var compVerifier = CompileAndVerify(source, 8938var compVerifier = CompileAndVerify(source, 9002var compVerifier = CompileAndVerify(source, 9076var compVerifier = CompileAndVerify(source, 9149var compVerifier = CompileAndVerify(source, 9224var compVerifier = CompileAndVerify(source, 9299var compVerifier = CompileAndVerify(source, 9368var compVerifier = CompileAndVerify(source, 9449var compVerifier = CompileAndVerify(source, 9580var compVerifier = CompileAndVerify(source, 9722var compVerifier = CompileAndVerify(source, 9773var compVerifier = CompileAndVerify(source, 9828var compVerifier = CompileAndVerify(source, 9885var compVerifier = CompileAndVerify(compilation, 9937var compVerifier = CompileAndVerify(compilation, 10029var compVerifier = CompileAndVerify(compilation, 10121var compVerifier = CompileAndVerify(compilation, 10169var compVerifier = CompileAndVerify(source, 10522var compVerifier = CompileAndVerify(compilation, expectedOutput: "abc"); 10609var compVerifier = CompileAndVerify(compilation, expectedOutput: "Yep, all good!"); 10804var compVerifier = CompileAndVerify(compilation, expectedOutput: "123333456"); 11027var compVerifier = CompileAndVerify(source, 11285var compVerifier = CompileAndVerify(source, 11543var compVerifier = CompileAndVerify(source, 11972var compVerifier = CompileAndVerify(source,
CodeGen\UnsafeTests.cs (77)
32var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes); 59var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 219var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes); 244var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 291var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 338var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 372var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "123", verify: Verification.Fails); 409var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "456", verify: Verification.Fails); 437var compVerifierOptimized = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "2", verify: Verification.Fails); 456var compVerifierUnoptimized = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: "2", verify: Verification.Fails); 500var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "1", verify: Verification.Fails); 552var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"Before: 2 7 599var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"ab", verify: Verification.Fails); 647var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"12", verify: Verification.Fails); 694var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"3", verify: Verification.Fails); 752var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"34", verify: Verification.Fails); 827var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"123", verify: Verification.Fails); 903var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"123", verify: Verification.Fails); 970var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"34", verify: Verification.Fails); 1084var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails); 1204var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails); 1248var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @" 1277var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "210", verify: Verification.Fails); 1297var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "1", verify: Verification.Fails).VerifyIL("C.Main", @" 1338var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"1", verify: Verification.Fails); 1396var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"123", verify: Verification.Fails); 1454var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"12", verify: Verification.Fails); 1524var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"12", verify: Verification.Fails); 1586var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 1659var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"12", verify: Verification.Fails); 1725var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"a", verify: Verification.Fails); 1770var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: @"a", verify: Verification.Fails); 1814var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: @"h", verify: Verification.Fails); 1871var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: @"hTrue", verify: Verification.Fails); 1956var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"hTrue", verify: Verification.Fails); 2027var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"01", verify: Verification.Fails); 2095var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"01", verify: Verification.Fails); 2163var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"01", verify: Verification.Fails); 2234var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"970104", verify: Verification.Fails); 4157var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Fails); 4217var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Fails); 4305var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"0", verify: Verification.Fails); 4356var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Fails); 4418var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Fails); 4658var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"20", verify: Verification.Fails); 4732var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"5456"); 4792var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"5456"); 4884var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"2123 4973var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"5456"); 5033var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"23", verify: Verification.Fails); 5111var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"3", verify: Verification.Fails); 5539var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @""); 5666var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"00", verify: Verification.Fails); 7529var comp = CompileAndVerify(text, options: TestOptions.UnsafeDebugDll, verify: Verification.Fails); 9864var verifier = CompileAndVerify(@" 9908var verifier = CompileAndVerify(@" 10194var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails); 10340var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 10827var c = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.FailsPEVerify with 10849var c = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.FailsPEVerify with 10950var comp = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyDiagnostics(); 11003var comp = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "ABC", verify: Verification.Fails).VerifyDiagnostics(); 11114var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "hello", verify: Verification.Fails); 11183var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @" 11263var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @" 11315var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll.WithConcurrentBuild(false), verify: Verification.Passes); 11339var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll.WithConcurrentBuild(false), verify: Verification.FailsPEVerify); 11379var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F6543210", verify: Verification.Fails); 11425var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F6543210", verify: Verification.Fails); 11474var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F6543210", verify: Verification.Fails); 11516var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F654320F", verify: Verification.Fails); 11559var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "0", verify: Verification.Passes); 11613var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "System.Byte[]", verify: Verification.Fails); 11686var v = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: "System.Byte[]", verify: Verification.Fails); 11810var result = CompileAndVerify(compilation, expectedOutput: "5"); 11857var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, expectedOutput: "0", verify: Verification.FailsPEVerify); 11889var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, expectedOutput: "0");
CodeGen\WinMdDelegateTests.cs (2)
52var verifier = CompileAndVerify( 274var comp = CompileAndVerify(
Emit\CompilationEmitTests.cs (4)
1060var reference = CompilationVerifier.LoadTestEmittedExecutableForSymbolValidation(image, OutputKind.DynamicallyLinkedLibrary); 1142var reference = CompilationVerifier.LoadTestEmittedExecutableForSymbolValidation(image, OutputKind.DynamicallyLinkedLibrary); 1610var verifier = CompileAndVerify(comp); 1687var verifier = CompileAndVerify(comp);
Emit\DeterministicTests.cs (1)
437var cv = CompileAndVerify(source: new string[] { x1, x2, x3 }, expectedOutput: expectedOutput1);
Emit\DynamicAnalysis\DynamicInstrumentationTests.cs (45)
275CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput); 471CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput); 678CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput, options: TestOptions.ReleaseExe); 744CompilationVerifier verifier = CompileAndVerify(source, expectedOutput: checker.ExpectedOutput, options: TestOptions.ReleaseExe); 854CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput, options: TestOptions.ReleaseExe); 948CompilationVerifier verifier = CompileAndVerify(source, expectedOutput: checker.ExpectedOutput, options: TestOptions.ReleaseExe); 1029CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput, options: TestOptions.ReleaseExe); 1128CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput); 1225CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.UnsafeDebugExe, expectedOutput: expectedOutput, verify: Verification.Fails); 1414CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput); 1506CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput); 1661CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput); 1750CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput); 1827CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput); 1932CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput); 2020CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput); 2131CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput); 2282CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput); 2407CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput); 2478var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2499var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2519var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2538var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2567var verifier = CompileAndVerify(source + InstrumentationHelperSource, 2597var verifier = CompileAndVerify(source + InstrumentationHelperSource, 2644var verifier = CompileAndVerify(source + InstrumentationHelperSource, 2677var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2711var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2749var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 2794var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2863var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2893var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2922var verifier = CompileAndVerify(source + InstrumentationHelperSource + IsExternalInitTypeDefinition, 2961var verifier = CompileAndVerify(c, emitOptions: EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 2997var verifier = CompileAndVerify(c, emitOptions: EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 3097var verifier = CompileAndVerify(source, expectedOutput, options: TestOptions.ReleaseExe); 3243var verifier = CompileAndVerify(source, expectedOutput, options: TestOptions.ReleaseExe); 3369var verifier = CompileAndVerify(sources, expectedOutput, options: TestOptions.ReleaseExe); 3495var verifier = CompileAndVerify(sources, expectedOutput, options: TestOptions.ReleaseExe); 3569var verifier = CompileAndVerify(source, expectedOutput, options: TestOptions.ReleaseExe); 3618var verifier = CompileAndVerify(source, expectedOutput, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 3627private static void AssertNotInstrumented(CompilationVerifier verifier, string qualifiedMethodName) 3630private static void AssertInstrumented(CompilationVerifier verifier, string qualifiedMethodName, bool expected = true) 3641private CompilationVerifier CompileAndVerify(string source, string expectedOutput = null, CSharpCompilationOptions options = null, CSharpParseOptions parseOptions = null, Verification verify = default) 3652private CompilationVerifier CompileAndVerify((string Path, string Content)[] sources, string expectedOutput = null, CSharpCompilationOptions options = null)
Emit\EmitErrorTests.cs (3)
115var compilation2 = CompileAndVerify( 149var compilation2 = CompileAndVerify( 188var compilation2 = CompileAndVerify(
Emit\EmitMetadataTests.cs (1)
1543var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput:
Emit\EntryPointTests.cs (2)
32var verifier = CompileAndVerify(compilation, expectedOutput: "2"); 51var verifier = CompileAndVerify(compilation);
Emit\InAttributeModifierTests.cs (1)
42var verifier = CompileAndVerify(code, references: new[] { reference.ToMetadataReference() }, expectedOutput: "5");
PrivateProtected.cs (1)
594var verifier = CompileAndVerify(
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (650)
CodeGen\CodeGenCallTests.cs (175)
78var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 176var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 251var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 350var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 432var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 692var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 844var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 1186var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 1380var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 1668var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 1853var verifier = CompileAndVerify( 2014var verifier = CompileAndVerify( 2132var verifier = CompileAndVerify( 2294var verifier = CompileAndVerify( 2391var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 2550var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 2717var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 3046var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 3456var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 3579var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 3668var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 3791var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 3887var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 4178var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 4349var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 4722var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 4924var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 5069var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 5168var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 5314var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 5420var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 5728var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 5902var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 6292var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 6497var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 6638var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 6735var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 6877var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 6981var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 7273var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 7442var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 7816var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 8016var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 8157var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 8254var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 8396var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 8500var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 8798var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 8970var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 9350var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 9558var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 9705var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 9815var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 10147var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 10337var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 10484var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 10594var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 10932var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 11120var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 11289var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 11400var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 11570var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 11688var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 12008var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 12191var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 12593var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 12807var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 12934var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 13028var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 13155var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 13256var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 13551var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 13715var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 13858var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 13956var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 14100var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 14205var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 14529var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 14709var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 15005var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 15174var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 15571var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 15780var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 15943var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 16051var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 16215var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 16330var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 16644var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 16815var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 16986var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 17098var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 17270var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 17389var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 17717var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 17902var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 18226var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 18409var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 18815var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 19030var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 19151var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 19237var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 19359var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 19452var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 19720var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 19883var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 20029var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 20132var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 20279var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 20389var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 20689var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 20860var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 21024var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 21140var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 21305var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 21428var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 21756var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 21936var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 22088var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 22201var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 22354var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 22474var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 22803var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 22991var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 23157var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 23274var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 23441var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 23565var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 23920var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 24120var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 24452var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 24641var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 25074var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 25303var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 25495var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 25625var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 25818var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 25955var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 26311var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 26505var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 26691var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 26818var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 27005var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 27139var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 27493var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 27686var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 27880var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 28011var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 28206var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 28344var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 28708var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 28913var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 29273var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 29476var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 29912var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 30144var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 30292var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 30399var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 30548var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 30662var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 30978var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 31148var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 31289var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 31389var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 31531var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 31638var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 31933var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 32096var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 32271var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 32388var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 32564var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 32688var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 33023var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 33190var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 33296var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 33463var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, verify: Verification.Fails, expectedOutput: expectedOutput).VerifyDiagnostics();
CodeGen\CodeGenLengthBasedSwitchTests.cs (24)
79var verifier = CompileAndVerify(comp, expectedOutput: "RAN"); 831var verifier = CompileAndVerify(comp, expectedOutput: "RAN", verify: Verification.Skipped); 1368var verifier = CompileAndVerify(comp, expectedOutput: "RAN"); 1649var verifier = CompileAndVerify(comp, expectedOutput: "RAN"); 1831var verifier = CompileAndVerify(comp); 1983var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 2089var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 2320var verifier = CompileAndVerify(comp, expectedOutput: "RAN"); 2636var verifier = CompileAndVerify(comp, expectedOutput: "RAN"); 3170var verifier = CompileAndVerify(comp, expectedOutput: "RAN"); 4386var verifier = CompileAndVerify(comp, expectedOutput: "RAN"); 6752var verifier = CompileAndVerify(comp, expectedOutput: "RAN"); 9056var verifier = CompileAndVerify(comp, expectedOutput: "RAN"); 9368var verifier = CompileAndVerify(comp, expectedOutput: "RAN"); 9827var verifier = CompileAndVerify(comp, expectedOutput: "RAN"); 9964var verifier = CompileAndVerify(comp, expectedOutput: "RAN"); 10805var verifier = CompileAndVerify(comp, expectedOutput: "RAN"); 11136var verifier = CompileAndVerify(comp, expectedOutput: "RAN"); 11335var verifier = CompileAndVerify(comp, expectedOutput: "RAN"); 11992var verifier = CompileAndVerify(comp, expectedOutput: "RAN"); 12336var verifier = CompileAndVerify(comp, expectedOutput: "RAN"); 12987var verifier = CompileAndVerify(comp, expectedOutput: "RAN"); 13304var verifier = CompileAndVerify(comp, expectedOutput: "RAN"); 13912var verifier = CompileAndVerify(comp, expectedOutput: "RAN");
CodeGen\CodeGenMethodGroupConversionCachingTests.cs (81)
36var verifier = CompileAndVerify(source, expectedOutput: PASS, symbolValidator: VerifyNoCacheContainersIn("C")); 70var verifier = CompileAndVerify(source, expectedOutput: PASS, symbolValidator: VerifyNoCacheContainersIn("C")); 108var verifier = CompileAndVerify(source, expectedOutput: PASS, symbolValidator: VerifyNoCacheContainersIn("C")); 150var verifier = CompileAndVerify(source, expectedOutput: PASS, symbolValidator: VerifyNoCacheContainersIn("C")); 192var verifier = CompileAndVerify(source, expectedOutput: PASS, symbolValidator: VerifyNoCacheContainersIn("C")); 234var verifier = CompileAndVerify(source, expectedOutput: PASS, symbolValidator: VerifyNoCacheContainersIn("C")); 269var verifier = CompileAndVerify(source 346var verifier = CompileAndVerify(source 416var verifier = CompileAndVerify(source, symbolValidator: VerifyNoCacheContainersIn("C")); 446var verifier = CompileAndVerify(source, symbolValidator: VerifyNoCacheContainersIn("C")); 471var verifier = CompileAndVerify(source, expectedOutput: PASS, symbolValidator: VerifyNoCacheContainersIn("Program")); 497var verifier = CompileAndVerify(source, expectedOutput: PASS, symbolValidator: VerifyNoCacheContainersIn("Program")); 519var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular10, symbolValidator: VerifyNoCacheContainersIn("Program")); 553var verifier = CompileAndVerify(source, expectedOutput: PASS); 596var verifier = CompileAndVerify(source, expectedOutput: PASS); 640var verifier = CompileAndVerify(source, expectedOutput: PASS); 685var verifier = CompileAndVerify(source, expectedOutput: PASS); 731var verifier = CompileAndVerify(source, expectedOutput: PASS); 777var verifier = CompileAndVerify(source, expectedOutput: PASS); 822var verifier = CompileAndVerify(source, expectedOutput: PASS); 865var verifier = CompileAndVerify(source, expectedOutput: PASS); 908var verifier = CompileAndVerify(source, expectedOutput: PASS); 953var verifier = CompileAndVerify(source, expectedOutput: PASS); 998var verifier = CompileAndVerify(source, expectedOutput: PASS); 1043var verifier = CompileAndVerify(source, expectedOutput: PASS); 1089var verifier = CompileAndVerify(source, expectedOutput: PASS); 1135var verifier = CompileAndVerify(source, expectedOutput: PASS); 1183var verifier = CompileAndVerify(source, expectedOutput: PASS); 1228var verifier = CompileAndVerify(source, expectedOutput: PASS); 1273var verifier = CompileAndVerify(source, expectedOutput: PASS); 1323var verifier = CompileAndVerify(source, expectedOutput: PASS); 1368var verifier = CompileAndVerify(source, expectedOutput: PASS); 1406var verifier = CompileAndVerify(source, expectedOutput: PASS); 1450var verifier = CompileAndVerify(source, expectedOutput: PASS); 1494var verifier = CompileAndVerify(source, expectedOutput: PASS); 1538var verifier = CompileAndVerify(source, expectedOutput: PASS); 1585var verifier = CompileAndVerify(source, expectedOutput: PASS); 1632var verifier = CompileAndVerify(source, expectedOutput: PASS); 1679var verifier = CompileAndVerify(source, expectedOutput: PASS); 1727var verifier = CompileAndVerify(source, expectedOutput: PASS); 1779var verifier = CompileAndVerify(source, expectedOutput: PASS); 1822var verifier = CompileAndVerify(source, expectedOutput: PASS); 1867var verifier = CompileAndVerify(source, expectedOutput: PASS); 1912var verifier = CompileAndVerify(source, expectedOutput: PASS); 1961var verifier = CompileAndVerify(source, expectedOutput: PASS); 2017var verifier = CompileAndVerify(source, expectedOutput: PASS); 2588var verifier = CompileAndVerify(source, expectedOutput: PASS); 2626var verifier = CompileAndVerify(source, expectedOutput: PASS); 2672var verifier = CompileAndVerify(source, expectedOutput: PASS); 2719var verifier = CompileAndVerify(source, expectedOutput: PASS); 2764var verifier = CompileAndVerify(source, expectedOutput: PASS); 2810var verifier = CompileAndVerify(source, expectedOutput: PASS); 2844var verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<>O", arity: 0 2887var verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<>O", arity: 0 2931var verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<>O", arity: 0 2975var verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<>O", arity: 0 3018var verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<>O", arity: 0 3064var verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<>O", arity: 0 3123var verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<Test>O__0_0", arity: 1 3165var verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<Test>O__0_0", arity: 1 3209var verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<Test>O__2_0", arity: 1 3251var verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<Test>O__0_0", arity: 1 3293var verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<Test>O__0_0", arity: 1 3393var verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("A.B.<>O", arity: 0 3546var verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<Test>O__0_0", arity: 1 3613var verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("E.<Test>O__0_0", arity: 1 3687var verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("E.<Test>O__0_0", arity: 1 3768var verifier = CompileAndVerify(source, expectedOutput: PASS, symbolValidator: VerifyCacheContainer("E.<Owner>O__0_0", arity: 2 3825var verifier = CompileAndVerify(source, symbolValidator: static module => 3875var verifier = CompileAndVerify(source, symbolValidator: static module => 3928var verifier = CompileAndVerify(source, symbolValidator: static module => 3976var verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("Program.<>O", arity: 0 4032var verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<Owner>O__0_0", arity: 1 4090var verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<Owner>O__0_0", arity: 1 4140var verifier = CompileAndVerify(source, symbolValidator: VerifyCacheContainer("C.<>O", arity: 0 5621var comp = CompileAndVerify(source, parseOptions: TestOptions.Regular11); 5704var verifier = CompileAndVerifyWithWinRt(source, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseWinMD); 5821var verifier = CompileAndVerifyWithWinRt(source, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseWinMD); 6029var verifier = CompileAndVerify(comp, expectedOutput: 6170var verifier = CompileAndVerify(compilation, expectedOutput: PASS); 6326var verifier = CompileAndVerify(compilation, expectedOutput: PASS, symbolValidator: containerValidator);
CodeGen\CodeGenSpanBasedStringConcatTests.cs (62)
37var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "sccs" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 93var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "sccs" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 169var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? expectedOutput : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 230var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "ab" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 282var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "ab" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 336var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "cc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 389var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "sccs" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 444var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "ab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 488var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "ab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 538var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "sccs" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 651var verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 726var verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 800var verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 850var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "sc" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 1004var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "sccs" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 1073var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "cssscsssccsc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 1183var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "cssscsssccsc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 1287var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "scs" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 1363var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? expectedOutput : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 1474var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "aab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 1540var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "aab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 1605var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "scscsc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 1666var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "cssscsssccsc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 1746var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 1792var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 1851var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "cssscsssccsc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 1938var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abccab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 1991var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abccab" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 2059var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abccab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 2192var verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 2270var verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 2347var verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 2398var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "scs" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 2597var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "cssscsssccsc" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 2714var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "csssscsssscssssccscsscsccssc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 2902var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "csssscsssscssssccscsscsccssc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 3090var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "scss" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 3178var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? expectedOutput : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 3363var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "aaab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 3438var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 3514var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "scsscsscsscsscsscs" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 3587var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "csssscsssscssssccscsscsccssc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 3708var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcd" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 3756var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcd" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 3826var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "csssscsssscssssccscsscsccssc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 3960var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abccccabcabc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 4031var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abccccabcabc" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 4136var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcdabdccdabdcabcabddabc" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 4292var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcd" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 4345var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcddabc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 4401var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcddabc" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 4474var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abccccabcabc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 4564var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcdabdccdabdcabcabddabc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 4688var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcddabc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 4845var verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 4926var verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 5006var verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 5058var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "sccs" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 5305var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "csssscsssscssssccscsscsccssc" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 5486var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "scsssssssc" : null, verify: ExecutionConditionUtil.IsCoreClr ? default : Verification.Skipped); 5605var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "sscss" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped); 5676var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcde" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
CodeGen\IndexAndRangeTests.cs (40)
58var verifier = CompileAndVerify(comp, expectedOutput: "Index(^1) Length Index=9 Value=1, Index(^1) Length 2 Index=9 Value=2, Index(^1) Length 3 Index=9 Value=3,"); 234var verifier = CompileAndVerify(comp, expectedOutput: "Index(^1)"); 276var verifier = CompileAndVerify(comp, expectedOutput: "Index(^1) Id(1) Id(2)"); 313var verifier = CompileAndVerify(comp, expectedOutput: "Index(^1)"); 396var verifier = CompileAndVerify(comp, expectedOutput: "Index(^1)"); 487var verifier = CompileAndVerify(comp, expectedOutput: "Index(^1)"); 569var verifier = CompileAndVerify(comp, expectedOutput: "Index(^1) Id(42) Index(^2) Id(43) Result=42,43"); 824var verifier = CompileAndVerify(comp, expectedOutput: "Id(1) Id(42) Id(2) Id(43) Result=42,43"); 871var verifier = CompileAndVerify(comp); 919var verifier = CompileAndVerify(comp, expectedOutput: "Index(^1) Index(^2) Id(42) Index(^3) Id(43) Result=42,43"); 1015var verifier = CompileAndVerify(comp, expectedOutput: "Index(^1) Length Id(1) Index=9 Value=1 Index(^2) Length Id(2) Index=8 Value=2"); 1218var verifier = CompileAndVerify(comp, expectedOutput: "Length Index=9 Length Index=9 Result=42"); 1264var verifier = CompileAndVerify(comp, expectedOutput: "Index(^1) ContainerLength Index(^2) ContainerIndex=9 Length ContainerIndex=9 Index=8 Id(42)" + 1340var verifier = CompileAndVerify(comp, expectedOutput: "Index(^1)"); 1400var verifier = CompileAndVerify(comp, expectedOutput: "Index(^1) ContainerLength Index(^2) ContainerIndex=9 Length ContainerIndex=9 Index=8 Id(42)" + 1476var verifier = CompileAndVerify(comp, expectedOutput: "Index(^1)"); 1568var verifier = CompileAndVerify(comp, expectedOutput: "ContainerLength ContainerIndex=9 Length ContainerIndex=9 Index=8 Value=42 ContainerIndex=9 Length ContainerIndex=9 Index=7 Value=43"); 1760var verifier = CompileAndVerify(comp, expectedOutput: "Index(^1)"); 1803var verifier = CompileAndVerify(comp, expectedOutput: "Id(^1) Length Index=9 Id(1) X=1 Id(^2) Id(^3) Length Index=7 Id(2) X=2"); 1977var verifier = CompileAndVerify(comp, expectedOutput: "42 43 44"); 2199var verifier = CompileAndVerify(comp, expectedOutput: "Range(3..^6) Length Id(1) Slice(3, 1) Id(42) Id(2) Slice(3, 1) Id(43) Results=42,43"); 2535var verifier = CompileAndVerify(comp, expectedOutput: "Range(1..^1) ContainerLength ContainerSlice(1, 8) Range(2..^2) Length Id(2) Slice(2, 6) Id(42) Id(3) Slice(2, 6) Id(43) Results=42,43"); 2659var verifier = CompileAndVerify(comp, expectedOutput: "Range(1..^1) Range(2..^2)"); 2756var verifier = CompileAndVerify(comp, expectedOutput: "Range(1..^1) ContainerLength Range(2..^2) ContainerSlice(1, 8) Range(3..^3) Length Id(4) Slice(3, 4) Id(5)"); 3000var verifier = CompileAndVerify(comp, expectedOutput: "Id(1) Id(2)"); 3095var verifier = CompileAndVerify(comp, expectedOutput: "Id(1) Id(2) Id(3) Id(4) Id(5)"); 3285var verifier = CompileAndVerify(comp, expectedOutput: "Range(1..^1) Range(2..^2)"); 3425var verifier = CompileAndVerify(comp, expectedOutput: "Range(1..^1) Id(0) Id(42) X=42"); 3546var verifier = CompileAndVerify(comp, expectedOutput: "Range(1..^1) Id(0) Id(42) X=42 Id(1) Id(43) X=43"); 3621var verifier = CompileAndVerify(comp, expectedOutput: "Id(0) Id(1)", verify: Verification.Skipped); 3712var verifier = CompileAndVerify(comp, expectedOutput: "Id(0) Id(1)"); 3798var verifier = CompileAndVerify(comp, expectedOutput: "Id(0) Id(1)"); 3885var verifier = CompileAndVerify(comp, expectedOutput: "Id(0) Id(1) Id(2) Id(3)"); 4025var verifier = CompileAndVerify(comp, expectedOutput: "Range(3..^6)"); 4052var verifier = CompileAndVerify(comp, expectedOutput: "3 6"); 4177var verifier = CompileAndVerify(comp, expectedOutput: "Index=9 Value=2"); 4226var verifier = CompileAndVerify(comp, expectedOutput: "Index=1 Value=2"); 4265var verifier = CompileAndVerify(comp, expectedOutput: "Index=2 Value=2"); 4416var verifier = CompileAndVerify(comp, expectedOutput: "++ Length Index=7 X=42 Index=7 Y=43 Index=7 Z=44", verify: Verification.Skipped); 4459var verifier = CompileAndVerify(comp, verify: Verification.Skipped,
Emit\EditAndContinue\AssemblyReferencesTests.cs (11)
215var v0 = CompileAndVerify(compilation0); 216var v1 = CompileAndVerify(compilation1); 217var v2 = CompileAndVerify(compilation2); 319var v0 = CompileAndVerify(compilation0); 320var v1 = CompileAndVerify(compilation1); 321var v2 = CompileAndVerify(compilation2); 402var v0 = CompileAndVerify(compilation0); 403var v1 = CompileAndVerify(compilation1); 404var v2 = CompileAndVerify(compilation2); 486var v0 = CompileAndVerify(compilation0, verify: Verification.FailsILVerify); 590var v0 = CompileAndVerify(compilation0, verify: Verification.Passes);
Emit\EditAndContinue\EditAndContinueDelegateCacheTests.cs (5)
53var v0 = CompileAndVerify(compilation0); 117var v0 = CompileAndVerify(compilation0); 181var v0 = CompileAndVerify(compilation0); 245var v0 = CompileAndVerify(compilation0); 309var v0 = CompileAndVerify(compilation0);
Emit\EditAndContinue\EditAndContinuePdbTests.cs (1)
129var v0 = CompileAndVerify(compilation0, emitOptions: EmitOptions.Default.WithDebugInformationFormat(format));
Emit\EditAndContinue\EditAndContinueTestBase.cs (1)
242internal static void SaveImages(string outputDirectory, CompilationVerifier baseline, params CompilationDifference[] diffs)
Emit\EditAndContinue\EditAndContinueTests.cs (3)
347var v0 = CompileAndVerify(compilation0); 400var v0 = CompileAndVerify(compilation0); 468var v0 = CompileAndVerify(compilation0);
Emit\EditAndContinue\LocalSlotMappingTests.cs (21)
50var v0 = CompileAndVerify(compilation0); 125var v0 = CompileAndVerify(compilation0); 533var v0 = CompileAndVerify(compilation0); 645var v0 = CompileAndVerify(compilation0); 755var v0 = CompileAndVerify(compilation0); 846var v0 = CompileAndVerify(compilation0); 1666var v0 = CompileAndVerify(compilation0); 2150var v0 = CompileAndVerify(compilation0); 2343var v0 = CompileAndVerify(compilation0); 2884var v0 = CompileAndVerify(compilation0); 2993var v0 = CompileAndVerify(compilation0); 3120var v0 = CompileAndVerify(compilation0); 3334var v0 = CompileAndVerify(compilation0); 3441var v0 = CompileAndVerify(compilation0); 3554var v0 = CompileAndVerify(compilation0); 3662var v0 = CompileAndVerify(compilation0); 3754var v0 = CompileAndVerify(compilation0); 3896var v0 = CompileAndVerify(compilation0); 3973var v0 = CompileAndVerify(compilation0); 4082var v0 = CompileAndVerify(compilation0); 5061var v0 = CompileAndVerify(compilation0);
Emit\ManagedAddressTests.cs (1)
66var verifier = CompileAndVerify(comp, expectedOutput: "012", verify: Verification.Fails with
Emit\NumericIntPtrTests.cs (30)
1048var verifier = CompileAndVerify(comp); 1096var verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify); 1134var verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify); 1330var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput($"{size}{size}{size}{size}"), verify: Verification.FailsPEVerify); 1457var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(@"1"), verify: Verification.FailsPEVerify); 1492var verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput( 1648var verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify); 1759var verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify); 2483var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(expectedOutput), verify: Verification.FailsPEVerify); 2617var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(expectedOutput), verify: Verification.FailsPEVerify); 3127var verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput( 3295var verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput( 6022var verifier = CompileAndVerify(comp, verify: useUnsafeContext ? Verification.Skipped : Verification.FailsPEVerify); 6251var verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(expectedResult)); 6627var verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(expectedResult)); 6859var verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(expectedResult)); 6899var verifier = CompileAndVerify(comp, emitOptions: EmitOptions.Default.WithRuntimeMetadataVersion("0.0.0.0"), verify: Verification.Skipped); 8184var verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput( 8410var verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput( 8614var verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput( 8690var verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput( 9429var verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput( 9534var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(expectedOutput)); 9834var verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput( 10025var verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify); 10987var verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify); 11627CompilationVerifier compileAndVerify(CSharpTestSource source) 11688var verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput("RAN")); 11706var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("63"), verify: Verification.FailsPEVerify); 11754var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("00"));
Emit\RuntimeProbing\ModuleCancellationTests.cs (68)
25private CompilationVerifier CompileAndVerify(string source, string? expectedOutput = null, CSharpCompilationOptions? options = null, Verification? verification = null) 34private static void AssertNotInstrumented(CompilationVerifier verifier, string qualifiedMethodName) 37private static void AssertNotInstrumentedWithTokenLoad(CompilationVerifier verifier, string qualifiedMethodName) 40private static void AssertNotInstrumented(CompilationVerifier verifier, string qualifiedMethodName, string instrumentationIndicator) 69var verifier = CompileAndVerify(source); 145var verifier = CompileAndVerify(source, options: TestOptions.DebugExe); 232var verifier = CompileAndVerify(source); 277var verifier = CompileAndVerify(source); 327var verifier = CompileAndVerify(source); 375var verifier = CompileAndVerify(source); 424var verifier = CompileAndVerify(source); 440var verifier = CompileAndVerify(source); 498var verifier = CompileAndVerify(source); 540var verifier = CompileAndVerify(source); 564var verifier = CompileAndVerify(source); 655var verifier = CompileAndVerify(source); 787var verifier = CompileAndVerify(source, verification: Verification.FailsPEVerify); 883var verifier = CompileAndVerify(source); 933var verifier = CompileAndVerify(source); 981var verifier = CompileAndVerify(source); 1024var verifier = CompileAndVerify(source); 1095var verifier = CompileAndVerify(source); 1172var verifier = CompileAndVerify(source); 1216var verifier = CompileAndVerify(source); 1288var verifier = CompileAndVerify(source); 1341var verifier = CompileAndVerify(source); 1384var verifier = CompileAndVerify(source); 1427var verifier = CompileAndVerify(source); 1471var verifier = CompileAndVerify(source); 1525var verifier = CompileAndVerify(source); 1554var verifier = CompileAndVerify(source); 1606var verifier = CompileAndVerify(source); 1654var verifier = CompileAndVerify(source); 1685var verifier = CompileAndVerify(source); 1727var verifier = CompileAndVerify(source); 1751var verifier = CompileAndVerify(source); 1775var verifier = CompileAndVerify(source); 1798var verifier = CompileAndVerify(source); 1840var verifier = CompileAndVerify(source); 1874var verifier = CompileAndVerify(source); 1915var verifier = CompileAndVerify(source); 1964var verifier = CompileAndVerify(source); 2016var verifier = CompileAndVerify(source); 2044var verifier = CompileAndVerify(source); 2090var verifier = CompileAndVerify(source); 2139var verifier = CompileAndVerify(source); 2163var verifier = CompileAndVerify(source); 2186var verifier = CompileAndVerify(source); 2209var verifier = CompileAndVerify(source); 2237var verifier = CompileAndVerify(source); 2293var verifier = CompileAndVerify(source); 2321var verifier = CompileAndVerify(source); 2347var verifier = CompileAndVerify(source); 2374var verifier = CompileAndVerify(source); 2397var verifier = CompileAndVerify(source); 2439var verifier = CompileAndVerify(source); 2482var verifier = CompileAndVerify(source); 2506var verifier = CompileAndVerify(source); 2539var verifier = CompileAndVerify(source); 2569var verifier = CompileAndVerify(source); 2596var verifier = CompileAndVerify(source); 2623var verifier = CompileAndVerify(source); 2653var verifier = CompileAndVerify(source); 2700var verifier = CompileAndVerify(source); 2722var verifier = CompileAndVerify(source); 2744var verifier = CompileAndVerify(source); 2765var verifier = CompileAndVerify(source, verification: Verification.FailsPEVerify); 2783var verifier = CompileAndVerify(source);
Emit\RuntimeProbing\StackOverflowProbingTests.cs (15)
24private CompilationVerifier CompileAndVerify(string source, string? expectedOutput = null, CSharpCompilationOptions? options = null, Verification? verification = null) 33private static void AssertNotInstrumented(CompilationVerifier verifier, string qualifiedMethodName) 62var verifier = CompileAndVerify(source); 135var verifier = CompileAndVerify(source, options: TestOptions.DebugExe); 187var verifier = CompileAndVerify(source); 220var verifier = CompileAndVerify(source); 255var verifier = CompileAndVerify(source); 303var verifier = CompileAndVerify(source); 352var verifier = CompileAndVerify(source); 368var verifier = CompileAndVerify(source); 422var verifier = CompileAndVerify(source); 443var verifier = CompileAndVerify(source); 490var verifier = CompileAndVerify(source); 577var verifier = CompileAndVerify(source); 693var verifier = CompileAndVerify(source, verification: Verification.FailsPEVerify);
Emit\UnmanagedTypeModifierTests.cs (16)
629var reference = CompileAndVerify(@" 668var parent = CompileAndVerify(@" 681var child = CompileAndVerify(@" 710var reference = CompileAndVerify(@" 746var parent = CompileAndVerify(@" 759var child = CompileAndVerify(@" 785var reference = CompileAndVerify(@" 821var parent = CompileAndVerify(@" 834var child = CompileAndVerify(@" 860var reference = CompileAndVerify(@" 896var parent = CompileAndVerify(@" 909var child = CompileAndVerify(@" 935var reference = CompileAndVerify(@" 972var parent = CompileAndVerify(@" 985var child = CompileAndVerify(@" 1054var reference = CompileAndVerify(@"
PDB\PDBAsyncTests.cs (15)
71var v = CompileAndVerify(compilation); 621var v = CompileAndVerify(CreateCompilationWithMscorlib461(text, options: TestOptions.DebugDll)); 759var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 847var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 952var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 1039var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 1155var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 1259var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 1366var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 1464var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 1550var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 1658var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 1694var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 1948var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 2018var v = CompileAndVerify(compilation);
PDB\PDBConstantTests.cs (5)
337var c = CompileAndVerify(text, options: TestOptions.DebugDll); 409var v = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 609var c = CompileAndVerify(text, options: TestOptions.DebugDll); 666var c = CompileAndVerify(text, options: TestOptions.DebugDll); 726var c = CompileAndVerify(text, options: TestOptions.DebugDll);
PDB\PDBDynamicLocalsTests.cs (1)
1709var v = CompileAndVerify(c);
PDB\PDBIteratorTests.cs (11)
180var c = CompileAndVerify(text, options: TestOptions.ReleaseDll, symbolValidator: module => 251var c = CompileAndVerify(text, options: TestOptions.DebugDll, symbolValidator: module => 736var v = CompileAndVerify(text, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 807var v = CompileAndVerify(text, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 931var v = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1027var v = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1101var v = CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1225var v = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1371var v = CompileAndVerify(source, new[] { CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1457var v = CompileAndVerify(source, new[] { CSharpRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1519var v = CompileAndVerify(source, new[] { CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
PDB\PDBLambdaTests.cs (3)
1759var v = CompileAndVerify(source, options: TestOptions.DebugDll); 1801var v = CompileAndVerify(source, options: TestOptions.DebugDll); 2146var c = CompileAndVerify(source, options: TestOptions.DebugDll);
PDB\PDBTests.cs (56)
1147var c = CompileAndVerify(source); 1567var v = CompileAndVerify(source, options: TestOptions.DebugDll); 1622var v = CompileAndVerify(source, options: TestOptions.DebugDll); 1677var v = CompileAndVerify(source, options: TestOptions.DebugDll); 1699var v = CompileAndVerify(source, options: TestOptions.DebugDll); 1732var v = CompileAndVerify(source, options: TestOptions.DebugDll); 2297var v = CompileAndVerify(source, options: TestOptions.DebugDll); 2393var v = CompileAndVerify(source, options: TestOptions.DebugDll); 2531var v = CompileAndVerify(source, options: TestOptions.DebugDll); 2589var v = CompileAndVerify(source, options: TestOptions.DebugDll); 2671var v = CompileAndVerify(source, options: TestOptions.DebugDll); 2721var v = CompileAndVerify(source, options: TestOptions.DebugDll); 2866var v = CompileAndVerify(source, options: TestOptions.DebugDll); 2978var v = CompileAndVerify(source, options: TestOptions.DebugDll.WithModuleName("MODULE")); 3106var v = CompileAndVerify(source, options: TestOptions.DebugDll); 3268var v = CompileAndVerify(c); 3721var verifier = CompileAndVerify(c, expectedOutput: "1M2"); 3843var verifier = CompileAndVerify(c, expectedOutput: "1234"); 4009var verifier = CompileAndVerify(c, expectedOutput: "66"); 4079var v = CompileAndVerify(source, options: TestOptions.DebugDll); 4169var v = CompileAndVerify(source, options: TestOptions.DebugDll); 4413var v = CompileAndVerify(source, options: TestOptions.DebugDll); 5626var v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll)); 5775var v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll)); 5864var v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll)); 5953var v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll)); 6105var v = CompileAndVerify(c); 6222var v = CompileAndVerify(c); 6348var v = CompileAndVerify(c); 6441var v = CompileAndVerify(c); 6528var v = CompileAndVerify(c); 6589var v = CompileAndVerify(c); 6653var v = CompileAndVerify(c); 6737var v = CompileAndVerify(c); 6852var v = CompileAndVerify(c); 6954var v = CompileAndVerify(c); 8695var verifier = CompileAndVerify(c, verify: Verification.Skipped); 9092var verifier = CompileAndVerify(c, verify: Verification.Skipped); 9459var verifier = CompileAndVerify(c, verify: Verification.Skipped); 9688var verifier = CompileAndVerify(c); 10082var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 10291var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 10530var verifier = CompileAndVerify(c); 10701var verifier = CompileAndVerify(c); 10884var verifier = CompileAndVerify(c); 11148var cv = CompileAndVerify(c); 11287var v = CompileAndVerify(c); 11734var v = CompileAndVerify(c); 12116var c = CompileAndVerify(source); 12156var c = CompileAndVerify(source); 12189var c = CompileAndVerify(source, verify: Verification.Skipped); 12260var c = CompileAndVerify(source, verify: Verification.Skipped); 12541var v = CompileAndVerify(source, options: TestOptions.DebugDll); 12625var v = CompileAndVerify(source, options: TestOptions.DebugDll); 12706var v = CompileAndVerify(source, options: TestOptions.DebugDll); 12798var v = CompileAndVerify(source, options: TestOptions.DebugDll);
PDB\PDBTupleTests.cs (1)
311var v = CompileAndVerify(c);
PDB\PDBUsingTests.cs (4)
2558var v = CompileAndVerify(source, options: TestOptions.DebugDll); 2974var v = CompileAndVerify(comp, validator: (peAssembly) => 3155var v = CompileAndVerify(compilation); 3228var v = CompileAndVerify(compilation);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1024)
Attributes\AttributeTests.cs (28)
1572var verifier = CompileAndVerify(compilation); 1836var comp = CompileAndVerify(source, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator, 1870var comp = CompileAndVerify(source, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator, 1931var comp = CompileAndVerify(source, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator, 1994var comp = CompileAndVerify(source, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator, 2213var comp = CompileAndVerify(source, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator, 2279var comp = CompileAndVerify(source, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator, 2350var comp = CompileAndVerify(source, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator, 2482var comp = CompileAndVerify(source, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator, 3552var compVerifier = CompileAndVerify( 4642var verifier = CompileAndVerify(source, symbolValidator: static module => 4674var verifier = CompileAndVerify(source, symbolValidator: static module => 4707var verifier = CompileAndVerify(source, symbolValidator: static module => 4739var verifier = CompileAndVerify(source, symbolValidator: static module => 4775var verifier = CompileAndVerify(source, symbolValidator: static module => 4806var verifier = CompileAndVerify(source, symbolValidator: static module => 4832var verifier = CompileAndVerify(source, symbolValidator: static module => 4864var verifier = CompileAndVerify(source, symbolValidator: static module => 6669var compilation = CompileAndVerify(source, expectedOutput: ""); 10639var verifier = CompileAndVerify(source, expectedOutput: "Attr`1[System.Int32]"); 10691var verifier = CompileAndVerify(source, expectedOutput: "Attr`1[System.Int32] Attr`1[System.Object] Attr`1[System.Int32]"); 10755var verifier = CompileAndVerify( 11008var verifier = CompileAndVerify(source, symbolValidator: validateMetadata, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 11145var verifier = CompileAndVerify(source, sourceSymbolValidator: verify, symbolValidator: verify, expectedOutput: "Prop = a"); 11217var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), sourceSymbolValidator: verify, symbolValidator: verify, expectedOutput: "a"); 11289var verifier = CompileAndVerify(source, symbolValidator: verify, sourceSymbolValidator: verifySource); 11345var verifier = CompileAndVerify(source, expectedOutput: "Attr`1[System.String]"); 11360var verifier = CompileAndVerify(source, symbolValidator: verify, sourceSymbolValidator: verify);
Attributes\AttributeTests_IsByRefLike.cs (1)
461var comp1 = CompileAndVerify(code1, options: options, verify: Verification.Passes, symbolValidator: module =>
Attributes\AttributeTests_IsUnmanaged.cs (1)
730var comp1 = CompileAndVerify(code1, options: options, symbolValidator: module =>
Attributes\AttributeTests_MarshalAs.cs (13)
26private void VerifyFieldMetadataDecoding(CompilationVerifier verifier, Dictionary<string, byte[]> blobs) 58private void VerifyParameterMetadataDecoding(CompilationVerifier verifier, Dictionary<string, byte[]> blobs) 265var verifier = CompileAndVerifyFieldMarshal(source, blobs); 338var verifier = CompileAndVerifyFieldMarshal(source, blobs); 385var verifier = CompileAndVerifyFieldMarshal(source, blobs); 472var verifier = CompileAndVerifyFieldMarshal(source, blobs); 604var verifier = CompileAndVerifyFieldMarshal(source, blobs); 772var verifier = CompileAndVerifyFieldMarshal(source, blobs); 806var verifier = CompileAndVerifyFieldMarshal(source, blobs); 919var verifier = CompileAndVerifyFieldMarshal(source, blobs); 1050var verifier = CompileAndVerifyFieldMarshal(source, blobs); 1149var verifier = CompileAndVerifyFieldMarshal(source, blobs, isField: false); 1194var verifier = CompileAndVerifyFieldMarshal(source, blobs, isField: false);
Attributes\AttributeTests_NativeInteger.cs (2)
1504var comp = CompileAndVerify(@" 1545var comp = CompileAndVerify(@"
Attributes\AttributeTests_ReadOnlyStruct.cs (1)
453var comp1 = CompileAndVerify(code1, options: options, verify: Verification.Passes, symbolValidator: module =>
Attributes\AttributeTests_RefReadOnly.cs (1)
1178var comp1 = CompileAndVerify(code1, options: options, verify: Verification.Fails, symbolValidator: module =>
Attributes\AttributeTests_Synthesized.cs (1)
937var verifier = CompileAndVerify(comp, symbolValidator: validate);
Attributes\AttributeTests_WellKnownAttributes.cs (75)
30public static bool? HasLocalsInit(this CompilationVerifier verifier, string qualifiedMethodName, bool realIL = false) 535var comp = CompileAndVerify(source, symbolValidator: verifier); 678var comp = CompileAndVerify(source, expectedOutput: "0"); 709var comp = CompileAndVerify(source, expectedOutput: "0"); 2063var comp = CompileAndVerify(source, expectedSignatures: new[] 2089var comp = CompileAndVerify(source, expectedSignatures: new[] 5061var comp = CompileAndVerify( 5657var verifier = CompileAndVerify(source, sourceSymbolValidator: sourceValidator, symbolValidator: metadataValidator, verify: Verification.FailsPEVerify, targetFramework: TargetFramework.Mscorlib40); 5757var verifier = CompileAndVerify( 10412private CompilationVerifier CompileAndVerifyWithSkipLocalsInit(string src, CSharpCompilationOptions options, CSharpParseOptions parseOptions = null, Verification? verify = null) 10426private CompilationVerifier CompileAndVerifyWithSkipLocalsInit(string src, CSharpParseOptions parseOptions = null, Verification? verify = null) 10502var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 10537var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 10570var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularWithExtendedPartialMethods, verify: Verification.Fails); 10603var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularWithExtendedPartialMethods, verify: Verification.Fails); 10632var verifier = CompileAndVerifyWithSkipLocalsInit(src); 10790var comp = CompileAndVerify(source); 10820var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 10850var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 10910var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 10955var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); 10997var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); 11039var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); 11081var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); 11123var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); 11165var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); 11217var verifier = CompileAndVerifyWithSkipLocalsInit(source); 11258var verifier = CompileAndVerifyWithSkipLocalsInit(source); 11307var verifier = CompileAndVerifyWithSkipLocalsInit(source); 11337var verifier = CompileAndVerifyWithSkipLocalsInit(source); 11366var verifier = CompileAndVerifyWithSkipLocalsInit(source); 11392var verifier = CompileAndVerifyWithSkipLocalsInit(source, parseOptions: TestOptions.RegularPreview, verify: Verification.Skipped); 11417var verifier = CompileAndVerifyWithSkipLocalsInit(source, parseOptions: TestOptions.RegularPreview, verify: Verification.Skipped); 11448var verifier = CompileAndVerifyWithSkipLocalsInit(source, parseOptions: TestOptions.RegularPreview, verify: Verification.Skipped); 11479var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.UnsafeReleaseExe); 11498var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.UnsafeReleaseExe, verify: Verification.Passes); 11537var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11578var comp1 = CompileAndVerify(source1, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11582var comp2 = CompileAndVerify(source2, references: new[] { reference }, verify: Verification.Passes); 11614var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11662var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11696var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11733var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11764var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11809var comp_init = CompileAndVerify(source_init, options: TestOptions.UnsafeReleaseDll); 11810var comp_skip = CompileAndVerify(source_skip, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11847var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll); 11890var comp_init = CompileAndVerify(source_init, options: TestOptions.UnsafeReleaseDll); 11891var comp_skip = CompileAndVerify(source_skip, options: TestOptions.UnsafeReleaseDll); 11933var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11985var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12057var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12092var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12165var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12226var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12255var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll); 12301var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll); 12419var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12469var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12524var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12582var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12629var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12658var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12686var comp = CompileAndVerify(source, options: TestOptions.UnsafeDebugExe, verify: Verification.Fails); 12714var comp = CompileAndVerify(source, options: TestOptions.DebugModule.WithAllowUnsafe(true), verify: Verification.Fails); 12745var comp = CompileAndVerify(source, references: new[] { metadata_comp.EmitToImageReference() }); 12799var verifier = CompileAndVerify(src, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12866var verifier = CompileAndVerify(comp, verify: Verification.Fails); 12920var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 12939var verifier = CompileAndVerifyWithSkipLocalsInit(src); 12958var verifier = CompileAndVerifyWithSkipLocalsInit(src); 12994var verifier = CompileAndVerifyWithSkipLocalsInit(src); 13040var verifier = CompileAndVerify(src, options: TestOptions.UnsafeReleaseDll, verify: Verification.Skipped); 13086var verifier = CompileAndVerify(src, options: TestOptions.UnsafeReleaseDll, verify: Verification.Skipped); 13114var verifier = CompileAndVerify(comp, verify: Verification.Fails);
Attributes\InternalsVisibleToAndStrongNameTests.cs (3)
2098var verifier = CompileAndVerify(comp3); 2222var verifier = CompileAndVerify(comp4); 2800var verifier = CompileAndVerify(ca, symbolValidator: module =>
FieldKeywordTests.cs (33)
47var verifier = CompileAndVerify(source, expectedOutput: """ 117var verifier = CompileAndVerify(source, expectedOutput: "(1, 2)"); 535var verifier = CompileAndVerify(source, expectedOutput: """ 629var verifier = CompileAndVerify(source, expectedOutput: """ 731var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("")); 870var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 1485var verifier = CompileAndVerify( 1574var verifier = CompileAndVerify(source, verify: Verification.Skipped, expectedOutput: """ 1637var verifier = CompileAndVerify( 1729var verifier = CompileAndVerify( 1793var verifier = CompileAndVerify( 1901var verifier = CompileAndVerify( 2134var verifier = CompileAndVerify( 2344var verifier = CompileAndVerify( 2473var verifier = CompileAndVerify( 3058var verifier = CompileAndVerify( 3208var verifier = CompileAndVerify( 3394var verifier = CompileAndVerify( 3598var verifier = CompileAndVerify( 3971var verifier = CompileAndVerify(source, expectedOutput: "(1, 2, 3, 0)"); 4050var verifier = CompileAndVerify( 4201var verifier = CompileAndVerify( 4333var verifier = CompileAndVerify( 4467var verifier = CompileAndVerify( 4952var verifier = CompileAndVerify(comp, expectedOutput: $$""" 8444var verifier = CompileAndVerify( 8994var verifier = CompileAndVerify( 9234var verifier = CompileAndVerify( 10074var verifier = CompileAndVerify( 10224var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(""" 10308var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(""" 10405var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(""" 10587var verifier = CompileAndVerify(source, expectedOutput: """
FirstClassSpanTests.cs (50)
79var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput).VerifyDiagnostics(); 222var verifier = CompileAndVerify(comp, expectedOutput: "3").VerifyDiagnostics(); 743var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput); 770var verifier = CompileAndVerify(comp, expectedOutput: "ab"); 804var verifier = CompileAndVerify(comp, expectedOutput: "InvalidCastException", verify: Verification.FailsILVerify); 834var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.FailsILVerify); 890var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.FailsILVerify); 916var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.FailsILVerify); 971var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.FailsILVerify); 997var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.FailsILVerify); 1024var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput); 1069var verifier = CompileAndVerify(comp, expectedOutput: "False"); 1132var verifier = CompileAndVerify(comp, expectedOutput: "False"); 1195var verifier = CompileAndVerify(comp, expectedOutput: "False"); 1782var verifier = CompileAndVerify(comp).VerifyDiagnostics(); 1835var verifier = CompileAndVerify(source); 1925var verifier = CompileAndVerify(comp, expectedOutput: "12").VerifyDiagnostics(); 2060var verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: "Internal"); 2113var verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: "External"); 2161var verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: "Internal"); 2205var verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: "External"); 2274var verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: "Span2"); 2349var verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: """ 2399var verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: "Internal"); 2442var verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: "External"); 2585var verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: "Span2"); 2632var verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: "Internal"); 2676var verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: "External"); 2740var verifier = CompileAndVerify(comp, expectedOutput: "Span2"); 4161var verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify).VerifyDiagnostics(); 4226var verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify).VerifyDiagnostics(); 4298var verifier = CompileAndVerify(comp).VerifyDiagnostics(); 4486var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 4518var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), verify: Verification.FailsILVerify); 4549var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 4582var verifier = CompileAndVerify(comp).VerifyDiagnostics(); 4623var verifier = CompileAndVerify(comp).VerifyDiagnostics(); 4703var verifier = CompileAndVerify(comp).VerifyDiagnostics(); 4750var verifier = CompileAndVerify(comp).VerifyDiagnostics(); 4790var verifier = CompileAndVerify(comp).VerifyDiagnostics(); 4830var verifier = CompileAndVerify(comp).VerifyDiagnostics(); 5171var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput).VerifyDiagnostics(); 5281var verifier = CompileAndVerify(comp).VerifyDiagnostics(); 5366var verifier = CompileAndVerify(comp).VerifyDiagnostics(); 5388var verifier = CompileAndVerify(comp).VerifyDiagnostics(); 5549var verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify).VerifyDiagnostics(); 5581var verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify).VerifyDiagnostics(); 5695var verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify).VerifyDiagnostics(); 5749var verifier = CompileAndVerify(comp, expectedOutput: "C", verify: Verification.FailsILVerify).VerifyDiagnostics(); 5793var verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify).VerifyDiagnostics();
FlowAnalysis\FlowDiagnosticTests.cs (2)
1237var verifier = CompileAndVerify(program, parseOptions: TestOptions.Regular11); 1297var verifier = CompileAndVerify(program, parseOptions: TestOptions.Regular11);
FlowAnalysis\RegionAnalysisTests.cs (1)
5615var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "42");
OverloadResolutionPriorityTests.cs (2)
985var verifier = CompileAndVerify(comp, expectedOutput: "1").VerifyDiagnostics(); 1797var verifier = CompileAndVerify(executable, references: [attrRef.EmitToImageReference(), vbRef]).VerifyDiagnostics();
RefReadonlyParameterTests.cs (55)
122var verifier = CompileAndVerify(source, sourceSymbolValidator: verify, symbolValidator: verify); 150var verifier = CompileAndVerify(source, sourceSymbolValidator: verify, symbolValidator: verify); 325var verifier = CompileAndVerify(source, sourceSymbolValidator: verify, symbolValidator: verify); 542var verifier = CompileAndVerify(source, sourceSymbolValidator: verify, symbolValidator: verify); 563var verifier = CompileAndVerify(source, sourceSymbolValidator: verify, symbolValidator: verify); 584var verifier = CompileAndVerify(source, sourceSymbolValidator: verify, symbolValidator: verify); 633var verifier = CompileAndVerify(source, sourceSymbolValidator: verify, symbolValidator: verify); 654var verifier = CompileAndVerify(source, sourceSymbolValidator: verify, symbolValidator: verify); 677var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, 699var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, 818var verifier = CompileAndVerify(source, sourceSymbolValidator: verify, symbolValidator: verify); 837var verifier = CompileAndVerify(source, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 861var verifier = CompileAndVerify(source, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 887var verifier = CompileAndVerify(source, sourceSymbolValidator: verify, symbolValidator: verify, 914var verifier = CompileAndVerify(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeReleaseDll, 1399var verifier3v1 = CompileAndVerify(source3, new[] { comp1v1Ref, comp2Ref }, expectedOutput: "F123").VerifyDiagnostics(); 1422var verifier3v2 = CompileAndVerify(source3, new[] { comp1v2Ref, comp2Ref, comp4Ref }, expectedOutput: "True").VerifyDiagnostics(); 1602var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetStandard20); 2310var verifier = CompileAndVerify(source, expectedOutput: "5"); 2343var verifier = CompileAndVerify(source, expectedOutput: "5"); 2373var verifier = CompileAndVerify(source, expectedOutput: "5", verify: Verification.Fails); 2423var verifier = CompileAndVerify(source, expectedOutput: "5", verify: Verification.Fails); 2449var verifier = CompileAndVerify(source, expectedOutput: "5"); 2534var verifier = CompileAndVerify(source, expectedOutput: "5"); 2584var verifier = CompileAndVerify(source, expectedOutput: "5"); 2615var verifier = CompileAndVerify(source, expectedOutput: "5"); 2670var verifier = CompileAndVerify(source, expectedOutput: "5"); 2701var verifier = CompileAndVerify(source, expectedOutput: "5"); 2759var verifier = CompileAndVerify(source, expectedOutput: "5"); 3002var verifier = CompileAndVerify(source, expectedOutput: """ 3071var verifier = CompileAndVerify(source, expectedOutput: """ 3116var verifier = CompileAndVerify(source, verify: Verification.FailsILVerify, expectedOutput: """ 3311var verifier = CompileAndVerify(new[] { source, RequiresLocationAttributeDefinition }, 4549var verifier = CompileAndVerify(comp, expectedOutput: "1222"); 4600var verifier = CompileAndVerify(comp, expectedOutput: "1222"); 4738var verifier = CompileAndVerify(comp, expectedOutput: """ 4839var verifier = CompileAndVerify(comp, expectedOutput: "100"); 4953var verifier = CompileAndVerify(source, expectedOutput: "111"); 4988var verifier = CompileAndVerify(source, expectedOutput: "C111"); 5019var verifier = CompileAndVerify(source, expectedOutput: "111"); 5057var verifier = CompileAndVerify(source, expectedOutput: "111"); 5090var verifier = CompileAndVerify(new[] { source, RequiresLocationAttributeDefinition }, 5225var verifier = CompileAndVerify(source, expectedOutput: "1"); 5263var verifier = CompileAndVerify(source2, new[] { comp1Ref }, expectedOutput: "1"); 5387var verifier = CompileAndVerify(source, expectedOutput: "5"); 5479var verifier = CompileAndVerify(source, expectedOutput: "1", 5585var verifier = CompileAndVerify(source, expectedOutput: "111"); 5639var verifier = CompileAndVerify(source, targetFramework: TargetFramework.StandardAndCSharp, expectedOutput: "exception2"); 5707var verifier = CompileAndVerify(source, targetFramework: TargetFramework.StandardAndCSharp, expectedOutput: "exception2"); 5873var verifier = CompileAndVerify(source, expectedOutput: """ 5913var verifier = CompileAndVerify(source, expectedOutput: """ 5972var verifier = CompileAndVerify(source, expectedOutput: """ 6018var verifier = CompileAndVerify(source, expectedOutput: """ 7541var verifier = CompileAndVerify(source, expectedOutput: "CC"); 7580var verifier = CompileAndVerify(source,
RefStructInterfacesTests.cs (58)
2975var verifier = CompileAndVerify(new[] { source, UnscopedRefAttributeDefinition }, expectedOutput: (tS1IsClass == ThreeState.True || tS2IsClass == ThreeState.True ? null : "12"), verify: Verification.Fails); 5986var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"S1.M1 S1.M1" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics(); 6066var verifier = CompileAndVerify( 6597var verifier = CompileAndVerify( 6733var verifier = CompileAndVerify( 6850var verifier = CompileAndVerify( 6971var verifier = CompileAndVerify( 7110var verifier = CompileAndVerify( 7434var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics(); 7624var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics(); 7842var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123456" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics(); 8039var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics(); 8232var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics(); 8507var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics( 8891var verifier = CompileAndVerify( 9095var verifier = CompileAndVerify( 9458var verifier = CompileAndVerify( 9670var verifier = CompileAndVerify( 9894var verifier = CompileAndVerify( 10106var verifier = CompileAndVerify( 10502var verifier = CompileAndVerify( 10699var verifier = CompileAndVerify( 10938var verifier = CompileAndVerify( 11154var verifier = CompileAndVerify( 11381var verifier = CompileAndVerify( 12025var verifier = CompileAndVerify( 12292var verifier = CompileAndVerify( 12538var verifier = CompileAndVerify( 12797var verifier = CompileAndVerify( 13067var verifier = CompileAndVerify( 13326var verifier = CompileAndVerify( 13968var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics(); 14309var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics(); 14670var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123456" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics(); 15021var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics(); 15369var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics(); 15799var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics( 17613var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics(); 17810var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics(); 18032var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123456" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics(); 18235var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics(); 18436var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics(); 18716var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics( 19098var verifier = CompileAndVerify( 19269var verifier = CompileAndVerify( 19594var verifier = CompileAndVerify( 19779var verifier = CompileAndVerify( 20402var verifier = CompileAndVerify( 20449var verifier = CompileAndVerify( 20494var verifier = CompileAndVerify( 20539var verifier = CompileAndVerify( 21833var verifier = CompileAndVerify( 22475var verifier = CompileAndVerify( 22531var verifier = CompileAndVerify( 22779var verifier = CompileAndVerify( 22825var verifier = CompileAndVerify( 22840var verifier = CompileAndVerify(source, 22864var verifier = CompileAndVerify(source,
Semantics\CollectionExpressionTests.cs (138)
4637var verifier = CompileAndVerify( 5172var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: "[], [1, 2], [3, 4, 5], [null, 7], "); 5258var verifier = CompileAndVerify(source, expectedOutput: """ 5403var verifier = CompileAndVerify( 6207var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net80, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("1010")); 6299var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net80, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("10200")); 6432var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: "[], [1, 2], [3, 4, 5], [null, 7], "); 6824var verifier = CompileAndVerify(source); 7286var verifier = CompileAndVerify(new[] { sourceA, sourceB2, s_collectionExtensions }, expectedOutput: "[3], "); 8986var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: "[], [null, 2], "); 9052var verifier = CompileAndVerify(comp, expectedOutput: "[], [], [42, 43], [44, 45],"); 9390var verifier = CompileAndVerify( 9508var verifier = CompileAndVerify( 9627var verifier = CompileAndVerify( 9787var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: "[1, 2, 3, 4], "); 9881var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: "[1, 2, 3], [1, 2, 3], [1, 2, 3], "); 10139var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe, expectedOutput: "[1, 2, 3], "); 10367var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe, expectedOutput: "[1, 2, 3], "); 11263var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: "[1, 2, 3], [1, 2, 3],", verify: Verification.Skipped); 11316var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],"), targetFramework: TargetFramework.Net80, verify: Verification.Skipped); 11394var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: "[1, 2, 3], [1, 2, 3],", verify: Verification.Skipped); 11530var verifier = CompileAndVerify( 11621var verifier = CompileAndVerify( 11966var verifier = CompileAndVerify( 12253var verifier = CompileAndVerify( 12323var verifier = CompileAndVerify( 12378var verifier = CompileAndVerify( 12422var verifier = CompileAndVerify(comp, expectedOutput: "[], [], "); 12543var verifier = CompileAndVerify( 12923var verifier = CompileAndVerify( 13332var verifier = CompileAndVerify( 13430var verifier = CompileAndVerify( 13706var verifier = CompileAndVerify( 14220var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.FailsPEVerify); 14290var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), 14431var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.FailsPEVerify); 14545var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.FailsPEVerify); 14603var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[[1], [2]],"), verify: Verification.FailsPEVerify); 14707var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[[1], [2]],"), verify: Verification.Fails); 14896var verifier = CompileAndVerify(comp, expectedOutput: "[1, 2], [2], "); 14947var verifier = CompileAndVerify(comp, verify: Verification.Fails, expectedOutput: "[1, 2], [2], "); 15007var verifier = CompileAndVerify(comp, expectedOutput: "[2, 3], [3], "); 15210var verifier = CompileAndVerify( 15391var verifier = CompileAndVerify( 15515var verifier = CompileAndVerify( 15699var verifier = CompileAndVerify( 17163var verifier = CompileAndVerify( 20022var verifier = CompileAndVerify( 20382var verifier = CompileAndVerify( 20483var verifier = CompileAndVerify( 20608var verifier = CompileAndVerify( 20689var verifier = CompileAndVerify( 20818var verifier = CompileAndVerify( 20863var verifier = CompileAndVerify( 20971var verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify); 21119var verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify); 21219var verifier = CompileAndVerify( 21352var verifier = CompileAndVerify( 21506var verifier = CompileAndVerify( 21603var verifier = CompileAndVerify( 21717var verifier = CompileAndVerify( 21825var verifier = CompileAndVerify( 21933var verifier = CompileAndVerify( 22396var verifier = CompileAndVerify( 22469var verifier = CompileAndVerify( 22599var verifier = CompileAndVerify(comp, 22751var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net80, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("12")); 22837var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("11")); 22950var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("11")); 23061var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net80, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("12")); 23143var verifier = CompileAndVerify( 23269var verifier = CompileAndVerify( 23336var verifier = CompileAndVerify( 23447var verifier = CompileAndVerify( 23549var verifier = CompileAndVerify( 23619var verifier = CompileAndVerify( 23684var verifier = CompileAndVerify( 23787var verifier = CompileAndVerify( 23861var verifier = CompileAndVerify( 23970var verifier = CompileAndVerify( 24030var verifier = CompileAndVerify( 24153var verifier = CompileAndVerify( 24228var verifier = CompileAndVerify( 24283var verifier = CompileAndVerify( 24345var verifier = CompileAndVerify( 24441var verifier = CompileAndVerify( 24515var verifier = CompileAndVerify( 24603var verifier = CompileAndVerify( 24658var verifier = CompileAndVerify( 24742var verifier = CompileAndVerify( 24797var verifier = CompileAndVerify( 24852var verifier = CompileAndVerify( 24919var verifier = CompileAndVerify( 25057var verifier = CompileAndVerify( 25190var verifier = CompileAndVerify( 25278var verifier = CompileAndVerify( 25356var verifier = CompileAndVerify( 25423var verifier = CompileAndVerify( 25487var verifier = CompileAndVerify( 25554var verifier = CompileAndVerify( 25679var verifier = CompileAndVerify( 25765var verifier = CompileAndVerify( 25802var verifier = CompileAndVerify( 25887var verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput("[1, 2, 3], ")); 29378var verifier = CompileAndVerify(comp, verify: Verification.Fails, expectedOutput: IncludeExpectedOutput("[1, 2, 3],")); 30084var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.Skipped); 30155var verifier = CompileAndVerify(new[] { sourceA, s_collectionExtensions }, targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.Skipped); 30213var verifier = CompileAndVerify(new[] { sourceA, s_collectionExtensions }, targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[[1, 2, 3]],"), verify: Verification.Skipped); 30289var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[],"), verify: Verification.Skipped); 30322var verifier = CompileAndVerify(new[] { sourceA, s_collectionExtensions }, targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.Skipped); 30361var verifier = CompileAndVerify(new[] { sourceA, s_collectionExtensions }, targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.Skipped); 30562var verifier = CompileAndVerify( 30690var verifier = CompileAndVerify(new[] { sourceA, s_collectionExtensions }, targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.Skipped); 30830var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify: Verification.Skipped, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning)); 33529var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: "[1, 2, 3], [1, 2, 3],"); 33575var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],"), targetFramework: TargetFramework.Net80, verify: Verification.Skipped); 33639var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],"), targetFramework: TargetFramework.Net80, verify: Verification.Skipped); 33683var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [4, 5, 6], [1, 2, 3, 4, 5, 6],"), verify: Verification.Skipped, targetFramework: TargetFramework.Net80); 33779var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[D, D],"), verify: Verification.Skipped, targetFramework: TargetFramework.Net80); 33886var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, verify: Verification.Fails, expectedOutput: IncludeExpectedOutput("[1, 2, 3, 4, 5, 6],"), targetFramework: TargetFramework.Net80); 33970var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput("[1, 2, 3, 4, 5, 6],"), targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 34053var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput("[1, 2, 3, 4, 5, 6],"), targetFramework: TargetFramework.Net80); 34151var verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput("[Derived], [Derived], ")); 34202var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput("[Derived], [Derived, Derived],"), targetFramework: TargetFramework.Net80); 34309var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput("[1, 2, 3, 4, 5, 6],"), targetFramework: TargetFramework.Net80); 34470var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[1, 2, 3, 4, 5, 6],"), targetFramework: TargetFramework.Net80, verify: Verification.Skipped); 34569var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: expectedOutput, targetFramework: TargetFramework.Net80, verify: Verification.Skipped); 34712var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],")); 34753var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],")); 34800var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],")); 34873var verifier = CompileAndVerify(source, expectedOutput: "a"); 34993var verifier = CompileAndVerify(source, expectedOutput: "a"); 35059var verifier = CompileAndVerify(source, expectedOutput: "a"); 35124var verifier = CompileAndVerify(source, expectedOutput: "1"); 35190var verifier = CompileAndVerify(source, expectedOutput: "a"); 35221var verifier = CompileAndVerify(source, expectedOutput: "a"); 35254var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("[1, 2], [1, 2, 1, 2],")); 35348var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("[1, 2], [1, 2, 1, 2],"));
Semantics\InlineArrayTests.cs (179)
2463var verifier = CompileAndVerify(comp, expectedOutput: "0 111").VerifyDiagnostics(); 2554var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 2591var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 2704var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 2742var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 2783var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 2825var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 2865var verifier = CompileAndVerify(comp, expectedOutput: "0 111").VerifyDiagnostics(); 2890var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 2915var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 3016var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 3042var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 3071var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 3101var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 3135var verifier = CompileAndVerify(comp, expectedOutput: "0 0 111 111", verify: Verification.Fails).VerifyDiagnostics(); 3198var verifier = CompileAndVerify(comp, expectedOutput: "0 0 111 111", verify: Verification.Fails).VerifyDiagnostics(); 3261var verifier = CompileAndVerify(comp, expectedOutput: "0 0 111 111", verify: Verification.Fails).VerifyDiagnostics(); 3337var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics(); 3561var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics(); 3793var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics(); 4018var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 4143var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 4272var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 4403var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 4529var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics(); 4679var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics( 5075var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics(); 5310var verifier = CompileAndVerify(comp, expectedOutput: "0 111").VerifyDiagnostics(); 5528var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 5656var verifier = CompileAndVerify(comp, expectedOutput: "0 111").VerifyDiagnostics(); 5872var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 5989var verifier = CompileAndVerify(comp, expectedOutput: "0 111").VerifyDiagnostics(); 6072var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics(); 6168var verifier = CompileAndVerify(comp, expectedOutput: "0 5 111", verify: Verification.Fails).VerifyDiagnostics(); 6248var verifier = CompileAndVerify(comp, expectedOutput: "10 111", verify: Verification.Fails).VerifyDiagnostics(); 6363var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 6402var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 6445var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 6488var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 6529var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics(); 6554var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 6656var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 6682var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 6712var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 6742var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 6814var verifier = CompileAndVerify(comp, expectedOutput: "0 0", verify: Verification.Fails).VerifyDiagnostics(); 6858var verifier = CompileAndVerify(comp, expectedOutput: "0 4 111", verify: Verification.Fails).VerifyDiagnostics(); 6908var verifier = CompileAndVerify(comp, expectedOutput: "0 5 111", verify: Verification.Fails).VerifyDiagnostics(); 6958var verifier = CompileAndVerify(comp, expectedOutput: "0 5 111", verify: Verification.Fails).VerifyDiagnostics(); 7014var verifier = CompileAndVerify(comp, expectedOutput: "0 9 111", verify: Verification.Fails).VerifyDiagnostics(); 7064var verifier = CompileAndVerify(comp, expectedOutput: "0 10 111", verify: Verification.Fails).VerifyDiagnostics(); 7119var verifier = CompileAndVerify(comp, expectedOutput: "0 9 111", verify: Verification.Fails).VerifyDiagnostics(); 7188var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics(); 7258var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 7337var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics(); 7473var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics(); 7618var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics(); 7786var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics(); 7948var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 8164var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics( 8314var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 8373var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 8426var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 8481var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 8544var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 8598var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 8808var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 8886var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 9054var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 9243var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 9290var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 9341var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 9431var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 9476var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 9594var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 9642var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 9694var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 9826var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 9911var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 10014var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 10061var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 10346var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 10391var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 10529var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 10603var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 10655var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 10747var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 10793var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 10874var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 10909var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 10948var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 11027var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 11061var verifier = CompileAndVerify(comp, expectedOutput: "111").VerifyDiagnostics(); 11131var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 11177var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 11223var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 11273var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 11347var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 11473var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 12001var verifier = CompileAndVerify(comp, expectedOutput: "1 0 1 0").VerifyDiagnostics(); 12198var verifier = CompileAndVerify(comp, verify: VerifyOnMonoOrCoreClr).VerifyDiagnostics(); 12261var verifier = CompileAndVerify(comp, expectedOutput: "1 2").VerifyDiagnostics(); 12328var verifier = CompileAndVerify(comp, expectedOutput: "1 0 2 1 0").VerifyDiagnostics(); 12377var verifier = CompileAndVerify(comp, expectedOutput: "1").VerifyDiagnostics(); 12791var verifier = CompileAndVerify(comp, expectedOutput: "1 0 1 0").VerifyDiagnostics(); 12915var verifier = CompileAndVerify(comp, verify: VerifyOnMonoOrCoreClr).VerifyDiagnostics(); 12969var verifier = CompileAndVerify(comp, expectedOutput: "1 2").VerifyDiagnostics(); 13028var verifier = CompileAndVerify(comp, expectedOutput: "1 0 2 1 0").VerifyDiagnostics(); 13081var verifier = CompileAndVerify(comp, expectedOutput: "1").VerifyDiagnostics( 13155var verifier = CompileAndVerify(comp, expectedOutput: "1").VerifyDiagnostics(); 13211var verifier = CompileAndVerify(comp, expectedOutput: "0 1 0", verify: Verification.Fails).VerifyDiagnostics( 13270var verifier = CompileAndVerify(comp, verify: VerifyOnMonoOrCoreClr).VerifyDiagnostics( 13343var verifier = CompileAndVerify(comp, verify: VerifyOnMonoOrCoreClr).VerifyDiagnostics(); 13383var verifier = CompileAndVerify(comp, verify: VerifyOnMonoOrCoreClr).VerifyDiagnostics(); 13429var verifier = CompileAndVerify(comp).VerifyDiagnostics( 13525var verifier = CompileAndVerify(comp, expectedOutput: "1").VerifyDiagnostics(); 13586var verifier = CompileAndVerify(comp, expectedOutput: "0 1 0").VerifyDiagnostics(); 13654var verifier = CompileAndVerify(comp, expectedOutput: "1").VerifyDiagnostics(); 13695var verifier = CompileAndVerify(comp, expectedOutput: "1").VerifyDiagnostics(); 13749var verifier = CompileAndVerify(comp, expectedOutput: "0 2 0", verify: Verification.Fails).VerifyDiagnostics(); 13807var verifier = CompileAndVerify(comp, expectedOutput: "0 2 0", verify: Verification.Fails).VerifyDiagnostics(); 13865var verifier = CompileAndVerify(comp, expectedOutput: "0 2 0", verify: Verification.Fails).VerifyDiagnostics(); 13918var verifier = CompileAndVerify(comp, expectedOutput: "0 2 0", verify: Verification.Fails).VerifyDiagnostics(); 13969var verifier = CompileAndVerify(comp, expectedOutput: "0 2 0", verify: Verification.Fails).VerifyDiagnostics(); 14020var verifier = CompileAndVerify(comp, expectedOutput: "0 2 0", verify: Verification.Fails).VerifyDiagnostics(); 14637var verifier = CompileAndVerify(comp, verify: Verification.Fails, 14686var verifier = CompileAndVerify(comp, verify: Verification.Fails, 14735var verifier = CompileAndVerify(comp, verify: VerifyOnMonoOrCoreClr, 14783var verifier = CompileAndVerify(comp, verify: VerifyOnMonoOrCoreClr, 14830var verifier = CompileAndVerify(comp, verify: VerifyOnMonoOrCoreClr, 14874var verifier = CompileAndVerify(comp, verify: VerifyOnMonoOrCoreClr, 15118var verifier = CompileAndVerify(comp, expectedOutput: "-1 110").VerifyDiagnostics(); 15164var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics(); 15248var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 15385var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 15440var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 15501var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 15564var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 15618var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics(); 15646var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics(); 15672var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 15698var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 15894var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 15920var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 15949var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 15978var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 16013var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 16048var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 16085var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 16122var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 16183var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 16231var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 16318var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 16433var verifier = CompileAndVerify(comp, expectedOutput: "111", verify: Verification.Fails).VerifyDiagnostics(); 16671var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics(); 17541var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics( 17659var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics( 17734var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify: Verification.Fails).VerifyDiagnostics( 18541var verifier = CompileAndVerify(comp, expectedOutput: " 111 112 113 114 -111 -112 -113 -114").VerifyDiagnostics(); 18639var verifier = CompileAndVerify(comp, expectedOutput: " 111 112 113 114 -111 -112 -113 -114").VerifyDiagnostics(); 18712var verifier = CompileAndVerify(comp, expectedOutput: " 111 112 113 114").VerifyDiagnostics(); 18866var verifier = CompileAndVerify(comp, expectedOutput: " 111 112 113 114 -111 -112 -113 -114").VerifyDiagnostics(); 19001var verifier = CompileAndVerify(comp, expectedOutput: " 111 112 113 114").VerifyDiagnostics(); 19200var verifier = CompileAndVerify(comp, expectedOutput: " 111 112 113 114").VerifyDiagnostics(); 19982var verifier = CompileAndVerify(comp, expectedOutput: "-1 0 1 2 3", verify: Verification.Fails).VerifyDiagnostics(); 20169var verifier = CompileAndVerify(comp, expectedOutput: " 0 1 2 3", verify: Verification.Fails).VerifyDiagnostics(); 20442var verifier = CompileAndVerify(comp, expectedOutput: "-1 0 1 2 3", verify: Verification.Fails).VerifyDiagnostics(); 20628var verifier = CompileAndVerify(comp, expectedOutput: " 0 1 2 3", verify: Verification.Fails).VerifyDiagnostics(); 20893var verifier = CompileAndVerify(comp, expectedOutput: "-1 111 112 113 114").VerifyDiagnostics(); 21389var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyDiagnostics(); 21540var verifier = CompileAndVerify(comp, expectedOutput: "-1 0 1 2 3", verify: Verification.Fails).VerifyDiagnostics(); 21657var verifier = CompileAndVerify(comp, expectedOutput: " 0 1 2 3", verify: Verification.Fails).VerifyDiagnostics(); 21859var verifier = CompileAndVerify(comp, expectedOutput: "-1 0 1 2 3", verify: Verification.Fails).VerifyDiagnostics(); 21976var verifier = CompileAndVerify(comp, expectedOutput: " 0 1 2 3", verify: Verification.Fails).VerifyDiagnostics(); 22170var verifier = CompileAndVerify(comp, expectedOutput: "-1 111 112 113 114").VerifyDiagnostics(); 22654var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyDiagnostics(); 23223var verifier = CompileAndVerify(comp, expectedOutput: "123124").VerifyDiagnostics(); 23267var verifier = CompileAndVerify(comp, expectedOutput: "123124").VerifyDiagnostics(); 23342var verifier = CompileAndVerify(src, expectedOutput: ExecutionConditionUtil.IsDesktop ? null : "042",
Semantics\LockTests.cs (11)
132var verifier = CompileAndVerify(source, 843var verifier = CompileAndVerify(source, expectedOutput: "ELD", verify: Verification.FailsILVerify); 1052var verifier = CompileAndVerify(source, expectedOutput: "L", verify: Verification.FailsILVerify); 1405var verifier = CompileAndVerify(source, expectedOutput: "L", verify: Verification.FailsILVerify); 1473var verifier = CompileAndVerify(source, expectedOutput: "L", verify: Verification.FailsILVerify); 1521var verifier = CompileAndVerify(source, [lib], expectedOutput: "ELD"); 1613var verifier = CompileAndVerify(source, [lib1, lib2], expectedOutput: "E1 L1 D1 E2 L2 D2"); 3656var verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: expectedOutput); 3697var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.FailsILVerify); 4212var verifier = CompileAndVerify(source, verify: Verification.FailsILVerify, 4322var verifier = CompileAndVerify(source, verify: Verification.FailsILVerify,
Semantics\OutVarTests.cs (2)
32972var comp = CompileAndVerify(source, expectedOutput: "MMM"); 33035var comp = CompileAndVerify(source, expectedOutput: "MMM");
Semantics\ParamsCollectionTests.cs (11)
384var verifier = CompileAndVerify( 3017var verifier = CompileAndVerify(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false, includeOneTimeHelpers: false) }, targetFramework: TargetFramework.Net80, 3184var verifier = CompileAndVerify( 3309var verifier = CompileAndVerify( 3533var verifier = CompileAndVerify( 3850var verifier = CompileAndVerify( 4206var verifier = CompileAndVerify(comp2, symbolValidator: checkParamsInDelegate1).VerifyDiagnostics(); 4621var verifier = CompileAndVerify( 4810var verifier = CompileAndVerify( 16495var verifier = CompileAndVerify( 16806var verifier = CompileAndVerify(comp, verify: Verification.Skipped).VerifyDiagnostics(
Semantics\PatternMatchingTests.cs (46)
121var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 189var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 259var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 300var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 335var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 371var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 407var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 445var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 519var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 579var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 3415var comp = CompileAndVerify(compilation, expectedOutput: "whatever"); 3718var verifier = CompileAndVerify(compilation); 3777var verifier = CompileAndVerify(compilation); 3847var comp = CompileAndVerify(compilation, expectedOutput: 3880var comp = CompileAndVerify(compilation, expectedOutput: 3913var comp = CompileAndVerify(compilation, expectedOutput: 3962var comp = CompileAndVerify(compilation, expectedOutput: 3992var comp = CompileAndVerify(compilation, expectedOutput: 4029var comp = CompileAndVerify(compilation, expectedOutput: 4093var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 4140var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 4171var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 4222var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 4538var comp = CompileAndVerify(compilation, expectedOutput: @"False 4565var comp = CompileAndVerify(compilation, expectedOutput: "True"); 4595var comp = CompileAndVerify(compilation, expectedOutput: "True"); 5102var comp = CompileAndVerify(compilation, expectedOutput: @"TBase 5224var comp = CompileAndVerify(compilation, expectedOutput: @"1 5300var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 5599var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 5778var comp = CompileAndVerify(compilation, expectedOutput: "roslyn"); 6075var comp = CompileAndVerify(compilation, expectedOutput: @"TnT"); 6108var comp = CompileAndVerify(compilation, expectedOutput: @"TnT"); 6136var comp = CompileAndVerify(compilation, expectedOutput: @"FalseTrueFalseFalse"); 6227var comp = CompileAndVerify(compilation, expectedOutput: "ok", verify: Verification.FailsILVerify); 6480var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 6662var comp = CompileAndVerify(compilation, expectedOutput: 6714var comp = CompileAndVerify(compilation, expectedOutput: 8614var verifier = CompileAndVerify(comp, expectedOutput: 8656var verifier = CompileAndVerify(comp, expectedOutput: 10217var verifier = CompileAndVerify(comp, expectedOutput: 10258var verifier = CompileAndVerify(comp, expectedOutput: 11009var verifier = CompileAndVerify(comp, expectedOutput: "(3, 6)"); 11183var verifier = CompileAndVerify(comp, expectedOutput: 11591var verifier = CompileAndVerify(comp, expectedOutput: "True"); 11943var verifier = CompileAndVerify(comp, expectedOutput: "True");
Semantics\PatternMatchingTests_ListPatterns.cs (18)
73var verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 281var verifier = CompileAndVerify(new[] { source, TestSources.Index, TestSources.Range }, parseOptions: TestOptions.RegularWithListPatterns, 539var verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 727var verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 2336var verifier = CompileAndVerify(compilation, expectedOutput: "True"); 2453var verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 2955var verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 5538var verifier = CompileAndVerify(compilation, expectedOutput: "(item value, rest value)"); 5626var verifier = CompileAndVerify(compilation, expectedOutput: "(item value, rest value)"); 7414var verifier = CompileAndVerify(comp); 7644var verifier = CompileAndVerify(new[] { source, TestSources.Index }, options: TestOptions.DebugDll); 7741var verifier = CompileAndVerify(new[] { source, TestSources.Index }); 7893var verifier = CompileAndVerify(compilation, expectedOutput: "(2, 3)"); 8059var verifier = CompileAndVerify(compilation, verify: Verification.FailsPEVerify); 8130var verifier = CompileAndVerify(compilation, expectedOutput: "1 2 3", verify: Verification.FailsPEVerify); 8347var verifier = CompileAndVerify(comp, expectedOutput: "(4, 2, 4, 2)"); 8460var verifier = CompileAndVerify(comp).VerifyDiagnostics(); 8539var verifier = CompileAndVerify(comp, expectedOutput: "(42, 43)");
Semantics\PatternMatchingTests2.cs (18)
36var comp = CompileAndVerify(compilation, expectedOutput: @"1"); 78var comp = CompileAndVerify(compilation, expectedOutput: ""); 124var comp = CompileAndVerify(compilation, expectedOutput: ""); 197var comp = CompileAndVerify(compilation, expectedOutput: ""); 239var comp = CompileAndVerify(compilation, expectedOutput: ""); 330var comp = CompileAndVerify(compilation, expectedOutput: "True"); 821var comp = CompileAndVerify(compilation, expectedOutput: @""); 922var comp = CompileAndVerify(compilation, expectedOutput: @"0123"); 1018var comp = CompileAndVerify(compilation, expectedOutput: @"0123"); 1067var comp = CompileAndVerify(compilation, expectedOutput: @"9 1130var comp = CompileAndVerify(compilation, expectedOutput: @"12345678"); 1449var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 1537var comp = CompileAndVerify(compilation, expectedOutput: @"Fox Cat"); 1614var comp = CompileAndVerify(compilation, expectedOutput: @"111"); 1783var comp = CompileAndVerify(compilation, expectedOutput: @"111"); 1819var comp = CompileAndVerify(compilation, expectedOutput: @"111"); 3178var verifier = CompileAndVerify(source, expectedOutput: @" 3334var verifier = CompileAndVerify(source, expectedOutput: @"
Semantics\PatternMatchingTests3.cs (53)
423var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 474var comp = CompileAndVerify(compilation, verify: Verification.FailsILVerify, expectedOutput: expectedOutput); 596var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 639var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 682var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 725var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 749var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 772var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 815var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 857var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 1039var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 1092var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 1145var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 1198var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 1699var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 2096var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 2168var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 2240var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 2289var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 2338var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 2369var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 2427var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 2544var verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 2582var verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 2653var verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 2817var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 2876var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 3143var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 3281var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 3369var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 3763var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 4620var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 4786var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 4972var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 5049var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 5256var compVerifier = CompileAndVerify(compilation, expectedOutput: "Done"); 5325var compVerifier = CompileAndVerify(compilation, expectedOutput: "Done"); 5545var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 6017var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 6038var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 6217var verifier = CompileAndVerify(source, expectedOutput: "42"); 6260var verifier = CompileAndVerify(source, expectedOutput: "42"); 6302var verifier = CompileAndVerify(source, expectedOutput: "42"); 6341var verifier = CompileAndVerify(source, expectedOutput: "42"); 6385var verifier = CompileAndVerify(source, expectedOutput: 6432var verifier = CompileAndVerify(source, expectedOutput: "42"); 6497var verifier = CompileAndVerify(source, expectedOutput: ""); 6530var verifier = CompileAndVerify(source, expectedOutput: 6581var verifier = CompileAndVerify(source, expectedOutput: 6637var verifier = CompileAndVerify(source, expectedOutput: 6770var verifier = CompileAndVerify(source, expectedOutput: "22"); 6828var verifier = CompileAndVerify(comp, expectedOutput: ""); 7642var compVerifier = CompileAndVerify(compilation, expectedOutput: "10");
Semantics\PatternMatchingTests4.cs (31)
221var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 314var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 345var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 376var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 408var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 439var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 471var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 505var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 539var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 627var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 661var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 728var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 766var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 801var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 837var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 948var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 1061var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 1096var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 1162var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 1227var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 1278var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 1318var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 3360var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput, verify: Verification.Skipped); 3387var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput, verify: Verification.Skipped); 3413var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput, verify: Verification.Skipped); 4319var verifier = CompileAndVerify(comp, expectedOutput: "NaN"); 4401var verifier = CompileAndVerify(comp, expectedOutput: "NaN"); 4483var verifier = CompileAndVerify(comp, expectedOutput: "NaN"); 4565var verifier = CompileAndVerify(comp, expectedOutput: "NaN"); 4647var verifier = CompileAndVerify(comp, expectedOutput: "NaN"); 4731var verifier = CompileAndVerify(comp, expectedOutput: "NaN");
Semantics\PatternMatchingTests5.cs (6)
83var verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 240var verifier = CompileAndVerify(compilation, expectedOutput: expectedOutput); 1345var verifier = CompileAndVerify(compilation); 3178var compilation = CompileAndVerify(source, expectedOutput: "True"); 3227var compilation = CompileAndVerify(source, expectedOutput: "True"); 3294var compilation = CompileAndVerify(source, expectedOutput: "True");
Semantics\PatternSwitchTests.cs (28)
405var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 1085var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 1130var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 1237var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 1428var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 1486var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 1562var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 1973var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 2014var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 2112var comp = CompileAndVerify(compilation, expectedOutput: expectedOutput); 2158var comp = CompileAndVerify(compilation, expectedOutput: 2220var comp = CompileAndVerify(compilation, expectedOutput: 2276var comp = CompileAndVerify(compilation, expectedOutput: 2334var comp = CompileAndVerify(compilation, expectedOutput: 2383var comp = CompileAndVerify(compilation, expectedOutput: 2447var comp = CompileAndVerify(compilation, expectedOutput: 2512var comp = CompileAndVerify(compilation, expectedOutput: 2572var comp = CompileAndVerify(compilation, expectedOutput: 2628var comp = CompileAndVerify(compilation, expectedOutput: 2669var comp = CompileAndVerify(compilation, expectedOutput: 2708var comp = CompileAndVerify(compilation, expectedOutput: 2750var comp = CompileAndVerify(compilation, expectedOutput: 2812var comp = CompileAndVerify(compilation, expectedOutput: @"pass"); 2840var comp = CompileAndVerify(compilation, expectedOutput: @"pass"); 2868var comp = CompileAndVerify(compilation, expectedOutput: @"1"); 2959var comp = CompileAndVerify(compilation, expectedOutput: @"pass"); 3178var comp = CompileAndVerify(compilation, expectedOutput: "Main"); 3208var comp = CompileAndVerify(compilation);
Semantics\PrimaryConstructorTests.cs (41)
428var verifier = CompileAndVerify(comp).VerifyDiagnostics( 621var verifier = CompileAndVerify(comp, 986var verifier = CompileAndVerify(comp, expectedOutput: "(2, 2)"); 1046var verifier = CompileAndVerify(src, expectedOutput: @" 1285var verifier = CompileAndVerify(src, expectedOutput: @" 1942var verifier = CompileAndVerify(src, expectedOutput: @" 2004var verifier = CompileAndVerify(src, expectedOutput: @"1").VerifyDiagnostics(); 2634var verifier = CompileAndVerify(src, expectedOutput: @"2").VerifyDiagnostics(); 2745var verifier = CompileAndVerify(src, expectedOutput: @"2").VerifyDiagnostics(); 2792var verifier = CompileAndVerify(src, expectedOutput: @" 3042var comp = CompileAndVerify(source, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator); 3171var comp = CompileAndVerify(source, expectedOutput: "Main"); 7041var verifier = CompileAndVerify(source, expectedOutput: 7090var verifier = CompileAndVerify(source, expectedOutput: 8696var verifier = CompileAndVerify(src, expectedOutput: @"TrueFalse").VerifyDiagnostics( 8768var verifier = CompileAndVerify(comp, expectedOutput: @"122123124125125", verify: Verification.Fails).VerifyDiagnostics( 9174var verifier = CompileAndVerify(comp, expectedOutput: @"123124125").VerifyDiagnostics(); 9339var verifier = CompileAndVerify(comp, expectedOutput: @"123124").VerifyDiagnostics(); 11779var verifier = CompileAndVerify(comp, expectedOutput: methodName); 12244var verifier = CompileAndVerify(comp, expectedOutput: @"123124125126-1", verify: Verification.Fails).VerifyDiagnostics(); 12317var verifier = CompileAndVerify(comp, expectedOutput: @"123124125126-1-2-3", verify: Verification.Fails).VerifyDiagnostics(); 12394var verifier = CompileAndVerify(comp, expectedOutput: @"123123124-1-2-3", verify: Verification.Passes).VerifyDiagnostics( 14093var verifier = CompileAndVerify(source, expectedOutput: " 0 1 2 3 2 3", options: TestOptions.DebugExe); 14414var verifier = CompileAndVerify(comp, expectedOutput: @"(2, 1)").VerifyDiagnostics(); 15834var verifier = CompileAndVerify(comp, expectedOutput: @"122123124125125", verify: Verification.Fails).VerifyDiagnostics( 16406var verifier1 = CompileAndVerify(comp1, expectedOutput: "123"); 16588var verifier2 = CompileAndVerify(comp2, expectedOutput: "123"); 16820var verifier1 = CompileAndVerify(comp1, expectedOutput: "9123"); 17077var verifier2 = CompileAndVerify(comp2, expectedOutput: "9123"); 17365var verifier1 = CompileAndVerify(comp1, expectedOutput: "123"); 17423var verifier2 = CompileAndVerify(comp2, expectedOutput: "123"); 17519var verifier1 = CompileAndVerify(comp1, expectedOutput: "9123"); 17608var verifier2 = CompileAndVerify(comp2, expectedOutput: "9123"); 17739var verifier1 = CompileAndVerify(comp1, expectedOutput: "123"); 17948var verifier2 = CompileAndVerify(comp2, expectedOutput: "123"); 18210var verifier1 = CompileAndVerify(comp1, expectedOutput: "9123"); 18504var verifier2 = CompileAndVerify(comp2, expectedOutput: "9123"); 18846var verifier1 = CompileAndVerify(comp1, expectedOutput: "124"); 19016var verifier2 = CompileAndVerify(comp2, expectedOutput: "124"); 19239var verifier1 = CompileAndVerify(comp1, expectedOutput: "125"); 19313var verifier2 = CompileAndVerify(comp2, expectedOutput: "125");
Semantics\RecordTests.cs (115)
27private CompilationVerifier CompileAndVerify( 876var verifier = CompileAndVerify(src, expectedOutput: @" 1553var verifier = CompileAndVerify(src, expectedOutput: "True"); 1604var verifier = CompileAndVerify(src, expectedOutput: "True", parseOptions: TestOptions.Regular10); 1684var verifier = CompileAndVerify(src, expectedOutput: "12"); 2011var verifier = CompileAndVerify(src, expectedOutput: @"0 2050var verifier = CompileAndVerify(src, expectedOutput: @"0 1 2090var verifier = CompileAndVerify(src, expectedOutput: @"0 1 2374var verifier = CompileAndVerify(src, expectedOutput: "2").VerifyDiagnostics(); 2421var verifier = CompileAndVerify( 4918var v = CompileAndVerify(comp, expectedOutput: "C1 { }"); 4993var v = CompileAndVerify(comp, expectedOutput: "C1 { }"); 5070var v = CompileAndVerify(comp, expectedOutput: "C1 { }"); 5455var v = CompileAndVerify(comp, expectedOutput: "C1 { field = 42 }"); 5510var v = CompileAndVerify(comp, expectedOutput: "C1 { field = 42 }"); 5549var v = CompileAndVerify(comp, expectedOutput: "C1 { field = hello }"); 5590var v = CompileAndVerify(comp, expectedOutput: "C1 { field = hello } C1 { field = 42 }", verify: Verification.Skipped /* init-only */); 5672var v = CompileAndVerify(comp, expectedOutput: "C1 { field1 = hi, field2 = }"); 5726var v = CompileAndVerify(comp, expectedOutput: "C1 { Property = 42 }", verify: Verification.Skipped /* init-only */); 5790var v = CompileAndVerify(comp, expectedOutput: "C1 { A1 = 42, A2 = 100, B1 = 43, B2 = 101 }", verify: Verification.Skipped /* init-only */); 7642var verifier = CompileAndVerify(source, expectedOutput: @"1 7684var verifier = CompileAndVerify(source, expectedOutput: @"1 7724var verifier = CompileAndVerify(source, expectedOutput: @"1 7758var verifier = CompileAndVerify(source, expectedOutput: @"1 7792var verifier = CompileAndVerify(source, expectedOutput: @"1 7827var verifier = CompileAndVerify(source, expectedOutput: @"1 8061var verifier = CompileAndVerify(src, expectedOutput: @" 8238var verifier = CompileAndVerify(src, expectedOutput: "11").VerifyDiagnostics(); 8284var verifier = CompileAndVerify(src, expectedOutput: @" 8336var verifier = CompileAndVerify(src, expectedOutput: @" 8418var verifier = CompileAndVerify(src, expectedOutput: @" 9508var verifier = CompileAndVerify(src, expectedOutput: @" 9539var verifier = CompileAndVerify(@" 9588var verifier = CompileAndVerify(src, expectedOutput: @" 10590var verifier = CompileAndVerify(comp, expectedOutput: "(, )").VerifyDiagnostics( 11342var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: 11556var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: 11792var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: 12596var verifierA = CompileAndVerify(compA, verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics(); 12636var verifierB = CompileAndVerify(compB, expectedOutput: "(1, 2, 3, 4) (1, 2, 3, 4) (10, 2, 30, 4)", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics(); 12688var verifier = CompileAndVerify(comp, expectedOutput: "(1, 2, 3, 4) (10, 20, 30, 40)", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics(); 12745var verifier = CompileAndVerify(comp, verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics(); 12777var verifier = CompileAndVerify(comp, verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics( 12832var verifier = CompileAndVerify(comp).VerifyDiagnostics(); 12904var verifier = CompileAndVerify(comp, expectedOutput: "(2, 0)").VerifyDiagnostics( 12947var verifier = CompileAndVerify(comp, expectedOutput: "(2, 100) RAN (0, 0)").VerifyDiagnostics( 13005var verifier = CompileAndVerify(comp, expectedOutput: "RAN", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics(); 13060var verifier = CompileAndVerify(comp, expectedOutput: "1 RAN 2", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics(); 13182var verifier = CompileAndVerify(comp, expectedOutput: "(1, 2, 42) RAN (10, 20, 42)", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics(); 13222var verifier = CompileAndVerify(comp, expectedOutput: "(1, 2, 42) (10, 20, 42)", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics(); 13502var verifier = CompileAndVerify(comp, expectedOutput: "(1, 2, 3, 4, 100, 200)", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics(); 14100var verifier = CompileAndVerify(source, expectedOutput: "12"); 14158var verifier = CompileAndVerify(source, expectedOutput: "1"); 14195var verifier = CompileAndVerify(source, expectedOutput: "123"); 14256var verifier = CompileAndVerify(source, expectedOutput: "32"); 14376var verifier = CompileAndVerify(source, expectedOutput: "02"); 14590var verifier = CompileAndVerify(source, expectedOutput: "1"); 14668var verifier = CompileAndVerify(source, expectedOutput: "0101"); 14717var verifier = CompileAndVerify(source, expectedOutput: "01201"); 14766var verifier = CompileAndVerify(source, expectedOutput: "0101"); 14850var verifier = CompileAndVerify(source, expectedOutput: "0123456"); 15072var verifier = CompileAndVerify(source, expectedOutput: "12"); 15107var verifier = CompileAndVerify(source, expectedOutput: "12"); 15139var verifier = CompileAndVerify(source, expectedOutput: "12"); 15242var verifier = CompileAndVerify(source, expectedOutput: "12"); 15282var verifier = CompileAndVerify(source, expectedOutput: "123"); 15359var verifier = CompileAndVerify(source, expectedOutput: "1"); 15438var verifier = CompileAndVerify(source, expectedOutput: "12"); 15474var verifier = CompileAndVerify(source, expectedOutput: "12"); 15619var verifier = CompileAndVerify(source, expectedOutput: "1"); 15653var verifier = CompileAndVerify(source, expectedOutput: "2"); 19021var verifier = CompileAndVerify(comp, expectedOutput: modifiers == "abstract " ? null : 19094var verifier = CompileAndVerify(comp, expectedOutput: modifiers == "abstract " ? null : 20319var verifier = CompileAndVerify(source, expectedOutput: 20424var verifier = CompileAndVerify(source, expectedOutput: 20852var verifier = CompileAndVerify(src2, 21022var verifier = CompileAndVerify(RuntimeUtilities.IsCoreClrRuntime ? src2 : new[] { src2, IsExternalInitTypeDefinition }, 21112var verifier = CompileAndVerify(src, expectedOutput: @" 21359var verifier = CompileAndVerify(src, expectedOutput: @" 22047var verifier = CompileAndVerify(src, expectedOutput: @" 22116var verifier = CompileAndVerify(src, expectedOutput: @"1").VerifyDiagnostics(); 22534var verifier = CompileAndVerify(comp, expectedOutput: 22603var verifier = CompileAndVerify(source, expectedOutput: 22694var verifier = CompileAndVerify(comp, expectedOutput: 22807var verifier = CompileAndVerify(comp, expectedOutput: 22920var verifier = CompileAndVerify(comp, expectedOutput: 23020var verifier = CompileAndVerify(comp, expectedOutput: 23207var verifier = CompileAndVerify(source, expectedOutput: 23375var verifier = CompileAndVerify(comp, expectedOutput: 23832var verifier = CompileAndVerify(comp, expectedOutput: 24636var verifier = CompileAndVerify(src, expectedOutput: @"2").VerifyDiagnostics(); 24740var verifier = CompileAndVerify(src, expectedOutput: @"2").VerifyDiagnostics(); 24787var verifier = CompileAndVerify(src, expectedOutput: @" 24967var verifier = CompileAndVerify(comp, expectedOutput: "42", verify: Verification.Skipped /* init-only */); 25004var verifier = CompileAndVerify(comp, expectedOutput: "0", verify: Verification.Skipped /* init-only */); 25034var verifier = CompileAndVerify(comp, expectedOutput: "42", verify: Verification.Skipped /* init-only */); 25096var comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator, 25156var comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator, 25233var comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator, 25290var comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator, 25365var comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator, 25449var comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator, 25519var comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator, 25587var comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, expectedOutput: "Main", 27716var verifier = CompileAndVerify(src, expectedOutput: "True"); 27769var verifier = CompileAndVerify(src, expectedOutput: "True"); 28025var verifier = CompileAndVerify(comp); 29250var verifier = CompileAndVerify(comp, expectedOutput: "42 - 42"); 29282var verifier = CompileAndVerify(comp, expectedOutput: "43 - 43"); 29317var verifier = CompileAndVerify(comp, expectedOutput: "42 - 42", verify: Verification.Skipped /* init-only */); 29375var verifier = CompileAndVerify(comp, expectedOutput: "42"); 29413var verifier = CompileAndVerify(comp, expectedOutput: "42"); 29447var verifier = CompileAndVerify(comp, expectedOutput: "42"); 29789var verifier = CompileAndVerify(comp, expectedOutput: "42"); 29826var verifier = CompileAndVerify(comp, expectedOutput: "42");
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
EndToEndTests.cs (1)
677var verifier = CompileAndVerify(files.ToArrayAndFree(), parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "global"), expectedOutput: makeExpectedOutput());
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IUsingStatement.cs (1)
1761var verifier = CompileAndVerify(compilation);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (779)
Semantics\AccessCheckTests.cs (5)
1051var assembly1Verifier = CompileAndVerify(assembly1Compilation); 1087var compilationVerifier = CompileAndVerify(compilation1); 1160var compilationVerifier = CompileAndVerify(compilation1); 1197var compilationVerifier = CompileAndVerify(compilationA); 1239var compilationVerifier = CompileAndVerify(compilationA);
Semantics\AmbiguousOverrideTests.cs (1)
1359var verifier = CompileAndVerify(csharp, new[] { reference }, options: TestOptions.ReleaseExe, expectedOutput: @"
Semantics\AnonymousFunctionTests.cs (5)
22internal CompilationVerifier VerifyInPreview(CSharpTestSource source, string expectedOutput, Action<ModuleSymbol>? symbolValidator = null, params DiagnosticDescription[] expected) 38var verifier = CompileAndVerify( 654var verifier = VerifyInPreview( 1187var verifier = CompileAndVerify( 1272var verifier = VerifyInPreview(source, expectedOutput: "1");
Semantics\ArglistTests.cs (7)
193var verifier = CompileAndVerify(source: text, expectedOutput: "System.Int32", verify: Verification.FailsILVerify); 361var verifier = CompileAndVerify(source: text, expectedOutput: "System.String", verify: Verification.FailsILVerify); 411var verifier = CompileAndVerify(source: text, expectedOutput: ""); 482var verifier = CompileAndVerify(source: text, expectedOutput: expectedOutput); 675var verifier = CompileAndVerify(source: text, expectedOutput: "1123", verify: Verification.FailsILVerify); 792var verifier = CompileAndVerify(source: text, expectedOutput: @"42 905var verifier = CompileAndVerify(source: text, expectedOutput: "4242", verify: Verification.FailsILVerify);
Semantics\BindingAsyncTasklikeMoreTests.cs (5)
107var verifier = CompileAndVerify(compilation, expectedOutput: "3"); 432var verifier = CompileAndVerify(compilation); 513var verifier = CompileAndVerify(compilation); 592var verifier = CompileAndVerify(compilation); 650var verifier = CompileAndVerify(
Semantics\BindingAwaitTests.cs (2)
1897var verifier = CompileAndVerify(compilation); 2840var compiled = CompileAndVerify(comp, expectedOutput: "dynamic42", verify: Verification.FailsPEVerify);
Semantics\ConditionalOperatorTests.cs (9)
272var verifier = CompileAndVerify(source, expectedOutput: @"B 388var verifier = CompileAndVerify(source, expectedOutput: @"BDBD"); 547var verifier = CompileAndVerify(source, expectedOutput: @"BDBD"); 646var verifier = CompileAndVerify(source, expectedOutput: @"BDBD"); 711var verifier = CompileAndVerify( 783var verifier = CompileAndVerify(new string[] { source }, expectedOutput: "1"); 848var verifier = CompileAndVerify(new string[] { source }, expectedOutput: "1"); 924var verifier = CompileAndVerify(new string[] { source }, expectedOutput: "1"); 1002var verifier = CompileAndVerify(new string[] { source }, expectedOutput: "1");
Semantics\DeconstructionTests.cs (7)
956var comp = CompileAndVerify(source, expectedOutput: "M M 43"); 1688var comp = CompileAndVerify(source, expectedOutput: "(1, hello) (1, hello) (1, hello)"); 1759var comp = CompileAndVerify(source, expectedOutput: "((1, hello), 3)"); 1834var comp = CompileAndVerify(source, expectedOutput: "(1, 1, 1, 1, 1, 1, 1, 1, 9)"); 3244var comp = CompileAndVerify(source, expectedOutput: "42"); 3774var verifier = CompileAndVerify(source, sourceSymbolValidator: validator); 6481var verifier = CompileAndVerify(comp, expectedOutput: "(0, 0)");
Semantics\DelegateTypeTests.cs (66)
1242var verifier = CompileAndVerify(comp, expectedOutput: "RAN System.Action"); 1367var verifier = CompileAndVerify(comp, expectedOutput: "RAN(42) A.F: System.Action<System.Object>"); 1410var verifier = CompileAndVerify(comp, expectedOutput: "RAN B.F: System.Action"); 1975var verifier = CompileAndVerify(comp, expectedOutput: "RAN N.B.F: System.Action"); 2487var verifier = CompileAndVerify(comp, expectedOutput: "E.M"); 2535var verifier = CompileAndVerify(comp, expectedOutput: "E2.M E2.M"); 2583var verifier = CompileAndVerify(comp, expectedOutput: "E1.M E1.M"); 2805var verifier = CompileAndVerify(comp, expectedOutput: "ran"); 2825var verifier = CompileAndVerify(comp, expectedOutput: "ran"); 2853var verifier = CompileAndVerify(comp, expectedOutput: "ran"); 2912var verifier = CompileAndVerify(comp, expectedOutput: "ran"); 2972var verifier = CompileAndVerify(comp, expectedOutput: "ran"); 3007var verifier = CompileAndVerify(comp, expectedOutput: "ran"); 3038var verifier = CompileAndVerify(comp, expectedOutput: "ran"); 3073var verifier = CompileAndVerify(comp, expectedOutput: "A.F"); 10193var verifier = CompileAndVerify(comp, expectedOutput: 11011var verifier = CompileAndVerify(comp, expectedOutput: 11142var verifier = CompileAndVerify(comp, expectedOutput: @"(41, 42)"); 11196var verifier = CompileAndVerify(comp, expectedOutput: 11270var verifier = CompileAndVerify(comp, expectedOutput: 11336var verifier = CompileAndVerify(comp, expectedOutput: 11413var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: 11478var verifier = CompileAndVerify(comp, expectedOutput: 11557var verifier = CompileAndVerify(comp, expectedOutput: 11721var verifier = CompileAndVerify(comp, expectedOutput: 12030var verifier = CompileAndVerify(comp, validator: validator, expectedOutput: "D"); 12071var verifier = CompileAndVerify(comp, validator: validator, expectedOutput: 12115var verifier = CompileAndVerify(comp, validator: validator); 13436var verifier = CompileAndVerify(source, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 13477var verifier = CompileAndVerify(source, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 13540var verifier = CompileAndVerify(source, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 13581var verifier = CompileAndVerify(source3, [comp2Ref, comp1aRef], 13657var verifier = CompileAndVerify(source, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 13724var verifier = CompileAndVerify(source3, [comp2Ref, comp1bRef], symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 13871var verifier = CompileAndVerify(source4, [comp2Ref, comp1bRef], symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 13912var verifier = CompileAndVerify(source, expectedOutput: expectedOutput).VerifyDiagnostics(); 13955var verifier = CompileAndVerify(source3, [comp2Ref, comp1aRef], symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 14093var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify: Verification.Skipped, expectedOutput: 14145var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify: Verification.Skipped, expectedOutput: 14210var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify: Verification.Skipped, expectedOutput: 14259var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 15618var verifier = CompileAndVerify(source, parseOptions: TestOptions.RegularPreview); 15735var verifier = CompileAndVerify(source, expectedOutput: 15758var verifier = CompileAndVerify(source, expectedOutput: "7 <>f__AnonymousDelegate0`4[System.Int32,System.Int32,System.Int32,System.Int32]"); 15859var verifier = CompileAndVerify(source, expectedOutput: "abc <>f__AnonymousDelegate0`4[System.String,System.String,System.String,System.String]"); 16334var verifier = CompileAndVerify(source, expectedOutput: 16420var verifier = CompileAndVerify(source, expectedOutput: "file::member:0"); 16467var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net60, 16842var verifier = CompileAndVerify(source); 16937var verifier = CompileAndVerify(source, expectedOutput: @"10 a 0"); 17425var verifier = CompileAndVerify(source, expectedOutput: 17556var verifier = CompileAndVerify(source, expectedOutput: ""); 17646var verifier = CompileAndVerify(source); 17861var verifier = CompileAndVerify(source, expectedOutput: """ 17881var verifier = CompileAndVerify(source).VerifyDiagnostics(); 17973var verifier = CompileAndVerify(source, expectedOutput: """ 17995var verifier = CompileAndVerify(source).VerifyDiagnostics(); 18102var verifier = CompileAndVerify(source, expectedOutput: """ 18160var verifier = CompileAndVerify(source, expectedOutput: """ 18179var verifier = CompileAndVerify(source).VerifyDiagnostics(); 18260var verifier = CompileAndVerify(source, expectedOutput: """ 18281var verifier = CompileAndVerify(source).VerifyDiagnostics(); 18372var verifier = CompileAndVerify(source, expectedOutput: """ 19286var verifier = CompileAndVerify(source, expectedOutput: "<>f__AnonymousDelegate0`2[System.Int32,System.Int32]").VerifyDiagnostics(); 19324var verifier = CompileAndVerify(source, expectedOutput: "<>c").VerifyDiagnostics(); 19383var verifier = CompileAndVerify(source).VerifyDiagnostics(
Semantics\DynamicTests.cs (6)
1695var verifier = CompileAndVerify(source, new[] { CSharpRef }).VerifyDiagnostics(); 3855var verifier = CompileAndVerify(source, new[] { CSharpRef }, expectedOutput: "System.Object").VerifyDiagnostics(); 3888var verifier = CompileAndVerify(source, new[] { CSharpRef }, expectedOutput: "System.Object").VerifyDiagnostics(); 3916var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithAllowUnsafe(true), verify: Verification.FailsPEVerify).VerifyDiagnostics(); 3944var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithAllowUnsafe(true), verify: Verification.FailsPEVerify).VerifyDiagnostics(); 3995var verifier = CompileAndVerify(source, new[] { CSharpRef }, options: TestOptions.DebugDll).VerifyDiagnostics();
Semantics\FunctionPointerTests.cs (21)
24private CompilationVerifier CompileAndVerifyFunctionPointers(CSharpCompilation compilation, string? expectedOutput = null) 176var verifier = CompileAndVerifyFunctionPointers(comp); 239var verifier = CompileAndVerify(comp, expectedOutput: "1", verify: Verification.Skipped); 265var verifier = CompileAndVerifyFunctionPointers(comp); 330var verifier = CompileAndVerifyFunctionPointers(comp); 385var verifier = CompileAndVerifyFunctionPointers(comp); 435var verifier = CompileAndVerifyFunctionPointers(comp); 480var verifier = CompileAndVerifyFunctionPointers(comp); 584var verifier = CompileAndVerifyFunctionPointers(comp); 628var verifier = CompileAndVerifyFunctionPointers(comp); 675var verifier = CompileAndVerifyFunctionPointers(comp); 722var verifier = CompileAndVerifyFunctionPointers(comp); 815var verifier = CompileAndVerifyFunctionPointers(comp); 867var verifier = CompileAndVerifyFunctionPointers(comp); 927var verifier = CompileAndVerifyFunctionPointers(comp); 2690var verifier = CompileAndVerify(@" 2715var verifier = CompileAndVerify(@" 2933var verifier = CompileAndVerify(@" 3271var verifier = CompileAndVerifyFunctionPointers(comp, expectedOutput: "GetPtr"); 3351var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: @" 3848var verifier = CompileAndVerify(comp, expectedOutput: "True", verify: Verification.Skipped);
Semantics\ImplicitlyTypedLocalsTests.cs (1)
112var verifier = CompileAndVerify(alias + text, expectedOutput: "1");
Semantics\ImplicitObjectCreationTests.cs (1)
4800var verifier = CompileAndVerify(source, expectedOutput: "0231");
Semantics\InitOnlyMemberTests.cs (6)
2788var v = CompileAndVerify(comp, expectedOutput: "2 3", verify: Verification.Skipped); 4213var verifier = CompileAndVerify(new[] { IsExternalInitTypeDefinition, @" 4248var verifier = CompileAndVerify(new[] { IsExternalInitTypeDefinition, @" 4288var verifier = CompileAndVerify(new[] { IsExternalInitTypeDefinition, @" 4327var verifier = CompileAndVerify(new[] { IsExternalInitTypeDefinition, @" 4413var verifier = CompileAndVerify(new[] { IsExternalInitTypeDefinition, @"
Semantics\InterceptorsTests.cs (2)
85var verifier = CompileAndVerify(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors, expectedOutput: "1"); 125var verifier = CompileAndVerify(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "NS1"), expectedOutput: "1");
Semantics\InterpolationTests.cs (142)
242var verifier = CompileAndVerify(source, expectedOutput: expectedOutput); 268var verifier = CompileAndVerify(source, expectedOutput: expectedOutput); 346var verifier = CompileAndVerify(source, new[] { CSharpRef }, expectedOutput: expectedOutput).VerifyDiagnostics(); 1114var compilation = CompileAndVerify(comp, verify: Verification.Fails); 1173var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput); 1185static void checkNet50IL(CompilationVerifier verifier) 1204static void checkNet60IL(CompilationVerifier verifier) 1276var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput); 1288static void checkNet50IL(CompilationVerifier verifier) 1307static void checkNet60IL(CompilationVerifier verifier) 1377var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput); 1429var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput); 1702var verifier = CompileAndVerify(new[] { code, handler }, expectedOutput: @" 1841var verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: expectedOutput); 2257var verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: expectedOutput, targetFramework: TargetFramework.Net50, parseOptions: TestOptions.Regular10); 2693var verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @"base1"); 2867var verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @" 2979var verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @" 3142var verifier = CompileAndVerifyWithCSharp(new[] { source, interpolatedStringBuilder }, expectedOutput: @"base1"); 3194var verifier = CompileAndVerifyWithCSharp(new[] { source, interpolatedStringBuilder }, expectedOutput: @"1base"); 3246var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerAttribute }); 3682var verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @" 3778var verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @"value:1"); 3815var verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @" 3881var verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @" 3964var verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, targetFramework: TargetFramework.NetCoreApp, expectedOutput: @" 4056var verifier = CompileAndVerify(comp, verify: Verification.FailsILVerify, expectedOutput: @" 4147var verifier = CompileAndVerify(source, expectedOutput: @" 4624private CompilationVerifier CompileAndVerifyOnCorrectPlatforms(CSharpCompilation compilation, string expectedOutput) 4643var verifier = CompileAndVerify(comp, expectedOutput: @" 4780var verifier = CompileAndVerify(comp, expectedOutput: @" 4840var verifier = CompileAndVerify(comp, expectedOutput: @" 4891var verifier = CompileAndVerify(comp, expectedOutput: @" 4980var verifier = CompileAndVerify(comp, expectedOutput: @"Literal"); 5095var verifier = CompileAndVerify(comp, expectedOutput: @" 5149var verifier = CompileAndVerify(comp, expectedOutput: @" 5277var verifier = CompileAndVerify(comp, expectedOutput: @" 5335var verifier = CompileAndVerify(comp, expectedOutput: @" 5382var verifier = CompileAndVerify(comp, expectedOutput: @" 5436var verifier = CompileAndVerify(comp, expectedOutput: @"1.00Literal"); 5496var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"value:Field"); 5570var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"value:Field"); 5619var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @" 5685var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"1.00Literal"); 5755var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @" 5873var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @" 5933var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"1.00Literal"); 6030var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @" 6118var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @" 6201var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"1.00Literal"); 6281var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @" 6345var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @" 6437var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @" 6493var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @" 6559var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @" 6602var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @" 6648var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @" 6694var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @" 6746var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @" 7685var verifier = CompileAndVerify(comp, sourceSymbolValidator: validate, symbolValidator: validate, expectedOutput: @" 7722void verifyIL(CompilationVerifier verifier) 8083var verifier = CompileAndVerify(comp, sourceSymbolValidator: validate, symbolValidator: validate, expectedOutput: """ 8301var verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @" 8327static void verifyIL(string extraConstructorArg, CompilationVerifier verifier) 8425var verifier = base.CompileAndVerify((Compilation)comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: expectedOutput); 8447static void verifyIL(string extraConstructorArg, CompilationVerifier verifier) 8564var verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @" 8728var verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @" 8861var verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @" 8998var verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @" 9099var verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: "CustomHandler").VerifyDiagnostics(); 9227var verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @" 9343var verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @" 9460var verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @" 9583var verifier = CompileAndVerify(comp, expectedOutput: @" 9740var verifier = CompileAndVerify( 9849var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, expectedOutput: "1literal:literal", symbolValidator: validator, sourceSymbolValidator: validator); 9927var verifier = CompileAndVerify(comp, expectedOutput: @" 10026var verifier = CompileAndVerify(comp, expectedOutput: @" 10129var verifier = CompileAndVerify(comp, expectedOutput: @" 10275var verifier = CompileAndVerify(comp, expectedOutput: @" 10374var verifier = CompileAndVerify(comp, expectedOutput: @" 10526var verifier = CompileAndVerify(comp, expectedOutput: @" 10625var verifier = CompileAndVerify(comp, expectedOutput: @" 10724var verifier = CompileAndVerify(comp, expectedOutput: @" 10921var verifier = CompileAndVerify(comp, expectedOutput: @" 11006var verifier = CompileAndVerify(comp, expectedOutput: @" 11118var verifier = CompileAndVerify(comp, expectedOutput: @" 11370var verifier = CompileAndVerify(comp, expectedOutput: @" 11555var verifier = CompileAndVerify(comp, expectedOutput: @" 11655var verifier = CompileAndVerify(comp, expectedOutput: @" 11711var verifier = CompileAndVerify(comp, expectedOutput: @"s.I:1"); 11773var verifier = CompileAndVerify(comp, expectedOutput: @"s.I:2"); 11855var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, expectedOutput: @" 11906var verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @" 12003var verifier = CompileAndVerify(comp, expectedOutput: @" 12295var verifier = CompileAndVerify(comp, expectedOutput: @" 12559var verifier = CompileAndVerify(comp, expectedOutput: @" 12816var verifier = CompileAndVerify(comp, expectedOutput: @" 12940var verifier = CompileAndVerify(comp, expectedOutput: @" 13169var verifier = CompileAndVerify(comp, expectedOutput: @"literal:literal"); 13221var verifier = CompileAndVerify(comp, expectedOutput: @"1"); 13272var verifier = CompileAndVerify(comp); 13331var verifier = CompileAndVerify(comp); 13391var verifier = CompileAndVerify(comp); 13453var verifier = CompileAndVerify(comp); 13515var verifier = CompileAndVerify(comp); 13607var verifier = CompileAndVerify(comp, expectedOutput: "c.i:1"); 13924var verifier = CompileAndVerify(comp, expectedOutput: "d:1"); 13969var verifier = CompileAndVerify(comp, expectedOutput: "ctor"); 14014var verifier = CompileAndVerify(comp, expectedOutput: "ctor"); 14057var verifier = CompileAndVerify(comp, expectedOutput: "AppendLiteral"); 14106var verifier = CompileAndVerify(comp, expectedOutput: "AppendFormatted"); 14162var verifier = CompileAndVerify(comp, expectedOutput: @" 14258var verifier = CompileAndVerify(comp, expectedOutput: @" 14357var verifier = CompileAndVerify(comp, expectedOutput: @" 15916var verifier = CompileAndVerify(comp, expectedOutput: @" 15962var verifier = CompileAndVerify(comp, expectedOutput: @" 16017var verifier = CompileAndVerify(comp, expectedOutput: @" 16320var verifier = CompileAndVerify(comp, expectedOutput: @" 16394var verifier = CompileAndVerify(comp, expectedOutput: @" 16761var verifier = CompileAndVerify(code, expectedOutput: @"123456"); 16779var verifier = CompileAndVerify(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }, expectedOutput: @" 16910var verifier = CompileAndVerify(comp, expectedOutput: @"123456123456"); 17088var verifier = CompileAndVerify(comp, expectedOutput: @" 17152var verifier = CompileAndVerify(comp, expectedOutput: @" 17247var verifier = CompileAndVerify(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }, expectedOutput: @" 17375var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @"i:1"); 17439var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @""); 17547var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @"i:1"); 17600var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"1"); 17641var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"1"); 17692var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"12"); 17738var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"12"); 17854var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: "s.Field:1"); 17885var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: "2"); 17936var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: "s.Field:1"); 18027var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, 18605var verifier = CompileAndVerify(comp, expectedOutput: """ 18687var verifier = CompileAndVerify(comp, expectedOutput: """ 18786var verifier = CompileAndVerify(comp, expectedOutput: """ 18899var verifier = CompileAndVerify(comp, expectedOutput: """
Semantics\IteratorTests.cs (1)
551var comp = CompileAndVerify(source, expectedOutput: "0,1,2,3", options: TestOptions.DebugExe);
Semantics\LocalFunctionTests.cs (1)
6976var verifier = CompileAndVerify(source, expectedOutput:
Semantics\MultiDimensionalArrayTests.cs (12)
98var verifier = CompileAndVerify(source: source, expectedOutput: expected); 142var verifier = CompileAndVerify(source: source, expectedOutput: expected); 162var verifier = CompileAndVerify(source: source, expectedOutput: expected); 183var verifier = CompileAndVerify(source: source, expectedOutput: expected); 299var verifier = CompileAndVerify(compilation, expectedOutput: 334var verifier = CompileAndVerify(compilation, expectedOutput: 382var verifier = CompileAndVerify(compilation, expectedOutput: 627var verifier = CompileAndVerify(compilation, expectedOutput: 681var verifier = CompileAndVerify(compilation, expectedOutput: 713var verifier = CompileAndVerify(compilation, expectedOutput: 1212var verifier = CompileAndVerify(compilation, expectedOutput: 1539var verifier = CompileAndVerify(compilation, expectedOutput:
Semantics\NamedAndOptionalTests.cs (8)
774var c = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.FailsPEVerify); 1345var verifier = CompileAndVerify(new[] { sourceDefinitions, sourceCalls }, expectedOutput: expected); 1573var verifier = CompileAndVerify(csharpCompilation, expectedOutput: expected); 1681var verifier = CompileAndVerify(exeComp, expectedOutput: @"DatesMatch 1793var verifier = CompileAndVerify(source, expectedOutput: @" 1867var verifier = CompileAndVerify(source, expectedOutput: 1944var verifier = CompileAndVerify(source, expectedOutput: 2013var verifier = CompileAndVerify(source, expectedOutput: "2");
Semantics\NameOfTests.cs (3)
148var comp = CompileAndVerify(source, expectedOutput: @" 1443var comp = CompileAndVerify(compilation, expectedOutput: @"N1N2"); 1695var comp = CompileAndVerify(compilation, expectedOutput: @"passed");
Semantics\NativeIntegerTests.cs (34)
2937var verifier = CompileAndVerify(comp, expectedOutput: 2984var verifier = CompileAndVerify(comp, expectedOutput: 3015var verifier = CompileAndVerify(comp, expectedOutput: 3678var verifier = CompileAndVerify(comp, expectedOutput: 4342var verifier = CompileAndVerify(comp, expectedOutput: $"{size}{size}{size}{size}"); 4508var verifier = CompileAndVerify(source, expectedOutput: @"1"); 4545var verifier = CompileAndVerify(comp, expectedOutput: 4618var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 4689var verifier = CompileAndVerify(comp, 4892var verifier = CompileAndVerify(comp); 5001var verifier = CompileAndVerify(comp); 5249var verifier = CompileAndVerify(comp); 5359var verifier = CompileAndVerify(comp); 6618var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput); 6750var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput); 7288var verifier = CompileAndVerify(comp, expectedOutput: 7455var verifier = CompileAndVerify(comp, expectedOutput: 9512var verifier = CompileAndVerify(comp, verify: useUnsafeContext || !verify ? Verification.Skipped : Verification.Passes); 9736var verifier = CompileAndVerify(comp, expectedOutput: expectedResult); 10113var verifier = CompileAndVerify(comp, expectedOutput: expectedResult); 10338var verifier = CompileAndVerify(comp, expectedOutput: expectedResult); 10378var verifier = CompileAndVerify(comp, emitOptions: EmitOptions.Default.WithRuntimeMetadataVersion("0.0.0.0"), verify: Verification.Skipped); 12438var verifier = CompileAndVerify(comp, expectedOutput: 12663var verifier = CompileAndVerify(comp, expectedOutput: 12866var verifier = CompileAndVerify(comp, expectedOutput: 12941var verifier = CompileAndVerify(comp, expectedOutput: 13793var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: 13898var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: expectedOutput); 14169var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: 14816var verifier = CompileAndVerify(source); 15121var verifier = CompileAndVerify(comp, expectedOutput: "RAN"); 15163var verifier = CompileAndVerify(comp, expectedOutput: "RAN"); 15833var verifier = CompileAndVerify(comp, expectedOutput: "RAN"); 15878var verifier = CompileAndVerify(comp).VerifyDiagnostics();
Semantics\NonTrailingNamedArgumentsTests.cs (17)
40var verifier = CompileAndVerify(source, expectedOutput: "First 1 2. Second 3 4.", parseOptions: TestOptions.Regular7_2); 86var verifier = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2); 114var verifier = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2); 138var verifier = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2); 161var verifier = CompileAndVerifyWithMscorlib40(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2, references: new[] { Net40.References.SystemCore }); 194var verifier = CompileAndVerify(source, expectedOutput: "1 2. 1 2.", parseOptions: TestOptions.Regular7_2); 225var verifier = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2); 261var verifier = CompileAndVerify(source, expectedOutput: "Get 1 2. Set 3 4 5.", parseOptions: TestOptions.Regular7_2); 336var verifier1 = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2, references: new[] { lib.ToMetadataReference() }); 339var verifier2 = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2, references: new[] { lib.EmitToImageReference() }); 388var verifier = CompileAndVerify(source, expectedOutput: "1 hi.", parseOptions: TestOptions.Regular7_2); 507var comp = CompileAndVerify(source, expectedOutput: "1 2. 2 3. 3 4,5."); 739var verifier = CompileAndVerify(source, expectedOutput: "Second 3 2."); 771var verifier = CompileAndVerify(source, expectedOutput: "Second 3 2."); 798var comp = CompileAndVerify(source, expectedOutput: "42"); 948var verifier = CompileAndVerify(source, expectedOutput: "1 2 3 4 Length:2"); 1128var comp = CompileAndVerify(source, expectedOutput: "1 2 34. 1 2 56.");
Semantics\NullableConversionTests.cs (3)
36var verifier = CompileAndVerify(source: source, expectedOutput: "AB"); 85var verifier = CompileAndVerify(source: source, expectedOutput: expectedOutput); 148var verifier = CompileAndVerify(source: source, expectedOutput: expectedOutput);
Semantics\NullableReferenceTypesTests.cs (8)
116566var verifier = CompileAndVerify( 138489var verifier1 = CompileAndVerify(source1, symbolValidator: validate, targetFramework: TargetFramework.Mscorlib40); 138542var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net60, 138580var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net60, 138611var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net60, 138645var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net60, 138690var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net60, 138732var verifier = CompileAndVerify(source2, [comp1],
Semantics\NullableTests.cs (12)
184var verifier = CompileAndVerify(source: source2, expectedOutput: "0"); 325var verifier = CompileAndVerify(source: source.Replace("TYPE", type), expectedOutput: expected); 385var verifier = CompileAndVerify(source: source, expectedOutput: "1"); 539var verifier = CompileAndVerify(source: source, expectedOutput: expected); 605var verifier = CompileAndVerify(source: source, expectedOutput: expected); 752var verifier = CompileAndVerify(source: s, expectedOutput: expected); 1310var verifier = CompileAndVerify(source: source.ToString(), expectedOutput: ""); 1405var verifier = CompileAndVerify(source: source, expectedOutput: ""); 1604var verifier = CompileAndVerify(source: source, expectedOutput: ""); 1649var verifier = CompileAndVerify(source: source, expectedOutput: "123"); 1667var verifier = CompileAndVerify(source: source2, expectedOutput: "0"); 1765var verifier = CompileAndVerify(source, expectedOutput: expected);
Semantics\OperatorTests.cs (14)
4843var verifier = CompileAndVerify(compilation, expectedOutput: "42"); 4911var verifier = CompileAndVerify(compilation, expectedOutput: "42"); 4948var verifier = CompileAndVerify(compilation, expectedOutput: "42"); 4986var verifier = CompileAndVerify(compilation, expectedOutput: "42"); 5237var comp = CompileAndVerify(source); 5317var comp = CompileAndVerify(source); 5341var comp = CompileAndVerify(source); 5360var comp = CompileAndVerify(source); 5379var comp = CompileAndVerify(source); 5880var comp = CompileAndVerify(source, expectedOutput: @"False 8891var verifier = CompileAndVerify(source); 10843var verifier = CompileAndVerify(source: source, expectedOutput: 11004var verifier = CompileAndVerify(source: source, expectedOutput: 11263var verifier = CompileAndVerify(source, expectedOutput: "Goo, Bar");
Semantics\OverloadResolutionTests.cs (1)
9481var verifier = CompileAndVerify(code, expectedOutput: "5").VerifyDiagnostics(expectedDiagnostics);
Semantics\RawInterpolationTests.cs (5)
238var verifier = CompileAndVerify(source, expectedOutput: expectedOutput); 264var verifier = CompileAndVerify(source, expectedOutput: expectedOutput); 396var verifier = CompileAndVerify(source, new[] { CSharpRef }, expectedOutput: expectedOutput).VerifyDiagnostics(); 1112var compilation = CompileAndVerify(comp, verify: Verification.Fails); 1360var verifier = CompileAndVerify(source, expectedOutput: expectedOutput);
Semantics\RawInterpolationTests_Handler.cs (110)
70var verifier = CompileAndVerify(new[] { code, handler }, expectedOutput: @" 209var verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: expectedOutput); 627var verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: expectedOutput, targetFramework: TargetFramework.Net50, parseOptions: TestOptions.RegularPreview); 1063var verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @"base1"); 1237var verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @" 1349var verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @" 1512var verifier = CompileAndVerifyWithCSharp(new[] { source, interpolatedStringBuilder }, expectedOutput: @"base1"); 1564var verifier = CompileAndVerifyWithCSharp(new[] { source, interpolatedStringBuilder }, expectedOutput: @"1base"); 1618var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerAttribute }); 2058var verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @" 2179var verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @"value:1"); 2216var verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @" 2282var verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: @" 2365var verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, targetFramework: TargetFramework.NetCoreApp, expectedOutput: @" 2457var verifier = CompileAndVerify(comp, expectedOutput: @" 2548var verifier = CompileAndVerify(source, expectedOutput: @" 2925private CompilationVerifier CompileAndVerifyOnCorrectPlatforms(CSharpCompilation compilation, string expectedOutput) 2944var verifier = CompileAndVerify(comp, expectedOutput: @" 3081var verifier = CompileAndVerify(comp, expectedOutput: @" 3141var verifier = CompileAndVerify(comp, expectedOutput: @" 3190var verifier = CompileAndVerify(comp, expectedOutput: @"Literal"); 3309var verifier = CompileAndVerify(comp, expectedOutput: @" 3363var verifier = CompileAndVerify(comp, expectedOutput: @" 3488var verifier = CompileAndVerify(comp, expectedOutput: @" 3546var verifier = CompileAndVerify(comp, expectedOutput: @" 3593var verifier = CompileAndVerify(comp, expectedOutput: @" 3647var verifier = CompileAndVerify(comp, expectedOutput: @"1.00Literal"); 3709var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"value:Field"); 3803var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"value:Field"); 3852var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @" 3918var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"1.00Literal"); 3988var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @" 4129var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @" 4189var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"1.00Literal"); 4285var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @" 4372var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @" 4454var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @"1.00Literal"); 4534var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @" 4598var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @" 4689var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @" 4745var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @" 4810var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @" 4853var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @" 4899var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @" 4945var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @" 4997var verifier = CompileAndVerifyOnCorrectPlatforms(comp, expectedOutput: @" 6478var verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @" 6504static void verifyIL(string extraConstructorArg, CompilationVerifier verifier) 6604var verifier = base.CompileAndVerify((Compilation)comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: expectedOutput); 6626static void verifyIL(string extraConstructorArg, CompilationVerifier verifier) 6745var verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @" 6911var verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @" 7046var verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @" 7185var verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @" 7290var verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: "CustomHandler").VerifyDiagnostics(); 7424var verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @" 7542var verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @" 7662var verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @" 7787var verifier = CompileAndVerify(comp, expectedOutput: @" 7953var verifier = CompileAndVerify( 8065var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, expectedOutput: "1literal:literal", symbolValidator: validator, sourceSymbolValidator: validator); 8149var verifier = CompileAndVerify(comp, expectedOutput: @" 8285var verifier = CompileAndVerify(comp, expectedOutput: @"s.I:1"); 8353var verifier = CompileAndVerify(comp, expectedOutput: @"s.I:2"); 8438var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, expectedOutput: @" 8491var verifier = CompileAndVerify(comp, sourceSymbolValidator: validator, symbolValidator: validator, expectedOutput: @" 8589var verifier = CompileAndVerify(comp, expectedOutput: @" 8882var verifier = CompileAndVerify(comp, expectedOutput: @" 9147var verifier = CompileAndVerify(comp, expectedOutput: @" 9406var verifier = CompileAndVerify(comp, expectedOutput: @" 9531var verifier = CompileAndVerify(comp, expectedOutput: @" 9762var verifier = CompileAndVerify(comp, expectedOutput: @"literal:literal"); 9816var verifier = CompileAndVerify(comp, expectedOutput: @"1"); 9872var verifier = CompileAndVerify(comp); 9931var verifier = CompileAndVerify(comp); 9991var verifier = CompileAndVerify(comp); 10053var verifier = CompileAndVerify(comp); 10115var verifier = CompileAndVerify(comp); 10212var verifier = CompileAndVerify(comp, expectedOutput: "c.i:1"); 10545var verifier = CompileAndVerify(comp, expectedOutput: "d:1"); 10596var verifier = CompileAndVerify(comp, expectedOutput: "ctor"); 10647var verifier = CompileAndVerify(comp, expectedOutput: "ctor"); 10692var verifier = CompileAndVerify(comp, expectedOutput: "AppendLiteral"); 10743var verifier = CompileAndVerify(comp, expectedOutput: "AppendFormatted"); 10804var verifier = CompileAndVerify(comp, expectedOutput: @" 10903var verifier = CompileAndVerify(comp, expectedOutput: @" 11358var verifier = CompileAndVerify(comp, expectedOutput: @" 11404var verifier = CompileAndVerify(comp, expectedOutput: @" 11458var verifier = CompileAndVerify(comp, expectedOutput: @" 11496var verifier = CompileAndVerify(comp, expectedOutput: @" 11534var verifier = CompileAndVerify(comp, expectedOutput: @" 11573var verifier = CompileAndVerify(comp, expectedOutput: @" 11752var verifier = CompileAndVerify(comp, expectedOutput: @" 11826var verifier = CompileAndVerify(comp, expectedOutput: @" 12193var verifier = CompileAndVerify(code, expectedOutput: @"123456"); 12211var verifier = CompileAndVerify(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }, expectedOutput: @" 12342var verifier = CompileAndVerify(comp, expectedOutput: @"123456123456"); 12505var verifier = CompileAndVerify(comp, expectedOutput: @" 12572var verifier = CompileAndVerify(comp, expectedOutput: @" 12667var verifier = CompileAndVerify(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }, expectedOutput: @" 12775var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @"i:1"); 12842var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @""); 12961var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @"i:1"); 13016var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"1"); 13057var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"1"); 13110var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"12"); 13156var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedOutput: @"12"); 13276var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: "s.Field:1"); 13309var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: "2"); 13362var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: "s.Field:1");
Semantics\ReadOnlyStructsTests.cs (5)
333var comp = CompileAndVerify(csharp); 619var verifier = CompileAndVerify(csharp, expectedOutput: "123"); 661var verifier = CompileAndVerify(csharp, expectedOutput: "123"); 798var verifier = CompileAndVerify(csharp, expectedOutput: 1036var verifier = CompileAndVerify(csharp, expectedOutput: "123");
Semantics\RecordStructTests.cs (54)
30private CompilationVerifier CompileAndVerify( 48var verifier = CompileAndVerify(src).VerifyDiagnostics(); 104var verifier = CompileAndVerify(src, expectedOutput: @"0 124var verifier = CompileAndVerify(src, expectedOutput: @"False") 211var verifier = CompileAndVerify(comp, expectedOutput: @"True 886var verifier = CompileAndVerify(comp, expectedOutput: "42"); 941var verifier = CompileAndVerify(src); 1743var verifier = CompileAndVerify(src, expectedOutput: @"12345").VerifyDiagnostics(); 1807var verifier = CompileAndVerify(src, expectedOutput: @"12345").VerifyDiagnostics(); 1902var verifier = CompileAndVerify(src, parseOptions: TestOptions.Regular11); 2169var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11, verify: Verification.Skipped); 2587var verifier = CompileAndVerify(src, expectedOutput: @"2").VerifyDiagnostics(); 2691var verifier = CompileAndVerify(src, expectedOutput: @"2").VerifyDiagnostics(); 2741var verifier = CompileAndVerify(comp, expectedOutput: "(42, 43)"); 2826var verifier = CompileAndVerify(comp, expectedOutput: "42", verify: Verification.Skipped /* init-only */); 2867var verifier = CompileAndVerify(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11, verify: Verification.Skipped); 2899var verifier = CompileAndVerify(comp, expectedOutput: "42", verify: Verification.Skipped /* init-only */); 3420var verifier = CompileAndVerify(source, expectedOutput: "12"); 3478var verifier = CompileAndVerify(source, expectedOutput: "1"); 3515var verifier = CompileAndVerify(source, expectedOutput: "123"); 3576var verifier = CompileAndVerify(source, expectedOutput: "32"); 3812var verifier = CompileAndVerify(source, expectedOutput: "12"); 3877var verifier = CompileAndVerify(source, expectedOutput: "12"); 4304var verifier = CompileAndVerify(comp, expectedOutput: "TrueTrue"); 4555var verifier = CompileAndVerify(comp, expectedOutput: "TrueTrue - FalseFalseFalseFalse - FalseFalseFalseFalse"); 4652var verifier = CompileAndVerify(comp); 4895var verifier = CompileAndVerify(source, expectedOutput: @" 5139var v = CompileAndVerify(comp, expectedOutput: "C1 { }"); 5343var v = CompileAndVerify(comp, expectedOutput: "C1 { field = 42 }"); 5400var v = CompileAndVerify(comp, expectedOutput: "C1 { field = 42 }"); 5441var v = CompileAndVerify(comp, expectedOutput: "C1 { field = hello }"); 5485var v = CompileAndVerify(comp, expectedOutput: "C1 { I = 42, field1 = hi, field2 = }"); 5541var v = CompileAndVerify(comp, expectedOutput: "C1 { I = 42 }", verify: Verification.Skipped /* init-only */); 6907var verifier = CompileAndVerify(comp, expectedOutput: "42 1"); 7502var verifier = CompileAndVerify(comp, expectedOutput: "42"); 7541var verifier = CompileAndVerify(src, parseOptions: TestOptions.Regular11); 7588var verifier = CompileAndVerify(comp, expectedOutput: "42"); 7629var verifier = CompileAndVerify(comp, expectedOutput: "42"); 7664var verifier = CompileAndVerify(comp, expectedOutput: "4243", verify: Verification.Skipped /* init-only */); 7704var verifier = CompileAndVerify(comp, expectedOutput: "4243"); 7738var verifier = CompileAndVerify(comp, expectedOutput: "4243"); 7772var verifier = CompileAndVerify(comp, expectedOutput: "4243"); 8179var verifier = CompileAndVerify(src, expectedOutput: @" 8267var verifier = CompileAndVerify(comp, expectedOutput: "Identity({ A = 10, B = 20 }) Identity(30) Identity(40) { A = 30, B = 40 }"); 8443var verifier = CompileAndVerify(comp, expectedOutput: "Identity({ A = 10, B = 20 }) Identity(40) Identity(30) { A = 30, B = 40 }"); 8618var verifier = CompileAndVerify(comp, expectedOutput: "M2 { A = 10, B = 20 }"); 8789var verifier = CompileAndVerify(comp, expectedOutput: "{ A = 10, B = 30 }"); 8986var verifier = CompileAndVerify(comp, expectedOutput: "{ A = 10, B = 30 }"); 10445var verifier = CompileAndVerify(comp, expectedOutput: "{ Property = 44 }"); 10460var verifier = CompileAndVerify(comp, expectedOutput: "{ Item = { Property = 44 } }"); 10510var comp = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator, 10550var verifier = CompileAndVerify(comp, expectedOutput: "42 - 42"); 10867var verifier = CompileAndVerify(source, expectedOutput: 11069var verifier = CompileAndVerify(source, expectedOutput:
Semantics\RefEscapingTests.cs (6)
1030var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 5038var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 5088var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 5138var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 5217var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 5321var compiled = CompileAndVerify(comp, verify: Verification.Passes);
Semantics\RefExtensionMethodsTests.cs (4)
103var verifier = CompileAndVerify(code, expectedOutput: "2"); 155var verifier = CompileAndVerify(code, expectedOutput: "2"); 1527var verifier = CompileAndVerify(compilation, expectedOutput: "10"); 1583var verifier = CompileAndVerify(compilation, expectedOutput: "0");
Semantics\RefFieldTests.cs (66)
212var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput( 286var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput( 427var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 830var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 937var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 1111var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 1169var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 1285var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 1322var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 1356var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 1401var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 1446var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 1691var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("explicit ctor")); 1729var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("explicit ctor")); 1766var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("explicit ctor")); 1806var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("explicit ctor")); 1844var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("explicit ctor")); 1989var verifier = CompileAndVerify(compB, verify: Verification.Skipped); 2539var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 6382var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput( 6787var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput( 7189var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput( 7314var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput( 8363var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput( 8409var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput( 8566var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput( 8635var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("2")); 8672var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("2")); 8709var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("2")); 8754var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("2")); 8804var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput( 8873var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput( 8944var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput( 9007var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput( 9081var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput(@"(1, Hello world)")); 9700var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput( 10098var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput( 18246var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 18861var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 20417var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("42")); 21161var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("42")); 21335var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("4242")); 21459var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("4242")); 21788var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("42")); 26155var verifier = CompileAndVerify(new[] { source, UnscopedRefAttributeDefinition }, expectedOutput: "12", verify: Verification.Fails); 26299var verifier = CompileAndVerify(new[] { source, UnscopedRefAttributeDefinition }, expectedOutput: "12", verify: Verification.Fails); 28552var verifier = CompileAndVerify(comp, expectedOutput: 28620var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: 28812var verifier = CompileAndVerify(comp, expectedOutput: "(3, 3)"); 29591var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, expectedOutput: "0"); 29648var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, expectedOutput: "0"); 29722var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, expectedOutput: """ 30312var verifier = CompileAndVerify(""" 30363var verifier = CompileAndVerify(""" 30422var verifier = CompileAndVerify(""" 30489var verifier = CompileAndVerify(""" 30550var verifier = CompileAndVerify(""" 30624var verifier = CompileAndVerify(""" 30697var verifier = CompileAndVerify(""" 30738var verifier = CompileAndVerify(""" 30779var verifier = CompileAndVerify(""" 30821var verifier = CompileAndVerify(""" 30865var verifier = CompileAndVerify(""" 30906var verifier = CompileAndVerify(""" 30954var verifier = CompileAndVerify(""" 30995var verifier = CompileAndVerify("""
Semantics\RefLocalsAndReturnsTests.cs (2)
2468var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 2536var verifier = CompileAndVerify(comp, verify: Verification.Skipped);
Semantics\ScriptSemanticsTests.cs (3)
121var compiled = CompileAndVerify(script); 167var compiled = CompileAndVerify(script); 213var compiled = CompileAndVerify(script);
Semantics\SemanticErrorTests.cs (9)
4555var compilationVerifier = CompileAndVerify(compilation1); 6476var verifier = CompileAndVerify(text, parseOptions: TestOptions.Regular11); 6988var verifier = CompileAndVerify(text, parseOptions: TestOptions.Regular11). 7105var verifier = CompileAndVerify(source, new[] { CSharpRef }, parseOptions: TestOptions.Regular11); 7179var verifier = CompileAndVerify(source, new[] { CSharpRef }, parseOptions: TestOptions.Regular11); 7803var compilationVerifier = CompileAndVerify(compilation1); 12982var verifier = CompileAndVerify(text, parseOptions: TestOptions.Regular11); 16098var c = CompileAndVerify(text, expectedOutput: "7788", verify: Verification.Fails, options: TestOptions.UnsafeReleaseExe); 20543var verifier = CompileAndVerify(source: text, expectedOutput: @"ffffffffffffffffffffffffffffffffffffffffffffffff
Semantics\SpanStackSafetyTests.cs (4)
730var verifier = CompileAndVerify(comp, expectedOutput: @"123").VerifyDiagnostics(); 794var verifier = CompileAndVerify(comp, expectedOutput: @"1223").VerifyDiagnostics(); 855var verifier = CompileAndVerify(comp, expectedOutput: @"123").VerifyDiagnostics(); 913var verifier = CompileAndVerify(comp, expectedOutput: @"123").VerifyDiagnostics();
Semantics\StructConstructorTests.cs (43)
317var verifier = CompileAndVerify(source, expectedOutput: 393var verifier = CompileAndVerify(source, expectedOutput: 483var verifier = CompileAndVerify(source, expectedOutput: @" 582var verifier = CompileAndVerify(source, expectedOutput: 705var verifier = CompileAndVerify(source, expectedOutput: 815var verifier = CompileAndVerify(source, expectedOutput: 889var verifier = CompileAndVerify(source, parseOptions: GetParseOptions(languageVersion), expectedOutput: 951var verifier = CompileAndVerify(source, parseOptions: GetParseOptions(languageVersion), expectedOutput: 1018var verifier = CompileAndVerify(source, parseOptions: GetParseOptions(languageVersion), expectedOutput: 1107var verifier = CompileAndVerify(source, parseOptions: GetParseOptions(languageVersion), expectedOutput: 1204var verifier = CompileAndVerify(source, parseOptions: GetParseOptions(languageVersion), expectedOutput: 1343var verifier = CompileAndVerify(source, expectedOutput: 1479var verifier = CompileAndVerify(source, expectedOutput: 1730var verifier = CompileAndVerify(source, expectedOutput: 1819var verifier = CompileAndVerify(source, parseOptions: GetParseOptions(languageVersion), expectedOutput: 1985var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular11, expectedOutput: 2025var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular11, expectedOutput: "(, )"); 2089var verifier = CompileAndVerify(comp, expectedOutput: 2168var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 2282var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, options: TestOptions.ReleaseExe, verify: Verification.Skipped, expectedOutput: 2400var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 2464var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, options: TestOptions.ReleaseExe, verify: Verification.Skipped, expectedOutput: 2765var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11, expectedOutput: 2876var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11, expectedOutput: 2947var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11, expectedOutput: 3179var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 3907var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular11); 3946var verifier = CompileAndVerify(comp, verify: Verification.Skipped, expectedOutput: "explicit ctor"); 4021var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), parseOptions: TestOptions.Regular11); 4064var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), parseOptions: TestOptions.Regular11); 4171var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 4202var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings)); 4241var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings)); 4274var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings)); 4309var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings)); 4349var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings)); 4399var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings)); 4443var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings)); 4486var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings)); 4591var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings)); 4709var verifier = CompileAndVerify(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular11); 4739var verifier = CompileAndVerify(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 4771var verifier = CompileAndVerify(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
Semantics\SwitchTests.cs (4)
1113var comp = CompileAndVerify(text, expectedOutput: ""); 2857var comp = CompileAndVerify(source, expectedOutput: @"1001"); 2890var comp = CompileAndVerify(source, expectedOutput: @"1001"); 2986var comp = CompileAndVerify(text, expectedOutput: "1 1 1 1");
Semantics\TopLevelStatementsTests.cs (10)
5656var verifier = CompileAndVerify(comp, expectedOutput: "42"); 6076var verifier = CompileAndVerify( 6147var verifier = CompileAndVerify( 9319var verifier = CompileAndVerify(comp, expectedOutput: "42"); 9351var verifier = CompileAndVerify(comp, expectedOutput: "42"); 9367var verifier = CompileAndVerify(comp, expectedOutput: "42"); 9383var verifier = CompileAndVerify(comp, expectedOutput: "42"); 9399var verifier = CompileAndVerify(comp, expectedOutput: "42"); 9476var verifier = CompileAndVerify(comp, expectedOutput: "42"); 9598var verifier = CompileAndVerify(comp, expectedOutput: "Program");
Semantics\UninitializedNonNullableFieldTests.cs (5)
874var verifier = CompileAndVerify(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular11); 1015var verifier = CompileAndVerify(comp, expectedOutput: "ok"); 1065var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular11); 1131var verifier = CompileAndVerify(comp, expectedOutput: "ok ok ok ok"); 1797var verifier = CompileAndVerify(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular11);
Semantics\UnsafeTests.cs (3)
5999var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 12133var compilation = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails); 12250var compilation = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails);
Semantics\UserDefinedConversionTests.cs (17)
1159var verifier = CompileAndVerify(source: source1 + source3 + source5, options: TestOptions.UnsafeReleaseExe, expectedOutput: ""); 1286var verifier = CompileAndVerify(source, expectedOutput: "23"); 1312var verifier = CompileAndVerify(source, expectedOutput: "a"); 1345var verifier = CompileAndVerify(source, expectedOutput: "b"); 1371var verifier = CompileAndVerify(source, expectedOutput: "1"); 1441var verifier = CompileAndVerify(source, expectedOutput: "a"); 1473var verifier = CompileAndVerify(source: source1, expectedOutput: ""); 1721var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 1774var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 1831var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 1866var verifier = CompileAndVerify(comp, expectedOutput: "0", verify: Verification.Skipped); 1911var verifier = CompileAndVerify(comp, expectedOutput: "0", verify: Verification.Skipped); 1976var verifier = CompileAndVerify(source, expectedOutput: "int"); 2019var verifier = CompileAndVerify(source, expectedOutput: "string"); 2081var verifier = CompileAndVerify(source, expectedOutput: "string"); 2143var verifier = CompileAndVerify(source, expectedOutput: "string[]"); 2207var verifier = CompileAndVerify(source, expectedOutput: "string");
Semantics\UsingDeclarationTests.cs (4)
626var verifier = CompileAndVerify(source, expectedOutput: """ 695var verifier = CompileAndVerify(source); 727var verifier = CompileAndVerify(source, expectedOutput: """ 762var verifier = CompileAndVerify(source, expectedOutput: """
Semantics\Utf8StringsLiteralsTests.cs (19)
418var verifier = CompileAndVerify(comp, expectedOutput: @" 1651var verifier = CompileAndVerify(comp, expectedOutput: @" 1704var verifier = CompileAndVerify(comp, expectedOutput: @" 1757var verifier = CompileAndVerify(comp, expectedOutput: @" 1819var verifier = CompileAndVerify(comp, expectedOutput: @" 1879var verifier = CompileAndVerify(comp, expectedOutput: @" 2006var verifier = CompileAndVerify(comp, expectedOutput: @" 2039var verifier = CompileAndVerify(comp, expectedOutput: "{ 0x63 0x61 0x74 }", verify: Verification.Fails).VerifyDiagnostics(); 3333var verifier = CompileAndVerify(comp, verify: Verification.Fails with { ILVerifyMessage = """ 3385var verifier = CompileAndVerify(comp, verify: Verification.Fails).VerifyDiagnostics(); 3448var verifier = CompileAndVerify(comp, expectedOutput: @"ArgumentOutOfRangeException", verify: Verification.Fails).VerifyDiagnostics(); 3496var verifier = CompileAndVerify(comp, expectedOutput: @" 3538var verifier = CompileAndVerify(comp, expectedOutput: @" 3587var verifier = CompileAndVerify(comp, expectedOutput: @" 3636var verifier = CompileAndVerify(comp, expectedOutput: @" 3686var verifier = CompileAndVerify(comp, expectedOutput: @" 3733var verifier = CompileAndVerify(comp, expectedOutput: @" 3774var verifier = CompileAndVerify(comp, expectedOutput: @" 4063var verifier = CompileAndVerify(comp, expectedOutput: @"
Semantics\WarningVersionTests.cs (6)
154var verifier = CompileAndVerify( 232var verifier = CompileAndVerify( 318var verifier = CompileAndVerify( 442var verifier = CompileAndVerify( 529var verifier = CompileAndVerify( 616var verifier = CompileAndVerify(
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (251)
DocumentationComments\DocumentationCommentCompilerTests.cs (8)
1288var verifier = CompileAndVerify(compilation, symbolValidator: module => 1345var verifier = CompileAndVerify(compilation, symbolValidator: module => 1408var verifier = CompileAndVerify(compilation, symbolValidator: module => 1471var verifier = CompileAndVerify(compilation, symbolValidator: module => 1969var verifier = CompileAndVerify(compilation, symbolValidator: module => 2027var verifier = CompileAndVerify(compilation, symbolValidator: module => 2091var verifier = CompileAndVerify(compilation, symbolValidator: module => 2155var verifier = CompileAndVerify(compilation, symbolValidator: module =>
Symbols\AnonymousTypesSymbolTests.cs (1)
45var verifier = CompileAndVerify(
Symbols\CheckedUserDefinedOperatorsTests.cs (7)
3932var verifier = CompileAndVerify(compilation1, expectedOutput: @" 4036var verifier = CompileAndVerify(compilation1, expectedOutput: @" 4892var verifier = CompileAndVerify(compilation1, expectedOutput: @" 5002var verifier = CompileAndVerify(compilation1, expectedOutput: @" 5770var verifier = CompileAndVerify(compilation1, expectedOutput: 6038var verifier = CompileAndVerify(compilation1, expectedOutput: 6154var verifier = CompileAndVerify(compilation1, expectedOutput:
Symbols\ConversionTests.cs (1)
2373var verifier = CompileAndVerify(comp, expectedOutput:
Symbols\CovariantReturnTests.cs (3)
1570var c = CompileAndVerify(SourceView(comp, assignments), verify: Verification.Skipped); 3240var verifier = CompileAndVerify(comp, verify: Verification.Skipped); 3403var verifier = CompileAndVerify(comp, verify: Verification.Skipped);
Symbols\CSharpCompilerFeatureRequiredTests.cs (1)
68protected override CompilationVerifier CompileAndVerify(CSharpCompilation compilation)
Symbols\DefaultInterfaceImplementationTests.cs (5)
49984var verifier = CompileAndVerify(compilation1, expectedOutput: !ExecutionConditionUtil.IsMonoOrCoreClr ? null : @"M1", verify: VerifyOnMonoOrCoreClr); 50846var verifier = CompileAndVerify(compilation0, expectedOutput: !ExecutionConditionUtil.IsMonoOrCoreClr ? null : @"M1", verify: VerifyOnMonoOrCoreClr); 50899var verifier = CompileAndVerify(compilation0, expectedOutput: !ExecutionConditionUtil.IsMonoOrCoreClr ? null : @"M1", verify: VerifyOnMonoOrCoreClr); 50952var verifier = CompileAndVerify(compilation0, expectedOutput: !ExecutionConditionUtil.IsMonoOrCoreClr ? null : @"A", verify: VerifyOnMonoOrCoreClr); 69143var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70,
Symbols\ExtendedPartialMethodsTests.cs (21)
115var verifier = CompileAndVerify(new[] { text1, text2 }, parseOptions: TestOptions.RegularWithExtendedPartialMethods, expectedOutput: "42"); 215var verifier = CompileAndVerify(new[] { text1, text2 }, parseOptions: TestOptions.RegularWithExtendedPartialMethods, expectedOutput: "42"); 241var verifier = CompileAndVerify(new[] { text1, text2 }, parseOptions: TestOptions.RegularWithExtendedPartialMethods, expectedOutput: "42"); 1136var verifier = CompileAndVerify( 1210var verifier = CompileAndVerify( 1314var verifier = CompileAndVerify(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods, expectedOutput: "1"); 1574var verifier = CompileAndVerify( 1610var verifier = CompileAndVerify( 2055var verifier = CompileAndVerify( 2082var verifier = CompileAndVerify( 2152var verifier = CompileAndVerify( 2206var verifier = CompileAndVerify( 2271var verifier = CompileAndVerify( 2314var verifier = CompileAndVerify( 2326var verifier = CompileAndVerify( 2355var verifier = CompileAndVerify( 2367var verifier = CompileAndVerify( 2413var verifier = CompileAndVerify( 2462var verifier = CompileAndVerify( 2496var verifier = CompileAndVerify(source2, references: new[] { reference }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2554var verifier = CompileAndVerify(
Symbols\ExtensionMethodTests.cs (9)
876var compilation = CompileAndVerify(source); 942var compilation = CompileAndVerify(source); 2136var compilation = CompileAndVerify(source, expectedOutput: 2258var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: "orange, apple"); 2297var compilation = CompileAndVerify(source, expectedOutput: 2377var compilation = CompileAndVerify(source, expectedOutput: 2647var compilation = CompileAndVerify(source, expectedOutput: 2746private CompilationVerifier CompileAndVerify(string source, string expectedOutput = null, Action<ModuleSymbol> validator = null, 3297var compilationVerifier = CompileAndVerify(compilation1);
Symbols\FunctionPointerTypeSymbolTests.cs (1)
1389var verifier = CompileAndVerify(comp, expectedOutput: "1", verify: Verification.Skipped);
Symbols\GenericConstraintConversionTests.cs (2)
867var compilation = CompileAndVerify(source); 921var compilation = CompileAndVerify(source);
Symbols\GenericConstraintTests.cs (14)
1142var compilation = CompileAndVerify(source, expectedOutput: 1205var compilation = CompileAndVerify(source); 1245var compilation = CompileAndVerify(source); 1297var compilation = CompileAndVerify(source, expectedOutput: 1353var compilation = CompileAndVerify(source); 1469var compilation = CompileAndVerify(source, expectedOutput: 1588var compilation = CompileAndVerify(source, expectedOutput: 1655var compilation = CompileAndVerify(source, expectedOutput: "2, 1"); 1715var compilation = CompileAndVerify(source, expectedOutput: "1, 2"); 2466var compilation = CompileAndVerify(source, expectedOutput: 2527var compilation = CompileAndVerify(source); 4541var compilation = CompileAndVerify(source, expectedOutput: 5089var compilation = CompileAndVerify(source); 5690var csVerifier = CompileAndVerify(csCompilation);
Symbols\IndexedPropertyTests.cs (19)
58var compilation2 = CompileAndVerify(source2, references: new[] { reference1 }, expectedOutput: 124var compilation2 = CompileAndVerify(source2, references: new[] { reference1 }, expectedOutput: 224var compilation2 = CompileAndVerify(source2, references: new[] { reference1 }, expectedOutput: 351var compilation2 = CompileAndVerify(source2, references: new[] { reference1 }, expectedOutput: 618var compilation3 = CompileAndVerify(source3, references: new[] { reference1 }, expectedOutput: 727var compilation2 = CompileAndVerify(source2, references: new[] { reference1 }, expectedOutput: 884var compilation3 = CompileAndVerify(source3, references: new[] { reference1 }); 977var compilation2 = CompileAndVerify(source2, references: new[] { reference1 }, expectedOutput: 1085var compilation2 = CompileAndVerify(source2, references: new[] { reference1 }, verify: Verification.Passes); 1564var compilation3 = CompileAndVerify(source3, references: new[] { reference1 }, verify: Verification.Skipped); 1690var compilation2 = CompileAndVerify(source2, references: new[] { reference1 }); 1718var compilation3 = CompileAndVerify(source3, references: new[] { reference1, reference2 }, expectedOutput: 1839var compilation2 = CompileAndVerify(source2, references: new[] { reference1 }, expectedOutput: 1969var compilation2 = CompileAndVerify(source2, new[] { reference1 }, verify: Verification.Passes, expectedOutput: 2119var compilation3 = CompileAndVerify(source3, new[] { reference1 }); 2261var compilation2 = CompileAndVerify(source2, new[] { reference1 }, verify: Verification.Passes, expectedOutput: 2331var compilation2 = CompileAndVerify(source2, new[] { reference1 }, verify: Verification.Passes, expectedOutput: 2406var compilation2 = CompileAndVerify(source2, new[] { reference1 }, verify: Verification.Passes, expectedOutput: 2631var compilation2 = CompileAndVerify(source2, references: new[] { reference1 }, expectedOutput:
Symbols\IndexerTests.cs (2)
125var compilation = CompileAndVerify(source); 2794var compilation2 = CompileAndVerify(source2, references: new[] { reference1 }, expectedOutput:
Symbols\Metadata\PE\TypeForwarders.cs (3)
1463var verifier1 = CompileAndVerify(comp1); 1505var verifier2 = CompileAndVerify(comp2, symbolValidator: metadataValidator, sourceSymbolValidator: metadataValidator); 1772var verifier2 = CompileAndVerify(comp2, symbolValidator: metadataValidator);
Symbols\ModuleInitializers\ModuleInitializersTests.cs (6)
444var verifier = CompileAndVerify(text, parseOptions: s_parseOptions, expectedOutput: "123"); 470var verifier = CompileAndVerify(text, parseOptions: s_parseOptions, expectedOutput: "123"); 499var verifier = CompileAndVerify( 549var verifier = CompileAndVerify( 595var verifier = CompileAndVerify( 648var verifier = CompileAndVerify(
Symbols\PartialPropertiesTests.cs (17)
890var verifier = CompileAndVerify(source, expectedOutput: "1"); 975var verifier = CompileAndVerify(source, expectedOutput: "1"); 1129var verifier = CompileAndVerify(source, expectedOutput: "1"); 1175var verifier = CompileAndVerify(source, expectedOutput: "1"); 1301var verifier = CompileAndVerify(source, expectedOutput: "1234"); 1419var verifier = CompileAndVerify(source, expectedOutput: "1"); 1735var verifier = CompileAndVerify(source, symbolValidator: verify, sourceSymbolValidator: verify); 1838var verifier = CompileAndVerify(source, expectedOutput: "11"); 1942var verifier = CompileAndVerify(source, expectedOutput: "1"); 2004var verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: "1"); 2126var verifier = CompileAndVerify(source, expectedOutput: "01203"); 2525var verifier = CompileAndVerify(source, expectedOutput: "123"); 2849var verifier = CompileAndVerify(source, expectedOutput: "123abc"); 2916var verifier = CompileAndVerify( 3084var verifier = CompileAndVerify(source, expectedOutput: "12"); 3131var verifier = CompileAndVerify(source, expectedOutput: "001"); 3351var verifier = CompileAndVerify(source, symbolValidator: module => verify(module, isSource: false), sourceSymbolValidator: module => verify(module, isSource: true));
Symbols\RequiredMembersTests.cs (10)
475var verifier = CompileAndVerify(comp, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator); 593var verifier = CompileAndVerify(comp, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator); 645var verifier = CompileAndVerify(comp, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator); 688var verifier = CompileAndVerify(comp, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator); 724var verifier = CompileAndVerify(comp, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator); 1388var verifier = CompileAndVerify(comp, verify: Verification.Skipped, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator); 3942var verifier = CompileAndVerify(comp, symbolValidator: verify, sourceSymbolValidator: verify); 3971var verifier = CompileAndVerify(comp, symbolValidator: verify, sourceSymbolValidator: verify); 4000var verifier = CompileAndVerify(comp, symbolValidator: verify, sourceSymbolValidator: verify); 4030var verifier = CompileAndVerify(comp, symbolValidator: verify, sourceSymbolValidator: verify);
Symbols\Source\EventTests.cs (5)
301var compVerifier = CompileAndVerify(text, expectedOutput: "T1H1H2T2H2T3T4H1H2T5H2T6"); 492var compilationVerifier = CompileAndVerify(source: source, references: new[] { TargetFrameworkUtil.StandardCSharpReference, libAssemblyRef }, 519var compilationVerifier = CompileAndVerify(source: source, 578var compilationVerifier = CompileAndVerify( 810var compVerifier = CompileAndVerify(source, new[] { TargetFrameworkUtil.StandardCSharpReference, CompileIL(ilSource) },
Symbols\Source\ExpressionBodiedMethodTests.cs (3)
20var comp = CompileAndVerify(@" 341var verifier = CompileAndVerify(comp, expectedOutput: 370var verifier = CompileAndVerify(comp, expectedOutput:
Symbols\Source\ExpressionBodiedPropertyTests.cs (2)
445var verifier = CompileAndVerify(comp, expectedOutput: 475var verifier = CompileAndVerify(comp, sourceSymbolValidator: srcValidator);
Symbols\Source\FieldTests.cs (1)
477var verifier = new CompilationVerifier(compilation);
Symbols\Source\FileModifierTests.cs (32)
216var verifier = CompileAndVerify(source, expectedOutput: "1", symbolValidator: symbolValidator); 266var verifier = CompileAndVerify(new[] { ("", "file1.cs"), (source, "file2.cs") }, expectedOutput: "1", symbolValidator: symbolValidator); 313var verifier = CompileAndVerify(source, expectedOutput: "E2", symbolValidator: symbolValidator); 365var verifier = CompileAndVerify(source, expectedOutput: "(<>FE3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855__E)1", symbolValidator: symbolValidator); 441var verifier = CompileAndVerify(source, expectedOutput: "(<>FE3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855__E)1", symbolValidator: symbolValidator); 730var verifier = CompileAndVerify(SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.RegularPreview, path: "path/to/MyFile.cs", encoding: Encoding.Default), expectedOutput: "1", symbolValidator: symbolValidator); 773var verifier = CompileAndVerify(SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.RegularPreview, path: "path/to/My<>File.cs", encoding: Encoding.Default), expectedOutput: "1", symbolValidator: symbolValidator); 804var verifier = CompileAndVerify(SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.RegularPreview, path: "path/to/MyGeneratedFile.g.cs", encoding: Encoding.Default), expectedOutput: "1", symbolValidator: symbolValidator); 1089var verifier = CompileAndVerify(comp, expectedOutput: "1", symbolValidator: symbolValidator); 1148var verifier = CompileAndVerify(SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.RegularPreview, path: "path/to/My+File.cs", encoding: Encoding.Default), expectedOutput: "1", symbolValidator: validateSymbols); 1209var verifier = CompileAndVerify(new[] { (source1 + main, "file1.cs"), (source2, "file2.cs") }, expectedOutput: "1"); 1346var verifier = CompileAndVerify(new[] { (source1, "file1.cs"), (source2, "file2.cs"), (main, "file3.cs") }, expectedOutput: "2"); 1412var verifier = CompileAndVerify(new[] { (source1, "file1.cs"), (main, "file2.cs") }, expectedOutput: "2"); 1474var verifier = CompileAndVerify(new[] { (source1, "file1.cs"), (main, "file2.cs") }, expectedOutput: "2"); 1927var verifier = CompileAndVerify(new[] { (userCode, "file1.cs"), (generatedCode, "file2.cs") }, expectedOutput: "OtherFile.csProgram.cs"); 1974var verifier = CompileAndVerify(new[] { (userCode, "file1.cs"), (generatedCode, "file2.cs") }, expectedOutput: "OtherFile.csProgram.cs"); 2018var verifier = CompileAndVerify(new[] { (userCode, "file1.cs"), (generatedCode, "file2.cs") }, expectedOutput: "OtherFile.cs"); 2590var verifier = CompileAndVerify(new[] { (source1, "file1.cs"), (source2, "file2.cs") }, expectedOutput: "2"); 2630var verifier = CompileAndVerify(new[] { (source1, "file1.cs"), (source2, "file2.cs") }, expectedOutput: "1"); 3157var verifier = CompileAndVerify(source, expectedOutput: "1"); 3294var verifier = CompileAndVerify(new[] { (usings, "file1.cs"), (source, "file2.cs"), (IsExternalInitTypeDefinition, "file3.cs") }, expectedOutput: "1"); 3465var verifier = CompileAndVerify(source, expectedOutput: "1"); 3499var verifier = CompileAndVerify(new[] { (source1, "file1.cs"), (source2, "file2.cs") }, expectedOutput: "1"); 3547var verifier = CompileAndVerify(new[] { (source1, "file1.cs"), (source2, "file2.cs") }, expectedOutput: "2"); 3905var verifier = CompileAndVerify(source, expectedOutput: "1"); 3926var verifier = CompileAndVerify(source, expectedOutput: "1"); 3947var verifier = CompileAndVerify(source, expectedOutput: "1"); 4635var verifier = CompileAndVerify(new[] { (source0, "F0.cs"), (source1, "F1.cs"), (source2, "F2.cs") }, expectedOutput: "12"); 4788var verifier = CompileAndVerify(new[] { (source0, "F0.cs"), (source1, "F1.cs"), (source2, "F2.cs") }, expectedOutput: "12"); 4831var verifier = CompileAndVerify(new[] { (source0, "F0.cs"), (source1, "F1.cs"), (source2, "F2.cs") }, expectedOutput: "12"); 4874var verifier = CompileAndVerify(new[] { (source0, "F0.cs"), (source1, "F1.cs"), (source2, "F2.cs") }, expectedOutput: "12"); 5049var verifier = CompileAndVerify(new[] { (source0, "F0.cs"), (source1, "F1.cs"), (source2, "F2.cs") }, expectedOutput: "12");
Symbols\Source\PropertyTests.cs (5)
476var compilation = CompileAndVerify(source, new[] { s_propertiesDll }, expectedOutput: "0"); 662var compilation = CompileAndVerify(source, new[] { s_propertiesDll }, expectedOutput: "0"); 697var verifier = CompileAndVerify(source, new[] { s_propertiesDll }, expectedOutput: "0"); 2018var compilation2 = CompileAndVerify(source2, new[] { reference1 }); 2776var verifier = CompileAndVerify(
Symbols\Source\RecordTests.cs (18)
19private CompilationVerifier CompileAndVerify(CSharpTestSource src, string? expectedOutput = null) 298var verifier = CompileAndVerify(@" 351var verifier = CompileAndVerify(@" 415var verifier = CompileAndVerify(@" 434var verifier = CompileAndVerify(@" 454var verifier = CompileAndVerify(@" 522var verifier = CompileAndVerify(@" 548var verifier = CompileAndVerify(@" 609var verifier = CompileAndVerify(@" 671var verifier = CompileAndVerify(@" 753var verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify).VerifyDiagnostics(); 806var verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify).VerifyDiagnostics(); 903var verifier = CompileAndVerify(comp, verify: Verification.FailsPEVerify).VerifyDiagnostics( 951var verifier = CompileAndVerify(@" 1036var v1 = CompileAndVerify(@" 1048var v2 = CompileAndVerify(@" 1171var verifier = CompileAndVerify(src).VerifyDiagnostics(); 1526var verifier = CompileAndVerify(comp, expectedOutput: "", verify: Verification.Passes).VerifyDiagnostics();
Symbols\StaticAbstractMembersInInterfacesTests.cs (46)
8394var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics(); 8777var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics(); 9318var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics(); 9609var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics(); 10088var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics(); 10544var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics(); 10821var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics(); 10993var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics(); 11206var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics(); 11371var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics(); 11714var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics(); 12001var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics(); 13145var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics(); 13230var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics(); 13321var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics(); 14021var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics(); 14523var verifier = CompileAndVerify(compilation2, verify: Verification.Skipped).VerifyDiagnostics(); 14661var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics(); 15079var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics(); 15351var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics(); 16476var verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics(); 16561var verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics(); 16765var verifier = CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics(); 20792var verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics(); 20909var verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics(); 21020var verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics(); 21155var verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics(); 21572var verifier = CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics(); 24390var verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics(); 24579var verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics(); 24890var verifier = CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics(); 26918var verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics(); 27119var verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics(); 27555var verifier = CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics(); 29251var verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics(); 29367var verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify: Verification.Skipped).VerifyDiagnostics(); 30150var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics(); 30329var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics(); 30787var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics(); 31086var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics(); 31142var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics(); 31200var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics(); 31248var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics(); 31291var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics(); 31345var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics(); 31394var verifier = CompileAndVerify(compilation1, verify: Verification.Skipped).VerifyDiagnostics();
Symbols\SymbolErrorTests.cs (2)
18453var verifier = CompileAndVerify(comp, verify: Verification.Skipped). 20813var verifier = CompileAndVerify(
Symbols\UnsignedRightShiftTests.cs (7)
112var verifier = CompileAndVerify(compilation1, expectedOutput: @" 1163var verifier = CompileAndVerify(compilation1, expectedOutput: @" 1976var verifier = CompileAndVerify(compilation1, expectedOutput: @">>>").VerifyDiagnostics(); 2228var verifier = CompileAndVerify(compilation1, expectedOutput: @">>>").VerifyDiagnostics(); 2370var verifier = CompileAndVerify(compilation1, expectedOutput: @"Passed 1").VerifyDiagnostics(); 2498var verifier = CompileAndVerify(compilation1, expectedOutput: @" 2596var verifier = CompileAndVerify(compilation1, expectedOutput: @"
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\LineSpanDirectiveTests.cs (1)
634var verifier = CompileAndVerify(source, options: TestOptions.DebugDll);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (13)
BasicCompilationUtils.cs (1)
26var verifier = Instance.CompileAndVerifyCommon(compilation, verify: verify);
CSharpTestBase.cs (12)
797internal CompilationVerifier CompileAndVerifyWithMscorlib40( 833internal CompilationVerifier CompileAndVerifyWithMscorlib46( 869internal CompilationVerifier CompileAndVerifyExperimental( 911internal CompilationVerifier CompileAndVerifyWithWinRt( 947internal CompilationVerifier CompileAndVerifyWithCSharp( 983internal CompilationVerifier CompileAndVerify( 1020internal CompilationVerifier CompileAndVerify( 1063internal CompilationVerifier CompileAndVerifyFieldMarshal(CSharpTestSource source, Dictionary<string, byte[]> expectedBlobs, bool isField = true) => 1073internal CompilationVerifier CompileAndVerifyFieldMarshal(CSharpTestSource source, Func<string, PEAssembly, byte[]> getExpectedBlob, bool isField = true) => 1497public CompilationVerifier CompileWithCustomILSource(string cSharpSource, string ilSource, Action<CSharpCompilation> compilationVerifier = null, bool importInternals = true, string expectedOutput = null, TargetFramework targetFramework = TargetFramework.Standard) 1534internal CompilationVerifier CompileAndVerifyException<T>(string source, string expectedMessage = null, bool allowUnsafe = false, Verification verify = default) where T : Exception 1540internal CompilationVerifier CompileAndVerifyException<T>(CSharpCompilation comp, string expectedMessage = null, Verification verify = default) where T : Exception
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (33)
CodeGen\WinMdEventTests.cs (5)
181var verifier = CompileAndVerifyWithWinRt(source, options: TestOptions.ReleaseWinMD); 217var verifier = CompileAndVerifyWithWinRt(source, options: TestOptions.ReleaseWinMD); 281var verifier = CompileAndVerifyWithWinRt(source, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseWinMD); 374var verifier = CompileAndVerifyWithWinRt(source, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseWinMD); 463var verifier = CompileAndVerifyWithWinRt(source, options: TestOptions.ReleaseWinMD);
CodeGen\WinRTCollectionTests.cs (21)
91var verifier = this.CompileAndVerifyOnWin8Only(source, expectedOutput: expectedOutput); 189var verifier = this.CompileAndVerifyOnWin8Only( 254var verifier = this.CompileAndVerifyOnWin8Only( 437var verifier = CompileAndVerifyWithWinRt(source, 1834var verifier = CompileAndVerifyWithWinRt(source, 3195var verifier = CompileAndVerifyWithWinRt(source, 4438var verifier = CompileAndVerifyWithWinRt(source, 4804var verifier = CompileAndVerifyWithWinRt(source, 4990var verifier = CompileAndVerifyWithWinRt(source, 5187var verifier = CompileAndVerifyWithWinRt(source, 5408var verifier = CompileAndVerifyWithWinRt(source, 5545var verifier = CompileAndVerifyWithWinRt(source, 5815var verifier = CompileAndVerifyWithWinRt(source, 6042var verifier = CompileAndVerifyWithWinRt(source, 6241var verifier = CompileAndVerifyWithWinRt(source, 6600var verifier = CompileAndVerifyWithWinRt(source, 6760var verifier = CompileAndVerifyWithWinRt( 7032var verifier = CompileAndVerifyWithWinRt( 7159var verifier = CompileAndVerifyWithWinRt( 7280var verifier = CompileAndVerifyWithWinRt( 7359var verifier = CompileAndVerifyWithWinRt(source, options: TestOptions.ReleaseWinMD);
Metadata\WinMdEventTests.cs (5)
328var verifier = this.CompileAndVerify( 2441var verifier = CompileAndVerify( 2577var cv = this.CompileAndVerifyOnWin8Only(text); 2637var cv = this.CompileAndVerifyOnWin8Only(text); 2701var cv = this.CompileAndVerifyOnWin8Only(text);
Metadata\WinMdMetadataTests.cs (1)
206var verifier = this.CompileAndVerifyOnWin8Only(source,
WinRTUtil.cs (1)
15internal static CompilationVerifier CompileAndVerifyOnWin8Only(
Microsoft.CodeAnalysis.Test.Utilities (16)
BaseCompilerFeatureRequiredTests.cs (1)
617protected abstract CompilationVerifier CompileAndVerify(TCompilation compilation);
CommonTestBase.cs (8)
74internal CompilationVerifier CompileAndVerifyCommon( 101CompilationVerifier result = null; 103var verifier = Emit(compilation, 133internal CompilationVerifier CompileAndVerifyFieldMarshalCommon(Compilation compilation, Dictionary<string, byte[]> expectedBlobs, bool isField = true) 145internal CompilationVerifier CompileAndVerifyFieldMarshalCommon(Compilation compilation, Func<string, PEAssembly, byte[]> getExpectedBlob, bool isField = true) 150internal static void RunValidators(CompilationVerifier verifier, Action<PEAssembly> assemblyValidator, Action<IModuleSymbol> symbolValidator) 175internal CompilationVerifier Emit( 189var verifier = new CompilationVerifier(compilation, VisualizeRealIL, dependencies);
CompilationVerifier.cs (7)
504public CompilationVerifier VerifyIL( 518public CompilationVerifier VerifyIL( 530public CompilationVerifier VerifyMethodBody( 566public CompilationVerifier VerifyMissing( 588private CompilationVerifier VerifyILImpl( 676public CompilationVerifier VerifyMemberInIL(string methodName, bool expected) 682public CompilationVerifier VerifyDiagnostics(params DiagnosticDescription[] expected)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (32)
Attributes\AttributeTests_MarshalAs.vb (2)
23Private Sub VerifyFieldMetadataDecoding(verifier As CompilationVerifier, blobs As Dictionary(Of String, Byte())) 45Private Sub VerifyParameterMetadataDecoding(verifier As CompilationVerifier, blobs As Dictionary(Of String, Byte()))
CodeGen\CodeGenSelectCase.vb (1)
15Private Shared Sub VerifySynthesizedStringHashMethod(compVerifier As CompilationVerifier, expected As Boolean)
CodeGen\CodeGenVBCore.vb (1)
3300) As CompilationVerifier
CodeGen\WinRTCollectionTests.vb (2)
6283Dim verifier As CompilationVerifier = CompileAndVerify(source, 6337Private Shared Sub AssertNoErrorsOrWarnings(verifier As CompilationVerifier)
Emit\CompilationEmitTests.vb (2)
890Dim reference = CompilationVerifier.LoadTestEmittedExecutableForSymbolValidation(image, OutputKind.DynamicallyLinkedLibrary) 965Dim reference = CompilationVerifier.LoadTestEmittedExecutableForSymbolValidation(image, OutputKind.DynamicallyLinkedLibrary)
Emit\DynamicAnalysis\DynamicInstrumentationTests.vb (22)
58Dim verifier As CompilationVerifier = CompileAndVerify(source, checker.ExpectedOutput) 161Dim verifier As CompilationVerifier = CompileAndVerify(source, expectedOutput, TestOptions.ReleaseExe.WithParseOptions(parseOptions)) 244Dim verifier As CompilationVerifier = CompileAndVerify(source, expectedOutput) 330Dim verifier As CompilationVerifier = CompileAndVerify(source, expectedOutput) 461Dim verifier As CompilationVerifier = CompileAndVerify(source, expectedOutput) 541Dim verifier As CompilationVerifier = CompileAndVerify(source, expectedOutput) 725Dim verifier As CompilationVerifier = CompileAndVerify(source, expectedOutput) 1038Dim verifier As CompilationVerifier = CompileAndVerify(source, expectedOutput) 1118Dim verifier As CompilationVerifier = CompileAndVerify(source, expectedOutput) 1206Dim verifier As CompilationVerifier = CompileAndVerify(source, expectedOutput) 1272Dim verifier As CompilationVerifier = CompileAndVerify(source, expectedOutput) 1369Dim verifier As CompilationVerifier = CompileAndVerify(source, expectedOutput) 1441Dim verifier As CompilationVerifier = CompileAndVerify(source, expectedOutput) 1534Dim verifier As CompilationVerifier = CompileAndVerify(source, expectedOutput) 1646Dim verifier As CompilationVerifier = CompileAndVerify(source, expectedOutput) 1736Dim verifier As CompilationVerifier = CompileAndVerify(source, expectedOutput) 1869Dim verifier As CompilationVerifier = CompileAndVerify(source, expectedOutput) 2796Private Shared Sub AssertNotInstrumented(verifier As CompilationVerifier, qualifiedMethodName As String) 2800Private Shared Sub AssertInstrumented(verifier As CompilationVerifier, qualifiedMethodName As String, Optional expected As Boolean = True) 2814Private Overloads Function CompileAndVerify(source As XElement, Optional expectedOutput As XCData = Nothing, Optional options As VisualBasicCompilationOptions = Nothing) As CompilationVerifier 2822Private Overloads Function CompileAndVerify(source As XElement, Optional expectedOutput As String = Nothing, Optional options As VisualBasicCompilationOptions = Nothing) As CompilationVerifier 2830Private Overloads Function CompileAndVerify(source As String, Optional expectedOutput As String = Nothing, Optional options As VisualBasicCompilationOptions = Nothing) As CompilationVerifier
Emit\NoPiaEmbedTypes.vb (1)
4370Private Shared Sub AssertTheseDiagnostics(verifier As CompilationVerifier, diagnostics As XElement)
ExpressionTrees\CodeGenExprLambda.vb (1)
1880Optional verify As Verification = Nothing) As CompilationVerifier
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\Metadata\PE\VisualBasicCompilerFeatureRequiredTests.vb (1)
81Protected Overrides Function CompileAndVerify(compilation As VisualBasicCompilation) As CompilationVerifier
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (14)
BasicTestBase.vb (14)
43) As CompilationVerifier 76Optional verify As Verification = Nothing) As CompilationVerifier 106Optional verify As Verification = Nothing) As CompilationVerifier 141) As CompilationVerifier 180) As CompilationVerifier 221) As CompilationVerifier 254) As CompilationVerifier 285) As CompilationVerifier 319) As CompilationVerifier 352Friend Function CompileWithCustomILSource(source As XElement, ilSource As XCData) As CompilationVerifier 369Optional expectedOutput As String = Nothing) As CompilationVerifier 396Optional isField As Boolean = True) As CompilationVerifier 405Optional isField As Boolean = True) As CompilationVerifier 418Optional isField As Boolean = True) As CompilationVerifier
Roslyn.Test.PdbUtilities (12)
EditAndContinue\EditAndContinueTest.cs (1)
48var verifier = new CompilationVerifier(compilation);
EditAndContinue\EditAndContinueTest.GenerationInfo.cs (2)
25public readonly CompilationVerifier? CompilationVerifier; 32public GenerationInfo(Compilation compilation, MetadataReader reader, CompilationDifference? diff, CompilationVerifier? compilationVerifier, EmitBaseline baseline, Action<GenerationVerifier> verifier)
Reader\PdbTestUtilities.cs (1)
26public static ISymUnmanagedReader3 CreateSymReader(this CompilationVerifier verifier)
Reader\PdbValidation.cs (8)
31public static CompilationVerifier VerifyPdb( 32this CompilationVerifier verifier, 45public static CompilationVerifier VerifyPdb( 46this CompilationVerifier verifier, 60public static CompilationVerifier VerifyPdb( 61this CompilationVerifier verifier, 76public static CompilationVerifier VerifyPdb( 77this CompilationVerifier verifier,