3019 references to Regular
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (30)
src\Analyzers\CSharp\Tests\AddParameter\AddParameterTests.cs (5)
2810""", parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2920""", parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2936""", parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp12)); 2962""", parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2978""", parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp12));
src\Analyzers\CSharp\Tests\GenerateConstructor\GenerateConstructorTests.cs (5)
3664parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 3694parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 3724parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 3754parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 4944""", parseOptions: TestOptions.Regular);
src\Analyzers\CSharp\Tests\GenerateMethod\GenerateMethodTests.cs (16)
8775parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 8807parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 8839parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 8871parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 8905parseOptions: TestOptions.Regular); 8939parseOptions: TestOptions.Regular); 8974parseOptions: TestOptions.Regular); 9008parseOptions: TestOptions.Regular); 9137parseOptions: TestOptions.Regular); 9171parseOptions: TestOptions.Regular); 9277parseOptions: TestOptions.Regular); 9315parseOptions: TestOptions.Regular); 9353parseOptions: TestOptions.Regular); 9391parseOptions: TestOptions.Regular); 9429parseOptions: TestOptions.Regular); 9467parseOptions: TestOptions.Regular);
src\Analyzers\CSharp\Tests\RemoveUnusedLocalFunction\RemoveUnusedLocalFunctionTests.cs (1)
154""", TestOptions.Regular);
src\Analyzers\CSharp\Tests\UseThrowExpression\UseThrowExpressionTests.cs (3)
617""", TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 653""", TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 690""", TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9));
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
9776var comp = CreateEmptyCompilation(string.Empty, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 9779comp = CreateEmptyCompilation(string.Empty, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (29)
BraceHighlighting\BraceHighlightingTests.cs (6)
301""", TestOptions.Regular); 308""", TestOptions.Regular); 320""", TestOptions.Regular); 327""", TestOptions.Regular); 339""", TestOptions.Regular); 346""", TestOptions.Regular);
BraceMatching\CSharpBraceMatcherTests.cs (9)
885await TestAsync(code, expected, TestOptions.Regular); 894await TestAsync(code, expected, TestOptions.Regular); 903await TestAsync(code, expected, TestOptions.Regular); 912await TestAsync(code, expected, TestOptions.Regular); 921await TestAsync(code, expected, TestOptions.Regular); 930await TestAsync(code, expected, TestOptions.Regular); 939await TestAsync(code, expected, TestOptions.Regular); 948await TestAsync(code, expected, TestOptions.Regular); 957await TestAsync(code, expected, TestOptions.Regular);
Classification\SemanticClassifierTests.cs (1)
2714ParseOptions(TestOptions.Regular, Options.Script));
Classification\SyntacticClassifierTests.cs (4)
4649ParseOptions(TestOptions.Regular, Options.Script), 4663ParseOptions(TestOptions.Regular, Options.Script), 4679ParseOptions(TestOptions.Regular, Options.Script), 4695ParseOptions(TestOptions.Regular, Options.Script),
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (4)
56using var workspace = EditorTestWorkspace.CreateCSharp(source, TestOptions.Regular, composition: s_compositionWithMockDiagnosticUpdateSourceRegistrationService); 123using var workspace = EditorTestWorkspace.CreateCSharp(source, TestOptions.Regular, composition: s_compositionWithMockDiagnosticUpdateSourceRegistrationService); 162using var workspace = EditorTestWorkspace.CreateCSharp(TestResource.AllInOneCSharpCode, TestOptions.Regular, composition: s_compositionWithMockDiagnosticUpdateSourceRegistrationService); 770using var workspace = EditorTestWorkspace.CreateCSharp("class Class { }", TestOptions.Regular, composition: s_compositionWithMockDiagnosticUpdateSourceRegistrationService);
ExtractMethod\ExtractMethodBase.cs (1)
196using var workspace = EditorTestWorkspace.CreateCSharp(code, CodeAnalysis.CSharp.Test.Utilities.TestOptions.Regular);
Formatting\Indentation\SmartIndenterTests.cs (3)
3454: new[] { TestOptions.Regular, TestOptions.Script }; 3510: new[] { TestOptions.Regular, TestOptions.Script }; 3539: new[] { TestOptions.Regular, TestOptions.Script };
KeywordHighlighting\AbstractCSharpKeywordHighlighterTests.cs (1)
22yield return TestOptions.Regular;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (403)
BreakingChanges.cs (1)
407var strictCompilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithStrictFeature());
CodeGen\CodeGenAsyncMainTests.cs (48)
40var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe.WithMainTypeName("Program"), parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 65var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 93var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe.WithMainTypeName("Program"), parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 118var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 159var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 202var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 233var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 270var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 306var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 337var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 381var sourceCompilation = CreateEmptyCompilation(source, new[] { corCompilation.ToMetadataReference(), taskCompilation.ToMetadataReference() }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 421var sourceCompilation = CreateEmptyCompilation(source, new[] { corCompilation.ToMetadataReference(), taskCompilation.ToMetadataReference() }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 449var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 467var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 489var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 508var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 526var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 544var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 566var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 584var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 601var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 623var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 645var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 667var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 690var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 712var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 789var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 809var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 831var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 858var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 883var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 903var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 923var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 945var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 967var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 987var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 1007var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 1029var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 1052var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 1074CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)).VerifyDiagnostics( 1142var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)).VerifyDiagnostics(); 1164var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)).VerifyDiagnostics( 1220var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)).VerifyDiagnostics( 1273var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)).VerifyDiagnostics( 1310var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)).VerifyDiagnostics( 1411var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 1465var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 1520var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1));
CodeGen\CodeGenAwaitForeachTests.cs (2)
8099var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 8132var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
CodeGen\CodeGenConstructorInitTests.cs (1)
1209var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute();
CodeGen\CodeGenDeconstructTests.cs (25)
1636parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 1685sourceSymbolValidator: validator, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 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()); 3343parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 3557var comp = CompileAndVerify(source, expectedOutput: expected, parseOptions: TestOptions.Regular, 7834var comp1 = CreateEmptyCompilation(source1, WinRtRefs, TestOptions.ReleaseWinMD, TestOptions.Regular); 7881var comp1 = CreateEmptyCompilation(source1, WinRtRefs, TestOptions.ReleaseWinMD, TestOptions.Regular); 8777parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 8782parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 8802parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 8807parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 8828parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 8833parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 8863parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 8868parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 8889parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 8894parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 8932parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 8939parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 8987parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 8993parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1));
CodeGen\CodeGenDisplayClassOptimisationTests.cs (51)
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()); 8055var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
CodeGen\CodeGenDynamicTests.cs (7)
62private readonly CSharpParseOptions _localFunctionParseOptions = TestOptions.Regular; 15857var comp = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "321 123", references: new[] { CSharpRef }); 15879CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "True", references: new[] { CSharpRef }), 15982CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "True", references: new[] { CSharpRef }), 16108CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "True", references: new[] { CSharpRef }), 16219CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "True", references: new[] { CSharpRef }), 16336CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "True", references: new[] { CSharpRef }),
CodeGen\CodeGenExprLambdaTests.cs (5)
3789CreateCompilation(source, parseOptions: TestOptions.Regular).VerifyDiagnostics( 3839CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics( 5378var compilation = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 5440var compilation = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 5513var compilation = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
CodeGen\CodeGenFunctionPointersTests.cs (2)
7580var coreLib = CreateEmptyCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 7649var coreLib = CreateEmptyCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
CodeGen\CodeGenInParametersTests.cs (20)
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"); 938comp = CompileAndVerify(text, verify: Verification.Fails, expectedOutput: "42", parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature()); 977var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: "42"); 998comp = CompileAndVerify(text, verify: Verification.Fails, expectedOutput: "42", parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature()); 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"); 1837comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature()); 2277comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature()); 2430comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature()); 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");
CodeGen\CodeGenIterators.cs (3)
2393var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 2439var compilation = CreateEmptyCompilation(new[] { Parse(source, options: TestOptions.Regular.WithNoRefSafetyRulesAttribute()) }); 2503var compilation = CreateEmptyCompilation(new[] { Parse(source, options: TestOptions.Regular.WithNoRefSafetyRulesAttribute()) });
CodeGen\CodeGenMscorlib.cs (14)
223var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 247var compilation1 = CreateEmptyCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyName: GetUniqueName()); 257var compilation2 = CreateEmptyCompilation(source2, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), references: new[] { reference1 }); 281var compilation1 = CreateEmptyCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyName: GetUniqueName()); 298var compilation2 = CreateEmptyCompilation(source2, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), references: new[] { reference1 }); 318var compilation1 = CreateEmptyCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyName: GetUniqueName()); 335var compilation2 = CreateEmptyCompilation(source2, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), references: new[] { reference1 }); 356var compilation1 = CreateEmptyCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyName: GetUniqueName()); 374var compilation2 = CreateEmptyCompilation(source2, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), references: new[] { reference1 }); 477var compilation1 = CreateEmptyCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyName: GetUniqueName()); 490var compilation2 = CreateEmptyCompilation(source2, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), references: new[] { reference1 }); 614parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), 752parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), 880var comp = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (1)
535", TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature());
CodeGen\CodeGenReadonlyStructTests.cs (16)
51var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: @"12"); 67comp = CompileAndVerify(text, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), verify: Verification.Passes, expectedOutput: @"12"); 122var comp = CompileAndVerify(text, new[] { ref1 }, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: @"12"); 138comp = CompileAndVerify(text, new[] { ref1 }, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), verify: Verification.Passes, expectedOutput: @"12"); 188var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.FailsPEVerify, expectedOutput: @"12"); 206comp = CompileAndVerify(text, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), verify: Verification.Passes, expectedOutput: @"12"); 262var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.FailsPEVerify, expectedOutput: @"hello2"); 281comp = CompileAndVerify(text, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), verify: Verification.Passes, expectedOutput: @"hello2"); 343var comp = CompileAndVerify(text, new[] { ref1 }, parseOptions: TestOptions.Regular, verify: Verification.FailsPEVerify, expectedOutput: @"hello2"); 362comp = CompileAndVerify(text, new[] { ref1 }, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), verify: Verification.Passes, 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"); 824var comp = CreateCompilation(text, parseOptions: TestOptions.Regular); 998var comp = CreateCompilation("//NO CODE HERE", new[] { ref1 }, parseOptions: TestOptions.Regular);
CodeGen\CodeGenRefLocalTests.cs (2)
66parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), 4003var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6));
CodeGen\CodeGenRefReadonlyReturnTests.cs (6)
62var comp = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), verify: Verification.Fails); 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); 915comp = CompileAndVerify(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), verify: Verification.Fails, targetFramework: TargetFramework.Mscorlib40); 1201var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular);
CodeGen\CodeGenRefReturnTests.cs (11)
1595CompileAndVerify(text, parseOptions: TestOptions.Regular).VerifyIL("Program.M()", @" 1643CompileAndVerify(text, parseOptions: TestOptions.Regular, expectedOutput: "42", verify: Verification.Fails).VerifyIL("Program.M()", @" 1716CompileAndVerify(text, parseOptions: TestOptions.Regular, expectedOutput: "42", verify: Verification.Fails).VerifyIL("Program.M()", @" 2304var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 2339var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 2381var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 2402var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 2431var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 3455CompileAndVerify(source, parseOptions: TestOptions.Regular, expectedOutput: "Base", verify: Verification.Passes); 3548CompileAndVerify(source, parseOptions: TestOptions.Regular, expectedOutput: "Program+RefFunc1`2[Derived2,Derived1]", verify: Verification.Passes); 3588CompileAndVerify(source, parseOptions: TestOptions.Regular, expectedOutput: @"System.Func`2[Derived1,Base]
CodeGen\CodeGenShortCircuitOperatorTests.cs (1)
7349comp = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"", parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), verify: Verification.Passes);
CodeGen\CodeGenStackAllocInitializerTests.cs (15)
50parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3), 123parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3), 214", options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3)); 313parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3), 369parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3), 410parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3), 429parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3), 493parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3), 528parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3), 568parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3), 670parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3), 726parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3), 869", options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3)); 1050", options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3)); 1699parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3),
CodeGen\CodeGenStructsAndEnum.cs (1)
1570compilation = CompileAndVerify(source, expectedOutput: "S1", parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature());
CodeGen\CodeGenTests.cs (8)
5189compilation = CompileAndVerify(source, expectedOutput: @"hi", verify: Verification.Passes, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature()); 5275compilation = CompileAndVerify(source, expectedOutput: @"hihi", verify: Verification.Fails, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature()); 10516CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()).VerifyEmitDiagnostics( 12332comp = CompileAndVerify(source, expectedOutput: @"42", verify: Verification.Passes, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature()); 12482comp = CompileAndVerify(source, expectedOutput: @"-10", verify: Verification.Passes, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature()); 14564var compilation = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 14598var compilation = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 14634var compilation = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
CodeGen\CodeGenTupleTest.cs (130)
1600var tree = Parse(source, options: TestOptions.Regular); 3773references: new[] { ValueTupleRef, SystemRuntimeFacadeRef, libComp.ToMetadataReference() }, parseOptions: TestOptions.Regular); 3819var comp7 = CreateCompilation(source_cs, parseOptions: TestOptions.Regular, assemblyName: "UseSiteDiagnosticOnTupleField2_comp7"); 3945var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 3971var compilation = CreateCompilation(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), 4077var comp7 = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 4084var verifier7_1 = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 4105var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7), 5323parseOptions: TestOptions.Regular, expectedOutput: 7100CreateCompilation(source, parseOptions: TestOptions.Regular).VerifyDiagnostics( 7449CreateCompilation(source, parseOptions: TestOptions.Regular).VerifyDiagnostics( 7678parseOptions: TestOptions.Regular, expectedOutput: @" 7757parseOptions: TestOptions.Regular, expectedOutput: @" 7796parseOptions: TestOptions.Regular, expectedOutput: @" 7829parseOptions: TestOptions.Regular, expectedOutput: @" 7902parseOptions: TestOptions.Regular, expectedOutput: @" 8287var tree = Parse(source, options: TestOptions.Regular); 8318var tree = Parse(source, options: TestOptions.Regular); 8373var tree = Parse(source, options: TestOptions.Regular); 8402var tree = Parse(source, options: TestOptions.Regular); 8431var tree = Parse(source, options: TestOptions.Regular); 8479var tree = Parse(source, options: TestOptions.Regular); 8513var tree = Parse(source, options: TestOptions.Regular); 8546var tree = Parse(source, options: TestOptions.Regular); 8575var tree = Parse(source, options: TestOptions.Regular); 8622var tree = Parse(source, options: TestOptions.Regular); 8657var tree = Parse(source, options: TestOptions.Regular); 8686var tree = Parse(source, options: TestOptions.Regular); 8715var tree = Parse(source, options: TestOptions.Regular); 8745var tree = Parse(source, options: TestOptions.Regular); 8800var tree = Parse(source, options: TestOptions.Regular); 8830var tree = Parse(source, options: TestOptions.Regular); 8889var tree = Parse(source, options: TestOptions.Regular); 8936var tree = Parse(source, options: TestOptions.Regular); 9007var tree = Parse(source, options: TestOptions.Regular); 9059var tree = Parse(source, options: TestOptions.Regular); 9136var tree = Parse(source, options: TestOptions.Regular); 9217var tree = Parse(source, options: TestOptions.Regular); 9300var tree = Parse(source, options: TestOptions.Regular); 9354var tree = Parse(source, options: TestOptions.Regular); 9398parseOptions: TestOptions.Regular, expectedOutput: @" 9437parseOptions: TestOptions.Regular, expectedOutput: @" 9474parseOptions: TestOptions.Regular, expectedOutput: @" 9545parseOptions: TestOptions.Regular, expectedOutput: @" 9583parseOptions: TestOptions.Regular, expectedOutput: @" 9654parseOptions: TestOptions.Regular, expectedOutput: @" 10164parseOptions: TestOptions.Regular, expectedOutput: @" 10201parseOptions: TestOptions.Regular, expectedOutput: @" 10300parseOptions: TestOptions.Regular, expectedOutput: @" 10333parseOptions: TestOptions.Regular, expectedOutput: @" 10793parseOptions: TestOptions.Regular, expectedOutput: @"(1, hello) 10826parseOptions: TestOptions.Regular, expectedOutput: @"(1, hello) 10856parseOptions: TestOptions.Regular, expectedOutput: @"((1, Australia), (2, Brazil))"); 11010parseOptions: TestOptions.Regular, expectedOutput: @"1 11344parseOptions: TestOptions.Regular, expectedOutput: @"111 111 222 222 666"); 11724parseOptions: TestOptions.Regular, expectedOutput: @"31 11863parseOptions: TestOptions.Regular, expectedOutput: @"41 12140parseOptions: TestOptions.Regular, expectedOutput: @"501 15093parseOptions: TestOptions.Regular, 15157parseOptions: TestOptions.Regular, 16562var tree = Parse(source, options: TestOptions.Regular); 16599var tree = Parse(source, options: TestOptions.Regular); 16793parseOptions: TestOptions.Regular, 16804parseOptions: TestOptions.Regular, 16815parseOptions: TestOptions.Regular, 16855parseOptions: TestOptions.Regular, 16866parseOptions: TestOptions.Regular, 16887parseOptions: TestOptions.Regular, 16927parseOptions: TestOptions.Regular, 16941parseOptions: TestOptions.Regular, 16962parseOptions: TestOptions.Regular, 17024parseOptions: TestOptions.Regular, 17047parseOptions: TestOptions.Regular, 17074parseOptions: TestOptions.Regular, 17125parseOptions: TestOptions.Regular, 17179parseOptions: TestOptions.Regular, 17205var tree = Parse(source, options: TestOptions.Regular); 17266var tree = Parse(source, options: TestOptions.Regular); 17325var tree = Parse(source, options: TestOptions.Regular); 17364var tree = Parse(source, options: TestOptions.Regular); 17615parseOptions: TestOptions.Regular, expectedOutput: @" 17704parseOptions: TestOptions.Regular, expectedOutput: @" 17793parseOptions: TestOptions.Regular, expectedOutput: @" 17833parseOptions: TestOptions.Regular, expectedOutput: @" 17893parseOptions: TestOptions.Regular, expectedOutput: @" 17958parseOptions: TestOptions.Regular, assemblyName: "ImplicitConversions06Err"); 18021parseOptions: TestOptions.Regular, expectedOutput: @" 18079parseOptions: TestOptions.Regular, expectedOutput: @" 18483var comp = CompileAndVerify(source, parseOptions: TestOptions.Regular, expectedOutput: @" 18707parseOptions: TestOptions.Regular, expectedOutput: @" 18740parseOptions: TestOptions.Regular, expectedOutput: @" 18778parseOptions: TestOptions.Regular, expectedOutput: @" 21452parseOptions: TestOptions.Regular, expectedOutput: @" 21479parseOptions: TestOptions.Regular, expectedOutput: @"(w, w)"); 21503parseOptions: TestOptions.Regular, expectedOutput: @" 21545parseOptions: TestOptions.Regular, expectedOutput: @" 21587parseOptions: TestOptions.Regular, expectedOutput: @" 21629parseOptions: TestOptions.Regular, expectedOutput: @" 21671parseOptions: TestOptions.Regular, expectedOutput: @" 21706parseOptions: TestOptions.Regular, expectedOutput: @" 21751parseOptions: TestOptions.Regular, expectedOutput: @" 21789parseOptions: TestOptions.Regular, expectedOutput: @"w"); 21921parseOptions: TestOptions.Regular); 22010parseOptions: TestOptions.Regular); 22062parseOptions: TestOptions.Regular); 22101parseOptions: TestOptions.Regular); 22378parseOptions: TestOptions.Regular.WithTuplesFeature()); 22380parseOptions: TestOptions.Regular.WithTuplesFeature()); 22395parseOptions: TestOptions.Regular.WithTuplesFeature(), 23336parseOptions: TestOptions.Regular, expectedOutput: @"(42, 0) 23545parseOptions: TestOptions.Regular, expectedOutput: 23585parseOptions: TestOptions.Regular, expectedOutput: 23629parseOptions: TestOptions.Regular, expectedOutput: 23664parseOptions: TestOptions.Regular, expectedOutput: @"(1, 2)"); 23695parseOptions: TestOptions.Regular, expectedOutput: 23741parseOptions: TestOptions.Regular, expectedOutput: 23962parseOptions: TestOptions.Regular, expectedOutput: @"(1, 2)"); 25125parseOptions: TestOptions.Regular, expectedOutput: @" 25159parseOptions: TestOptions.Regular, expectedOutput: @" 25315var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 25688var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 25733var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 25759var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 25804var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 25830var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 25869var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 25902var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 28025var comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40, assemblyName: "emptyValueTuple", parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
CodeGen\EventTests.cs (1)
645var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute();
CodeGen\PatternTests.cs (5)
99var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll); 122var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 152var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 200var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 3315var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll);
Emit\CompilationEmitTests.cs (17)
2130var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 2261var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 2328var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 2395var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 2455var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 2500var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 4672var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 4757var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 4802var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 4858var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 4889var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 4937var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 4966var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 5014var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 5043var comp = CreateEmptyCompilation("", new[] { TestReferences.SymbolsTests.netModule.x64COFF }, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 5354var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll); 5416var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll, references: new[] { CSharpRef });
Emit\EmitMetadataTests.cs (6)
86CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), symbolValidator: module => 529CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll, sourceSymbolValidator: validator(true), symbolValidator: validator(false)); 940}", parseOptions: TestOptions.Regular, 1010}", parseOptions: TestOptions.Regular, 2230var syntax = SyntaxFactory.ParseSyntaxTree(@"class C {}", TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 2419var syntax = SyntaxFactory.ParseSyntaxTree(@"class C { static void Main() { } }", TestOptions.Regular.WithNoRefSafetyRulesAttribute());
Emit\EntryPointTests.cs (4)
284Parse(cs, options: TestOptions.Regular) 750SyntaxFactory.ParseSyntaxTree(cs, options: TestOptions.Regular) 784SyntaxFactory.ParseSyntaxTree(cs, options: TestOptions.Regular) 931SyntaxFactory.ParseSyntaxTree(cs, options: TestOptions.Regular),
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (98)
Emit\EditAndContinue\AssemblyReferencesTests.cs (2)
66var compilation0 = CreateEmptyCompilation(src1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), references: references); 136var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute();
Emit\EditAndContinue\EditAndContinueClosureTests.cs (7)
2463var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All), assemblyName: "A"); 2580var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All), assemblyName: "A"); 2713var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All), assemblyName: "A"); 3843var source0 = MarkedSource(template.Replace("<<VALUE>>", "0"), options: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 3844var source1 = MarkedSource(template.Replace("<<VALUE>>", "1"), options: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 3845var source2 = MarkedSource(template.Replace("<<VALUE>>", "2"), options: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 4733var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: TargetFramework.NetStandard20);
Emit\EditAndContinue\EditAndContinueDelegateCacheTests.cs (5)
45var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 109var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 173var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 237var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 301var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
Emit\EditAndContinue\EditAndContinueStateMachineTests.cs (9)
47var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 229var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 346var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 448var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 521var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 572var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 8009var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 8701var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All), assemblyName: "A"); 8784var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All), assemblyName: "A");
Emit\EditAndContinue\EditAndContinueTest.cs (1)
28private readonly CSharpParseOptions _parseOptions = parseOptions ?? TestOptions.Regular.WithNoRefSafetyRulesAttribute();
Emit\EditAndContinue\EditAndContinueTestBase.cs (1)
50parser: s => Parse(s, fileName, options ?? TestOptions.Regular.WithNoRefSafetyRulesAttribute()),
Emit\EditAndContinue\EditAndContinueTests.cs (58)
259var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 308var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 500var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe); 561var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 794var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe, targetFramework: TargetFramework.NetStandard20); 1137var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe, targetFramework: TargetFramework.NetStandard20); 1260var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe, targetFramework: TargetFramework.NetStandard20); 2895var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe, targetFramework: TargetFramework.NetStandard20); 2979var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe, targetFramework: TargetFramework.NetStandard20); 3106var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: TargetFramework.NetStandard20); 3434var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 3577var compilation0 = CreateCompilation(source0, references: new[] { RefSafetyRulesAttributeLib }, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: ComSafeDebugDll); 3829var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 3891var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 3956var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 5421var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 5986var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: TargetFramework.NetStandard20); 6109var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: TargetFramework.NetStandard20); 6442var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: TargetFramework.NetStandard20); 6527var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: TargetFramework.NetStandard20); 6608var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 6718var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 6773var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 6889var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: ComSafeDebugDll); 6945var compilation0 = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 7015var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 7092var compilation0 = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 7174var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: TargetFramework.Net50); 7353var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 7513var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 7577var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 7633var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 7741var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 7799var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 7840var compilation0 = CreateCompilation(parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, source: 8027var compilation0 = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: options, references: new[] { CSharpRef }); 8409var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: ComSafeDebugDll); 8502var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe); 8605var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 8691var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 8822var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 9035var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 9124var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 9367var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 9702var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 9812var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: TargetFramework.NetStandard20); 10097var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 10214var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 11213var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: TargetFramework.NetStandard20); 12093var compilation0 = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: TargetFramework.NetStandard20); 12200var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: TargetFramework.NetStandard20); 12272var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 12357var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 12405var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 12446var compilation0 = CreateCompilation(new[] { sourceA0, sourceB0 }, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 12492var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: TargetFramework.NetStandard20); 12695parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), 15991var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe);
PDB\PDBAsyncTests.cs (1)
2017var compilation = CreateCompilationWithMscorlib461(src, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll);
PDB\PDBIteratorTests.cs (1)
1624var compilation = CreateCompilation(src, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp);
PDB\PDBTests.cs (5)
94Compilation compilation = CreateCompilation("class C { }", options: TestOptions.DebugDll, parseOptions: TestOptions.Regular); 110var driver = CSharpGeneratorDriver.Create(new[] { testGenerator }, parseOptions: TestOptions.Regular); 5264}", TestOptions.DebugDll, TestOptions.Regular); 10082var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 10291var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll);
PDB\PDBUsingTests.cs (8)
573parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), 664var compilation1 = CreateCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, assemblyName: "TestExternAliases2"); 673parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), 717var compilation1 = CreateCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, assemblyName: "TestExternAliases3"); 726parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), 1765var compilation1 = CreateCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 1782parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), 2973var comp = CreateCompilationWithMscorlib40(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), references: new[] { SystemCoreRef.WithAliases(new[] { "A" }), SystemDataRef });
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (593)
Attributes\AttributeTests.cs (1)
11217var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), sourceSymbolValidator: verify, symbolValidator: verify, expectedOutput: "a");
Attributes\AttributeTests_Assembly.cs (5)
1076parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), 1123parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), 1178parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), 1197parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), 1238parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(),
Attributes\AttributeTests_Dynamic.cs (2)
1188var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 1225var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute();
Attributes\AttributeTests_Embedded.cs (4)
45CreateCompilation(code, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()).VerifyEmitDiagnostics(); 193CompileAndVerify(code, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), verify: Verification.Passes, expectedOutput: "3"); 270var reference = CreateCompilation(assemblyName: "testRef", parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), source: @" 492var compilation1 = CreateCompilation(parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), source: @"
Attributes\AttributeTests_IsUnmanaged.cs (4)
38CompileAndVerify(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), symbolValidator: module => 62CompileAndVerify(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), symbolValidator: module => 92CompileAndVerify(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 114CompileAndVerify(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
Attributes\AttributeTests_Nullable.cs (2)
746var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 4393var comp0 = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
Attributes\AttributeTests_NullableContext.cs (1)
231var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
Attributes\AttributeTests_NullablePublicOnly.cs (2)
501var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNullablePublicOnly(), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 522var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNullablePublicOnly().WithNoRefSafetyRulesAttribute());
Attributes\AttributeTests_ReadOnlyStruct.cs (1)
486CompileAndVerify(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), verify: Verification.Passes, symbolValidator: module =>
Attributes\AttributeTests_RefSafetyRules.cs (3)
95comp = CreateCompilation(source, references: new[] { ref1 }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 171var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 181comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB));
Attributes\AttributeTests_StructLayout.cs (2)
360CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyValidator: (assembly) => 408CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyValidator: (assembly) =>
Attributes\AttributeTests_Synthesized.cs (6)
1122var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 1196var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 1234var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 1262var compilation = CreateEmptyCompilation("", parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: options); 1608var compilation = CreateCompilationWithMscorlib40(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.CreateTestOptions(outputKind, OptimizationLevel.Release, allowUnsafe: true)); 1914var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute();
Attributes\AttributeTests_Tuples.cs (4)
175var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 213var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 948parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), 1048parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(),
Attributes\AttributeTests_WellKnownAttributes.cs (8)
2689CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyValidator: (assembly) => 2805CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyValidator: (assembly) => 3279CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyValidator: (assembly) => 3457CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyValidator: (assembly) => 4703CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyValidator: (assembly) => 4812CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyValidator: (assembly) => 5141var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 5204CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
Attributes\InternalsVisibleToAndStrongNameTests.cs (4)
40new object[] { TestOptions.Regular }, 45return SpecializedCollections.SingletonEnumerable(new object[] { TestOptions.Regular }); 195var compilation = CreateCompilation(code, options: options, parseOptions: TestOptions.Regular); 210var compilation = CreateCompilation(code, options: options, parseOptions: TestOptions.Regular);
Diagnostics\OperationAnalyzerTests.cs (1)
22private static readonly CSharpParseOptions patternParseOptions = TestOptions.Regular;
FieldKeywordTests.cs (13)
682parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 843parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 952parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 1065parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 1162parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 1487parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 8362parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 8505parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 8594parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 8669parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 10199parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 10302parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 10401parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion),
FirstClassSpanTests.cs (113)
222var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 258var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 280var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 340var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 393var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 630var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 743var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 770var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 804var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 834var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 916var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 997var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 1069var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 1099CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 1118CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 1132var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 1162CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 1181CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 1195var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 1225CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 1244CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 1925var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 2003parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 2902CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 2918CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 2933CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 2956CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)) 2979CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 2995CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 3011CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 3027CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(); 3041CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 3060CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 3076CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 3092CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 3108CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(); 3122CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 3140CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 3163CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), verify: Verification.FailsILVerify) 3235CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 3253CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 3277CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), verify: Verification.FailsILVerify) 3308CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), verify: Verification.FailsILVerify) 3339CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), verify: Verification.FailsILVerify) 3367CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 3383CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 3399CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 3422CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), verify: Verification.FailsILVerify) 3452CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)) 3723CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(); 3835CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 3869CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 3965CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), targetFramework: TargetFramework.Net90).VerifyDiagnostics( 3996CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 4043CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 4204CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 4272CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 4332CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 4357CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 4373CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 4389CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 4407CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 4432CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 4448CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 4464CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 4487var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 4519var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), verify: Verification.FailsILVerify); 4550var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 4582var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 4703var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 4856CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 4892CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 4916CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 5146CreateCompilationWithSpanAndMemoryExtensions(source, TestOptions.UnsafeReleaseExe, TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 5281var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 5366var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 5374CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 5388var comp = CreateCompilation([source, source2], parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 5412CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 5435CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 5531var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 5549var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 5581var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 5612CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 5723CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 5749var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 5774CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 5793var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 5820CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 5837CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 5858CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 5888CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 6216var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 6586CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 7002var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7031CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 7061CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 7094var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7265parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7397var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7449var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7469var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7522var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7542var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7563var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7613var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7635var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7761var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7834var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7853var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7872var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7920var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 8111var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
RefReadonlyParameterTests.cs (2)
3728CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 3758CompileAndVerify(new[] { source1, source3 }, expectedOutput: "256 256 156 156", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics();
Semantics\CollectionExpressionTests.cs (3)
150var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 2309CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(version)).VerifyDiagnostics( 22697var comp = CreateCompilation(new[] { sourceA, CollectionBuilderAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp10), targetFramework: TargetFramework.Net60);
Semantics\OutVarTests.cs (308)
50var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 82var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 110compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular); 155var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 202var compilation = CreateCompilationWithMscorlib40(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 249var compilation = CreateCompilationWithMscorlib40(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 303var compilation = CreateCompilationWithMscorlib40(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 378var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 416var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 454var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 492var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 530var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 568var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 599var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 653var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 690var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 729var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 770var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 809var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 903var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1400var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1458var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1492var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1527var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1561var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1595var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1635var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1673var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1710parseOptions: TestOptions.Regular); 1746parseOptions: TestOptions.Regular); 1783var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1820var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1852var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1879var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1916var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1968var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2078var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2189var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2299var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2609var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2826var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2944var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2990var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3034var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3081var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3128var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3182var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3284var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3365var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3417var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3456var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3497var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3615var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3806var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3954var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3995var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4047var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4093var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4142var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4198var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4254var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4336var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4368var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4458var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4578var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4614var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4656var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4741var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4778var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4884var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5014var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 5057var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5101var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5158var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5253var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular); 5377var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5487var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5566var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5644var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5677var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5701var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5744var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5875var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 6025var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 6108var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 6142var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 6290var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 6528var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 6763var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 7027var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 7265var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 7509var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 7763var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 7823var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 7885var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 7951var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8014var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8079var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8145var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8200var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8350var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8482var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8622var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8754var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8795var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8858var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8914var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9033var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9259var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9321var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9414var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9491var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9570var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9634var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9683var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9750var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9811var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9877options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9972options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10051options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10132options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10202options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10253options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10319options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10382options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10446options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10530options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10686var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10810var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10851var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10902var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10953var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11013var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11150var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11249var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11325var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11396var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11420var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11463var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11618var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11932var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12074var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12224var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12344var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12404var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12477var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12622var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12749var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12847var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12914var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12954var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13012var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13052var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13160var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13287var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13331var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13382var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13434var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13577var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13689var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13730var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13789var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13841var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14071var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14252var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14299var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14348var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14390var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14432var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14477var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14519var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14562var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14609var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14663var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14722var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14771options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14821options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14916var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 15084var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 15207var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 15251var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 15308var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 15364var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 15496var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 15709var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 15922var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16055var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16145var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16237var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16365var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16488var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16529var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16581var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16635var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16692var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16751var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16812var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16927var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 17043var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 17088var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 17142var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 17197var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 17312var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 17474var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 17524var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 17575var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17634var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17669var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17702var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17735var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17774var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17806var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17851var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17882var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17915var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17947var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17989parseOptions: TestOptions.Regular); 18019parseOptions: TestOptions.Regular); 18063parseOptions: TestOptions.Regular); 18094parseOptions: TestOptions.Regular); 18133parseOptions: TestOptions.Regular); 18174parseOptions: TestOptions.Regular); 18217parseOptions: TestOptions.Regular); 18260parseOptions: TestOptions.Regular); 18299parseOptions: TestOptions.Regular); 18344parseOptions: TestOptions.Regular); 18375parseOptions: TestOptions.Regular); 18425var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18489var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18538parseOptions: TestOptions.Regular); 18583parseOptions: TestOptions.Regular); 18635parseOptions: TestOptions.Regular); 18679var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18721var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18766var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18788CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular) 18864var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18908var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18950var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18995var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 19048var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 19091var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 19137var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 19196var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 19243var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 19283parseOptions: TestOptions.Regular); 19324parseOptions: TestOptions.Regular); 19358parseOptions: TestOptions.Regular); 19417parseOptions: TestOptions.Regular); 19460parseOptions: TestOptions.Regular); 19498parseOptions: TestOptions.Regular); 19537parseOptions: TestOptions.Regular); 19578parseOptions: TestOptions.Regular); 19684parseOptions: TestOptions.Regular); 19727parseOptions: TestOptions.Regular); 19766parseOptions: TestOptions.Regular); 19807parseOptions: TestOptions.Regular); 19836parseOptions: TestOptions.Regular); 19869parseOptions: TestOptions.Regular); 19902parseOptions: TestOptions.Regular); 19937parseOptions: TestOptions.Regular); 19972parseOptions: TestOptions.Regular); 20039var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 20219var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 20247var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 20612parseOptions: TestOptions.Regular); 20772parseOptions: TestOptions.Regular); 20825parseOptions: TestOptions.Regular); 20896var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 21009var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 21109var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 21206var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 21290var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 21342var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 21408var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 21567var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 21765var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 21967var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 22119var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 22214var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 22382var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 22548var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 22646var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 22759var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 22852var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 22934var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 22998var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 23036var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 23077var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 32658var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 32691var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 32832var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 32856var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 32885var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 32918var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 32944var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular); 34237var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 34452var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 34653var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 35733var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 35760var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 35796var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 35837var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular); 35883var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular); 35949var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 35977var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular); 36117var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular); 36225var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular);
Semantics\PatternMatchingTests.cs (16)
883var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1528var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1584var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1641var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1718var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1871var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1924var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1979var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2284var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2341var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2400var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2740var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 3029var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 3076var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 3476parseOptions: TestOptions.Regular); 4245var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular);
Semantics\PatternMatchingTests_Scope.cs (44)
66var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 279var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 325var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 6574var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 6663options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 6736options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 6811options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 6875options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 6920options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9121var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10943var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11125var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11173var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11223var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11266var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11309var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11355var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11398var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11442var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11489var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11539var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11601var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11657parseOptions: TestOptions.Regular); 11716parseOptions: TestOptions.Regular); 11783var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11874var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11968var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12059var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12137var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12183var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12243var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12396var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12589var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12788var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12934var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13023var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13185var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 13345var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 13432var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13510var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 13598var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13675var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13739var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 13777var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular);
Semantics\PatternMatchingTests3.cs (32)
2093var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2165var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2237var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2286var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2335var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2366var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.ReleaseExe); 2424var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.ReleaseExe); 2470var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2501var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2541var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2579var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2608var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2650var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2666var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2692var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2720var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2743var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2814var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2873var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2914var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2971var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 3000var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 3071var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 3140var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 3278var compilation = CreateCompilation(source + _iTupleSource, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 3366var compilation = CreateCompilation(source + _iTupleSource, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 4617var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 4783var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 4875var compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 4969var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 5253var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 5322var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9));
Semantics\PatternSwitchTests.cs (2)
1885var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1920var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular);
Semantics\RecordTests.cs (10)
16326var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 17275var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 17371var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 17467var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 24319var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 24384var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 24454var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 24533var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 30411var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "never"), targetFramework: TargetFramework.NetCoreApp); 30435var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "never"), targetFramework: TargetFramework.NetCoreApp);
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
EndToEndTests.cs (1)
682var verifier = CompileAndVerify(files.ToArrayAndFree(), parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "global"), expectedOutput: makeExpectedOutput());
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (78)
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (2)
456var experimental = TestOptions.Regular.WithFeatures(experimentalFeatures); 506var experimental = TestOptions.Regular.WithFeatures(featuresToEnable);
ExtractMethod\ExtractLocalFunctionTests.cs (10)
750parseOptions: TestOptions.Regular, index: CodeActionIndex); 851parseOptions: TestOptions.Regular, index: CodeActionIndex); 3575""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement), parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3))); 3606""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement), parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7))); 3637""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement), parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp8))); 3668""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement), parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest))); 4122await TestExactActionSetOfferedAsync(code, [FeaturesResources.Extract_method], new TestParameters(parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6))); 4138await TestExactActionSetOfferedAsync(code, [FeaturesResources.Extract_method], new TestParameters(parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5))); 5801await TestAsync(code, expected, TestOptions.Regular, index: CodeActionIndex); 5843await TestAsync(code, expected, TestOptions.Regular, index: CodeActionIndex);
ExtractMethod\ExtractMethodCodeRefactoringTests.cs (2)
1034parseOptions: TestOptions.Regular); 1136parseOptions: TestOptions.Regular);
InlineTemporary\InlineTemporaryTests.cs (5)
4329new TestParameters(parseOptions: TestOptions.Regular.WithLanguageVersion(version))); 5094await TestMissingInRegularAndScriptAsync(code, new TestParameters(parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp8))); 5691await TestAsync(code, expected, TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 5711await TestAsync(code, expected, TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 5730TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9));
IntroduceVariable\IntroduceVariableTests.cs (15)
1890""", parameters: new TestParameters(TestOptions.Regular)); 1938""", new TestParameters(TestOptions.Regular)); 1952""", new TestParameters(TestOptions.Regular)); 1969""", new TestParameters(TestOptions.Regular)); 1986""", new TestParameters(TestOptions.Regular)); 2007""", new TestParameters(TestOptions.Regular)); 2051parseOptions: TestOptions.Regular); 5535await TestAsync(code, expected, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 5700await TestActionCountAsync(code, count: 2, parameters: new TestParameters(TestOptions.Regular)); 5787await TestAsync(code, expected, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest)); 5820await TestAsync(code, expected, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest)); 5854await TestAsync(code, expected, index: 1, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest)); 6139""", parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest)); 6169""", parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), index: 0); 6198""", parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), index: 2);
MoveDeclarationNearReference\MoveDeclarationNearReferenceTests.cs (13)
70TestOptions.Regular); 115TestOptions.Regular); 182TestOptions.Regular); 233TestOptions.Regular); 457TestOptions.Regular); 617TestOptions.Regular); 686TestOptions.Regular); 756TestOptions.Regular); 826TestOptions.Regular); 1629TestOptions.Regular); 1712TestOptions.Regular); 1938TestOptions.Regular); 2015TestOptions.Regular);
RemoveUnusedVariable\RemoveUnusedVariableTests.cs (1)
780""", TestOptions.Regular);
src\Analyzers\CSharp\Tests\AddParameter\AddParameterTests.cs (5)
2810""", parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2920""", parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2936""", parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp12)); 2962""", parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2978""", parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp12));
src\Analyzers\CSharp\Tests\GenerateConstructor\GenerateConstructorTests.cs (5)
3664parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 3694parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 3724parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 3754parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 4944""", parseOptions: TestOptions.Regular);
src\Analyzers\CSharp\Tests\GenerateMethod\GenerateMethodTests.cs (16)
8775parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 8807parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 8839parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 8871parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 8905parseOptions: TestOptions.Regular); 8939parseOptions: TestOptions.Regular); 8974parseOptions: TestOptions.Regular); 9008parseOptions: TestOptions.Regular); 9137parseOptions: TestOptions.Regular); 9171parseOptions: TestOptions.Regular); 9277parseOptions: TestOptions.Regular); 9315parseOptions: TestOptions.Regular); 9353parseOptions: TestOptions.Regular); 9391parseOptions: TestOptions.Regular); 9429parseOptions: TestOptions.Regular); 9467parseOptions: TestOptions.Regular);
src\Analyzers\CSharp\Tests\RemoveUnusedLocalFunction\RemoveUnusedLocalFunctionTests.cs (1)
154""", TestOptions.Regular);
src\Analyzers\CSharp\Tests\UseThrowExpression\UseThrowExpressionTests.cs (3)
617""", TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 653""", TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 690""", TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9));
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (6)
IOperation\IOperationTests.cs (3)
257}", options: TestOptions.Regular); 349}", options: TestOptions.Regular); 405var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular);
IOperation\IOperationTests_ISymbolInitializer.cs (1)
30var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular);
IOperation\IOperationTests_IThrowOperation.cs (1)
2276var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()));
IOperation\IOperationTests_IVariableDeclaration.cs (1)
922var tree = Parse(source, options: TestOptions.Regular);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (443)
Semantics\BetterCandidates.cs (2)
32Debug.Assert(TestOptions.Regular.LanguageVersion >= MessageID.IDS_FeatureImprovedOverloadCandidates.RequiredVersion()); 33return CreateCompilation(source, options: options, references: references, parseOptions: TestOptions.Regular);
Semantics\BindingAsyncTests.cs (6)
985CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5)).VerifyDiagnostics( 993CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics(); 1017CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5)).VerifyDiagnostics( 1022CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics(); 3517CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)).VerifyDiagnostics( 3534var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7));
Semantics\ConditionalOperatorTests.cs (1)
197TestConditional("1 ? null : null", null, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()),
Semantics\ConstantTests.cs (1)
3280CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics(
Semantics\DeconstructionTests.cs (1)
1606var libComp = CreateCompilation(new string[] { libSource }, references: new[] { libMissingRef }, parseOptions: TestOptions.Regular).VerifyDiagnostics();
Semantics\DelegateTypeTests.cs (12)
4587var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 4623var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseExe); 4659var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 4692var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 6487CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 6526CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 6571CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 6616CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 6661CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 6706CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 6745CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 6784CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion),
Semantics\DynamicTests.cs (4)
3107CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(source, options: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5)) }).VerifyDiagnostics( 3224CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(source, options: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5)) }).VerifyDiagnostics( 3774CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp4)).VerifyDiagnostics(); 3775CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp3)).VerifyDiagnostics(
Semantics\ExpressionBodiedMemberTests.cs (1)
1043CreateCompilation(source, parseOptions: TestOptions.Regular).VerifyDiagnostics();
Semantics\ForEachTests.cs (1)
1905var boundNode = GetBoundForEachStatement(text, TestOptions.Regular,
Semantics\ImplicitlyTypedLocalsTests.cs (2)
152CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp3)).VerifyDiagnostics(); 153CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp2)).VerifyDiagnostics(
Semantics\InterceptorsTests.cs (33)
36private static readonly CSharpParseOptions RegularWithInterceptors = TestOptions.Regular.WithFeature("InterceptorsNamespaces", "global"); 83comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: TestOptions.Regular.WithFeature("InterceptorsPreview-experimental")); 86comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: TestOptions.Regular.WithFeature("InterceptorsPreview", "false")); 89comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: TestOptions.Regular.WithFeature("interceptorspreview")); 92comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: TestOptions.Regular.WithFeature("InterceptorsPreview", "Global")); 95comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: TestOptions.Regular.WithFeature("InterceptorsPreview", "global.a")); 128var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "NS")); 134comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "NS1.NS2")); 140var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "NS1"), expectedOutput: "1"); 143verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "NS1;NS2"), expectedOutput: "1"); 150test(TestOptions.Regular.WithFeature("InterceptorsNamespaces", "NS"), expectedOutput: null, 155test(TestOptions.Regular.WithFeature("InterceptorsNamespaces", "NS1.NS2"), expectedOutput: null, 160test(TestOptions.Regular.WithFeature("InterceptorsNamespaces", "NS1"), expectedOutput: "1"); 162test(TestOptions.Regular.WithFeature("InterceptorsNamespaces", "NS1;NS2"), expectedOutput: "1"); 257var comp = CreateCompilation([source, interceptor, s_attributesSource], parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", featureValue)); 266var verifier = CompileAndVerify([source, interceptor, s_attributesSource], parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", featureValue), expectedOutput: "1"); 294var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "")); 326var verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "global"), expectedOutput: "1"); 329verifier = CompileAndVerify([source, interceptors, s_attributesSource], parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "global"), expectedOutput: "1"); 360var comp = CreateCompilation([source, interceptors, s_attributesSource], parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "global.A")); 6788var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "Interceptors")); 6835var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "Interceptors")); 6888var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "Interceptors")); 6937var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "Interceptors")); 6993var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "Interceptors")); 7041var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "Interceptors")); 7088var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions: featureExists ? TestOptions.Regular.WithFeature("InterceptorsNamespaces", "") : TestOptions.Regular); 7132var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "Interceptors;Interceptors")); 7160var comp = CreateCompilation(new[] { source, s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "Interceptors")); 7179var comp = CreateCompilation([], parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "Interceptors")); 7219var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", @namespace)); 7262var comp = CreateCompilation([source, interceptorSource, s_attributesSource], parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "Interceptors.Nested"));
Semantics\InterpolationTests.cs (7)
1035CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe) 1068CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe) 1113var comp = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: Test.Utilities.TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 14940var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50); 15081var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50); 15158var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50); 15255var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50);
Semantics\LambdaTests.cs (2)
7158var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 8270CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
Semantics\LocalFunctionTests.cs (4)
23internal static readonly CSharpParseOptions DefaultParseOptions = TestOptions.Regular; 4012CreateCompilation(source, options: option, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics( 5946var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithPreprocessorSymbols("MyDefine")); 5949comp = CreateCompilation(source, parseOptions: TestOptions.Regular);
Semantics\LockTests.cs (1)
775var strictCompilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithStrictFeature());
Semantics\LookupTests.cs (2)
26var parseOptions = TestOptions.Regular; 36var tree = Parse(testSrc, options: isScript ? TestOptions.Script : TestOptions.Regular);
Semantics\NameOfTests.cs (5)
520", parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5)); 594parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5)); 618parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 637parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics( 659parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5)).VerifyDiagnostics(
Semantics\NativeIntegerTests.cs (3)
181comp = CreateEmptyCompilation(sourceA, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 699comp = CreateEmptyCompilation(sourceA, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 1510comp = CreateEmptyCompilation(sourceA, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
Semantics\NullableContextTests.cs (29)
184verify(parseOptions: TestOptions.Regular, expectedAnalyzedKeysDefault); 185verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", null), expectedAnalyzedKeysDefault); 186verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), expectedAnalyzedKeysAll); 187verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "never")); 188verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "ALWAYS"), expectedAnalyzedKeysDefault); // unrecognized value (incorrect case) ignored 189verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "NEVER"), expectedAnalyzedKeysDefault); // unrecognized value (incorrect case) ignored 190verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "true"), expectedAnalyzedKeysDefault); // unrecognized value ignored 191verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "false"), expectedAnalyzedKeysDefault); // unrecognized value ignored 192verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "unknown"), expectedAnalyzedKeysDefault); // unrecognized value ignored 238verify(parseOptions: TestOptions.Regular, expectedAnalyzedKeysDefault); 239verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", null), expectedAnalyzedKeysDefault); 240verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), expectedAnalyzedKeysAll); 241verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "never")); 297verify(parseOptions: TestOptions.Regular, expectedAnalyzedKeysDefault); 298verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", null), expectedAnalyzedKeysDefault); 299verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), expectedAnalyzedKeysAll); 300verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "never")); 339verify(parseOptions: TestOptions.Regular, expectedFlowState: true, expectedAnalyzedKeysAll); 340verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", null), expectedFlowState: true, expectedAnalyzedKeysAll); 341verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), expectedFlowState: true, expectedAnalyzedKeysAll); 342verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "never"), expectedFlowState: false); 378verify(parseOptions: TestOptions.Regular, expectedFlowState: true, expectedAnalyzedKeysAll); 379verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", null), expectedFlowState: true, expectedAnalyzedKeysAll); 380verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), expectedFlowState: true, expectedAnalyzedKeysAll); 381verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "never"), expectedFlowState: false); 413verify(parseOptions: TestOptions.Regular, expectedFlowState: true, expectedAnalyzedKeysAll); 414verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", null), expectedFlowState: true, expectedAnalyzedKeysAll); 415verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), expectedFlowState: true, expectedAnalyzedKeysAll); 416verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "never"), expectedFlowState: false);
Semantics\NullableReferenceTypesTests.cs (16)
1243var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 1285var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseDll); 5239var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: TestOptions.DebugDll); 5285var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Disable)); 5331var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 10611var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: WithNullableEnable()); 10770var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: WithNullableEnable()); 10933var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: WithNullableEnable()); 11123var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: WithNullableEnable()); 71775var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: WithNullableEnable()); 116545CreateCompilation(text, options: WithNullableEnable(TestOptions.ReleaseDll), parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyEmitDiagnostics(); 146495var compilation1 = CreateCompilation(source, parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 146528var compilation1 = CreateCompilation(source, parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 146557var compilation1 = CreateCompilation(source, parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 150638comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular); 155379var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA));
Semantics\NullableTests.cs (2)
209verifier = CompileAndVerify(source: source3, expectedOutput: "1", parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature()); 268CompileAndVerify(source: source4.Replace("TYPE", type), expectedOutput: "0", parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature());
Semantics\OperatorTests.cs (1)
8849CreateCompilation(source1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyDiagnostics(
Semantics\OverloadResolutionTests.cs (1)
8407CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyDiagnostics(
Semantics\RawInterpolationTests.cs (3)
1035CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe) 1067CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe) 1111var comp = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: Test.Utilities.TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
Semantics\RecordStructTests.cs (1)
7979var comp = CreateCompilationWithMscorlibAndSpan(new[] { text, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
Semantics\RefEscapingTests.cs (101)
140}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 189}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 235var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 285CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 566CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 612CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 670CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 711CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(); 759CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 835var comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1005var comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1124var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1188var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1241var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1292var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1360var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1450var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1491var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1525var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1587var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1650var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1863var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1927var comp = CreateCompilationWithMscorlibAndSpan(new[] { text, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1992CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 2038CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 2087CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(); 2398CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 2795""", options: TestOptions.Regular.WithLanguageVersion(languageVersion)); 2916""", options: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp11)); 2946""", TestOptions.Regular.WithLanguageVersion(languageVersion)); 3039""", TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp11)); 3194""", TestOptions.Regular.WithLanguageVersion(languageVersion)); 3276""", TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp11)); 3363""", TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp13)); 3446""", TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp11)); 3511CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 3579CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 3654CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 3737CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 3782""", TestOptions.Regular.WithLanguageVersion(languageVersion)); 3827""", TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp11)); 3992""", TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp11)); 4182""", TestOptions.Regular.WithLanguageVersion(languageVersion)); 4339CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 4377CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(); 4551CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 4628var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 4721var comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 4790CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 4844var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 4902CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 4960CreateCompilationWithMscorlibAndSpan(new[] { text, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 4975CreateCompilationWithMscorlibAndSpan(new[] { text, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 5022CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 5052var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5076var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5100var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5150var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5200var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5252var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5279var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5346CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 5385var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 5435CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 5479CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 5509CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 5537CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 5567var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 5621var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.NetCoreApp); 5656var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.NetCoreApp); 5700CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 5755var compilation = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 5840var compilation = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 5955var compilation = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 6011CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(); 6042var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 6534CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 6572var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 6609var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 6646CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 6676CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(); 6719CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(); 6745}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6771}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6858""", options: TestOptions.Regular.WithLanguageVersion(languageVersion)); 6903}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseDll); 7000}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseDll).VerifyDiagnostics( 7027}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseDll).VerifyDiagnostics( 7056}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseDll).VerifyDiagnostics( 7084", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 7105}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 7135}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 7162}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 7191CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 7218}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 7244}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseDll).VerifyDiagnostics(); 7262}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseDll).VerifyDiagnostics(); 7280}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseDll).VerifyDiagnostics( 7342", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseDll).VerifyDiagnostics(); 10274""", TestOptions.Regular.WithLanguageVersion(languageVersion)); 10361""", TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp11));
Semantics\RefFieldTests.cs (87)
2289var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net70); 4934var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 4961var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 5072var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9143var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9166var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9189var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9221var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9265var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9311var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9345var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9366var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9415var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9469var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9521var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9569var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9621var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9660var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9746var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9794var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 10134var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 10175comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 10319parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 10363parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 10417parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 10470var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 10619var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 10633comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 10650var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 10664comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 10684var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 10701comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 10743var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 10760comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 10799var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA), options: TestOptions.UnsafeReleaseDll); 10812comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB), options: TestOptions.UnsafeReleaseDll); 10841var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 10854comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 11546var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 11644var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 11669var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 11711var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 11739var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp10)); 11785var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp11)); 11905var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 13329var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 13353var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 13377var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 13399var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 14675var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 14965var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 15072var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 16911var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 20009var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 20068var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50); 20229var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 20251var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 25216var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 25253var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 25259comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 25289var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 25337var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA), options: TestOptions.UnsafeReleaseDll); 25343comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 25379var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 25446var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 25459comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 25497var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 25518comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 25603comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 25624var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 25645comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 25683var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular); 25728comp = CreateCompilation(new[] { sourceB2, UnscopedRefAttributeDefinition }, references: new[] { refA }, parseOptions: TestOptions.Regular); 25761var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular); 25779comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 25832var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 25948var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular); 25974comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 26020comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 27095var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: targetFramework); 27162comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 27171comp = CreateEmptyCompilation(source2, references: new[] { ref0, ref1 }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 27223comp = CreateEmptyCompilation(source1, references: new[] { refLowerVersion }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 27238comp = CreateEmptyCompilation(source2, references: new[] { refHigherVersion, ref1 }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 30326var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 30382var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeReleaseDll); 30652var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
Semantics\RefLocalsAndReturnsTests.cs (3)
585var comp = CreateCompilationWithMscorlibAndSpan(new[] { source, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 2677var options = TestOptions.Regular; 2719var options = TestOptions.Regular;
Semantics\SemanticErrorTests.cs (10)
2937CreateCompilation(source, parseOptions: TestOptions.Regular).VerifyDiagnostics( 7576CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyDiagnostics( 7643CreateCompilation(text, options: TestOptions.ReleaseDll.WithNullableContextOptions(nullableContextOptions), parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyDiagnostics(); 7859CreateCompilation(text, parseOptions: TestOptions.Regular.WithTuplesFeature()).VerifyDiagnostics( 14209CreateCompilation(text, parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyDiagnostics( 23093CreateCompilation(source, parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyDiagnostics( 23172CreateCompilation(source, parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyDiagnostics( 24132CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5)).VerifyDiagnostics( 24555parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5)).VerifyDiagnostics( 24589parseOptions: TestOptions.Regular).VerifyDiagnostics(
Semantics\SpanStackSafetyTests.cs (2)
2202var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseExe); 2238var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseExe);
Semantics\StructConstructorTests.cs (5)
850TestOptions.Regular.WithLanguageVersion(languageVersion.Value); 3770var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 4171var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 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 (2)
2821CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp2)).VerifyDiagnostics(); 2822CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp1)).VerifyDiagnostics(
Semantics\TargetTypedConditionalOperatorTests.cs (20)
184parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)) 209parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)) 231parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)) 267parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)) 329parseOptions ??= TestOptions.Regular; 415comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()), options: TestOptions.DebugExe) 434CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()), options: TestOptions.DebugDll.WithAllowUnsafe(true)) 453CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()), options: TestOptions.DebugDll) 490CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp3), expectedOutput: expectedOutput); 491CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()), expectedOutput: expectedOutput); 525CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp3)).VerifyDiagnostics(expectedDiagnostics); 526CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion())).VerifyDiagnostics(expectedDiagnostics); 556CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp3), expectedOutput: expectedOutput); 557CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()), expectedOutput: expectedOutput); 587CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp3), expectedOutput: expectedOutput); 588CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()), expectedOutput: expectedOutput); 613CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3)).VerifyDiagnostics(); 614CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion())).VerifyDiagnostics(); 639CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3)).VerifyDiagnostics( 647CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion())).VerifyDiagnostics(
Semantics\TargetTypedDefaultTests.cs (2)
1715validateLangVer(modifier, type, value, equal, semanticType, TestOptions.Regular, diagnostics); 1858var comp = CreateCompilation(source, parseOptions: TestOptions.Regular, options: TestOptions.DebugExe);
Semantics\UnsafeTests.cs (1)
6366var tree = SyntaxFactory.ParseSyntaxTree(code, TestOptions.Regular);
Semantics\UseSiteErrorTests.cs (1)
2305var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute();
Semantics\UsingStatementTests.cs (1)
1848var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "never"));
Semantics\Utf8StringsLiteralsTests.cs (1)
1943var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe);
SourceGeneration\GeneratorDriverTests.cs (42)
34var parseOptions = TestOptions.Regular; 54var parseOptions = TestOptions.Regular; 76var parseOptions = TestOptions.Regular; 97var parseOptions = TestOptions.Regular; 126var parseOptions = TestOptions.Regular; 155var parseOptions = TestOptions.Regular; 216var parseOptions = TestOptions.Regular; 248var parseOptions = TestOptions.Regular; 273var parseOptions = TestOptions.Regular; 296var parseOptions = TestOptions.Regular; 317var parseOptions = TestOptions.Regular; 340var parseOptions = TestOptions.Regular; 370var parseOptions = TestOptions.Regular; 401var parseOptions = TestOptions.Regular; 427var parseOptions = TestOptions.Regular; 453var parseOptions = TestOptions.Regular; 482var parseOptions = TestOptions.Regular.WithLanguageVersion(LanguageVersion.Preview); 521var parseOptions = TestOptions.Regular; 545GeneratorDriver driver = CSharpGeneratorDriver.Create(ImmutableArray<ISourceGenerator>.Empty, parseOptions: TestOptions.Regular); 558GeneratorDriver driver = CSharpGeneratorDriver.Create([generator], parseOptions: TestOptions.Regular); 581var parseOptions = TestOptions.Regular; 611var parseOptions = TestOptions.Regular; 656var parseOptions = TestOptions.Regular; 703var parseOptions = TestOptions.Regular; 738var parseOptions = TestOptions.Regular; 775var parseOptions = TestOptions.Regular; 797var parseOptions = TestOptions.Regular; 822var parseOptions = TestOptions.Regular; 850var parseOptions = TestOptions.Regular; 881var parseOptions = TestOptions.Regular; 907var parseOptions = TestOptions.Regular; 934var parseOptions = TestOptions.Regular; 962var parseOptions = TestOptions.Regular; 994var parseOptions = TestOptions.Regular; 1023var parseOptions = TestOptions.Regular; 1058var parseOptions = TestOptions.Regular; 1085var parseOptions = TestOptions.Regular; 1130var parseOptions = TestOptions.Regular; 1157var parseOptions = TestOptions.Regular; 1255var parseOptions = TestOptions.Regular; 1384var parseOptions = TestOptions.Regular; 1419var parseOptions = TestOptions.Regular;
SourceGeneration\SyntaxAwareGeneratorTests.cs (24)
32var parseOptions = TestOptions.Regular; 58var parseOptions = TestOptions.Regular; 83var parseOptions = TestOptions.Regular; 109var parseOptions = TestOptions.Regular; 134var parseOptions = TestOptions.Regular; 161var parseOptions = TestOptions.Regular; 233var parseOptions = TestOptions.Regular; 272var parseOptions = TestOptions.Regular; 313var parseOptions = TestOptions.Regular; 369var parseOptions = TestOptions.Regular; 411var parseOptions = TestOptions.Regular; 453var parseOptions = TestOptions.Regular; 495var parseOptions = TestOptions.Regular; 549var parseOptions = TestOptions.Regular; 579var parseOptions = TestOptions.Regular; 617var parseOptions = TestOptions.Regular; 671var parseOptions = TestOptions.Regular; 728var parseOptions = TestOptions.Regular; 771var parseOptions = TestOptions.Regular; 816var parseOptions = TestOptions.Regular; 1849var parseOptions = TestOptions.Regular.WithLanguageVersion(LanguageVersion.Preview); 1890var parseOptions = TestOptions.Regular.WithLanguageVersion(LanguageVersion.Preview); 1931var parseOptions = TestOptions.Regular.WithLanguageVersion(LanguageVersion.Preview); 2044var parseOptions = TestOptions.Regular;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (613)
Compilation\CompilationAPITests.cs (7)
682syntaxTrees: new SyntaxTree[] { SyntaxFactory.ParseSyntaxTree("public class C {}", options: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)) }, 692options: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)) }, 703options: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)) }, 716options: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)) }, 3602var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 3637var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 3662var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute();
Compilation\GetUnusedImportDirectivesTests.cs (1)
487var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithDocumentationMode(documentationMode));
Compilation\ReferenceManagerTests.cs (1)
1019new[] { SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.Regular) },
Compilation\SemanticModelAPITests.cs (1)
2016var comp = CreateCompilation(source, parseOptions: TestOptions.Regular);
Compilation\SemanticModelGetSemanticInfoTests.cs (1)
15303", parseOptions: TestOptions.Regular);
Compilation\UsedAssembliesTests.cs (34)
35var comp1 = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 56var comp1 = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 300parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Diagnose)); 378var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 419var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 1097Compilation comp2 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)); 1102Compilation comp3 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)); 1105Compilation comp4 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Diagnose)); 4023Compilation comp2 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)); 4028Compilation comp3 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)); 4031Compilation comp4 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Diagnose)); 4126Compilation comp2 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)); 4129Compilation comp3 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)); 4549AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)), 4551AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)), 4578AssertUsedAssemblyReferences(CreateCompilation(source4, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)), 4580AssertUsedAssemblyReferences(CreateCompilation(source4, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)), 4627Compilation comp2 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)); 4630Compilation comp3 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)); 4633Compilation comp4 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Diagnose)); 4769AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)), 4771AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)), 4809Compilation comp2 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)); 4812Compilation comp3 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)); 4815Compilation comp4 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Diagnose)); 4834CreateCompilation(source1, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)).VerifyDiagnostics( 4851CreateCompilation(source2, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)).VerifyDiagnostics( 4872CreateCompilation(source1, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)).VerifyDiagnostics( 4889CreateCompilation(source2, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)).VerifyDiagnostics( 5458var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 5939AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)), 5941AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)), 5960AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)), 5962AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)),
DocumentationComments\CrefTests.cs (2)
4417var tree1 = Parse(source1, options: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Diagnose).WithLanguageVersion(LanguageVersion.Latest)); 4418var tree2 = Parse(source2, options: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None).WithLanguageVersion(LanguageVersion.Latest));
DocumentationComments\DocumentationCommentCompilerTests.cs (1)
4520var tree = Parse(source, options: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse));
DocumentationComments\DocumentationModeTests.cs (1)
397return TestOptions.Regular.WithDocumentationMode(mode);
DocumentationComments\MethodDocumentationCommentTests.cs (3)
237var compilation = CreateEmptyCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Diagnose)); 242compilation = CreateEmptyCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)); 247compilation = CreateEmptyCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None));
SymbolDisplay\SymbolDisplayTests.cs (8)
5352TestOptions.Regular, 5380var comp = CreateCompilation(text, parseOptions: TestOptions.Regular); 5416TestOptions.Regular, 5446TestOptions.Regular, 5484TestOptions.Regular, 5535TestOptions.Regular, 8215TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), 8236TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9),
Symbols\AnonymousTypesSemanticsTests.cs (1)
2086parseOptions: TestOptions.Regular);
Symbols\AnonymousTypesSymbolTests.cs (1)
1452var compilation = CreateCompilationWithMscorlib40(new string[] { source1, source2, source3 }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), parseOptions: TestOptions.Regular);
Symbols\CompilationCreationTests.cs (2)
2734", TestOptions.Regular) 2816", TestOptions.Regular)
Symbols\CorLibrary\CorTypes.cs (8)
353parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 395parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 534parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 580parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 807parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 864parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 1002parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 1058parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
Symbols\DefaultInterfaceImplementationTests.cs (523)
2039parseOptions: TestOptions.Regular, 2261parseOptions: TestOptions.Regular, 2268parseOptions: TestOptions.Regular, 2330parseOptions: TestOptions.Regular, 2337parseOptions: TestOptions.Regular, 2403parseOptions: TestOptions.Regular, 2410parseOptions: TestOptions.Regular, 2476parseOptions: TestOptions.Regular, 2483parseOptions: TestOptions.Regular, 2971parseOptions: TestOptions.Regular, 3084parseOptions: TestOptions.Regular, 3164parseOptions: TestOptions.Regular, 3271parseOptions: TestOptions.Regular, 4491parseOptions: TestOptions.Regular); 5104parseOptions: TestOptions.Regular, 5141parseOptions: TestOptions.Regular, 5169parseOptions: TestOptions.Regular, 5206parseOptions: TestOptions.Regular, 5245parseOptions: TestOptions.Regular, 5298parseOptions: TestOptions.Regular, 5384parseOptions: TestOptions.Regular, 5501parseOptions: TestOptions.Regular, 5592parseOptions: TestOptions.Regular, 5737parseOptions: TestOptions.Regular, 5827parseOptions: TestOptions.Regular, skipUsesIsNullable: true); 5857parseOptions: TestOptions.Regular); 5954parseOptions: TestOptions.Regular, 5967parseOptions: TestOptions.Regular); 6012parseOptions: TestOptions.Regular, 6032parseOptions: TestOptions.Regular); 6221parseOptions: TestOptions.Regular, 7813parseOptions: TestOptions.Regular, 7970parseOptions: TestOptions.Regular, 8086parseOptions: TestOptions.Regular, 8246parseOptions: TestOptions.Regular, 8364parseOptions: TestOptions.Regular, 8400parseOptions: TestOptions.Regular, 8679parseOptions: TestOptions.Regular, 8771parseOptions: TestOptions.Regular); 8872parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 9042parseOptions: TestOptions.Regular, 9093parseOptions: TestOptions.Regular, 9309parseOptions: TestOptions.Regular, 9530parseOptions: TestOptions.Regular); 9537parseOptions: TestOptions.Regular); 9544parseOptions: TestOptions.Regular); 9555parseOptions: TestOptions.Regular); 9829parseOptions: TestOptions.Regular); 9836parseOptions: TestOptions.Regular); 9843parseOptions: TestOptions.Regular); 9850parseOptions: TestOptions.Regular); 9888parseOptions: TestOptions.Regular, 9900parseOptions: TestOptions.Regular, 9908parseOptions: TestOptions.Regular, 9920parseOptions: TestOptions.Regular, 9977parseOptions: TestOptions.Regular, 9985parseOptions: TestOptions.Regular, 9994foreach (var parseOptions in new[] { TestOptions.Regular9, TestOptions.Regular }) 10044parseOptions: TestOptions.Regular, 10059parseOptions: TestOptions.Regular, 10082parseOptions: TestOptions.Regular); 10134parseOptions: TestOptions.Regular, 10193parseOptions: TestOptions.Regular, 10304parseOptions: TestOptions.Regular, 10372parseOptions: TestOptions.Regular, 10508parseOptions: TestOptions.Regular, skipUsesIsNullable: true); 10575parseOptions: TestOptions.Regular, 10828parseOptions: TestOptions.Regular, 10882parseOptions: TestOptions.Regular, 10916parseOptions: TestOptions.Regular, 10928parseOptions: TestOptions.Regular, 10939parseOptions: TestOptions.Regular, 10978parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 11001parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 11055parseOptions: TestOptions.Regular, 11161parseOptions: TestOptions.Regular, 11523parseOptions: TestOptions.Regular, 11553parseOptions: TestOptions.Regular, 11580parseOptions: TestOptions.Regular, 11607parseOptions: TestOptions.Regular, 11634parseOptions: TestOptions.Regular, 11647parseOptions: TestOptions.Regular, 11693parseOptions: TestOptions.Regular, 11717parseOptions: TestOptions.Regular, 11725parseOptions: TestOptions.Regular, 11759parseOptions: TestOptions.Regular, 11769parseOptions: TestOptions.Regular, 11786parseOptions: TestOptions.Regular, 11882parseOptions: TestOptions.Regular, 11891parseOptions: TestOptions.Regular, 11916parseOptions: TestOptions.Regular, 11924parseOptions: TestOptions.Regular, 11997parseOptions: TestOptions.Regular, 12006parseOptions: TestOptions.Regular, 12038parseOptions: TestOptions.Regular, 12045parseOptions: TestOptions.Regular, 12120parseOptions: TestOptions.Regular, 12129parseOptions: TestOptions.Regular, 12161parseOptions: TestOptions.Regular, 12174parseOptions: TestOptions.Regular, 12217parseOptions: TestOptions.Regular, 12227parseOptions: TestOptions.Regular, 12238parseOptions: TestOptions.Regular, 12279parseOptions: TestOptions.Regular, 12289parseOptions: TestOptions.Regular, 12300parseOptions: TestOptions.Regular, 12341parseOptions: TestOptions.Regular, 12351parseOptions: TestOptions.Regular, 12361parseOptions: TestOptions.Regular, 12613parseOptions: TestOptions.Regular, 12624parseOptions: TestOptions.Regular, 12638parseOptions: TestOptions.Regular, 12701parseOptions: TestOptions.Regular, 12712parseOptions: TestOptions.Regular, 12726parseOptions: TestOptions.Regular, 12789parseOptions: TestOptions.Regular, 12800parseOptions: TestOptions.Regular, 12814parseOptions: TestOptions.Regular, 12893parseOptions: TestOptions.Regular, 12948parseOptions: TestOptions.Regular, 13021parseOptions: TestOptions.Regular, 13078parseOptions: TestOptions.Regular, 13658parseOptions: TestOptions.Regular, 13898parseOptions: TestOptions.Regular, 13992parseOptions: TestOptions.Regular); 14213parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 14231parseOptions: TestOptions.Regular, targetFramework: TargetFramework.Mscorlib461Extended); 14607parseOptions: TestOptions.Regular, 14706parseOptions: TestOptions.Regular, 14921parseOptions: TestOptions.Regular, 14933parseOptions: TestOptions.Regular, 14967parseOptions: TestOptions.Regular, 14986parseOptions: TestOptions.Regular, 15119parseOptions: TestOptions.Regular, 15130parseOptions: TestOptions.Regular, 15146parseOptions: TestOptions.Regular, 15247parseOptions: TestOptions.Regular); 15257parseOptions: TestOptions.Regular); 15265parseOptions: TestOptions.Regular); 15661parseOptions: TestOptions.Regular); 15670parseOptions: TestOptions.Regular); 15675parseOptions: TestOptions.Regular); 15684parseOptions: TestOptions.Regular); 15744parseOptions: TestOptions.Regular); 15751parseOptions: TestOptions.Regular); 15756parseOptions: TestOptions.Regular); 15763parseOptions: TestOptions.Regular); 15846parseOptions: TestOptions.Regular, 15857parseOptions: TestOptions.Regular, 15873parseOptions: TestOptions.Regular, 15963parseOptions: TestOptions.Regular, 15970parseOptions: TestOptions.Regular, 16003parseOptions: TestOptions.Regular); 16176parseOptions: TestOptions.Regular, 16308parseOptions: TestOptions.Regular, 16580parseOptions: TestOptions.Regular, 16768parseOptions: TestOptions.Regular, 16926parseOptions: TestOptions.Regular, skipUsesIsNullable: true); 17016parseOptions: TestOptions.Regular, 17457parseOptions: TestOptions.Regular, 17511parseOptions: TestOptions.Regular, 17528parseOptions: TestOptions.Regular, 17542parseOptions: TestOptions.Regular, 17589parseOptions: TestOptions.Regular, 17621parseOptions: TestOptions.Regular, 17727parseOptions: TestOptions.Regular, 18283parseOptions: TestOptions.Regular, 18316parseOptions: TestOptions.Regular, 18330parseOptions: TestOptions.Regular, 18466parseOptions: TestOptions.Regular, 18485parseOptions: TestOptions.Regular, 18505parseOptions: TestOptions.Regular, 19838parseOptions: TestOptions.Regular, 19892parseOptions: TestOptions.Regular, 19909parseOptions: TestOptions.Regular, 19923parseOptions: TestOptions.Regular, 19970parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 20001parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 20039parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 20171parseOptions: TestOptions.Regular, 20317parseOptions: TestOptions.Regular); 20354parseOptions: TestOptions.Regular, 20368parseOptions: TestOptions.Regular, 20428parseOptions: TestOptions.Regular, 20446parseOptions: TestOptions.Regular, 20458parseOptions: TestOptions.Regular, 20493parseOptions: TestOptions.Regular, 21553parseOptions: TestOptions.Regular, 22132parseOptions: TestOptions.Regular, 22371parseOptions: TestOptions.Regular, 22626parseOptions: TestOptions.Regular, 23382parseOptions: TestOptions.Regular); 23689parseOptions: TestOptions.Regular, 23755parseOptions: TestOptions.Regular, 23872parseOptions: TestOptions.Regular, 23938parseOptions: TestOptions.Regular, 24508parseOptions: TestOptions.Regular, 24540parseOptions: TestOptions.Regular, 26532parseOptions: TestOptions.Regular, 26569parseOptions: TestOptions.Regular, 26608parseOptions: TestOptions.Regular, 26744parseOptions: TestOptions.Regular, 26800parseOptions: TestOptions.Regular, 27224parseOptions: TestOptions.Regular, 27620parseOptions: TestOptions.Regular); 27790parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 27864parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 27884parseOptions: TestOptions.Regular, targetFramework: TargetFramework.Mscorlib461Extended); 28118parseOptions: TestOptions.Regular, 28196parseOptions: TestOptions.Regular, 28427parseOptions: TestOptions.Regular, 28479parseOptions: TestOptions.Regular, 28510parseOptions: TestOptions.Regular, 28529parseOptions: TestOptions.Regular, 28624parseOptions: TestOptions.Regular, 28635parseOptions: TestOptions.Regular, 28651parseOptions: TestOptions.Regular, 28752parseOptions: TestOptions.Regular); 28761parseOptions: TestOptions.Regular); 28768parseOptions: TestOptions.Regular, targetFramework: targetFramework); 29170parseOptions: TestOptions.Regular); 29179parseOptions: TestOptions.Regular); 29184parseOptions: TestOptions.Regular); 29193parseOptions: TestOptions.Regular); 29256parseOptions: TestOptions.Regular); 29263parseOptions: TestOptions.Regular); 29268parseOptions: TestOptions.Regular); 29275parseOptions: TestOptions.Regular); 29358parseOptions: TestOptions.Regular, 29369parseOptions: TestOptions.Regular, 29385parseOptions: TestOptions.Regular, 29468parseOptions: TestOptions.Regular, 29475parseOptions: TestOptions.Regular, 29501parseOptions: TestOptions.Regular); 29579parseOptions: TestOptions.Regular, 29697parseOptions: TestOptions.Regular, 29993parseOptions: TestOptions.Regular, 30104parseOptions: TestOptions.Regular, 30320parseOptions: TestOptions.Regular, skipUsesIsNullable: true); 30439parseOptions: TestOptions.Regular, 30862parseOptions: TestOptions.Regular, 30916parseOptions: TestOptions.Regular, 30931parseOptions: TestOptions.Regular, 30945parseOptions: TestOptions.Regular, 30991parseOptions: TestOptions.Regular, 31022parseOptions: TestOptions.Regular, 31096parseOptions: TestOptions.Regular, 31122parseOptions: TestOptions.Regular, 31131parseOptions: TestOptions.Regular, 31170parseOptions: TestOptions.Regular, 31182parseOptions: TestOptions.Regular, 31208parseOptions: TestOptions.Regular, 31751parseOptions: TestOptions.Regular, 31933parseOptions: TestOptions.Regular, 31984parseOptions: TestOptions.Regular, 32017parseOptions: TestOptions.Regular, 32026parseOptions: TestOptions.Regular, 32040parseOptions: TestOptions.Regular, 32124parseOptions: TestOptions.Regular, 32151parseOptions: TestOptions.Regular, 32160parseOptions: TestOptions.Regular, 32174parseOptions: TestOptions.Regular, 32255parseOptions: TestOptions.Regular); 32382parseOptions: TestOptions.Regular); 32482parseOptions: TestOptions.Regular, 32509parseOptions: TestOptions.Regular, 32542parseOptions: TestOptions.Regular, 32551parseOptions: TestOptions.Regular, 32558parseOptions: TestOptions.Regular, 32688parseOptions: TestOptions.Regular, 32765parseOptions: TestOptions.Regular); 33284parseOptions: TestOptions.Regular, skipUsesIsNullable: true); 33309parseOptions: TestOptions.Regular); 36888parseOptions: TestOptions.Regular, 40394parseOptions: TestOptions.Regular, skipUsesIsNullable: true); 40425parseOptions: TestOptions.Regular); 43697parseOptions: TestOptions.Regular, 43721parseOptions: TestOptions.Regular, 43790parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 43835parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 43840parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 43869parseOptions: TestOptions.Regular, 43920parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 43972parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 43977parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 44005parseOptions: TestOptions.Regular, targetFramework: TargetFramework.Mscorlib461Extended); 44055parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 44102parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 44107parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 44135parseOptions: TestOptions.Regular, targetFramework: TargetFramework.Mscorlib461Extended); 44193parseOptions: TestOptions.Regular, 44223parseOptions: TestOptions.Regular, 44243parseOptions: TestOptions.Regular, 44269parseOptions: TestOptions.Regular, 44344parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 44421parseOptions: TestOptions.Regular, 44545parseOptions: TestOptions.Regular, 44643parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 44690parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 44724parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 44748parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 44798parseOptions: TestOptions.Regular); 44839parseOptions: TestOptions.Regular, 44884parseOptions: TestOptions.Regular, 44920parseOptions: TestOptions.Regular, 44965parseOptions: TestOptions.Regular, 44983parseOptions: TestOptions.Regular, 45003parseOptions: TestOptions.Regular, 45057parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45102parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45107parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45145parseOptions: TestOptions.Regular, 45208parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45255parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45260parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45298parseOptions: TestOptions.Regular, 45351parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45394parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45399parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45440parseOptions: TestOptions.Regular, 45479parseOptions: TestOptions.Regular); 45541parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45586parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45591parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45628parseOptions: TestOptions.Regular, targetFramework: TargetFramework.Mscorlib461Extended); 45681parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45723parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45728parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45765parseOptions: TestOptions.Regular, targetFramework: TargetFramework.Mscorlib461Extended); 45839parseOptions: TestOptions.Regular, 45845parseOptions: TestOptions.Regular, 45903parseOptions: TestOptions.Regular, 45921parseOptions: TestOptions.Regular, 45937parseOptions: TestOptions.Regular); 46002parseOptions: TestOptions.Regular, 46037parseOptions: TestOptions.Regular); 46113parseOptions: TestOptions.Regular, 46163parseOptions: TestOptions.Regular); 46201parseOptions: TestOptions.Regular); 46257parseOptions: TestOptions.Regular, 46306parseOptions: TestOptions.Regular); 46320parseOptions: TestOptions.Regular); 46347parseOptions: TestOptions.Regular, 46373parseOptions: TestOptions.Regular, 46953parseOptions: TestOptions.Regular); 47157parseOptions: TestOptions.Regular); 47223parseOptions: TestOptions.Regular); 47232parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47238parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47315parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47324parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47330parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47391parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47400parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47406parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47464parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47471parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47521parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47530parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47536parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47602parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47611parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47617parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47677parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47685parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47690parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47709parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47717parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47722parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47738parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47746parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47751parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47810parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47818parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47823parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47842parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47850parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47855parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47871parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47879parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47884parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47938parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47946parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47951parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48005parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48013parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48018parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48080parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48089parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48095parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48137parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48146parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48152parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48204parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48213parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48219parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48301parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48310parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48316parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48371parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48380parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48386parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48435parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48444parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48450parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48514parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48523parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48529parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48586parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48595parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48601parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48659parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48667parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48672parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48729parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48737parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48742parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48799parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48806parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48891parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48900parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48906parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48957parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48966parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48972parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 49064parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 49073parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 49079parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 49296parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 49305parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 49311parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 49578parseOptions: TestOptions.Regular); 49651var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 49767var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 57232parseOptions: TestOptions.Regular, 57314parseOptions: TestOptions.Regular, 57390parseOptions: TestOptions.Regular, 59423parseOptions: TestOptions.Regular, 62210parseOptions: TestOptions.Regular, 62248parseOptions: TestOptions.Regular, 62283parseOptions: TestOptions.Regular, 62528compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 62568parseOptions: TestOptions.Regular, 64788parseOptions: TestOptions.Regular, 64814parseOptions: TestOptions.Regular, 64844parseOptions: TestOptions.Regular, 64874parseOptions: TestOptions.Regular, 64904parseOptions: TestOptions.Regular, 64923parseOptions: TestOptions.Regular, 64942parseOptions: TestOptions.Regular, 64968parseOptions: TestOptions.Regular, 64990parseOptions: TestOptions.Regular, 65020parseOptions: TestOptions.Regular, 65052parseOptions: TestOptions.Regular, 65078parseOptions: TestOptions.Regular, 65112parseOptions: TestOptions.Regular, 65159parseOptions: TestOptions.Regular, 65203parseOptions: TestOptions.Regular, 65247parseOptions: TestOptions.Regular, 65300parseOptions: TestOptions.Regular); 65352parseOptions: TestOptions.Regular); 65381parseOptions: TestOptions.Regular, 65426parseOptions: TestOptions.Regular, 65476parseOptions: TestOptions.Regular); 65521parseOptions: TestOptions.Regular); 65561parseOptions: TestOptions.Regular); 65607parseOptions: TestOptions.Regular); 65645parseOptions: TestOptions.Regular); 65690parseOptions: TestOptions.Regular); 65728parseOptions: TestOptions.Regular); 65773parseOptions: TestOptions.Regular); 65806parseOptions: TestOptions.Regular, 65847parseOptions: TestOptions.Regular, 65882parseOptions: TestOptions.Regular, 65924parseOptions: TestOptions.Regular, 65959parseOptions: TestOptions.Regular, 66001parseOptions: TestOptions.Regular, 66041parseOptions: TestOptions.Regular); 66080parseOptions: TestOptions.Regular); 66132parseOptions: TestOptions.Regular); 66176parseOptions: TestOptions.Regular, 66221parseOptions: TestOptions.Regular, 66257parseOptions: TestOptions.Regular, 66300parseOptions: TestOptions.Regular, 66332parseOptions: TestOptions.Regular, 66380parseOptions: TestOptions.Regular, 66411parseOptions: TestOptions.Regular, 66453parseOptions: TestOptions.Regular, 66524parseOptions: TestOptions.Regular, 66635parseOptions: TestOptions.Regular, 66746parseOptions: TestOptions.Regular, 66752parseOptions: TestOptions.Regular, 66805parseOptions: TestOptions.Regular, 66840parseOptions: TestOptions.Regular, 66871parseOptions: TestOptions.Regular, 66926parseOptions: TestOptions.Regular, 66932parseOptions: TestOptions.Regular, 66955parseOptions: TestOptions.Regular, 67130parseOptions: TestOptions.Regular, 67164parseOptions: TestOptions.Regular, 67200parseOptions: TestOptions.Regular, 67234parseOptions: TestOptions.Regular, 67275parseOptions: TestOptions.Regular, 67312parseOptions: TestOptions.Regular, 67348parseOptions: TestOptions.Regular, 67384parseOptions: TestOptions.Regular, 67421parseOptions: TestOptions.Regular, 67462parseOptions: TestOptions.Regular, 67500parseOptions: TestOptions.Regular, 67538parseOptions: TestOptions.Regular, 67575parseOptions: TestOptions.Regular, 67614parseOptions: TestOptions.Regular, 67656parseOptions: TestOptions.Regular, 67693parseOptions: TestOptions.Regular, 67711parseOptions: TestOptions.Regular, 67751parseOptions: TestOptions.Regular, 67793parseOptions: TestOptions.Regular, 67826parseOptions: TestOptions.Regular, 67865parseOptions: TestOptions.Regular); 67896parseOptions: TestOptions.Regular); 67931parseOptions: TestOptions.Regular, 67994foreach (var parseOptions in new[] { TestOptions.Regular8, TestOptions.Regular9, TestOptions.Regular }) 68062parseOptions: TestOptions.Regular,
Symbols\Metadata\PE\LoadingMetadataTokens.cs (1)
40parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
Symbols\MissingSpecialMember.cs (2)
485var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 508var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute();
Symbols\PEParameterSymbolTests.cs (1)
92var compilation = CreateCompilationWithMscorlib461(source, new[] { vbComp }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular);
Symbols\Source\DelegateTests.cs (1)
822var tree = SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.Regular);
Symbols\Source\FieldTests.cs (2)
276CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular).VerifyDiagnostics( 341CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics(
Symbols\Source\MethodTests.cs (1)
2247var parseOptions = TestOptions.Regular;
Symbols\Source\PropertyTests.cs (6)
265var comp = CreateCompilation(text, parseOptions: TestOptions.Regular); 280var comp = CreateCompilation(text, parseOptions: TestOptions.Regular); 294var comp = CreateCompilation(text, parseOptions: TestOptions.Regular); 312var comp = CreateCompilation(text, parseOptions: TestOptions.Regular); 2854CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp3)).VerifyDiagnostics(); 2855CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp2)).VerifyDiagnostics(
Symbols\SymbolErrorTests.cs (4)
839CreateCompilation(text, parseOptions: TestOptions.Regular, 1118CreateCompilationWithMscorlib46(text, parseOptions: TestOptions.Regular).VerifyDiagnostics( 1169CreateCompilationWithMscorlib46(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics( 10944var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (688)
IncrementalParsing\ChangingAsync.cs (1)
61ParseAndValidate(text, validator, TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5));
LexicalAndXml\PreprocessorTests.cs (20)
3687var node = Parse(text, options: TestOptions.Regular); 3703var node = Parse(text, options: TestOptions.Regular); 3735var node = Parse(text, options: TestOptions.Regular); 3816var node = Parse(text, options: TestOptions.Regular); 3832var node = Parse(text, options: TestOptions.Regular); 3848var node = Parse(text, options: TestOptions.Regular); 4064var node = Parse(text, options: TestOptions.Regular); 4477var node = Parse(text, options: TestOptions.Regular); 4488var node = Parse(text, options: TestOptions.Regular); 4499var node = Parse(text, options: TestOptions.Regular); 4510var node = Parse(text, options: TestOptions.Regular); 4521var node = Parse(text, options: TestOptions.Regular); 4532var node = Parse(text, options: TestOptions.Regular); 4543var node = Parse(text, options: TestOptions.Regular); 4579var node = Parse(text, options: TestOptions.Regular); 4590var node = Parse(text, options: TestOptions.Regular); 4601var node = Parse(text, options: TestOptions.Regular); 4612var node = Parse(text, options: TestOptions.Regular); 4629var node = Parse(text, options: TestOptions.Regular); 4648var node = Parse(text, options: TestOptions.Regular);
LexicalAndXml\SyntaxTokenParserTests.cs (16)
20var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 37var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 75var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 119var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 158var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 184var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 194var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 203var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 221var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 262var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 273var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 292var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 325var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 355var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 369var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 392var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular);
Parsing\AsyncParsingTests.cs (2)
21return SyntaxFactory.ParseSyntaxTree(text, options: (options ?? TestOptions.Regular).WithLanguageVersion(LanguageVersion.CSharp5)); 26return SyntaxFactory.ParseExpression(text, options: (options ?? TestOptions.Regular).WithLanguageVersion(LanguageVersion.CSharp5));
Parsing\AsyncStreamsParsingTests.cs (2)
22return SyntaxFactory.ParseSyntaxTree(text, options: (options ?? TestOptions.Regular).WithLanguageVersion(LanguageVersion.CSharp8)); 27return SyntaxFactory.ParseExpression(text, options: (options ?? TestOptions.Regular).WithLanguageVersion(LanguageVersion.CSharp8));
Parsing\CollectionExpressionParsingTests.cs (2)
22UsingExpression("[A, B]", TestOptions.Regular.WithLanguageVersion(languageVersion)); 17098UsingExpression(text, TestOptions.Regular);
Parsing\CrefParsingTests.cs (6)
1469UsingNode("A(readonly ref B)", TestOptions.Regular.WithLanguageVersion(languageVersion).WithDocumentationMode(DocumentationMode.Diagnose), 1496UsingNode("A(readonly B)", TestOptions.Regular.WithLanguageVersion(languageVersion).WithDocumentationMode(DocumentationMode.Diagnose), 1523UsingNode("A(in readonly B)", TestOptions.Regular.WithLanguageVersion(languageVersion).WithDocumentationMode(DocumentationMode.Diagnose), 1558UsingNode("A(out readonly B)", TestOptions.Regular.WithLanguageVersion(languageVersion).WithDocumentationMode(DocumentationMode.Diagnose), 1593UsingNode("A(ref readonly readonly B)", TestOptions.Regular.WithLanguageVersion(languageVersion).WithDocumentationMode(DocumentationMode.Diagnose), 1632UsingNode("A(readonly ref B)", TestOptions.Regular.WithLanguageVersion(languageVersion).WithDocumentationMode(DocumentationMode.Diagnose),
Parsing\DeclarationParsingTests.cs (13)
25return SyntaxFactory.ParseSyntaxTree(text, options ?? TestOptions.Regular); 2051var file = this.ParseFile(text, TestOptions.Regular); 2568var file = this.ParseFile(text, TestOptions.Regular); 2643var file = this.ParseFile(text, parseOptions: TestOptions.Regular); 2786var file = this.ParseFile(text, TestOptions.Regular); 2833var file = this.ParseFile(text, TestOptions.Regular); 2883var file = this.ParseFile(text, TestOptions.Regular); 2924var file = this.ParseFile(text, TestOptions.Regular); 2969var file = this.ParseFile(text, TestOptions.Regular); 4216var file = this.ParseFile(text, TestOptions.Regular); 5062var file = this.ParseFile(text, TestOptions.Regular); 6551}", options: TestOptions.Regular.WithTuplesFeature()); 7114", TestOptions.Regular,
Parsing\DeclarationScopeParsingTests.cs (224)
24UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 71UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 142UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(langVersion), 314UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 431UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 598UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(langVersion), 683UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 746UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(langVersion), 800UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 840UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(langVersion), 895UsingExpression(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 937UsingExpression(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 1003UsingExpression(source, TestOptions.Regular.WithLanguageVersion(langVersion), 1037UsingExpression(source, TestOptions.Regular.WithLanguageVersion(langVersion), 1067UsingExpression(source, TestOptions.Regular.WithLanguageVersion(langVersion), 1097UsingExpression(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 1198UsingExpression(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 1266UsingExpression(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 1409UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 1543UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 1614UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 1730UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 1856UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 1921UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 1971UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 2016UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 2091UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 2148UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 2172UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 2198UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 2304UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 2410UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 2502UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 2550UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 2620UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 2685UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 2728UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 2773UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 2848UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 3024UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 3171UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 3259var parseOptions = TestOptions.Regular.WithLanguageVersion(langVersion); 3488UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 3555UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 3626UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 3702UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 3778UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 3850UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 3937UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 4017UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 4088UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 4157UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 4232UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 4305UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 4381UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 4455UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 4526UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 4601UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 4677UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 4752UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 4823UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 4894UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 4969UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 5045UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 5112UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 5183UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 5256UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 5329UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 5413UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 5482UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 5552UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 5631UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 5702UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 5781UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 5902UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 5954UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 6010UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 6088UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 6156UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 6213UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 6303UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 6386UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 6442UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 6513UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 6573UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 6645UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 6706UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 6797UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 6853UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 6913UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 6974UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 7034UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 7090UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 7146UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 7206UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 7267UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 7319UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 7375UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 7453UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 7521UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 7593UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 7663UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 7734UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 7806UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 7873UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 7941UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 7997UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 8050UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 8089UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 8157UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 8191UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 8254UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 8321UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 8358UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 8395UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 8436UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 8484UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 8529UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 8571UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 8620UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 8668UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 8709UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 8759UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 8804UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 8861UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 8907UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 8978UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9019UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9064UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9110UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9155UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9196UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9245UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9286UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9332UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9378UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9415UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9456UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 9497UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 9539UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9587UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 9661UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9695UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9733UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 9796UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9835UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 9912UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 9982UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 10020UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 10076UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 10118UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 10181UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 10224UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 10294UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 10332UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 10374UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 10417UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 10459UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 10497UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 10535UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 10577UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 10620UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 10654UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 10692UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 10746UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 10804UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 10874UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 10962UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 11016UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 11117UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 11358UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 11390UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 11478UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 11515UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 11610UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 11685UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 11740UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 11799UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 11839UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 11896UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 11985UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 12026UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 12082UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 12126UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 12172UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 12214UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 12260UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 12319UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 12386UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 12433UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 12503UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 12566UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 12612UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 12664UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 12714UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 12770UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 12821UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 12878UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 12924UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 12974UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 13025UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 13075UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 13121UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 13175UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 13221UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 13271UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 13322UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 13364UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 13410UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 13469UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 13539UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 13591UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 13661UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 13735UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 13845UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 13962UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 14021UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 14085UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 14153UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 14227UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 14275UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 14361UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 14417UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 14485UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion),
Parsing\DeconstructionTests.cs (31)
48}", options: TestOptions.Regular.WithTuplesFeature()); 122}", options: TestOptions.Regular.WithTuplesFeature()); 200}", options: TestOptions.Regular.WithTuplesFeature()); 276}", options: TestOptions.Regular.WithTuplesFeature()); 364}", options: TestOptions.Regular.WithTuplesFeature()); 448}", options: TestOptions.Regular.WithTuplesFeature()); 523}", options: TestOptions.Regular.WithTuplesFeature()); 599}", options: TestOptions.Regular.WithTuplesFeature()); 691}", options: TestOptions.Regular.WithTuplesFeature()); 781}", options: TestOptions.Regular.WithTuplesFeature()); 894}", options: TestOptions.Regular.WithTuplesFeature()); 971}", options: TestOptions.Regular.WithTuplesFeature()); 1058}", options: TestOptions.Regular.WithTuplesFeature()); 1132}", options: TestOptions.Regular.WithTuplesFeature()); 1231}", options: TestOptions.Regular.WithTuplesFeature()); 1329}", options: TestOptions.Regular.WithTuplesFeature()); 1507}", options: TestOptions.Regular.WithTuplesFeature()); 1878var statement = SyntaxFactory.ParseStatement(text, offset: 0, options: TestOptions.Regular.WithTuplesFeature()); 1891var statement = SyntaxFactory.ParseStatement(text, offset: 0, options: TestOptions.Regular.WithTuplesFeature()); 1903var statement = SyntaxFactory.ParseStatement(text, offset: 0, options: TestOptions.Regular.WithTuplesFeature()); 1915var statement = SyntaxFactory.ParseStatement(text, offset: 0, options: TestOptions.Regular.WithTuplesFeature()); 1927var statement = SyntaxFactory.ParseStatement(text, offset: 0, options: TestOptions.Regular.WithTuplesFeature()); 1944var statement = SyntaxFactory.ParseStatement(text, offset: 0, options: TestOptions.Regular.WithTuplesFeature()); 1961var statement = SyntaxFactory.ParseStatement(text, offset: 0, options: TestOptions.Regular.WithTuplesFeature()); 1975var statement = SyntaxFactory.ParseStatement(text, offset: 0, options: TestOptions.Regular.WithTuplesFeature()); 1989var statement = SyntaxFactory.ParseStatement(text, offset: 0, options: TestOptions.Regular.WithTuplesFeature()); 2005var statement = SyntaxFactory.ParseStatement(text, offset: 0, options: TestOptions.Regular.WithTuplesFeature()); 2016var statement = SyntaxFactory.ParseStatement(text, offset: 0, options: TestOptions.Regular.WithTuplesFeature()); 2027var statement = SyntaxFactory.ParseStatement(text, offset: 0, options: TestOptions.Regular.WithTuplesFeature()); 2036var statement = SyntaxFactory.ParseStatement(text, offset: 0, options: TestOptions.Regular.WithTuplesFeature()); 2046var statement = SyntaxFactory.ParseStatement(text, offset: 0, options: TestOptions.Regular.WithTuplesFeature());
Parsing\ExpressionParsingTests.cs (5)
2252var expr = this.ParseExpression(text, options: TestOptions.Regular); 2272var expr = this.ParseExpression(text, options: TestOptions.Regular); 4761var expr = this.ParseExpression(text, TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 6511var tree = ParseTree(text, TestOptions.Regular); 6548var tree = ParseTree(text, TestOptions.Regular);
Parsing\FieldKeywordParsingTests.cs (38)
63TestOptions.Regular.WithLanguageVersion(languageVersion)); 123TestOptions.Regular.WithLanguageVersion(languageVersion)); 165TestOptions.Regular.WithLanguageVersion(languageVersion)); 216TestOptions.Regular.WithLanguageVersion(languageVersion)); 273TestOptions.Regular.WithLanguageVersion(languageVersion)); 335TestOptions.Regular.WithLanguageVersion(languageVersion)); 392TestOptions.Regular.WithLanguageVersion(languageVersion)); 458TestOptions.Regular.WithLanguageVersion(languageVersion)); 530TestOptions.Regular.WithLanguageVersion(languageVersion)); 609TestOptions.Regular.WithLanguageVersion(languageVersion)); 677TestOptions.Regular.WithLanguageVersion(languageVersion)); 757TestOptions.Regular.WithLanguageVersion(languageVersion)); 853TestOptions.Regular.WithLanguageVersion(languageVersion)); 903TestOptions.Regular.WithLanguageVersion(languageVersion)); 960TestOptions.Regular.WithLanguageVersion(languageVersion)); 1006TestOptions.Regular.WithLanguageVersion(languageVersion)); 1052TestOptions.Regular.WithLanguageVersion(languageVersion)); 1098TestOptions.Regular.WithLanguageVersion(languageVersion)); 1148TestOptions.Regular.WithLanguageVersion(languageVersion)); 1202TestOptions.Regular.WithLanguageVersion(languageVersion)); 1249TestOptions.Regular.WithLanguageVersion(languageVersion)); 1318TestOptions.Regular.WithLanguageVersion(languageVersion)); 1369TestOptions.Regular.WithLanguageVersion(languageVersion)); 1423TestOptions.Regular.WithLanguageVersion(languageVersion)); 1484TestOptions.Regular.WithLanguageVersion(languageVersion)); 1562TestOptions.Regular.WithLanguageVersion(languageVersion)); 1626TestOptions.Regular.WithLanguageVersion(languageVersion)); 1702TestOptions.Regular.WithLanguageVersion(languageVersion)); 1753TestOptions.Regular.WithLanguageVersion(languageVersion)); 1843TestOptions.Regular.WithLanguageVersion(languageVersion)); 1920TestOptions.Regular.WithLanguageVersion(languageVersion)); 1971TestOptions.Regular.WithLanguageVersion(languageVersion)); 2030TestOptions.Regular.WithLanguageVersion(languageVersion)); 2089TestOptions.Regular.WithLanguageVersion(languageVersion)); 2153TestOptions.Regular.WithLanguageVersion(languageVersion)); 2226TestOptions.Regular.WithLanguageVersion(languageVersion)); 2279TestOptions.Regular.WithLanguageVersion(languageVersion)); 2334TestOptions.Regular.WithLanguageVersion(languageVersion));
Parsing\FileModifierParsingTests.cs (5)
21return SyntaxFactory.ParseSyntaxTree(text, options ?? TestOptions.Regular); 1526options: TestOptions.Regular.WithLanguageVersion(languageVersion)); 3145options: TestOptions.Regular.WithLanguageVersion(languageVersion), 3189options: TestOptions.Regular.WithLanguageVersion(languageVersion), 3230options: TestOptions.Regular.WithLanguageVersion(languageVersion),
Parsing\LambdaParameterParsingTests.cs (3)
5153UsingExpression(source, TestOptions.Regular.WithLanguageVersion(languageVersion), 5183UsingExpression(source, TestOptions.Regular.WithLanguageVersion(languageVersion), 5211UsingExpression(source, TestOptions.Regular.WithLanguageVersion(languageVersion),
Parsing\LocalFunctionParsingTests.cs (1)
1287var file = ParseFile(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6));
Parsing\MemberDeclarationParsingTests.cs (193)
117foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 142foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 153foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 171foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 200foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 248foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 299foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 326foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 369foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 776foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 824foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 872foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 915foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 958foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 1005foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 1052foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 1086foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 1134foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 1168foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 2347foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 2489foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 2613foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 2719foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 2825foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 2879foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 2959foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 3014foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 3065foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 3125foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 3228foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 3373foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 3501foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 3611foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 3721foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 3779foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 3863foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 3922foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 3977foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 4041foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 4116foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 4178foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 4267foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 4401foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 4518foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 4617foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 4716foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 4769foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 4848foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 4902foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 4952foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 5011foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 5107foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 5245foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 5366foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 5469foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 5572foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 5629foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 5712foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 5770foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 5824foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 5887foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 5961foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6022foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6084foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6159foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6229foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6292foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6392foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6459foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6543foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6643foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6696foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6758foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6812foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6862foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6921foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 7017foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 7130foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 7234foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 7338foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 7442foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 7499foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 7565foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 7623foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 7677foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 7740foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 7814foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 7875foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 7937foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 7994foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 8048foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 8102foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 8161foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 8207foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 8272foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 8321foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 8382foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 8441foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 8487foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 8545foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 8627", options: TestOptions.Regular, error); 8707UsingDeclaration("N1..N2 M(int x) => x;", options: TestOptions.Regular, 8765UsingDeclaration("int N1..M(int x) => x;", options: TestOptions.Regular, 8823UsingDeclaration("int N1.N2..M(int x) => x;", options: TestOptions.Regular, 8890foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 8944foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 9006foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 9068foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 9114foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 9168", options: TestOptions.Regular, 9236", options: TestOptions.Regular, 9289", options: TestOptions.Regular, 9360", options: TestOptions.Regular, 9446", options: TestOptions.Regular, 9496", options: TestOptions.Regular, 9551", options: TestOptions.Regular, 9607UsingNode(@"record R<T> where T : delegate", options: TestOptions.Regular, 12414foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 12677foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 12769foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 12844foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 12927foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 13010foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 13097foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 13181foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 13260foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 13339foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 13426foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 13513foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 13604foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 13715foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 13789foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 13863foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 13945foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 14027foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 14106foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 14192foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 14275foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 14369foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 14460foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 14546foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 14629foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 14704foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 14779foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 14862foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 14945foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 15076foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 15210foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 15268foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 15326foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 15384foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 15442foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 15521foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 15600foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 15683foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 15770foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 15861foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 15942foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 16036foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 16150foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 16303foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 16473foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 16582foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 16711foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 16892foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 17090foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 17160foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 17224foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 17281foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 17354foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 17421foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 17483foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 17553foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 17637foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 17700foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 17770foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 17854foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 17906foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 17980foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 18069foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 18170foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 18274foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 18375foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 18473foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 18522foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 18583foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 18708foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 18787foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 18883foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 18978foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 19059foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 19141foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 19213foreach (var options in new[] { TestOptions.Script, TestOptions.Regular })
Parsing\ParserErrorMessageTests.cs (9)
2684ParseAndValidate(text, TestOptions.Regular, 2739ParseAndValidate(text, TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6), 2768CreateCompilationWithMscorlib46(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics( 2791CreateCompilationWithMscorlib46(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)).VerifyDiagnostics( 2855ParseAndValidate(test, TestOptions.Regular, 2902ParseAndValidate(test, TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6), 3764var tree = ParseTree(test, TestOptions.Regular); 4590ParseAndValidate(test, TestOptions.Regular, 4626ParseAndValidate(test, TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6),
Parsing\ParserRegressionTests.cs (1)
25return SyntaxFactory.ParseSyntaxTree(text, options ?? TestOptions.Regular);
Parsing\ParsingErrorRecoveryTests.cs (4)
6200var file = this.ParseTree(text, options: TestOptions.Regular); 6228var file = this.ParseTree(text, TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 6309var file = this.ParseTree(text, options: TestOptions.Regular); 6339var file = this.ParseTree(text, options: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6));
Parsing\ParsingTests.cs (1)
84ParseFile(text, parseOptions: TestOptions.Regular.WithExperimental(feature));
Parsing\PatternParsingTests.cs (2)
50CreateCompilation(test, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics( 176}", options: TestOptions.Regular);
Parsing\ReadOnlyStructs.cs (6)
40var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), options: TestOptions.DebugDll); 77var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7), options: TestOptions.DebugDll); 105var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), options: TestOptions.DebugDll); 149var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), options: TestOptions.DebugDll.WithAllowUnsafe(true)); 182var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), options: TestOptions.DebugDll); 216var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), options: TestOptions.DebugDll);
Parsing\RefFieldParsingTests.cs (23)
24UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(languageVersion)); 61UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(languageVersion)); 99UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(languageVersion), 135UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(languageVersion), 172UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(languageVersion)); 230UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(languageVersion)); 292UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(languageVersion), 352UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(languageVersion), 405UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(languageVersion)); 467UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(languageVersion)); 550UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(languageVersion), 653UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(languageVersion)); 699UsingExpression(source, TestOptions.Regular.WithLanguageVersion(languageVersion)); 739UsingExpression(source, TestOptions.Regular.WithLanguageVersion(languageVersion), 783UsingExpression(source, TestOptions.Regular.WithLanguageVersion(languageVersion), 848UsingExpression(source, TestOptions.Regular.WithLanguageVersion(languageVersion)); 880UsingExpression(source, TestOptions.Regular.WithLanguageVersion(languageVersion)); 931UsingExpression(source, TestOptions.Regular.WithLanguageVersion(languageVersion), 985UsingExpression(source, TestOptions.Regular.WithLanguageVersion(languageVersion), 1016UsingExpression(source, TestOptions.Regular.WithLanguageVersion(languageVersion), 1055UsingExpression(source, TestOptions.Regular.WithLanguageVersion(languageVersion), 1094UsingExpression(source, TestOptions.Regular.WithLanguageVersion(languageVersion), 1141UsingExpression(source, TestOptions.Regular.WithLanguageVersion(languageVersion),
Parsing\RefReadonlyTests.cs (5)
45var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), options: TestOptions.UnsafeDebugDll); 90var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), options: TestOptions.UnsafeDebugDll); 1319UsingExpression("M(ref x, in y, ref readonly z)", TestOptions.Regular.WithLanguageVersion(languageVersion), 1383UsingExpression("M(readonly ref x)", TestOptions.Regular.WithLanguageVersion(languageVersion), 1415UsingExpression("M(readonly x)", TestOptions.Regular.WithLanguageVersion(languageVersion),
Parsing\RefStructs.cs (3)
38var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), options: TestOptions.DebugDll); 54var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7), options: TestOptions.DebugDll); 81var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), options: TestOptions.DebugDll);
Parsing\RoundTrippingTests.cs (1)
77var parseOptions = TestOptions.Regular;
Parsing\ScriptParsingTests.cs (1)
9719ParseAndValidate("#!/usr/bin/env csi", TestOptions.Regular,
Parsing\SeparatedSyntaxListParsingTests.cs (2)
327", options: TestOptions.Regular, 735var tree = UsingTree(text, TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6),
Parsing\StatementParsingTests.cs (3)
241var statement = this.ParseStatement(text, options: TestOptions.Regular); 3506var tree = SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.Regular); 3531var tree = SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.Regular);
Parsing\ValueTupleTests.cs (7)
35}", options: TestOptions.Regular); 118}", options: TestOptions.Regular); 230}", options: TestOptions.Regular); 334}", options: TestOptions.Regular); 442}", options: TestOptions.Regular); 506}", options: TestOptions.Regular, 613}", options: TestOptions.Regular,
Syntax\FieldAndValueKeywordTests.cs (44)
40var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 107var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 132var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 170var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 198var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 216var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 234var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 253var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 281var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 308var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 325var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 352var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 379var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 406var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 433var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 460var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 477var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 494var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 511var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 527var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 543var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 567var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 584var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 601var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 636var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 661var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 700var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 738var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 774var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 810var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 846var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 926var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 960var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 989var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1016var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1062var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1110var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1175var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1218comp = CreateCompilation(sourceB1, references: [refA], parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1238comp = CreateCompilation(sourceB2, references: [refA], parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1248comp = CreateCompilation(sourceB3, references: [refA], parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1258comp = CreateCompilation(sourceB4, references: [refA], parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1269comp = CreateCompilation(sourceB5, references: [refA], parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1306var parseOptions = TestOptions.Regular.WithLanguageVersion(languageVersion);
Syntax\Mocks\MockCSharpSyntaxTree.cs (1)
30Options = options ?? TestOptions.Regular;
Syntax\SyntaxAnnotationTests.cs (8)
133var tree = SyntaxFactory.ParseSyntaxTree(_allInOneCSharpCode, options: Test.Utilities.TestOptions.Regular); 143var tree = SyntaxFactory.ParseSyntaxTree(_allInOneCSharpCode, options: Test.Utilities.TestOptions.Regular); 306var tree = SyntaxFactory.ParseSyntaxTree(_allInOneCSharpCode, options: Test.Utilities.TestOptions.Regular); 314var tree = SyntaxFactory.ParseSyntaxTree(_allInOneCSharpCode, options: Test.Utilities.TestOptions.Regular); 322var tree = SyntaxFactory.ParseSyntaxTree(_allInOneCSharpCode, options: Test.Utilities.TestOptions.Regular); 330var tree = SyntaxFactory.ParseSyntaxTree(_allInOneCSharpCode, options: Test.Utilities.TestOptions.Regular); 338var tree1 = SyntaxFactory.ParseSyntaxTree(_allInOneCSharpCode, options: Test.Utilities.TestOptions.Regular); 339var tree2 = SyntaxFactory.ParseSyntaxTree(_allInOneCSharpCode, options: Test.Utilities.TestOptions.Regular);
Syntax\SyntaxNodeTests.cs (1)
389testContainsHelper2(new[] { SyntaxKind.BadDirectiveTrivia }, SyntaxFactory.ParseCompilationUnit("#!command", options: TestOptions.Regular));
Syntax\SyntaxTests.cs (2)
35SyntaxFactory.IsCompleteSubmission(SyntaxFactory.ParseSyntaxTree("", options: TestOptions.Regular))); 182var expr = SyntaxFactory.ParseExpression(source, options: TestOptions.Regular);
Syntax\SyntaxTreeTests.cs (2)
948UsingTree(test, TestOptions.Regular, 1003UsingTree(test, TestOptions.Regular,
Microsoft.CodeAnalysis.CSharp.Test.Utilities (26)
TestOptions.cs (26)
20public static readonly CSharpParseOptions Script = Regular.WithKind(SourceCodeKind.Script); 21public static readonly CSharpParseOptions Regular1 = Regular.WithLanguageVersion(LanguageVersion.CSharp1); 22public static readonly CSharpParseOptions Regular2 = Regular.WithLanguageVersion(LanguageVersion.CSharp2); 23public static readonly CSharpParseOptions Regular3 = Regular.WithLanguageVersion(LanguageVersion.CSharp3); 24public static readonly CSharpParseOptions Regular4 = Regular.WithLanguageVersion(LanguageVersion.CSharp4); 25public static readonly CSharpParseOptions Regular5 = Regular.WithLanguageVersion(LanguageVersion.CSharp5); 26public static readonly CSharpParseOptions Regular6 = Regular.WithLanguageVersion(LanguageVersion.CSharp6); 27public static readonly CSharpParseOptions Regular7 = Regular.WithLanguageVersion(LanguageVersion.CSharp7); 28public static readonly CSharpParseOptions Regular7_1 = Regular.WithLanguageVersion(LanguageVersion.CSharp7_1); 29public static readonly CSharpParseOptions Regular7_2 = Regular.WithLanguageVersion(LanguageVersion.CSharp7_2); 30public static readonly CSharpParseOptions Regular7_3 = Regular.WithLanguageVersion(LanguageVersion.CSharp7_3); 31public static readonly CSharpParseOptions RegularDefault = Regular.WithLanguageVersion(LanguageVersion.Default); 37public static readonly CSharpParseOptions RegularNext = Regular.WithLanguageVersion(LanguageVersion.Preview); 39public static readonly CSharpParseOptions RegularPreview = Regular.WithLanguageVersion(LanguageVersion.Preview); 40public static readonly CSharpParseOptions Regular8 = Regular.WithLanguageVersion(LanguageVersion.CSharp8); 41public static readonly CSharpParseOptions Regular9 = Regular.WithLanguageVersion(LanguageVersion.CSharp9); 42public static readonly CSharpParseOptions Regular10 = Regular.WithLanguageVersion(LanguageVersion.CSharp10); 43public static readonly CSharpParseOptions Regular11 = Regular.WithLanguageVersion(LanguageVersion.CSharp11); 44public static readonly CSharpParseOptions Regular12 = Regular.WithLanguageVersion(LanguageVersion.CSharp12); 45public static readonly CSharpParseOptions Regular13 = Regular.WithLanguageVersion(LanguageVersion.CSharp13); 46public static readonly CSharpParseOptions RegularWithDocumentationComments = Regular.WithDocumentationMode(DocumentationMode.Diagnose); 48public static readonly CSharpParseOptions RegularWithLegacyStrongName = Regular.WithFeature("UseLegacyStrongNameProvider"); 49public static readonly CSharpParseOptions WithoutImprovedOverloadCandidates = Regular.WithLanguageVersion(MessageID.IDS_FeatureImprovedOverloadCandidates.RequiredVersion() - 1); 50public static readonly CSharpParseOptions WithCovariantReturns = Regular.WithLanguageVersion(MessageID.IDS_FeatureCovariantReturnsForOverrides.RequiredVersion()); 51public static readonly CSharpParseOptions WithoutCovariantReturns = Regular.WithLanguageVersion(LanguageVersion.CSharp8); 54public static readonly CSharpParseOptions RegularWithFileScopedNamespaces = Regular.WithLanguageVersion(MessageID.IDS_FeatureFileScopedNamespace.RequiredVersion());
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (1)
CodeGen\WinMdEventTests.cs (1)
623var comp1 = CreateEmptyCompilation(source1, WinRtRefs, TestOptions.ReleaseWinMD, TestOptions.Regular, "Lib");
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Emit\CompilationOutputFilesTests.cs (1)
31var compilation = CSharpTestBase.CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, assemblyName: "lib");
Emit\CompilationOutputsTests.cs (1)
54var compilation = CSharpTestBase.CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, assemblyName: "lib");
Microsoft.CodeAnalysis.Features.UnitTests (5)
EditAndContinue\EditAndContinueMethodDebugInfoReaderTests.cs (1)
63var tree = CSharpTestSource.Parse(source, path: "/a/c.cs", options: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), checksumAlgorithm: SourceHashAlgorithm.Sha1);
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (4)
68var sourceTreeA1 = SyntaxFactory.ParseSyntaxTree(SourceText.From(sourceBytesA1, sourceBytesA1.Length, encodingA, SourceHashAlgorithms.Default), TestOptions.Regular, sourceFileA.Path); 69var sourceTreeB1 = SyntaxFactory.ParseSyntaxTree(SourceText.From(sourceBytesB1, sourceBytesB1.Length, encodingB, SourceHashAlgorithms.Default), TestOptions.Regular, sourceFileB.Path); 70var sourceTreeC1 = SyntaxFactory.ParseSyntaxTree(SourceText.From(sourceBytesC1, sourceBytesC1.Length, encodingC, SourceHashAlgorithm.Sha1), TestOptions.Regular, sourceFileC.Path); 2596var compilationV1 = CSharpTestBase.CreateCompilation(sourceV1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: DefaultTargetFramework, assemblyName: "lib");
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
ProjectSystemShim\VisualStudioCompilationOutputFilesTests.cs (1)
38var compilation = CSharpTestBase.CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, assemblyName: "lib");