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