25644 references to TestOptions
InteractiveHost.UnitTests (2)
AbstractInteractiveHostTests.cs (2)
201
options: fileName.EndsWith(".exe", StringComparison.OrdinalIgnoreCase) ?
TestOptions
.ReleaseExe :
TestOptions
.ReleaseDll);
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (38)
src\Analyzers\CSharp\Tests\AddParameter\AddParameterTests.cs (5)
2815
""", parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp9));
2925
""", parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp9));
2941
""", parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp12));
2967
""", parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp9));
2983
""", 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\ImplementAbstractClass\ImplementAbstractClassTests.cs (6)
567
parseOptions:
TestOptions
.Regular7);
1798
parseOptions:
TestOptions
.Regular7);
2159
""", parseOptions:
TestOptions
.RegularPreview);
2190
""", parseOptions:
TestOptions
.RegularPreview);
2221
""", parseOptions:
TestOptions
.RegularPreview);
2250
""", parseOptions:
TestOptions
.RegularPreview);
src\Analyzers\CSharp\Tests\RemoveUnusedLocalFunction\RemoveUnusedLocalFunctionTests.cs (1)
154
""",
TestOptions
.Regular);
src\Analyzers\CSharp\Tests\UseAutoProperty\UseAutoPropertyTests.cs (1)
109
""", new TestParameters(
TestOptions
.RegularPreview));
src\Analyzers\CSharp\Tests\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzerTests.cs (1)
657
var testParameters = new TestParameters(options: options, parseOptions:
TestOptions
.Regular8);
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 (11)
CommandLineIVTTests.cs (4)
22
var comp1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, assemblyName: "N1", targetFramework: TargetFramework.Mscorlib461);
99
var comp1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, assemblyName: "N1", targetFramework: TargetFramework.Mscorlib461);
177
var comp1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, assemblyName: "N1", targetFramework: TargetFramework.Mscorlib461);
260
var comp1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, assemblyName: "N1", targetFramework: TargetFramework.Mscorlib461);
CommandLineTests.cs (7)
7342
var compilation = CSharpCompilation.Create("a.dll", references: new[] { MscorlibRef }, options:
TestOptions
.ReleaseDll);
7453
var compilation = CSharpCompilation.Create("a.dll", options:
TestOptions
.ReleaseDll);
9776
var comp = CreateEmptyCompilation(string.Empty, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
9779
comp = CreateEmptyCompilation(string.Empty, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
11745
var csc32 = CreateCompilationWithMscorlib46(csc32src, options:
TestOptions
.ReleaseExe.WithPlatform(Platform.X86), assemblyName: "csc32");
14238
options:
TestOptions
.DebugDll.WithCryptoKeyFile(Path.GetFileName(snk.Path)).WithStrongNameProvider(virtualSnProvider),
15637
var comp = CreateCompilation(src, options:
TestOptions
.DebugExe.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress));
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (63)
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),
CodeActions\AddUsing\AddUsingTests.cs (1)
2063
TestOptions
.ReleaseDll.WithMetadataReferenceResolver(resolver));
CodeActions\GenerateType\GenerateTypeTests.cs (2)
1676
parseOptions:
TestOptions
.Regular7);
1830
parseOptions:
TestOptions
.Regular7);
CodeActions\MoveType\CSharpMoveTypeTestsBase.cs (1)
14
protected override ParseOptions GetScriptOptions() =>
TestOptions
.Script;
Completion\CompletionProviders\OverrideCompletionProviderTests.cs (2)
2839
<Project Language=""C#"" AssemblyName=""Assembly1"" CommonReferences=""true"" LanguageVersion=""{
TestOptions
.Regular11.LanguageVersion.ToDisplayString()}"">
2878
<Project Language=""C#"" AssemblyName=""Assembly1"" CommonReferences=""true"" LanguageVersion=""{
TestOptions
.Regular11.LanguageVersion.ToDisplayString()}"">
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);
777
using var workspace = EditorTestWorkspace.CreateCSharp("class Class { }",
TestOptions
.Regular, composition: s_compositionWithMockDiagnosticUpdateSourceRegistrationService);
ExtractMethod\ExtractMethodBase.cs (1)
189
using var workspace = EditorTestWorkspace.CreateCSharp(code, CodeAnalysis.CSharp.Test.Utilities.
TestOptions
.Regular);
Formatting\FormattingEngineTests.cs (1)
2220
var tree = SyntaxFactory.ParseSyntaxTree(code, options:
TestOptions
.Script);
Formatting\Indentation\SmartIndenterTests.cs (8)
1725
options:
TestOptions
.Script);
1742
options:
TestOptions
.Script);
3454
: new[] {
TestOptions
.Regular,
TestOptions
.Script };
3510
: new[] {
TestOptions
.Regular,
TestOptions
.Script };
3539
: new[] {
TestOptions
.Regular,
TestOptions
.Script };
Interactive\BraceMatching\InteractiveBraceHighlightingTests.cs (4)
53
using var workspace = EditorTestWorkspace.CreateCSharp(code, parseOptions:
TestOptions
.Script);
81
using var workspace = EditorTestWorkspace.CreateCSharp(code,
TestOptions
.Script);
110
using var workspace = EditorTestWorkspace.CreateCSharp(code, parseOptions:
TestOptions
.Script);
166
using var workspace = EditorTestWorkspace.CreateCSharp(code, parseOptions:
TestOptions
.Script);
KeywordHighlighting\AbstractCSharpKeywordHighlighterTests.cs (2)
22
yield return
TestOptions
.Regular;
23
yield return
TestOptions
.Script;
QuickInfo\SemanticQuickInfoSourceTests.cs (15)
7922
await TestWithOptionsAsync(
TestOptions
.Regular8,
7941
await TestWithOptionsAsync(
TestOptions
.Regular8,
7961
await TestWithOptionsAsync(
TestOptions
.Regular8,
7982
await TestWithOptionsAsync(
TestOptions
.Regular8,
8004
await TestWithOptionsAsync(
TestOptions
.Regular8,
8025
await TestWithOptionsAsync(
TestOptions
.Regular8,
8047
await TestWithOptionsAsync(
TestOptions
.Regular8,
8073
await TestWithOptionsAsync(
TestOptions
.Regular8,
8099
await TestWithOptionsAsync(
TestOptions
.Regular8,
8121
await TestWithOptionsAsync(
TestOptions
.Regular8,
8143
await TestWithOptionsAsync(
TestOptions
.Regular7_3,
8165
await TestWithOptionsAsync(
TestOptions
.Regular8,
8207
await TestWithOptionsAsync(
TestOptions
.Regular8,
8229
await TestWithOptionsAsync(
TestOptions
.Regular8,
8365
await TestWithOptionsAsync(
TestOptions
.Regular8,
Semantics\SpeculationAnalyzerTests.cs (1)
533
TestOptions
.ReleaseDll.WithSpecificDiagnosticOptions([KeyValuePairUtil.Create("CS0219", ReportDiagnostic.Suppress)]));
TextStructureNavigation\TextStructureNavigatorTests.cs (1)
495
TestNavigator(code, func, startPosition, startLength, endPosition, endLength,
TestOptions
.Script);
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (7)
Recommendations\BaseKeywordRecommenderTests.cs (1)
97
""", absent: false, options:
TestOptions
.RegularPreview);
Recommendations\EventKeywordRecommenderTests.cs (1)
318
""", absent: false, options:
TestOptions
.RegularPreview);
Recommendations\FieldKeywordRecommenderTests.cs (1)
126
""", absent: false,
TestOptions
.RegularPreview);
Recommendations\OverrideKeywordRecommenderTests.cs (1)
161
""", absent: false, options:
TestOptions
.RegularPreview);
Recommendations\RecordKeywordRecommenderTests.cs (3)
316
""", absent: false, options:
TestOptions
.RegularPreview);
328
""", absent: false, options:
TestOptions
.RegularPreview);
341
""", absent: false, options:
TestOptions
.RegularPreview);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3348)
BreakingChanges.cs (11)
197
var tree = Parse(text, options:
TestOptions
.RegularWithDocumentationComments);
216
var tree = Parse(text, options:
TestOptions
.RegularWithDocumentationComments);
407
var strictCompilation = CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithStrictFeature());
776
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1410
compilationOptions:
TestOptions
.ReleaseDll);
1416
compilationOptions:
TestOptions
.ReleaseDll,
1423
compilationOptions:
TestOptions
.ReleaseDll,
1436
compilationOptions:
TestOptions
.ReleaseExe,
1604
var comp = CreateCompilation(source, new[] { libRef },
TestOptions
.ReleaseExe);
1629
var comp = CreateCompilation(source, new[] { libRef },
TestOptions
.ReleaseExe);
1680
var comp = CreateCompilation(source, new[] { libRef },
TestOptions
.ReleaseExe);
CodeGen\CodeGenAsyncEHTests.cs (13)
940
var v = CompileAndVerify(source, s_asyncRefs, targetFramework: TargetFramework.Empty, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: expected, symbolValidator: module =>
2170
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
2171
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
2267
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
2268
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
2335
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
2336
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
2413
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput,
2415
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput,
2472
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
2473
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
2543
CompileAndVerify(CreateCompilationWithTasksExtensions(sources, options:
TestOptions
.DebugExe), expectedOutput: expectedOutput).VerifyDiagnostics();
2544
CompileAndVerify(CreateCompilationWithTasksExtensions(sources, options:
TestOptions
.ReleaseExe), expectedOutput: expectedOutput).VerifyDiagnostics();
CodeGen\CodeGenAsyncIteratorTests.cs (134)
180
}", options:
TestOptions
.DebugExe);
359
}", options:
TestOptions
.DebugExe);
524
}",
TestOptions
.ReleaseExe);
558
}",
TestOptions
.ReleaseExe);
586
var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, references: new[] { CSharpRef },
TestOptions
.ReleaseExe);
615
var comp = CreateCompilationWithTasksExtensions(new[] { source }, parseOptions:
TestOptions
.Regular7_3);
618
comp = CreateCompilationWithTasksExtensions(new[] { source }, parseOptions:
TestOptions
.Regular8);
657
var comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe);
660
comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular13);
663
comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular12);
709
var comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular12);
715
comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular13);
718
comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe);
868
var comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular12);
874
comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular13);
877
comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe);
916
var comp = CreateCompilationWithAsyncIterator(source, parseOptions:
TestOptions
.Regular12);
929
comp = CreateCompilationWithAsyncIterator(source, parseOptions:
TestOptions
.Regular13);
1093
var comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugDll);
1140
var comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugDll);
1167
var comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugDll);
1861
var comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe);
1923
var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, parseOptions:
TestOptions
.Regular7_3);
1926
comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, parseOptions:
TestOptions
.Regular8);
2187
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations: 2), source }, options:
TestOptions
.DebugExe);
2360
var comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe);
2401
var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options:
TestOptions
.DebugExe);
2479
var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options:
TestOptions
.DebugExe);
2528
var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options:
TestOptions
.DebugExe);
2573
var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options:
TestOptions
.DebugExe);
2616
var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options:
TestOptions
.DebugExe);
2646
foreach (var options in new[] {
TestOptions
.DebugExe,
TestOptions
.ReleaseExe })
2672
if (options ==
TestOptions
.DebugExe)
2877
if (options ==
TestOptions
.DebugExe)
3205
var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options:
TestOptions
.ReleaseDll);
3473
var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
3742
var comp = CreateCompilationWithTasksExtensions(new[] { source, EnumeratorCancellationAttributeType, AsyncStreamsTypes }, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular9);
4006
var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options:
TestOptions
.ReleaseDll);
4246
var comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe);
4279
var comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe);
4311
var comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe);
4344
var comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe);
4395
var comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe);
4426
var comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe);
4455
var comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe);
4478
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
4512
var comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe);
4556
var comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe);
4584
var comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe);
4657
var comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe);
4692
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
4740
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
4781
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
4827
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
4876
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
4920
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
4974
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
5018
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
5064
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
5117
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
5150
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
5181
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
5246
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
5280
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
5311
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
5343
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
5378
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
5412
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
5451
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
5491
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
5569
var comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe);
5662
var comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe);
5697
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
5727
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
5758
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
5791
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
6183
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
6217
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
6258
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
6297
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
6333
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
6367
var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options:
TestOptions
.DebugExe);
6409
var comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe);
6437
var comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe);
6650
var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options:
TestOptions
.DebugExe);
6673
var comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe);
6703
var comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe);
6749
var comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe);
6826
var comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe);
6890
var comp = CreateCompilationWithAsyncIterator(source, options:
TestOptions
.DebugExe);
6939
var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options:
TestOptions
.DebugExe);
6991
var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
7042
var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options:
TestOptions
.DebugExe);
7090
var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options:
TestOptions
.DebugExe);
7139
foreach (var options in new[] {
TestOptions
.DebugExe,
TestOptions
.ReleaseExe })
7272
foreach (var options in new[] {
TestOptions
.DebugExe,
TestOptions
.ReleaseExe })
7274
var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: options, parseOptions:
TestOptions
.Regular9);
7404
foreach (var options in new[] {
TestOptions
.DebugExe,
TestOptions
.ReleaseExe })
7449
var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options:
TestOptions
.DebugExe);
7495
var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options:
TestOptions
.DebugExe);
7553
foreach (var options in new[] {
TestOptions
.DebugExe,
TestOptions
.ReleaseExe })
7613
foreach (var options in new[] {
TestOptions
.DebugExe,
TestOptions
.ReleaseExe })
7617
var comp = CreateCompilationWithAsyncIterator(new[] { source.Replace("SOURCETOCANCEL", sourceToCancel), EnumeratorCancellationAttributeType }, options: options, parseOptions:
TestOptions
.Regular9);
7652
var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options:
TestOptions
.DebugExe);
7679
var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType },
TestOptions
.DebugExe);
7710
var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType },
TestOptions
.DebugExe,
TestOptions
.Regular9);
7936
var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options:
TestOptions
.DebugExe);
7980
var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options:
TestOptions
.DebugExe);
8038
var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options:
TestOptions
.DebugExe);
8069
var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
8118
var comp = CreateCompilationWithTasksExtensions(new[] { source, EnumeratorCancellationAttributeType, AsyncStreamsTypes }, parseOptions:
TestOptions
.Regular9);
8168
var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
8231
}", options:
TestOptions
.DebugExe);
8280
}", options:
TestOptions
.DebugExe);
8329
}", options:
TestOptions
.DebugExe);
8597
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugExe);
10295
verify: Verification.Skipped, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugExe);
10531
comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, references: [libS2, missingLibS1], targetFramework: TargetFramework.Net80);
CodeGen\CodeGenAsyncLocalsTests.cs (16)
149
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expected);
150
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expected);
236
CompileAndVerify(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
249
CompileAndVerify(source, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
288
CompileAndVerify(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
306
var vd = CompileAndVerify(source, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
962
var comp = CreateCompilationWithMscorlib461("", new[] { reference }, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
992
var c = CompileAndVerify(source, expectedOutput: null, options:
TestOptions
.ReleaseDll);
1150
var c = CompileAndVerify(source, expectedOutput: null, options:
TestOptions
.ReleaseDll);
1247
CompileAndVerify(source, targetFramework: TargetFramework.Empty, references: s_asyncRefs, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
1301
var verifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"1", verify: Verification.Fails);
1406
verifier = CompileAndVerify(text, options:
TestOptions
.UnsafeDebugExe, expectedOutput: @"1", verify: Verification.Fails);
1558
var verifier = CompileAndVerify(text, options:
TestOptions
.ReleaseExe, expectedOutput: @"2");
1691
verifier = CompileAndVerify(text, options:
TestOptions
.DebugExe, expectedOutput: @"2");
1883
var verifier = CompileAndVerify(text, options:
TestOptions
.ReleaseExe, expectedOutput: @"2");
2016
verifier = CompileAndVerify(text, options:
TestOptions
.DebugExe, expectedOutput: @"2");
CodeGen\CodeGenAsyncMainTests.cs (111)
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));
362
var corCompilation = CreateEmptyCompilation(corAssembly, options:
TestOptions
.DebugDll);
369
var taskCompilation = CreateCompilationWithMscorlib461(taskAssembly, options:
TestOptions
.DebugDll);
381
var sourceCompilation = CreateEmptyCompilation(source, new[] { corCompilation.ToMetadataReference(), taskCompilation.ToMetadataReference() }, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1));
402
var corCompilation = CreateEmptyCompilation(corAssembly, options:
TestOptions
.DebugDll);
409
var taskCompilation = CreateCompilationWithMscorlib461(taskAssembly, options:
TestOptions
.DebugDll);
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(
1095
CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
1116
CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe).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(
1192
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
1220
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)).VerifyDiagnostics(
1246
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("A")).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(
1341
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
1368
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("A")).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));
1566
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithOptimizationLevel(OptimizationLevel.Release));
1808
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithOptimizationLevel(OptimizationLevel.Release));
1982
var comp = CreateCompilationWithTasksExtensions(source, options:
TestOptions
.ReleaseExe);
2004
var comp = CreateCompilationWithTasksExtensions(source, options:
TestOptions
.ReleaseExe);
2064
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
CodeGen\CodeGenAsyncMethodBuilderOverrideTests.cs (49)
116
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Regular9);
129
compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Regular10);
226
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Regular10);
277
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
331
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
369
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
407
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
447
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
485
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
522
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Regular9);
535
compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Regular10);
571
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
617
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
659
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
696
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
766
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Regular9);
787
compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Regular10);
820
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Regular9);
842
compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Regular10);
883
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
941
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
983
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
1027
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
1070
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
1110
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
1151
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
1192
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
1241
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
1285
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
1319
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
1349
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
1401
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
1442
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
1476
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
1538
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
1578
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
1618
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
1658
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
1702
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
1742
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
1782
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
1822
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
1862
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
1902
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
1942
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.RegularPreview);
2007
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
2063
var compilation = CreateCompilationWithTasksExtensions(source, parseOptions:
TestOptions
.RegularPreview);
2098
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
2135
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
CodeGen\CodeGenAsyncSpillTests.cs (42)
596
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll);
759
var v = CompileAndVerify(source, options:
TestOptions
.ReleaseDll);
912
CompileAndVerify(source, options:
TestOptions
.DebugDll);
945
CompileAndVerify(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
960
CompileAndVerify(source, verify: Verification.Passes, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
1144
CompileAndVerify(source, options:
TestOptions
.DebugDll);
3031
CompileAndVerify(source, expectedOutput: "", options:
TestOptions
.ReleaseExe);
3032
CompileAndVerify(source, expectedOutput: "", options:
TestOptions
.DebugExe);
3060
CompileAndVerify(source, expectedOutput: "43", options:
TestOptions
.DebugExe);
3061
CompileAndVerify(source, expectedOutput: "43", options:
TestOptions
.ReleaseExe);
3089
CompileAndVerify(source, expectedOutput: "43", options:
TestOptions
.ReleaseExe);
3090
CompileAndVerify(source, expectedOutput: "43", options:
TestOptions
.DebugExe);
3116
CompileAndVerify(source, expectedOutput: "", options:
TestOptions
.ReleaseExe);
3117
CompileAndVerify(source, expectedOutput: "", options:
TestOptions
.DebugExe);
3473
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.ReleaseExe);
3578
var v = CompileAndVerify(source, options:
TestOptions
.DebugExe);
3708
var comp = CreateCompilationWithMscorlibAndSpan(source, options:
TestOptions
.DebugExe);
3715
comp = CreateCompilationWithMscorlibAndSpan(source, options:
TestOptions
.ReleaseExe);
3750
var comp = CreateCompilationWithMscorlibAndSpan(source, options:
TestOptions
.DebugExe);
3757
comp = CreateCompilationWithMscorlibAndSpan(source, options:
TestOptions
.ReleaseExe);
3787
foreach (var options in new[] {
TestOptions
.DebugExe,
TestOptions
.ReleaseExe })
3844
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: "2");
3845
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: "2");
3910
CreateCompilation(source, options:
TestOptions
.DebugDll).VerifyDiagnostics().VerifyEmitDiagnostics(expectedDiagnostics);
3911
CreateCompilation(source, options:
TestOptions
.ReleaseDll).VerifyDiagnostics().VerifyEmitDiagnostics(expectedDiagnostics);
3942
CompileAndVerify(source, expectedOutput: "42", options:
TestOptions
.DebugExe);
3943
CompileAndVerify(source, expectedOutput: "42", options:
TestOptions
.ReleaseExe);
3980
CompileAndVerify(source, expectedOutput: "True", options:
TestOptions
.DebugExe);
3981
CompileAndVerify(source, expectedOutput: "True", options:
TestOptions
.ReleaseExe);
4065
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4289
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4508
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4698
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4890
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
5083
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
5268
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
5468
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
5682
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
5923
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
6168
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
6334
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
CodeGen\CodeGenAsyncTests.cs (87)
28
options = options ??
TestOptions
.ReleaseExe;
65
options =
TestOptions
.ReleaseExe;
74
options =
TestOptions
.ReleaseDebugExe;
83
options =
TestOptions
.DebugExe;
875
CompileAndVerify(source, expectedOutput: "0", options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails);
917
CompileAndVerify(source, options:
TestOptions
.UnsafeDebugExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "11", symbolValidator: debugSymbolValidator, verify: Verification.Fails)
919
CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "11", symbolValidator: releaseSymbolValidator, verify: Verification.Fails)
976
CompileAndVerify(source, options:
TestOptions
.UnsafeDebugExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "11", symbolValidator: debugSymbolValidator, verify: Verification.Fails)
978
CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "10", symbolValidator: releaseSymbolValidator, verify: Verification.Fails)
1041
CreateCompilation(source, options:
TestOptions
.UnsafeDebugExe).VerifyDiagnostics(
1067
CreateCompilation(source, options:
TestOptions
.UnsafeDebugExe.WithWarningLevel(7)).VerifyDiagnostics(
1148
CompileAndVerify(source, expectedOutput: "0", options:
TestOptions
.UnsafeDebugExe, verify: Verification.Passes);
1209
CompileAndVerify(source, expectedOutput: "0", options:
TestOptions
.UnsafeDebugExe, verify: Verification.Passes);
1250
CompileAndVerify(source, expectedOutput: "0", options:
TestOptions
.UnsafeDebugExe, verify: Verification.Passes);
1309
CompileAndVerify(source, "0", options:
TestOptions
.UnsafeDebugExe);
1393
CompileAndVerify(source, "0", options:
TestOptions
.UnsafeDebugExe);
1455
CompileAndVerify(source, "0", options:
TestOptions
.UnsafeDebugExe);
2340
var c = CompileAndVerify(source, options:
TestOptions
.ReleaseDebugExe, expectedOutput: expected);
2488
var c = CompileAndVerify(source, expectedOutput: expected, options:
TestOptions
.DebugExe);
3311
var comp = CSharpTestBase.CreateEmptyCompilation(source, new[] { Net40.References.mscorlib },
TestOptions
.ReleaseDll); // NOTE: 4.0, not 4.5, so it's missing the async helpers.
3341
var comp = CSharpTestBase.CreateEmptyCompilation(source, new[] { Net40.References.mscorlib },
TestOptions
.ReleaseDll); // NOTE: 4.0, not 4.5, so it's missing the async helpers.
3372
var comp = CSharpTestBase.CreateEmptyCompilation(source, new[] { Net40.References.mscorlib },
TestOptions
.ReleaseDll); // NOTE: 4.0, not 4.5, so it's missing the async helpers.
3451
var v = CompileAndVerify(source, null, options:
TestOptions
.ReleaseDll);
3549
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3619
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3644
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3672
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3697
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3784
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3835
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3868
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3914
var v = CompileAndVerify(source, null, options:
TestOptions
.ReleaseDll);
3992
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
4075
var comp1 = CreateCompilation(source1, options:
TestOptions
.DebugExe);
4109
var comp2 = CreateCompilation(source2, options:
TestOptions
.DebugExe);
4236
var v = CompileAndVerify(source, null, options:
TestOptions
.DebugDll);
4383
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
4420
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
4424
CompileAndVerify(comp.WithOptions(
TestOptions
.ReleaseExe), expectedOutput: expectedOutput);
4457
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
4459
CompileAndVerify(comp.WithOptions(
TestOptions
.ReleaseExe));
4498
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
4500
CompileAndVerify(comp.WithOptions(
TestOptions
.ReleaseExe), expectedOutput: "0");
4508
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe);
4517
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe);
4527
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe);
4542
var s0 = CSharpCompilation.CreateScriptCompilation("s0.dll", SyntaxFactory.ParseSyntaxTree(source0, options:
TestOptions
.Script), references);
4543
var s1 = CSharpCompilation.CreateScriptCompilation("s1.dll", SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.Script), references, previousScriptCompilation: s0);
4553
var s0 = CSharpCompilation.CreateScriptCompilation("s0.dll", SyntaxFactory.ParseSyntaxTree(source0, options:
TestOptions
.Script), references);
4571
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe);
4605
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
4607
CompileAndVerify(comp.WithOptions(
TestOptions
.ReleaseExe));
4643
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4700
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
4702
CompileAndVerify(comp.WithOptions(
TestOptions
.ReleaseExe));
4741
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
4743
CompileAndVerify(comp.WithOptions(
TestOptions
.ReleaseExe));
4791
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
4800
CompileAndVerify(comp.WithOptions(
TestOptions
.ReleaseExe), expectedOutput: expectedOutput);
4844
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
4853
CompileAndVerify(comp.WithOptions(
TestOptions
.ReleaseExe), expectedOutput: expectedOutput);
4902
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
4913
CompileAndVerify(comp.WithOptions(
TestOptions
.ReleaseExe), expectedOutput: expectedOutput);
5042
var compilation = CreateCompilation(source, options:
TestOptions
.DebugDll);
5088
var compilation = CreateCompilation(source, options:
TestOptions
.DebugDll);
5122
var compilation = CreateCompilation(source, options:
TestOptions
.DebugDll);
5157
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
5209
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
5252
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
5255
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
5291
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
5294
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
5323
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
5497
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
5734
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
5753
var c = CreateCompilation(source, options:
TestOptions
.DebugDll);
5790
var comp = CSharpTestBase.CreateCompilation(source, options:
TestOptions
.ReleaseExe);
5823
var comp = CSharpTestBase.CreateCompilation(source, options:
TestOptions
.ReleaseExe);
5877
CompileAndVerify(source, options:
TestOptions
.DebugExe, verify: Verification.Skipped, expectedOutput: "0123").VerifyDiagnostics(diags);
5878
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, verify: Verification.Skipped, expectedOutput: "0123").VerifyDiagnostics(diags);
5907
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
5909
comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
5933
var comp = CSharpTestBase.CreateCompilation(source, options:
TestOptions
.ReleaseDll);
CodeGen\CodeGenAwaitForeachTests.cs (242)
42
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions:
TestOptions
.Regular7_3);
45
comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions:
TestOptions
.Regular8);
72
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions:
TestOptions
.Regular7_3);
75
comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions:
TestOptions
.Regular8);
176
var comp_checked = CreateCompilationWithTasksExtensions(new[] { source.Replace("REPLACE", "checked"), s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
180
var comp_unchecked = CreateCompilationWithTasksExtensions(new[] { source.Replace("REPLACE", "unchecked"), s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
382
var comp = CreateCompilationWithMscorlib46(source, parseOptions: useCsharp8 ?
TestOptions
.Regular8 :
TestOptions
.Regular9);
816
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe);
851
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe);
1038
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
1082
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
1139
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
1179
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
1222
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
1269
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
1312
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
1594
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
1700
var comp = CreateCompilationWithTasksExtensions(source, parseOptions:
TestOptions
.Regular12);
1713
comp = CreateCompilationWithTasksExtensions(source, parseOptions:
TestOptions
.Regular13);
1767
var comp = CreateCompilationWithTasksExtensions(source, parseOptions:
TestOptions
.Regular12);
1775
comp = CreateCompilationWithTasksExtensions(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular13);
1778
comp = CreateCompilationWithTasksExtensions(source, options:
TestOptions
.ReleaseExe);
1818
var comp = CreateCompilationWithTasksExtensions(source, parseOptions:
TestOptions
.Regular12);
1831
comp = CreateCompilationWithTasksExtensions(source, parseOptions:
TestOptions
.Regular13);
1857
var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options:
TestOptions
.UnsafeDebugDll);
2059
var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options:
TestOptions
.DebugExe);
2089
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
2104
CreateCompilation(source, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
2138
CreateCompilationWithTasksExtensions(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
2153
CreateCompilationWithTasksExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
2180
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
2195
CreateCompilation(source, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
2233
var comp = CreateCompilationWithTasksExtensions(source, options:
TestOptions
.ReleaseExe);
2280
var comp = CreateCompilationWithTasksExtensions(source, options:
TestOptions
.ReleaseExe);
2378
CreateCompilationWithTasksExtensions(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
2382
var comp = CreateCompilationWithTasksExtensions(source, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.ReleaseExe);
2385
comp = CreateCompilationWithTasksExtensions(source, options:
TestOptions
.ReleaseExe);
2449
CreateCompilationWithTasksExtensions(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
2453
var comp = CreateCompilationWithTasksExtensions(source, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.ReleaseExe);
2456
comp = CreateCompilationWithTasksExtensions(source, options:
TestOptions
.ReleaseExe);
2509
CompileAndVerify(source, parseOptions:
TestOptions
.Regular12, expectedOutput: expectedOutput, verify: Verification.FailsILVerify).VerifyDiagnostics();
2510
CompileAndVerify(source, parseOptions:
TestOptions
.Regular13, expectedOutput: expectedOutput, verify: Verification.FailsILVerify).VerifyDiagnostics();
2561
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
2607
CreateCompilationWithTasksExtensions(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
2614
var comp = CreateCompilationWithTasksExtensions(source, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.ReleaseExe);
2617
comp = CreateCompilationWithTasksExtensions(source, options:
TestOptions
.ReleaseExe);
2671
CreateCompilationWithTasksExtensions(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
2678
var comp = CreateCompilationWithTasksExtensions(source, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.ReleaseExe);
2681
comp = CreateCompilationWithTasksExtensions(source, options:
TestOptions
.ReleaseExe);
2715
CreateCompilationWithTasksExtensions(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
2727
CreateCompilationWithTasksExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
2779
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
2786
CompileAndVerify(source, parseOptions:
TestOptions
.Regular13, expectedOutput: expectedOutput).VerifyDiagnostics();
2819
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
2831
CreateCompilation(source, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
2912
var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options:
TestOptions
.DebugExe);
2963
var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options:
TestOptions
.DebugExe);
3028
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
3066
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
3106
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
3157
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
3198
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
3287
var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options:
TestOptions
.DebugExe);
3345
var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options:
TestOptions
.DebugExe);
3541
var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options:
TestOptions
.DebugExe);
3708
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
3781
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
4051
var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options:
TestOptions
.DebugExe);
4105
var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options:
TestOptions
.DebugExe);
4161
var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options:
TestOptions
.DebugExe);
4216
var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options:
TestOptions
.DebugExe);
4307
var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options:
TestOptions
.DebugExe);
4367
var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options:
TestOptions
.DebugExe);
4456
var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options:
TestOptions
.DebugExe);
4529
var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options:
TestOptions
.DebugExe);
4585
var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options:
TestOptions
.DebugExe);
4639
var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options:
TestOptions
.DebugExe);
4739
var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options:
TestOptions
.DebugExe);
4818
var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options:
TestOptions
.DebugExe);
4853
var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options:
TestOptions
.DebugExe);
4899
var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options:
TestOptions
.DebugExe);
5042
var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options:
TestOptions
.DebugExe);
5123
var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options:
TestOptions
.DebugExe);
5349
var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options:
TestOptions
.DebugExe);
5623
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
5719
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
5764
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
5807
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
5855
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
5899
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
6033
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
6077
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
6123
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
6168
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
6223
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.ReleaseExe);
6243
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
6268
CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, parseOptions:
TestOptions
.Regular9)
6295
CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, parseOptions:
TestOptions
.Regular9)
6322
var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
6346
var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
6367
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
6400
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
6433
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
6476
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
6506
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
6536
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
6568
var comp = CreateCompilationWithMscorlib46(source, parseOptions:
TestOptions
.Regular9);
6604
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
6640
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
6676
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
6713
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
6754
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
6789
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
6820
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
6852
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
6882
CreateCompilationWithMscorlib46(source, parseOptions:
TestOptions
.Regular9)
6918
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
6951
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
6982
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
7012
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
7043
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
7073
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
7103
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
7133
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
7168
options:
TestOptions
.DebugExe,
7169
parseOptions:
TestOptions
.Regular9);
7201
var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
7237
var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
7270
var comp = CreateCompilationWithMscorlib46(source, parseOptions:
TestOptions
.Regular9);
7308
var comp = CreateCompilationWithMscorlib46(source, parseOptions:
TestOptions
.Regular9);
7352
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
7388
var comp = CreateCompilationWithMscorlib46(source, parseOptions:
TestOptions
.Regular9);
7439
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
7472
CreateCompilationWithCSharp(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9)
7509
var comp = CreateCompilationWithMscorlib46(source, parseOptions:
TestOptions
.Regular9);
7549
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
7589
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
7629
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
7663
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
7707
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
7749
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
7785
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
7825
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
7859
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
7896
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
7926
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
7963
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
7993
var comp = CreateCompilationWithMscorlib46(source, parseOptions:
TestOptions
.Regular9);
8026
var comp = CreateCompilationWithMscorlib46(source, parseOptions:
TestOptions
.Regular9);
8059
var comp = CreateCompilationWithMscorlib46(source, parseOptions:
TestOptions
.Regular9);
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));
8162
var comp = CreateCompilationWithMscorlib46(source, parseOptions:
TestOptions
.Regular8);
8195
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
8225
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
8254
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
8298
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
8337
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
8374
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
8407
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
8440
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
8474
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
8507
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
8537
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
8573
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
8620
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
8653
CreateCompilationWithMscorlib46(source, parseOptions:
TestOptions
.Regular9)
8687
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
8738
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
8787
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
8838
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
8892
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
8932
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
8967
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
8998
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
9037
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
9088
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe,
9089
parseOptions: withCSharp8 ?
TestOptions
.Regular8 :
TestOptions
.Regular7_3);
9164
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe,
9165
parseOptions: withCSharp8 ?
TestOptions
.Regular8 :
TestOptions
.Regular7_3);
9242
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe,
9243
parseOptions: withCSharp8 ?
TestOptions
.Regular8 :
TestOptions
.Regular7_3);
9315
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
9374
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe,
9375
parseOptions: withCSharp8 ?
TestOptions
.Regular8 :
TestOptions
.Regular7_3);
9481
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
CodeGen\CodeGenAwaitUsingTests.cs (73)
36
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, parseOptions:
TestOptions
.Regular7_3);
62
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, parseOptions:
TestOptions
.Regular7_3);
171
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
213
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
240
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.UnsafeDebugDll);
297
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
321
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
328
comp = CreateCompilationWithTasksExtensions([source, IAsyncDisposableDefinition], parseOptions:
TestOptions
.Regular7);
341
comp = CreateCompilationWithTasksExtensions([source, IAsyncDisposableDefinition], parseOptions:
TestOptions
.Regular8, options:
TestOptions
.DebugExe);
401
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
516
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
552
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
579
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
842
var comp = CreateCompilationWithTasksExtensions(comp_cs, references: new[] { libComp.EmitToImageReference() }, options:
TestOptions
.DebugExe);
879
var comp = CreateCompilationWithTasksExtensions(comp_cs, references: new[] { libComp.EmitToImageReference() }, options:
TestOptions
.DebugExe);
909
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
989
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
1066
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe, references: new[] { CSharpRef });
1093
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe, references: new[] { CSharpRef });
1119
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
1293
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
1468
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
1638
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
1687
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe, references: new[] { CSharpRef });
1713
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
1882
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
2060
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
2087
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
2114
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
2186
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
2225
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
2270
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
2369
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
2400
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
2428
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
2461
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
2491
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
2524
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
2554
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
2584
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
2697
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
2906
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
2935
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
2966
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
3035
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.ReleaseExe);
3125
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
3137
CreateCompilation(source, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
3169
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyEmitDiagnostics(expectedDiagnostics);
3170
CreateCompilation(source, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
3207
CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics();
3208
CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
3244
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
3251
CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions:
TestOptions
.Regular13, verify: Verification.FailsILVerify).VerifyDiagnostics();
3283
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
3290
CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
3332
CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics();
3333
CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
3365
CreateCompilationWithTasksExtensions(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
3372
var comp = CreateCompilationWithTasksExtensions(source, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.ReleaseExe);
3375
comp = CreateCompilationWithTasksExtensions(source, options:
TestOptions
.ReleaseExe);
3400
CreateCompilationWithTasksExtensions(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
3412
CreateCompilationWithTasksExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
3438
CreateCompilationWithTasksExtensions(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
3450
CreateCompilationWithTasksExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
3474
CreateCompilationWithTasksExtensions(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
3486
CreateCompilationWithTasksExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
3525
CreateCompilationWithTasksExtensions(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
3532
var comp = CreateCompilationWithTasksExtensions(source, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.ReleaseExe);
3535
comp = CreateCompilationWithTasksExtensions(source, options:
TestOptions
.ReleaseExe);
3720
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
CodeGen\CodeGenCheckedTests.cs (9)
391
var verifier = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
1880
CompileAndVerify(source, options:
TestOptions
.ReleaseDll.WithOverflowChecks(true)).VerifyIL("C.ULong_UInt", @"
1889
CompileAndVerify(source, options:
TestOptions
.ReleaseDll.WithOverflowChecks(false)).VerifyIL("C.ULong_UInt", @"
1912
CompileAndVerify(source, options:
TestOptions
.ReleaseDll.WithOverflowChecks(true)).VerifyIL("C.ULong_UInt", @"
1940
CompileAndVerify(source, options:
TestOptions
.ReleaseDll.WithOverflowChecks(true)).VerifyIL("C.ULong_UInt", @"
2687
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef });
2710
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe);
2734
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef });
2757
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe);
CodeGen\CodeGenClosureLambdaTests.cs (9)
2569
CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "F", verify: Verification.Passes);
3970
CompileAndVerify(source, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: m =>
4041
CompileAndVerify(source, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: m =>
4082
CompileAndVerify(source, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: m =>
4432
var compilation = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: @"True
4454
var compilation = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: @"True
4715
var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseDll);
4807
var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseDll);
4936
var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseDll);
CodeGen\CodeGenConditionalOperatorTests.cs (18)
41
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput);
64
verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe.WithDebugPlusMode(true), expectedOutput: expectedOutput);
90
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput);
172
options:
TestOptions
.ReleaseExe,
374
options:
TestOptions
.ReleaseExe,
457
options:
TestOptions
.ReleaseExe,
568
var comp = CreateCompilationWithIL(source2, source1, options:
TestOptions
.ReleaseExe);
625
options:
TestOptions
.DebugExe,
749
options:
TestOptions
.DebugExe,
875
options:
TestOptions
.DebugExe,
1004
options:
TestOptions
.DebugExe,
1153
options:
TestOptions
.DebugExe,
1237
options:
TestOptions
.DebugExe,
1327
options:
TestOptions
.DebugExe,
1433
options:
TestOptions
.DebugExe,
1687
var comp = CompileAndVerify(source, parseOptions:
TestOptions
.Regular10);
2778
options:
TestOptions
.DebugExe,
3015
CompileAndVerify(source, expectedOutput: expectedOutput, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails);
CodeGen\CodeGenConstructorInitTests.cs (7)
690
var options =
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All);
757
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
779
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
846
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
925
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
1151
CompileAndVerify(source, options:
TestOptions
.UnsafeDebugDll, verify: Verification.Skipped).VerifyIL("C..cctor()", @"
1209
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
CodeGen\CodeGenConversionTests.cs (3)
284
var comp2 = CreateCompilation(source2, new[] { MetadataReference.CreateFromImage(verifier1.EmittedAssemblyData) },
TestOptions
.ReleaseExe);
382
var comp2 = CreateCompilation(source2, new[] { MetadataReference.CreateFromImage(verifier1.EmittedAssemblyData) },
TestOptions
.ReleaseExe);
1070
var compilation = CreateCompilationWithMscorlib461AndCSharp(source, options:
TestOptions
.ReleaseExe.WithAllowUnsafe(true));
CodeGen\CodeGenDeconstructTests.cs (174)
1430
sourceSymbolValidator: validator, parseOptions:
TestOptions
.Regular7_1);
1460
var comp = CreateCompilationWithMscorlib40(source, parseOptions:
TestOptions
.Regular7, options:
TestOptions
.DebugExe);
1503
var comp = CreateCompilationWithMscorlib40(source, parseOptions:
TestOptions
.Regular7, options:
TestOptions
.DebugExe);
1556
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7);
1585
var comp = CreateCompilationWithMscorlib40(source, parseOptions:
TestOptions
.Regular7);
1607
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7);
1636
parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp7));
1685
sourceSymbolValidator: validator, parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1));
1793
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
1837
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
2149
var comp = CreateCompilationWithILAndMscorlib40(source, ilSource, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options:
TestOptions
.ReleaseExe);
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());
3216
sourceSymbolValidator: validator, parseOptions:
TestOptions
.Regular7_1);
3255
sourceSymbolValidator: validator, parseOptions:
TestOptions
.Regular7_1);
3343
parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1));
3557
var comp = CompileAndVerify(source, expectedOutput: expected, parseOptions:
TestOptions
.Regular,
4064
sourceSymbolValidator: validator, parseOptions:
TestOptions
.Regular7_1);
5046
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe, references: s_valueTupleRefs);
5119
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe, references: s_valueTupleRefs);
5137
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe, references: s_valueTupleRefs);
5151
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe, references: s_valueTupleRefs);
5197
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe, references: s_valueTupleRefs);
5212
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe, references: s_valueTupleRefs);
5321
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe, references: s_valueTupleRefs);
5357
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe, references: s_valueTupleRefs);
5371
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script.WithLanguageVersion(LanguageVersion.CSharp6), options:
TestOptions
.DebugExe, references: s_valueTupleRefs);
5391
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe, references: s_valueTupleRefs);
5424
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe, references: s_valueTupleRefs);
5459
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe, references: s_valueTupleRefs);
5494
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe, references: s_valueTupleRefs);
5525
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe, references: s_valueTupleRefs);
5557
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe, references: s_valueTupleRefs);
5582
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe, references: s_valueTupleRefs);
5630
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe, references: s_valueTupleRefs);
5671
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe, references: s_valueTupleRefs);
5716
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe, references: s_valueTupleRefs);
5758
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe, references: s_valueTupleRefs);
5797
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe, references: s_valueTupleRefs);
5847
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe, references: s_valueTupleRefs);
5901
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
5945
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
5972
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
5992
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
6172
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
6199
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
6231
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
6277
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
6298
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
6330
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
6360
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
6387
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
6474
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
6503
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
6555
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
6586
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular6);
6627
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular6);
6680
var comp = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugDll);
6702
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
6727
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
6746
var compCSharp9 = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
6762
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular10);
6790
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
6816
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
6836
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
6877
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe, references: s_valueTupleRefs);
6896
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe);
6911
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe, references: s_valueTupleRefs);
6946
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe, references: s_valueTupleRefs);
6968
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
7034
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
7058
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
7089
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
7114
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
7147
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
7198
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
7260
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
7460
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
7661
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
7703
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
7834
var comp1 = CreateEmptyCompilation(source1, WinRtRefs,
TestOptions
.ReleaseWinMD,
TestOptions
.Regular);
7881
var comp1 = CreateEmptyCompilation(source1, WinRtRefs,
TestOptions
.ReleaseWinMD,
TestOptions
.Regular);
8207
var comp = CreateCompilationWithMscorlib461(source, references: s_valueTupleRefs, options:
TestOptions
.DebugExe);
8228
var comp = CreateCompilationWithMscorlib461(source, references: s_valueTupleRefs, options:
TestOptions
.DebugDll);
8259
var comp = CreateCompilationWithMscorlib461(source, references: s_valueTupleRefs, options:
TestOptions
.DebugDll);
8294
var comp = CreateCompilationWithMscorlib461(source, references: s_valueTupleRefs, options:
TestOptions
.DebugDll);
8324
var comp = CreateCompilationWithMscorlib461(source, references: s_valueTupleRefs, options:
TestOptions
.DebugDll);
8353
var comp = CreateCompilationWithMscorlib461(source, references: s_valueTupleRefs, options:
TestOptions
.DebugDll);
8409
var comp = CreateCompilationWithMscorlib461(source, references: s_valueTupleRefs, options:
TestOptions
.DebugDll);
8432
var comp = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugDll); // no ValueTuple reference
8444
var missing = CreateCompilationWithMscorlib461(missing_cs, options:
TestOptions
.DebugDll, assemblyName: "missing");
8447
var lib = CreateCompilationWithMscorlib461(lib_cs, references: new[] { missing.EmitToImageReference() }, options:
TestOptions
.DebugDll);
8461
var comp = CreateCompilationWithMscorlib461(source, references: new[] { lib.EmitToImageReference() }, options:
TestOptions
.DebugDll); // no ValueTuple reference
8473
var missing = CreateCompilationWithMscorlib461(missing_cs, options:
TestOptions
.DebugDll, assemblyName: "missing");
8476
var lib = CreateCompilationWithMscorlib461(lib_cs, references: new[] { missing.ToMetadataReference() }, options:
TestOptions
.DebugDll);
8490
var comp = CreateCompilationWithMscorlib461(source, references: new[] { lib.ToMetadataReference() }, options:
TestOptions
.DebugDll); // no ValueTuple reference
8708
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7);
8730
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7);
8755
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7, options:
TestOptions
.DebugExe);
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));
9038
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
9063
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
9096
var comp = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: "102030405060");
9154
var comp = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: "102030405060");
9212
var comp = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: "102030405060");
9298
var comp = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expected);
9389
var comp = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput);
9491
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
9525
var comp = CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput: @"1 hello
9653
var comp = CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput: @"1 hello True
9751
CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
9785
CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
9817
var comp = CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput: @"1 hello
9902
var comp = CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput: @"1 hello
10004
CreateCompilation(source, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
10067
var comp = CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput: @"1 hello True
10114
CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview)
10163
CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview)
CodeGen\CodeGenDisplayClassOptimisationTests.cs (53)
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());
8052
var compilation = CompileAndVerify(source, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
CodeGen\CodeGenDynamicTests.cs (22)
41
var unoptimizedCompilation = CreateCompilationWithMscorlib461(source, references, parseOptions: parseOptions, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All).WithAllowUnsafe(allowUnsafe));
42
var optimizedCompilation = CreateCompilationWithMscorlib461(source, references, parseOptions: parseOptions, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All).WithAllowUnsafe(allowUnsafe));
62
private readonly CSharpParseOptions _localFunctionParseOptions =
TestOptions
.Regular;
584
var verifier = CompileAndVerifyWithCSharp(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: peModule =>
640
var verifier = CompileAndVerifyWithCSharp(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: peModule =>
675
var verifier = CompileAndVerifyWithCSharp(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: peModule =>
801
var verifier = CompileAndVerifyWithCSharp(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: peModule =>
821
var verifier = CompileAndVerifyWithCSharp(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: peModule =>
7493
new[] { Parse(sourceScript, options:
TestOptions
.Script) },
7591
new[] { Parse(sourceScript, options:
TestOptions
.Script) },
7593
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
14056
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
15339
var comp = CreateCompilationWithCSharp(source, options:
TestOptions
.ReleaseExe);
15343
comp = CreateCompilationWithCSharp(source, options:
TestOptions
.DebugExe);
15384
var comp = CreateCompilationWithCSharp(source, options:
TestOptions
.ReleaseExe);
15388
comp = CreateCompilationWithCSharp(source, options:
TestOptions
.DebugExe);
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\CodeGenExplicitImplementationTests.cs (6)
129
options:
TestOptions
.ReleaseExe,
215
options:
TestOptions
.ReleaseDll);
225
options:
TestOptions
.ReleaseExe);
258
options:
TestOptions
.ReleaseExe);
374
options:
TestOptions
.ReleaseDll);
380
options:
TestOptions
.ReleaseExe);
CodeGen\CodeGenExprLambdaTests.cs (14)
1537
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.UnsafeReleaseDll);
2110
parseOptions:
TestOptions
.Regular9,
2452
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.UnsafeReleaseDll);
2481
CompileAndVerifyUtil(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: TrimExpectedOutput(expectedOutput), verify: Verification.Fails);
2540
options:
TestOptions
.ReleaseExe);
3219
options:
TestOptions
.UnsafeReleaseDll,
3590
TestOptions
.ReleaseExe);
3600
TestOptions
.ReleaseExe);
3789
CreateCompilation(source, parseOptions:
TestOptions
.Regular).VerifyDiagnostics(
3839
CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics(
5215
parseOptions:
TestOptions
.ExperimentalParseOptions);
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\CodeGenFieldInitTests.cs (9)
435
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
462
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
483
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
511
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
565
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
569
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
592
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
654
trees.Add(SyntaxFactory.ParseSyntaxTree("System.Console.WriteLine(" + i + ");", options:
TestOptions
.Script));
658
var compilation = CreateCompilationWithMscorlib461(trees, options:
TestOptions
.ReleaseExe);
CodeGen\CodeGenForEachTests.cs (87)
107
var compilation = CompileAndVerify(source, options:
TestOptions
.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"
1394
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
1749
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
2412
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
2436
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
2462
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
2485
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
2511
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9)
2573
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9)
2631
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
2663
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
2695
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
2722
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
2749
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
2776
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
2805
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
2840
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
2875
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
2910
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
2947
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
2987
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
3019
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
3047
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "System.Char");
3074
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
3106
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
3134
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
3161
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
3189
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
3216
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
3243
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
3270
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
3298
var comp = CreateCompilationWithSpan(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
3329
var comp = CreateCompilationWithIndexAndRange(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
3359
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
3387
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: @"1.1
3412
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
3443
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
3478
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
3514
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
3557
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9,
3591
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
3645
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9,
3684
var comp = CreateCompilationWithCSharp(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9)
3717
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
3756
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
3795
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
3834
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
3865
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
3908
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
3949
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
3982
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
4021
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
4052
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
4088
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "23");
4116
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
4143
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
4177
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
4209
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
4241
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
4278
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
4306
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
4446
var comp = CreateCompilationWithMscorlib46(source, parseOptions:
TestOptions
.Regular8);
4478
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
4505
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
4531
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
4573
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
4611
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
4641
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
4671
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
4702
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: @"123Disposed")
4761
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: @"123Disposed")
4820
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: @"123")
4869
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, verify: Verification.FailsILVerify, expectedOutput: @"123Disposed")
4927
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123")
4968
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
4998
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
5046
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
5092
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
5136
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
5189
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
5229
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
5262
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123");
5290
CreateCompilation(source, parseOptions:
TestOptions
.Regular9)
5328
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "123123");
CodeGen\CodeGenFunctionPointersTests.cs (90)
39
parseOptions:
TestOptions
.RegularPreview,
40
options: options ?? (expectedOutput is null ?
TestOptions
.UnsafeReleaseDll :
TestOptions
.UnsafeReleaseExe),
48
return CreateCompilation(source, references: references, options: options ??
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.RegularPreview, targetFramework: targetFramework ?? TargetFramework.Net50);
56
return CreateCompilation(source, references: references, options: options ??
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.RegularPreview, targetFramework: TargetFramework.Empty);
61
var comp = CreateCompilationWithIL(source, ilStub, parseOptions:
TestOptions
.RegularPreview, options: expectedOutput is null ?
TestOptions
.UnsafeReleaseDll :
TestOptions
.UnsafeReleaseExe);
70
return CreateCompilationWithIL(source, ilStub, references: references, options: options ??
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.RegularPreview, targetFramework: TargetFramework.Empty);
683
var compilation = CreateCompilationWithIL(source: "", ilSource, parseOptions:
TestOptions
.RegularPreview);
2593
}", references: new[] { nopiaReference }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.UnsafeReleaseDll).EmitToImageReference();
2630
}", references: new[] { aRef }, assemblyName: "B", parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.UnsafeReleaseDll).EmitToImageReference();
2639
}", references: new[] { aRef, bRef }, assemblyName: "C", parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.UnsafeReleaseDll);
2660
}", references: new[] { aRef }, assemblyName: "B", parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.UnsafeReleaseDll).EmitToImageReference();
2669
}", references: new[] { aRef, bRef }, assemblyName: "C", parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.UnsafeReleaseDll);
5026
", options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.RegularPreview);
5215
}}", options:
TestOptions
.UnsafeReleaseExe);
5239
}}", options:
TestOptions
.UnsafeReleaseExe);
5395
var comp = CreateCompilationWithFunctionPointers(source, options: WithNullableEnable(
TestOptions
.UnsafeReleaseDll));
6271
var allSourceComp = CreateCompilationWithFunctionPointers(new[] { executableCode, source1, source2 }, options:
TestOptions
.UnsafeReleaseExe);
6282
var derivedComp = CreateCompilationWithFunctionPointers(new[] { executableCode, source2 }, references: new[] { metadataRef }, options:
TestOptions
.UnsafeReleaseExe);
7467
var verifier = CompileAndVerifyFunctionPointers(source, expectedOutput: "", options:
TestOptions
.UnsafeReleaseExe);
7477
verifier = CompileAndVerifyFunctionPointers(source, expectedOutput: "", options:
TestOptions
.UnsafeDebugExe);
7563
var allInCoreLib = CreateEmptyCompilation(source1 + source2, parseOptions:
TestOptions
.RegularPreview.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.UnsafeReleaseDll);
7580
var coreLib = CreateEmptyCompilation(source1, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
7583
var comp1 = CreateEmptyCompilation(source2, references: new[] { coreLib.EmitToImageReference() }, parseOptions:
TestOptions
.RegularPreview.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.UnsafeReleaseDll);
7632
var allInCoreLib = CreateEmptyCompilation(source1 + source2, parseOptions:
TestOptions
.RegularPreview.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.UnsafeReleaseDll);
7649
var coreLib = CreateEmptyCompilation(source1, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
7652
var comp1 = CreateEmptyCompilation(source2, references: new[] { coreLib.EmitToImageReference() }, parseOptions:
TestOptions
.RegularPreview.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.UnsafeReleaseDll);
8328
}", il, options:
TestOptions
.UnsafeReleaseExe);
8456
", il, options:
TestOptions
.UnsafeReleaseExe);
9705
", UnmanagedCallersOnlyAttribute }, options:
TestOptions
.UnsafeReleaseDll);
9727
", UnmanagedCallersOnlyAttribute }, options:
TestOptions
.ReleaseExe);
9750
", UnmanagedCallersOnlyAttribute }, options:
TestOptions
.ReleaseExe);
9776
", UnmanagedCallersOnlyAttribute }, options:
TestOptions
.ReleaseDll);
9796
", UnmanagedCallersOnlyAttribute }, options:
TestOptions
.ReleaseExe);
9832
", UnmanagedCallersOnlyAttribute }, options:
TestOptions
.ReleaseExe);
9859
", UnmanagedCallersOnlyAttribute }, options:
TestOptions
.ReleaseExe);
10722
", UnmanagedCallersOnlyAttribute }, options:
TestOptions
.UnsafeReleaseExe, targetFramework: TargetFramework.NetCoreApp);
10959
}", options:
TestOptions
.UnsafeReleaseExe);
10987
var comp = CreateCompilationWithSpan(source, parseOptions:
TestOptions
.Regular10, options:
TestOptions
.UnsafeReleaseExe);
10994
comp = CreateCompilationWithSpan(source, options:
TestOptions
.UnsafeReleaseExe);
11021
var comp = CreateCompilationWithSpan(source, parseOptions:
TestOptions
.Regular10, options:
TestOptions
.UnsafeReleaseExe);
11037
comp = CreateCompilationWithSpan(source, options:
TestOptions
.UnsafeReleaseExe);
11054
}", options:
TestOptions
.UnsafeReleaseExe);
11302
", options:
TestOptions
.UnsafeReleaseExe);
11410
}", options:
TestOptions
.UnsafeReleaseExe);
11540
CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll).VerifyEmitDiagnostics(
11592
CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll).VerifyEmitDiagnostics(
11617
CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll).VerifyEmitDiagnostics(
11641
CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll).VerifyEmitDiagnostics(
11673
var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options:
TestOptions
.UnsafeDebugExe, symbolValidator: static module =>
11704
CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
11736
var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options:
TestOptions
.UnsafeDebugExe, symbolValidator: static module =>
11768
CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll).VerifyEmitDiagnostics(
11799
var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options:
TestOptions
.UnsafeDebugExe, symbolValidator: static module =>
11830
CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll).VerifyEmitDiagnostics(
11858
var verifier = CompileAndVerify(source, options:
TestOptions
.UnsafeDebugExe, expectedOutput: "True", symbolValidator: static module =>
11890
var verifier = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe,
11916
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
11942
CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll).VerifyEmitDiagnostics(
11967
CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll).VerifyEmitDiagnostics(
11994
CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll).VerifyEmitDiagnostics(
12017
CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
12044
CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll).VerifyEmitDiagnostics(
12101
CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll).VerifyEmitDiagnostics(
12133
var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options:
TestOptions
.UnsafeDebugExe, symbolValidator: static module =>
12166
CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll).VerifyEmitDiagnostics(
12192
CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll).VerifyEmitDiagnostics(
12217
CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll).VerifyEmitDiagnostics(
12244
CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll).VerifyEmitDiagnostics(
12276
var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options:
TestOptions
.UnsafeDebugExe, symbolValidator: static module =>
12315
var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options:
TestOptions
.UnsafeDebugExe, symbolValidator: static module =>
12359
var verifier = CompileAndVerify(source, expectedOutput: expectedOutput, options:
TestOptions
.UnsafeDebugExe, symbolValidator: module =>
12400
CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll).VerifyEmitDiagnostics(
CodeGen\CodeGenImplicitImplementationTests.cs (2)
2293
var libComp = CreateCompilation(libSource, options:
TestOptions
.ReleaseDll, assemblyName: "OtherAssembly");
2296
var exeComp = CreateCompilation(exeSource, options:
TestOptions
.ReleaseExe, references: new[] { new CSharpCompilationReference(libComp) });
CodeGen\CodeGenInParametersTests.cs (47)
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);
1267
var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options:
TestOptions
.UnsafeReleaseDll);
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");
1528
var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options:
TestOptions
.ReleaseExe);
1570
var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options:
TestOptions
.ReleaseExe);
1751
var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options:
TestOptions
.UnsafeReleaseExe);
1837
comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options:
TestOptions
.UnsafeReleaseExe, parseOptions:
TestOptions
.Regular.WithPEVerifyCompatFeature());
1876
var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options:
TestOptions
.ReleaseExe);
1936
var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options:
TestOptions
.ReleaseExe);
2004
var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options:
TestOptions
.ReleaseExe);
2066
var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options:
TestOptions
.ReleaseExe);
2123
var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options:
TestOptions
.ReleaseExe);
2183
var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options:
TestOptions
.ReleaseExe);
2262
var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options:
TestOptions
.ReleaseExe);
2277
comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular.WithPEVerifyCompatFeature());
2343
var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options:
TestOptions
.ReleaseExe);
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");
3735
var compilation = CreateCompilationWithMscorlib40AndSystemCore(code, options:
TestOptions
.ReleaseExe);
3773
var compilation = CreateCompilation(code, options:
TestOptions
.ReleaseExe);
3824
var compilation = CreateCompilation(code, options:
TestOptions
.ReleaseExe);
3882
var compilation = CreateCompilation(code, options:
TestOptions
.ReleaseExe);
3946
var compilation = CreateCompilation(code, options:
TestOptions
.ReleaseExe);
4008
var compilation = CreateCompilation(code, options:
TestOptions
.ReleaseExe);
4087
var compilation = CreateCompilation(code, options:
TestOptions
.ReleaseExe);
4143
var compilation = CreateCompilation(code, options:
TestOptions
.ReleaseExe);
4201
var compilation = CreateCompilation(code, options:
TestOptions
.ReleaseExe);
4264
var compilation = CreateCompilation(code, options:
TestOptions
.ReleaseExe);
4337
var compilation = CreateCompilation(code, options:
TestOptions
.ReleaseExe);
4394
var compilation = CreateCompilation(code, options:
TestOptions
.ReleaseExe);
CodeGen\CodeGenInterfaceImplementation.cs (3)
371
options:
TestOptions
.ReleaseExe,
2639
var comp = CreateCompilationWithILAndMscorlib40(source, il, options:
TestOptions
.DebugDll);
2734
var comp = CreateCompilationWithILAndMscorlib40(source, il, options:
TestOptions
.DebugDll);
CodeGen\CodeGenInterpolatedString.cs (1)
32
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
CodeGen\CodeGenIterators.cs (12)
1176
var rel = CompileAndVerify(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
1193
var dbg = CompileAndVerify(source, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
1232
CompileAndVerify(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
1249
CompileAndVerify(source, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
1281
CompileAndVerify(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
1293
CompileAndVerify(source, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
2389
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
2435
var compilation = CreateEmptyCompilation(new[] { Parse(source, options:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute()) });
2499
var compilation = CreateEmptyCompilation(new[] { Parse(source, options:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute()) });
2569
var v = CompileAndVerify(source, options:
TestOptions
.ReleaseDll);
2918
var compilation = CompileAndVerify(source, expectedOutput: "FalseTrueFalseTrue", options:
TestOptions
.ReleaseExe);
4120
comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, references: [libS2, missingLibS1]);
CodeGen\CodeGenLocalFunctionTests.cs (53)
126
}", options:
TestOptions
.ReleaseExe);
365
}", options:
TestOptions
.ReleaseExe);
389
}", options:
TestOptions
.ReleaseExe);
415
}", options:
TestOptions
.ReleaseExe);
448
}", options:
TestOptions
.ReleaseExe);
1161
}", options:
TestOptions
.ReleaseExe);
2085
var comp = CreateCompilationWithMscorlib461AndCSharp(source, options:
TestOptions
.ReleaseExe);
2439
VerifyOutput(source, "2",
TestOptions
.ReleaseExe.WithWarningLevel(0));
4609
VerifyOutput(source, output,
TestOptions
.ReleaseExe.WithAllowUnsafe(true).WithWarningLevel(0), verify: Verification.Passes);
4635
VerifyOutput(source, "2",
TestOptions
.ReleaseExe.WithAllowUnsafe(true), verify: Verification.Fails);
4661
VerifyOutput(source, "2",
TestOptions
.ReleaseExe.WithAllowUnsafe(true), verify: Verification.Fails);
4688
VerifyOutput(source, "2",
TestOptions
.ReleaseExe.WithAllowUnsafe(true), verify: Verification.Fails);
4728
VerifyOutput(src, $"10{Environment.NewLine}4",
TestOptions
.ReleaseExe.WithAllowUnsafe(true), verify: Verification.Fails);
5228
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
5229
parseOptions:
TestOptions
.Regular9,
5277
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
5278
parseOptions:
TestOptions
.Regular9,
5318
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
5319
parseOptions:
TestOptions
.Regular9,
5351
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
5352
parseOptions:
TestOptions
.Regular9,
5385
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
5386
parseOptions:
TestOptions
.Regular9,
5418
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
5419
parseOptions:
TestOptions
.Regular9,
5452
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
5487
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
5523
options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
5524
parseOptions:
TestOptions
.Regular9.WithPreprocessorSymbols("DEBUG"),
5530
options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
5531
parseOptions:
TestOptions
.Regular9,
5565
CreateCompilation(source, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics();
5567
CreateCompilation(source, parseOptions:
TestOptions
.Regular9.WithPreprocessorSymbols("DEBUG")).VerifyDiagnostics();
5590
CreateCompilation(source, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
5595
CreateCompilation(source, parseOptions:
TestOptions
.Regular9.WithPreprocessorSymbols("DEBUG")).VerifyDiagnostics();
5621
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
5622
parseOptions:
TestOptions
.Regular9.WithPreprocessorSymbols("DEBUG"),
5627
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
5628
parseOptions:
TestOptions
.Regular9,
5673
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
5674
parseOptions:
TestOptions
.Regular9);
5739
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
5740
parseOptions:
TestOptions
.Regular9,
5814
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
5815
parseOptions:
TestOptions
.Regular9,
5889
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
5890
parseOptions:
TestOptions
.Regular9,
5957
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
5958
parseOptions:
TestOptions
.Regular9,
5997
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
6053
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
6110
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
6309
var comp = CreateCompilationWithMscorlib461AndCSharp(source, options:
TestOptions
.ReleaseExe);
CodeGen\CodeGenLockTests.cs (7)
547
CompileAndVerify(text, parseOptions:
TestOptions
.Regular10).VerifyIL("Test.Main", @"
1902
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
1923
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
1944
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
1973
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
2001
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
2037
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
CodeGen\CodeGenMscorlib.cs (22)
153
var c = CreateEmptyCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
206
options:
TestOptions
.ReleaseDll)
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 });
549
options:
TestOptions
.ReleaseDll)
614
parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(),
615
options:
TestOptions
.ReleaseDll)
752
parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(),
753
options:
TestOptions
.ReleaseDll)
880
var comp = CreateEmptyCompilation(text, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1037
var comp = CreateEmptyCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
1163
var comp = CreateEmptyCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
CodeGen\CodeGenNullCoalescingAssignmentTests.cs (4)
126
CompileAndVerify(source, options:
TestOptions
.DebugDll).VerifyIL("C.TestObject()", expectedIL: @"
706
", parseOptions:
TestOptions
.Regular10, expectedOutput: @"
2751
}", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
2918
1", options:
TestOptions
.DebugExe);
CodeGen\CodeGenOperators.cs (32)
37
var compilation = CompileAndVerify(source, expectedOutput: "False", options:
TestOptions
.ReleaseExe);
48
compilation = CompileAndVerify(source, expectedOutput: "False", options:
TestOptions
.DebugExe);
88
var compilation = CompileAndVerify(source, expectedOutput: "False", options:
TestOptions
.ReleaseExe);
105
compilation = CompileAndVerify(source, expectedOutput: "False", options:
TestOptions
.DebugExe);
156
var compilation = CompileAndVerify(source, expectedOutput: "False", options:
TestOptions
.ReleaseExe);
173
compilation = CompileAndVerify(source, expectedOutput: "False", options:
TestOptions
.DebugExe);
227
var compilation = CompileAndVerify(source, expectedOutput: "False Branch not taken-True Branch taken", options:
TestOptions
.ReleaseExe);
247
compilation = CompileAndVerify(source, expectedOutput: "False Branch not taken-True Branch taken", options:
TestOptions
.DebugExe);
299
var compilation = CompileAndVerify(source, expectedOutput: "True Branch taken", options:
TestOptions
.ReleaseExe);
310
compilation = CompileAndVerify(source, expectedOutput: "True Branch taken", options:
TestOptions
.DebugExe);
352
var compilation = CompileAndVerify(source, expectedOutput: "True Branch taken", options:
TestOptions
.ReleaseExe);
363
compilation = CompileAndVerify(source, expectedOutput: "True Branch taken", options:
TestOptions
.DebugExe);
1865
options:
TestOptions
.DebugExe, expectedOutput: "C");
2290
CompileAndVerify(source, expectedOutput: "0", options:
TestOptions
.ReleaseExe.WithWarningLevel(5)).VerifyDiagnostics(
3480
var comp = CompileAndVerify(text, options:
TestOptions
.DebugExe, expectedOutput: @"True
5301
var result = CompileAndVerify(source, options:
TestOptions
.ReleaseExe);
5356
var result = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: "True");
5404
var result = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: "11461640193");
5440
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
5499
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
5556
var result = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: @"5180801
5607
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
5692
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
5730
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
5761
var result = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput);
6198
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
6301
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
6325
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
6563
var comp = CreateCompilation(code, parseOptions:
TestOptions
.RegularPreview, targetFramework: TargetFramework.Net60);
6613
var comp = CreateCompilation(code, parseOptions:
TestOptions
.RegularPreview, targetFramework: TargetFramework.Net60);
6971
var comp = CreateCompilation(code, parseOptions:
TestOptions
.RegularPreview, targetFramework: TargetFramework.Net60);
7027
var comp = CreateCompilation(code, parseOptions:
TestOptions
.RegularPreview, targetFramework: TargetFramework.Net60);
CodeGen\CodeGenOptimizedNullableOperators.cs (107)
783
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput);
831
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput);
922
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput);
936
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput);
985
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput);
1018
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput);
1406
CompileAndVerify(source, expectedOutput: expectedOutput, options:
TestOptions
.ReleaseExe.WithWarningLevel(4)).VerifyDiagnostics(
2753
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
2756
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
2799
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
2802
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
2842
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
2845
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
2879
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
2882
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
2927
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
2930
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
2972
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
2975
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
3009
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
3012
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
3046
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
3049
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
3083
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
3086
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
3121
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
3124
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
3159
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
3162
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
3199
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
3202
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
3246
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
3249
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
3290
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
3293
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
3337
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
3340
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
3386
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
3389
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
3434
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
3437
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
3482
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
3485
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
3532
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
3535
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
3582
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
3585
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
3638
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
3641
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
3691
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
3694
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
3747
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
3750
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
3800
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
3803
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
3857
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
3860
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
3911
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
3914
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
3961
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
3964
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
4016
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
4019
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
4076
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
4079
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
4129
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
4132
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
4190
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
4193
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
4251
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
4254
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
4298
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
4301
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
4336
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
4339
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
4396
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
4399
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
4449
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
4452
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
4509
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
4512
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
4562
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
4565
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
4610
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
4613
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
4649
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
4652
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
4697
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
4700
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
4736
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
4739
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
4784
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
4787
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
4823
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
4826
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
4871
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
4874
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
4910
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
4913
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
4970
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
4973
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
5023
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
5026
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
5072
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
5075
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
5112
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: output);
5115
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: output);
CodeGen\CodeGenOverridingAndHiding.cs (26)
1194
var compilation = CreateCompilation(substitutedSource, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.NetLatest);
2536
options:
TestOptions
.ReleaseDll,
2542
options:
TestOptions
.ReleaseExe,
2830
options:
TestOptions
.ReleaseDll);
2834
options:
TestOptions
.ReleaseExe);
2923
options:
TestOptions
.ReleaseDll);
2927
options:
TestOptions
.ReleaseExe);
2990
options:
TestOptions
.ReleaseExe,
3161
parseOptions:
TestOptions
.Regular10, options:
TestOptions
.ReleaseDll);
3168
parseOptions:
TestOptions
.Regular10, options:
TestOptions
.ReleaseDll);
3173
options:
TestOptions
.ReleaseExe);
3222
options:
TestOptions
.ReleaseExe,
3384
options:
TestOptions
.ReleaseExe,
3488
options:
TestOptions
.ReleaseExe,
4203
compilationOptions:
TestOptions
.ReleaseDll,
4245
compilationOptions:
TestOptions
.ReleaseExe,
4272
compilationOptions:
TestOptions
.ReleaseDll,
4317
compilationOptions:
TestOptions
.ReleaseExe,
4359
compilationOptions:
TestOptions
.ReleaseDll);
4363
compilationOptions:
TestOptions
.ReleaseDll,
4368
compilationOptions:
TestOptions
.ReleaseDll,
4373
compilationOptions:
TestOptions
.ReleaseDll,
4420
compilationOptions:
TestOptions
.ReleaseDll,
4455
compilationOptions:
TestOptions
.ReleaseDll,
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (32)
129
", targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe);
190
}}" + (type != "byte" ? RuntimeHelpersCreateSpan : ""),
TestOptions
.ReleaseExe);
252
",
TestOptions
.ReleaseExe);
305
",
TestOptions
.ReleaseExe);
362
",
TestOptions
.ReleaseExe);
416
",
TestOptions
.ReleaseExe);
478
",
TestOptions
.ReleaseExe);
535
",
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular.WithPEVerifyCompatFeature());
608
", targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe);
657
", WithNullableEnable(
TestOptions
.ReleaseExe));
725
", WithNullableEnable(
TestOptions
.ReleaseExe));
762
var compilationOptions =
TestOptions
.ReleaseExe;
803
var compilation = CreateCompilationWithMscorlibAndSpan(csharp,
TestOptions
.ReleaseExe);
945
var compilation = CreateCompilationWithMscorlibAndSpan(csharp,
TestOptions
.ReleaseDll);
1026
var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options:
TestOptions
.UnsafeReleaseDll);
1050
var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options:
TestOptions
.UnsafeReleaseDll);
1093
var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options:
TestOptions
.UnsafeReleaseDll);
1172
var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options:
TestOptions
.UnsafeReleaseDll);
1314
var compilation = CreateCompilationWithMscorlibAndSpan(csharp,
TestOptions
.ReleaseDll);
1367
var compilation = CreateCompilationWithMscorlibAndSpan(csharp,
TestOptions
.ReleaseExe);
1478
var compilation = CreateCompilationWithMscorlibAndSpan(csharp,
TestOptions
.ReleaseDll);
1515
var compilation = CreateCompilationWithMscorlibAndSpan(csharp,
TestOptions
.ReleaseDll);
1548
var compilation = CreateCompilationWithMscorlibAndSpan(csharp,
TestOptions
.ReleaseExe);
1616
var compilation = CreateCompilationWithMscorlibAndSpan(csharp,
TestOptions
.ReleaseExe);
2044
",
TestOptions
.ReleaseExe);
2406
var compilation = CreateCompilationWithMscorlibAndSpan(csharp,
TestOptions
.ReleaseDll);
2566
var compilation = CreateCompilation(csharp, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.UnsafeReleaseDll);
2614
var compilation = CreateCompilation(csharp, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.UnsafeReleaseDll);
2665
var compilation = CreateCompilation(csharp, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.UnsafeReleaseDll);
3474
""",
TestOptions
.ReleaseExe);
3527
var compilation = CreateCompilationWithMscorlibAndSpan(csharp,
TestOptions
.ReleaseDll);
CodeGen\CodeGenReadonlyStructTests.cs (25)
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);
1090
}",
TestOptions
.UnsafeReleaseExe);
1107
}",
TestOptions
.ReleaseExe);
1149
}",
TestOptions
.ReleaseExe);
1198
}",
TestOptions
.ReleaseExe);
1241
}",
TestOptions
.ReleaseExe);
1296
}",
TestOptions
.UnsafeReleaseExe);
1318
}",
TestOptions
.UnsafeReleaseExe);
2554
CompileAndVerify(csharp, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: "42");
2560
{ false,
TestOptions
.Regular7_3, Verification.Passes },
CodeGen\CodeGenRefConditionalOperatorTests.cs (33)
529
var comp = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
574
var comp = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
601
var comp = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
632
var comp = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
666
var comp = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular7_1);
696
var comp = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
727
var comp = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
763
var comp = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
800
var comp = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
947
var comp = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
972
var comp = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
1198
var comp = CreateCompilationWithMscorlib461(source, references: new[] { SystemRuntimeFacadeRef, ValueTupleRef }, options:
TestOptions
.ReleaseExe);
1221
verify(
TestOptions
.UnsafeReleaseExe, Verification.Passes, @"
1240
verify(
TestOptions
.UnsafeDebugExe, Verification.Fails, @"
1296
verify(
TestOptions
.UnsafeReleaseExe, @"
1319
verify(
TestOptions
.UnsafeDebugExe, @"
1404
var comp = CompileAndVerify(source, expectedOutput: "0123-1230", options:
TestOptions
.ReleaseExe);
1405
CompileAndVerify(source, expectedOutput: "0123-1230", options:
TestOptions
.DebugExe);
1539
var comp = CompileAndVerify(source, expectedOutput: "0123-1230", options:
TestOptions
.ReleaseExe);
1540
CompileAndVerify(source, expectedOutput: "0123-1230", options:
TestOptions
.DebugExe);
1684
var comp = CompileAndVerify(source, expectedOutput: "0123-1230", options:
TestOptions
.ReleaseExe);
1685
CompileAndVerify(source, expectedOutput: "0123-1230", options:
TestOptions
.DebugExe);
1837
var comp = CompileAndVerify(source, expectedOutput: "0123-1230", options:
TestOptions
.ReleaseExe);
1838
CompileAndVerify(source, expectedOutput: "0123-1230", options:
TestOptions
.DebugExe);
2060
var comp = CompileAndVerify(source, expectedOutput: "124-123", options:
TestOptions
.ReleaseExe);
2061
CompileAndVerify(source, expectedOutput: "124-123", options:
TestOptions
.DebugExe);
2383
CompileAndVerify(source, targetFramework: TargetFramework.NetCoreApp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null, options:
TestOptions
.ReleaseExe, verify: Verification.FailsPEVerify);
2384
CompileAndVerify(source, targetFramework: TargetFramework.NetCoreApp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null, options:
TestOptions
.DebugExe, verify: Verification.FailsPEVerify);
2422
CompileAndVerify(source, targetFramework: TargetFramework.NetCoreApp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null, options:
TestOptions
.ReleaseExe, verify: Verification.FailsPEVerify);
2423
CompileAndVerify(source, targetFramework: TargetFramework.NetCoreApp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null, options:
TestOptions
.DebugExe, verify: Verification.FailsPEVerify);
2473
CompileAndVerify(source, targetFramework: TargetFramework.NetCoreApp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null, options:
TestOptions
.ReleaseExe, verify: Verification.FailsPEVerify);
2474
CompileAndVerify(source, targetFramework: TargetFramework.NetCoreApp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null, options:
TestOptions
.DebugExe, verify: Verification.FailsPEVerify);
CodeGen\CodeGenRefLocalTests.cs (75)
66
parseOptions:
TestOptions
.Regular.WithPEVerifyCompatFeature(),
91
}", options:
TestOptions
.UnsafeReleaseExe,
530
}", options:
TestOptions
.ReleaseExe);
1659
CompileAndVerify(text, options:
TestOptions
.DebugDll).VerifyIL("Program.M()", @"
1673
CompileAndVerify(text, options:
TestOptions
.ReleaseDll).VerifyIL("Program.M()", @"
1699
CompileAndVerify(text, options:
TestOptions
.DebugDll).VerifyIL("Program.M", @"
1712
CompileAndVerify(text, options:
TestOptions
.ReleaseDll).VerifyIL("Program.M", @"
1737
CompileAndVerify(text, options:
TestOptions
.DebugDll).VerifyIL("Program.M", @"
1750
CompileAndVerify(text, options:
TestOptions
.ReleaseDll).VerifyIL("Program.M", @"
1775
CompileAndVerify(text, options:
TestOptions
.DebugDll, verify: Verification.Fails).VerifyIL("Program.M", @"
1789
CompileAndVerify(text, options:
TestOptions
.ReleaseDll).VerifyIL("Program.M", @"
1815
CompileAndVerify(text, options:
TestOptions
.DebugDll).VerifyIL("Program.M<T>", @"
1828
CompileAndVerify(text, options:
TestOptions
.ReleaseDll).VerifyIL("Program.M<T>", @"
1853
CompileAndVerify(text, options:
TestOptions
.DebugDll).VerifyIL("Program.M<T>", @"
1866
CompileAndVerify(text, options:
TestOptions
.ReleaseDll).VerifyIL("Program.M<T>", @"
1893
CompileAndVerify(text, options:
TestOptions
.DebugDll, verify: Verification.Fails).VerifyIL("Program.M<T>", @"
1907
CompileAndVerify(text, options:
TestOptions
.ReleaseDll).VerifyIL("Program.M<T>", @"
1933
CompileAndVerify(text, options:
TestOptions
.DebugDll).VerifyIL("Program.M<T>", @"
1946
CompileAndVerify(text, options:
TestOptions
.ReleaseDll).VerifyIL("Program.M<T>", @"
1972
CompileAndVerify(text, options:
TestOptions
.DebugDll).VerifyIL("Program.M", @"
1984
CompileAndVerify(text, options:
TestOptions
.ReleaseDll).VerifyIL("Program.M", @"
2009
CompileAndVerify(text, options:
TestOptions
.DebugDll).VerifyIL("Program.M", @"
2021
CompileAndVerify(text, options:
TestOptions
.ReleaseDll).VerifyIL("Program.M", @"
2047
CompileAndVerify(text, options:
TestOptions
.DebugDll).VerifyIL("Program.M<T>", @"
2060
CompileAndVerify(text, options:
TestOptions
.ReleaseDll).VerifyIL("Program.M<T>", @"
2086
CompileAndVerify(text, options:
TestOptions
.DebugDll).VerifyIL("Program.M(ref int)", @"
2112
CompileAndVerify(text, options:
TestOptions
.DebugDll).VerifyIL("Program.M(out int)", @"
2141
CompileAndVerify(text, options:
TestOptions
.DebugDll).VerifyIL("Program.M(ref int)", @"
2172
CompileAndVerify(text, options:
TestOptions
.DebugDll, verify: Verification.Fails).VerifyIL("Program.M()", @"
2205
var comp = CompileAndVerify(text, options:
TestOptions
.DebugDll, verify: Verification.Fails);
2276
var comp = CompileAndVerify(text, options:
TestOptions
.DebugDll, verify: Verification.Fails);
2366
var comp = CompileAndVerify(text, options:
TestOptions
.DebugDll);
2428
var comp = CompileAndVerify(text, options:
TestOptions
.DebugDll, verify: Verification.Fails);
2495
var comp = CompileAndVerify(text, options:
TestOptions
.DebugDll, verify: Verification.Fails);
2577
var comp = CompileAndVerify(text, options:
TestOptions
.DebugDll);
2638
CompileAndVerify(text, options:
TestOptions
.DebugDll).VerifyIL("Program.M()", @"
2672
var comp = CompileAndVerify(text, options:
TestOptions
.DebugDll);
2713
CompileAndVerify(text, options:
TestOptions
.DebugDll).VerifyIL("Program.M()", @"
2748
var comp = CompileAndVerify(text, options:
TestOptions
.DebugDll);
2799
var comp = CompileAndVerify(text, options:
TestOptions
.DebugDll);
2843
CompileAndVerify(text, options:
TestOptions
.DebugDll, verify: Verification.Fails).VerifyIL("Program.M()", @"
2880
var comp = CompileAndVerify(text, options:
TestOptions
.DebugDll, verify: Verification.Fails);
2951
var comp = CompileAndVerify(text, options:
TestOptions
.DebugDll, verify: Verification.Fails);
3048
var comp = CompileAndVerify(text, options:
TestOptions
.DebugDll, verify: Verification.Fails);
3118
CompileAndVerify(text, options:
TestOptions
.DebugDll, verify: Verification.Fails).VerifyIL("Program.M(ref int, ref int, object)", @"
3158
var comp = CompileAndVerify(text, options:
TestOptions
.DebugDll, verify: Verification.Fails);
3235
var comp = CompileAndVerify(text, options:
TestOptions
.DebugDll, verify: Verification.Fails);
3341
var comp = CompileAndVerify(text, options:
TestOptions
.DebugDll, verify: Verification.Fails);
3421
CompileAndVerify(text, options:
TestOptions
.DebugDll).VerifyIL("Program.M(D)", @"
3450
CompileAndVerify(text, options:
TestOptions
.DebugDll, verify: Verification.Fails).VerifyIL("Program.M(D, ref int, ref int, object)", @"
3879
CompileAndVerify(text, options:
TestOptions
.UnsafeDebugDll, verify: Verification.Fails).VerifyIL("Program.Main()", @"
3952
CompileAndVerify(text, options:
TestOptions
.UnsafeDebugDll, verify: Verification.Passes).VerifyIL("Program.Main()", @"
4003
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp6));
4207
verify(
TestOptions
.UnsafeReleaseExe, Verification.Passes, @"
4222
verify(
TestOptions
.UnsafeDebugExe, Verification.Fails, @"
4276
verify(
TestOptions
.UnsafeReleaseExe, @"
4289
verify(
TestOptions
.UnsafeDebugExe, @"
4332
verify(
TestOptions
.UnsafeReleaseExe, Verification.Passes, @"
4348
verify(
TestOptions
.UnsafeDebugExe, Verification.Fails, @"
4395
verify(
TestOptions
.UnsafeReleaseExe, Verification.Passes, @"
4408
verify(
TestOptions
.UnsafeDebugExe, Verification.Fails, @"
4447
verify(
TestOptions
.UnsafeReleaseExe, Verification.Passes, @"
4462
verify(
TestOptions
.UnsafeDebugExe, Verification.Fails, @"
4508
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: "");
4525
verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: "");
4561
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: "");
4577
verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: "");
4613
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: "");
4629
verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: "");
4664
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: "");
4680
verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: "");
4713
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: "");
4722
verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: "");
4749
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: "");
4758
verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: "");
CodeGen\CodeGenRefOutTests.cs (13)
350
var compilation = CreateCompilationWithMscorlib40AndSystemCore(code, options:
TestOptions
.ReleaseExe);
412
var compilation = CreateCompilationWithMscorlib40AndSystemCore(code, options:
TestOptions
.ReleaseExe);
474
var compilation = CreateCompilationWithMscorlib40AndSystemCore(code, options:
TestOptions
.ReleaseExe);
514
verify(
TestOptions
.UnsafeReleaseExe, @"
525
verify(
TestOptions
.UnsafeDebugExe, @"
573
verify(
TestOptions
.UnsafeReleaseExe, @"
594
verify(
TestOptions
.UnsafeDebugExe, @"
650
verify(
TestOptions
.UnsafeReleaseExe, @"
666
verify(
TestOptions
.UnsafeDebugExe, @"
721
verify(
TestOptions
.UnsafeReleaseExe, @"
744
verify(
TestOptions
.UnsafeDebugExe, @"
797
verify(
TestOptions
.UnsafeReleaseExe, @"
810
verify(
TestOptions
.UnsafeDebugExe, @"
CodeGen\CodeGenRefReadonlyReturnTests.cs (9)
62
var comp = CompileAndVerify(source, parseOptions:
TestOptions
.Regular.WithPEVerifyCompatFeature(), verify: Verification.Fails);
433
}", options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: "NullReferenceException");
466
var comp = CompileAndVerify(text, parseOptions:
TestOptions
.Regular);
688
var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options:
TestOptions
.UnsafeReleaseDll);
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);
973
var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, parseOptions:
TestOptions
.Regular10);
1201
var comp = CompileAndVerify(text, parseOptions:
TestOptions
.Regular);
CodeGen\CodeGenRefReturnTests.cs (25)
131
CompileAndVerify(text, parseOptions:
TestOptions
.Regular10, verify: Verification.Fails).VerifyIL("Program.M(out int)", @"
1303
CompileAndVerifyRef(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("Program.Main()", @"
1492
CompileAndVerifyRef(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("Program.Main()", @"
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));
2480
var compilation = CreateCompilation("", options:
TestOptions
.DebugDll, references: new[] { ref1 });
2520
var comp = CreateCompilation(text, options:
TestOptions
.ReleaseDll);
2553
var comp = CreateCompilation(text, options:
TestOptions
.ReleaseDll);
2825
CreateCompilation(source, parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates).VerifyDiagnostics(
2877
CreateCompilation(source, parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates).VerifyDiagnostics(
2967
var comp = CreateCompilationWithMscorlib461AndCSharp(source, options:
TestOptions
.ReleaseExe);
3080
var comp = CreateCompilationWithMscorlib461AndCSharp(source, options:
TestOptions
.ReleaseExe);
3358
CreateCompilationWithMscorlib461AndCSharp(source, parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates).VerifyEmitDiagnostics(
3410
CreateCompilationWithMscorlib461AndCSharp(source, parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates).VerifyEmitDiagnostics(
3455
CompileAndVerify(source, parseOptions:
TestOptions
.Regular, expectedOutput: "Base", verify: Verification.Passes);
3498
CreateCompilationWithMscorlib461AndCSharp(source, parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates).VerifyEmitDiagnostics(
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]
3633
CompileAndVerify(text, expectedOutput: "37", parseOptions:
TestOptions
.Regular10, verify: Verification.Fails).VerifyIL("Program.Main()", @"
CodeGen\CodeGenScriptTests.cs (23)
25
var tree = SyntaxFactory.ParseSyntaxTree(test, options:
TestOptions
.Script);
30
options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"),
44
var tree = SyntaxFactory.ParseSyntaxTree(test, options:
TestOptions
.Script);
49
options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"),
62
var tree = SyntaxFactory.ParseSyntaxTree(test, options:
TestOptions
.Script);
67
options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"),
88
var tree = SyntaxFactory.ParseSyntaxTree(test, options:
TestOptions
.Script);
93
options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"),
113
var tree = SyntaxFactory.ParseSyntaxTree(test, options:
TestOptions
.Script);
117
options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"));
138
var tree = SyntaxFactory.ParseSyntaxTree(test, options:
TestOptions
.Script);
142
options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"));
169
var tree = SyntaxFactory.ParseSyntaxTree(test, options:
TestOptions
.Script);
173
options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"));
197
var tree = SyntaxFactory.ParseSyntaxTree(test, options:
TestOptions
.Script);
201
options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"));
496
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe);
555
SyntaxFactory.ParseSyntaxTree(source0, options:
TestOptions
.Script),
603
var compilation = CreateCompilationWithMscorlib40(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe);
636
var tree = SyntaxFactory.ParseSyntaxTree(test, options:
TestOptions
.Script);
640
options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"));
CodeGen\CodeGenShortCircuitOperatorTests.cs (38)
2755
var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef },
TestOptions
.ReleaseExe);
2824
var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef },
TestOptions
.ReleaseExe);
2905
var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef },
TestOptions
.ReleaseExe);
2975
var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef },
TestOptions
.ReleaseExe);
3058
var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef },
TestOptions
.ReleaseExe);
3141
var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef },
TestOptions
.ReleaseExe);
3422
var comp = CreateCompilationWithMscorlib461(source, references: new[] { CSharpRef }, options:
TestOptions
.ReleaseExe);
4777
var comp = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
5181
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe.WithAllowUnsafe(true), verify: Verification.Fails, expectedOutput: @"---
5232
var verifier = CompileAndVerify(source, verify: Verification.FailsILVerify, options:
TestOptions
.DebugExe.WithAllowUnsafe(true), expectedOutput: @"---
5289
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: @"---
5416
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: @"---
5543
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe.WithAllowUnsafe(true), verify: Verification.Fails, expectedOutput: @"---
5616
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe.WithAllowUnsafe(true));
5669
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: @" ---
5718
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: @"---
5807
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: @"---
5863
source, references: new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, options:
TestOptions
.DebugExe);
6191
var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef },
TestOptions
.ReleaseExe);
6228
var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef },
TestOptions
.ReleaseExe);
6271
var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef },
TestOptions
.ReleaseExe);
6307
var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef },
TestOptions
.ReleaseExe);
6350
var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef },
TestOptions
.ReleaseExe);
6385
var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef },
TestOptions
.ReleaseExe);
6992
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput:
7052
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput:
7119
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput:
7179
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput:
7234
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput:
7278
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput:
7324
var comp = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: @"", verify: Verification.Fails);
7349
comp = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: @"", parseOptions:
TestOptions
.Regular.WithPEVerifyCompatFeature(), verify: Verification.Passes);
7392
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: @"");
7469
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput);
7470
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput);
7520
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput);
7521
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput);
CodeGen\CodeGenStackAllocInitializerTests.cs (41)
50
parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3),
51
options:
TestOptions
.UnsafeReleaseExe,
123
parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3),
124
options:
TestOptions
.UnsafeReleaseExe,
214
", options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3));
313
parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3),
314
options:
TestOptions
.UnsafeReleaseExe,
369
parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3),
370
options:
TestOptions
.UnsafeReleaseExe,
410
parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3),
411
options:
TestOptions
.UnsafeReleaseExe,
429
parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3),
430
options:
TestOptions
.UnsafeDebugExe,
493
parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3),
494
options:
TestOptions
.UnsafeReleaseExe,
528
parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3),
529
options:
TestOptions
.UnsafeReleaseExe,
568
parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3),
569
options:
TestOptions
.UnsafeReleaseExe,
613
options:
TestOptions
.UnsafeReleaseExe,
670
parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3),
671
options:
TestOptions
.UnsafeReleaseExe,
726
parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3),
727
options:
TestOptions
.UnsafeReleaseExe,
869
", options:
TestOptions
.UnsafeReleaseExe, parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3));
981
options:
TestOptions
.DebugExe).VerifyDiagnostics();
1050
", options:
TestOptions
.UnsafeReleaseExe, parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3));
1138
options:
TestOptions
.DebugExe).VerifyDiagnostics();
1237
options:
TestOptions
.DebugExe).VerifyDiagnostics();
1293
options:
TestOptions
.DebugExe).VerifyDiagnostics();
1348
options:
TestOptions
.DebugExe).VerifyDiagnostics();
1498
verify: Verification.Fails, options:
TestOptions
.UnsafeReleaseExe, targetFramework: TargetFramework.Net70);
1524
verify: Verification.Fails, options:
TestOptions
.UnsafeDebugExe, targetFramework: TargetFramework.Net70).VerifyDiagnostics();
1526
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseExe, targetFramework: TargetFramework.Net70);
1580
verify: Verification.Fails, options:
TestOptions
.UnsafeReleaseExe, targetFramework: TargetFramework.Net70);
1675
options:
TestOptions
.DebugExe).VerifyDiagnostics();
1699
parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3),
1700
options:
TestOptions
.UnsafeReleaseExe,
CodeGen\CodeGenStructsAndEnum.cs (2)
525
CompileAndVerify(text, options:
TestOptions
.DebugExe).VerifyIL("Struct.Main()", expectedIL);
1570
compilation = CompileAndVerify(source, expectedOutput: "S1", parseOptions:
TestOptions
.Regular.WithPEVerifyCompatFeature());
CodeGen\CodeGenTests.cs (74)
33
var parseOptions =
TestOptions
.RegularWithDocumentationComments;
34
var options =
TestOptions
.ReleaseDll
81
var result = CompileAndVerify(source, verify: Verification.FailsILVerify, options:
TestOptions
.DebugDll);
169
var result = CompileAndVerify(source, verify: Verification.FailsILVerify, options:
TestOptions
.DebugDll);
239
var result = CompileAndVerify(source, options:
TestOptions
.DebugDll);
300
var result = CompileAndVerify(source, options:
TestOptions
.DebugDll);
335
var result = CompileAndVerify(source, options:
TestOptions
.ReleaseDll);
383
var result = CompileAndVerify(source, options:
TestOptions
.ReleaseDll);
436
var result = CompileAndVerify(source, options:
TestOptions
.ReleaseDll);
476
var compilation = CreateEmptyCompilation(tree, [Net461.References.mscorlib],
TestOptions
.ReleaseExe, assemblyName: "Test");
534
var compilation = CreateCompilationWithILAndMscorlib40(source, il, TargetFramework.Mscorlib461, options:
TestOptions
.ReleaseDll);
608
var compilation = CreateCompilationWithILAndMscorlib40(source, il, TargetFramework.Mscorlib461, options:
TestOptions
.DebugDll);
867
var compilation = CreateCompilationWithILAndMscorlib40(source, il, TargetFramework.Mscorlib461, options:
TestOptions
.ReleaseExe);
932
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
1814
var v = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: "42123");
3165
var compilation = CompileAndVerify(source, options:
TestOptions
.ReleaseDebugExe, expectedOutput: "0427");
3335
var compilation = CompileAndVerify(source, options:
TestOptions
.ReleaseExe.WithModuleName("MODULE"), expectedOutput: "222333");
4355
", options:
TestOptions
.ReleaseExe);
4476
", options:
TestOptions
.ReleaseExe);
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());
5685
var v = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: @"1");
6670
var compilation = CompileAndVerifyWithMscorlib40(source, options:
TestOptions
.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"
6793
var compilation = CompileAndVerify(source, options:
TestOptions
.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"3-5");
6855
var compilation = CompileAndVerify(source, options:
TestOptions
.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"30");
7009
var compilation = CreateCompilationWithMscorlib461(source: source, options:
TestOptions
.ReleaseExe.WithModuleName("MODULE"));
7122
var compilation = CompileAndVerify(source, options:
TestOptions
.ReleaseDebugExe, expectedOutput: @"0");
7593
var compilation = CompileAndVerify(source, options:
TestOptions
.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"
7876
var compilation = CompileAndVerify(source, options:
TestOptions
.DebugExe.WithModuleName("MODULE"));
9006
var compilation = CompileAndVerify(source, options:
TestOptions
.ReleaseDebugExe, expectedOutput: @"2
9170
var compilation = CompileAndVerify(source, expectedOutput: @"42", options:
TestOptions
.ReleaseDebugExe);
10448
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
10516
CreateEmptyCompilation(source, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute()).VerifyEmitDiagnostics(
10793
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe);
10913
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe);
10993
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe);
11067
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe);
12299
var comp = CompileAndVerify(source, expectedOutput: @"42", parseOptions:
TestOptions
.Regular7_2, verify: Verification.FailsPEVerify);
12332
comp = CompileAndVerify(source, expectedOutput: @"42", verify: Verification.Passes, parseOptions:
TestOptions
.Regular.WithPEVerifyCompatFeature());
12364
comp = CompileAndVerify(source, expectedOutput: @"42", verify: Verification.Passes, parseOptions:
TestOptions
.Regular7_1);
12482
comp = CompileAndVerify(source, expectedOutput: @"-10", verify: Verification.Passes, parseOptions:
TestOptions
.Regular.WithPEVerifyCompatFeature());
13249
}", options:
TestOptions
.ReleaseExe,
13270
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithConcurrentBuild(false));
13435
var comp = CompileAndVerify(code, expectedOutput: "5", options:
TestOptions
.DebugExe);
13455
comp = CompileAndVerify(code, expectedOutput: "5", options:
TestOptions
.ReleaseExe);
13612
var compRelease = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
13613
var compDebug = CreateCompilation(source, options:
TestOptions
.DebugExe);
13656
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
13962
var compilation = CompileAndVerify(source, options:
TestOptions
.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"False
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());
14809
options:
TestOptions
.UnsafeDebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
14810
parseOptions:
TestOptions
.Regular9);
14930
CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @""
16289
var comp = CreateCompilationWithMscorlibAndSpan(source,
TestOptions
.UnsafeReleaseExe);
16291
comp = CreateCompilationWithMscorlibAndSpan(source,
TestOptions
.UnsafeDebugExe);
16312
comp = CreateCompilationWithMscorlibAndSpan(source,
TestOptions
.ReleaseExe);
16334
comp = CreateCompilationWithMscorlibAndSpan(source,
TestOptions
.DebugExe);
16388
var comp = CreateCompilationWithMscorlibAndSpan(source,
TestOptions
.ReleaseExe);
16421
comp = CreateCompilationWithMscorlibAndSpan(source,
TestOptions
.DebugExe);
16481
var comp = CreateCompilationWithMscorlibAndSpan(source,
TestOptions
.ReleaseExe);
16500
comp = CreateCompilationWithMscorlibAndSpan(source,
TestOptions
.DebugExe);
16537
var comp = CreateCompilationWithMscorlibAndSpan(source,
TestOptions
.ReleaseExe);
16559
comp = CreateCompilationWithMscorlibAndSpan(source,
TestOptions
.DebugExe);
16602
var comp = CreateCompilationWithMscorlibAndSpan(source,
TestOptions
.ReleaseExe);
16657
comp = CreateCompilationWithMscorlibAndSpan(source,
TestOptions
.DebugExe);
16746
var comp = CreateCompilationWithMscorlibAndSpan(source,
TestOptions
.UnsafeReleaseExe);
16748
comp = CreateCompilationWithMscorlibAndSpan(source,
TestOptions
.UnsafeDebugExe);
16770
var comp = CreateCompilationWithMscorlibAndSpan(source,
TestOptions
.UnsafeReleaseExe);
16772
comp = CreateCompilationWithMscorlibAndSpan(source,
TestOptions
.UnsafeDebugExe);
17241
var compilation = CompileAndVerify(source, options:
TestOptions
.ReleaseExe.WithAllowUnsafe(true), verify: Verification.Skipped, expectedOutput: @"");
17311
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
CodeGen\CodeGenThrowTests.cs (1)
335
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
CodeGen\CodeGenTryFinally.cs (17)
3730
CompileAndVerify(source, expectedOutput: "", options:
TestOptions
.DebugExe);
3731
CompileAndVerify(source, expectedOutput: "", options:
TestOptions
.ReleaseExe).VerifyIL("Program.Main",
3826
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: "M1M4M1M2Catch",
3858
verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: "M1M4M1M2Catch",
3924
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseDll).VerifyDiagnostics();
3956
verifier = CompileAndVerify(source, options:
TestOptions
.DebugDll).VerifyDiagnostics();
4021
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
4053
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
4085
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
4103
verifier = CompileAndVerify(source, options:
TestOptions
.DebugDll).VerifyDiagnostics(
4149
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
4166
verifier = CompileAndVerify(source, options:
TestOptions
.DebugDll).VerifyDiagnostics(
4212
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
4230
verifier = CompileAndVerify(source, options:
TestOptions
.DebugDll).VerifyDiagnostics(
4287
CompileAndVerify(source, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(expectedDiagnostics);
4288
CompileAndVerify(source, options:
TestOptions
.DebugDll).VerifyDiagnostics(expectedDiagnostics);
4314
CompileAndVerify(source, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
CodeGen\CodeGenTupleEqualityTests.cs (83)
31
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_2);
66
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, assemblyName: name);
785
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
830
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
847
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
895
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
944
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
994
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1048
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1082
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1114
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1145
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1205
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1234
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1259
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1281
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1305
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1335
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
1489
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1550
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1587
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1612
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1649
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
1662
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
1806
var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.DebugExe);
1822
var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.DebugExe);
1840
var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.DebugExe);
1860
var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.DebugExe);
1893
var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.DebugExe);
1911
var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.DebugExe);
1995
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
2058
var comp = CreateCompilationWithMscorlib40(source, options:
TestOptions
.DebugExe);
2098
var comp = CreateCompilationWithMscorlib40(source, options:
TestOptions
.DebugExe);
2154
var comp = CreateCompilationWithMscorlib40(source, options:
TestOptions
.DebugExe);
2175
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
2219
var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.DebugExe);
2266
var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.DebugExe);
2297
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
2414
var comp = CreateCompilation(source.Replace("EXPRESSION", expression), options:
TestOptions
.DebugExe);
2502
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
2732
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
2819
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
2983
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3013
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3271
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3356
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3391
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3426
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3440
CompileAndVerify(source, options:
TestOptions
.ReleaseExe).VerifyIL("C.Main", @"{
3468
CompileAndVerify(source, expectedOutput: "TrueFalse", options:
TestOptions
.ReleaseExe).VerifyIL("C.M", @"{
3502
CompileAndVerify(source, expectedOutput: "FalseTrue", options:
TestOptions
.ReleaseExe).VerifyIL("C.M", @"{
3534
CompileAndVerify(source, expectedOutput: "TrueFalse", options:
TestOptions
.ReleaseExe).VerifyIL("C.M", @"{
3563
CompileAndVerify(source, expectedOutput: "False", options:
TestOptions
.ReleaseExe).VerifyIL("C.Main", @"{
3591
CompileAndVerify(source, expectedOutput: "TrueFalse", options:
TestOptions
.ReleaseExe).VerifyIL("C.M", @"{
3620
CompileAndVerify(source, expectedOutput: "False", options:
TestOptions
.ReleaseExe).VerifyIL("C.Main", @"{
3642
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3677
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3776
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3801
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3904
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3997
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
4075
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
4116
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
4177
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
4231
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
4333
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
4381
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
4478
targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.DebugExe);
4582
targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.DebugExe);
4671
var comp = CreateCompilation(source.Replace("REPLACE", expression), options:
TestOptions
.DebugExe);
4978
var comp = CreateCompilationWithMscorlib40(source, options:
TestOptions
.DebugExe);
5045
var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.DebugExe);
5085
var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.DebugExe);
5107
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
5150
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
5296
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
5343
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
5371
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
5392
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
5418
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
5439
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
5502
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
5558
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
CodeGen\CodeGenTupleTest.cs (296)
229
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7);
267
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7);
1600
var tree = Parse(source, options:
TestOptions
.Regular);
1683
options:
TestOptions
.ReleaseExe);
1688
options:
TestOptions
.ReleaseDll);
1692
options:
TestOptions
.ReleaseExe);
1697
options:
TestOptions
.ReleaseExe);
2213
var verifier = CompileAndVerify(source, expectedOutput: @"42", options:
TestOptions
.ReleaseExe);
2333
var verifier = CompileAndVerify(source, expectedOutput: @"{42, 42}", options:
TestOptions
.ReleaseExe);
2480
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Mscorlib46Extended, expectedOutput: @"42", options:
TestOptions
.ReleaseExe);
2622
var verifier = CompileAndVerify(source, expectedOutput: @"42", options:
TestOptions
.ReleaseExe);
2764
var verifier = CompileAndVerify(source, expectedOutput: @"42", options:
TestOptions
.ReleaseExe);
2925
CompileAndVerify(source, expectedOutput: @"42", targetFramework: TargetFramework.Mscorlib46, options:
TestOptions
.ReleaseExe);
3732
var comp = CreateCompilationWithMscorlib40(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, parseOptions:
TestOptions
.Regular7);
3773
references: new[] { ValueTupleRef, SystemRuntimeFacadeRef, libComp.ToMetadataReference() }, parseOptions:
TestOptions
.Regular);
3785
references: new[] { ValueTupleRef, SystemRuntimeFacadeRef, libComp.ToMetadataReference() }, parseOptions:
TestOptions
.Regular7_1);
3819
var comp7 = CreateCompilation(source_cs, parseOptions:
TestOptions
.Regular, assemblyName: "UseSiteDiagnosticOnTupleField2_comp7");
3826
var comp7_1 = CreateCompilation(source_cs, parseOptions:
TestOptions
.Regular7_1, assemblyName: "UseSiteDiagnosticOnTupleField2_comp7_1");
3858
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetFramework, parseOptions:
TestOptions
.Regular7);
3884
var comp = CreateCompilationWithMscorlib40(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.Regular7_1);
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),
4276
var comp = CreateCompilation(source, references: new[] { new CSharpCompilationReference(comp1), new CSharpCompilationReference(comp2) }, options:
TestOptions
.ReleaseExe);
5323
parseOptions:
TestOptions
.Regular, expectedOutput:
5408
CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
5418
CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
5533
options:
TestOptions
.DebugExe);
7100
CreateCompilation(source, parseOptions:
TestOptions
.Regular).VerifyDiagnostics(
7449
CreateCompilation(source, parseOptions:
TestOptions
.Regular).VerifyDiagnostics(
7491
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
7524
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
7561
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
7618
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
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);
8890
var comp = CreateCompilation(tree, options:
TestOptions
.ReleaseExe);
8936
var tree = Parse(source, options:
TestOptions
.Regular);
8937
var comp = CreateCompilation(tree, options:
TestOptions
.ReleaseExe);
9007
var tree = Parse(source, options:
TestOptions
.Regular);
9008
var comp = CreateCompilation(tree, options:
TestOptions
.ReleaseExe);
9059
var tree = Parse(source, options:
TestOptions
.Regular);
9061
options:
TestOptions
.ReleaseExe);
9136
var tree = Parse(source, options:
TestOptions
.Regular);
9137
var comp = CreateCompilation(tree, options:
TestOptions
.ReleaseExe);
9217
var tree = Parse(source, options:
TestOptions
.Regular);
9218
var comp = CreateCompilation(tree, options:
TestOptions
.ReleaseExe);
9300
var tree = Parse(source, options:
TestOptions
.Regular);
9301
var comp = CreateCompilation(tree, options:
TestOptions
.ReleaseExe);
9354
var tree = Parse(source, options:
TestOptions
.Regular);
9356
options:
TestOptions
.ReleaseExe);
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: @"
10393
options:
TestOptions
.UnsafeDebugDll);
10642
options:
TestOptions
.UnsafeDebugDll);
10793
parseOptions:
TestOptions
.Regular, expectedOutput: @"(1, hello)
10826
parseOptions:
TestOptions
.Regular, expectedOutput: @"(1, hello)
10856
parseOptions:
TestOptions
.Regular, expectedOutput: @"((1, Australia), (2, Brazil))");
10941
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular6);
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
13519
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
13908
options:
TestOptions
.ReleaseExe);
13913
options:
TestOptions
.ReleaseDll);
13917
options:
TestOptions
.ReleaseExe);
13923
options:
TestOptions
.ReleaseExe);
14073
options:
TestOptions
.ReleaseExe);
14078
options:
TestOptions
.ReleaseDll);
14082
options:
TestOptions
.ReleaseExe);
14088
options:
TestOptions
.ReleaseExe);
14207
options:
TestOptions
.ReleaseExe.WithAllowUnsafe(true),
14397
options:
TestOptions
.ReleaseExe.WithAllowUnsafe(true));
14500
options:
TestOptions
.ReleaseDll);
14505
options:
TestOptions
.ReleaseExe);
14769
var lib = CreateCompilationWithMscorlib40(tuple, options:
TestOptions
.ReleaseDll);
14772
var consumer1 = CreateCompilationWithMscorlib40(source, options:
TestOptions
.ReleaseExe, references: new[] { lib.ToMetadataReference() });
14775
var consumer2 = CreateCompilationWithMscorlib40(source, options:
TestOptions
.ReleaseExe, references: new[] { lib.EmitToImageReference() });
15030
var lib = CreateCompilationWithMscorlib40(tuple, options:
TestOptions
.ReleaseDll);
15033
var consumer1 = CreateCompilationWithMscorlib40(source, options:
TestOptions
.ReleaseExe, references: new[] { lib.ToMetadataReference() });
15036
var consumer2 = CreateCompilationWithMscorlib40(source, options:
TestOptions
.ReleaseExe, references: new[] { lib.EmitToImageReference() });
15093
parseOptions:
TestOptions
.Regular,
15094
options:
TestOptions
.ReleaseExe,
15157
parseOptions:
TestOptions
.Regular,
15158
options:
TestOptions
.ReleaseExe,
15416
var lib = CreateCompilationWithMscorlib46(tuple, options:
TestOptions
.ReleaseDll);
15419
var consumer1 = CreateCompilationWithMscorlib46(source, options:
TestOptions
.ReleaseExe, references: new[] { lib.ToMetadataReference() });
15422
var consumer2 = CreateCompilationWithMscorlib46(source, options:
TestOptions
.ReleaseExe, references: new[] { lib.EmitToImageReference() });
15677
var lib = CreateCompilationWithMscorlib46(tuple, options:
TestOptions
.ReleaseDll);
15680
var consumer1 = CreateCompilationWithMscorlib46(source, options:
TestOptions
.ReleaseExe, references: new[] { lib.ToMetadataReference() });
15683
var consumer2 = CreateCompilationWithMscorlib46(source, options:
TestOptions
.ReleaseExe, references: new[] { lib.EmitToImageReference() });
15711
options:
TestOptions
.ReleaseExe,
16169
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
16269
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
16515
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
16562
var tree = Parse(source, options:
TestOptions
.Regular);
16599
var tree = Parse(source, options:
TestOptions
.Regular);
16793
parseOptions:
TestOptions
.Regular,
16794
options:
TestOptions
.DebugExe);
16804
parseOptions:
TestOptions
.Regular,
16805
options:
TestOptions
.DebugExe);
16815
parseOptions:
TestOptions
.Regular,
16816
options:
TestOptions
.DebugExe);
16855
parseOptions:
TestOptions
.Regular,
16856
options:
TestOptions
.DebugExe);
16866
parseOptions:
TestOptions
.Regular,
16867
options:
TestOptions
.DebugExe);
16887
parseOptions:
TestOptions
.Regular,
16888
options:
TestOptions
.DebugExe);
16927
parseOptions:
TestOptions
.Regular,
16928
options:
TestOptions
.DebugExe);
16941
parseOptions:
TestOptions
.Regular,
16942
options:
TestOptions
.DebugExe);
16962
parseOptions:
TestOptions
.Regular,
16963
options:
TestOptions
.DebugExe);
17024
parseOptions:
TestOptions
.Regular,
17025
options:
TestOptions
.DebugExe);
17047
parseOptions:
TestOptions
.Regular,
17048
options:
TestOptions
.DebugExe);
17074
parseOptions:
TestOptions
.Regular,
17075
options:
TestOptions
.DebugExe);
17125
parseOptions:
TestOptions
.Regular,
17126
options:
TestOptions
.DebugExe);
17179
parseOptions:
TestOptions
.Regular,
17180
options:
TestOptions
.DebugExe);
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);
17396
var tree = Parse(source, options:
TestOptions
.Regular7_1);
17429
var tree = Parse(source, options:
TestOptions
.Regular7_1);
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: @"
20541
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
21296
options:
TestOptions
.DebugDll);
21308
options:
TestOptions
.DebugDll);
21324
options:
TestOptions
.DebugDll);
21345
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
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);
22141
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Mscorlib46, expectedOutput: @"5", options:
TestOptions
.ReleaseExe);
22378
parseOptions:
TestOptions
.Regular.WithTuplesFeature());
22380
parseOptions:
TestOptions
.Regular.WithTuplesFeature());
22395
parseOptions:
TestOptions
.Regular.WithTuplesFeature(),
22396
options:
TestOptions
.DebugExe);
22479
var compLib = CreateCompilationWithMscorlib40(lib_cs, options:
TestOptions
.ReleaseDll);
22770
var comp = CreateCompilation(source, assemblyName: "comp", options:
TestOptions
.DebugExe);
22810
var comp = CreateCompilationWithMscorlib40(source, assemblyName: "comp", references: new[] { libComp.EmitToImageReference() }, options:
TestOptions
.DebugExe);
22847
options:
TestOptions
.DebugExe,
22897
var comp = CreateCompilation(source, assemblyName: "ValueTupleNotStruct", options:
TestOptions
.DebugExe);
22966
var comp = CreateCompilation(source, assemblyName: "ValueTupleNotStruct", options:
TestOptions
.DebugExe);
23010
var comp = CreateCompilation(source, assemblyName: "ValueTupleNotStruct", options:
TestOptions
.DebugExe);
23044
var comp = CreateCompilation(source, assemblyName: "ValueTupleNotStruct", options:
TestOptions
.DebugExe);
23086
var comp = CreateCompilation(source, assemblyName: "ValueTupleNotStruct", options:
TestOptions
.DebugExe);
23125
var comp = CreateCompilation(source, assemblyName: "ValueTupleNotStruct", options:
TestOptions
.DebugExe);
23218
var signedDllOptions =
TestOptions
.SigningReleaseDll.
23336
parseOptions:
TestOptions
.Regular, expectedOutput: @"(42, 0)
23419
var libComp = CreateCompilationWithMscorlib461AndCSharp(lib, references: s_valueTupleRefs, options:
TestOptions
.DebugDll);
23446
var comp = CompileAndVerify(source, expectedOutput: "42qq", references: new[] { libComp.ToMetadataReference() }, options:
TestOptions
.DebugExe, verify: Verification.Fails);
23473
var libComp = CreateCompilationWithMscorlib461AndCSharp(lib, options:
TestOptions
.DebugDll, references: s_valueTupleRefs);
23502
var comp = CompileAndVerifyWithMscorlib40(source, expectedOutput: "42qq", references: s_valueTupleRefs.Concat(new[] { libCompRef }).ToArray(), options:
TestOptions
.DebugExe, verify: Verification.Fails);
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:
23846
var comp = CreateCompilationWithMscorlib461AndCSharp(source, references: (new[] { libCompRef }).Concat(s_valueTupleRefs).ToArray(), options:
TestOptions
.DebugExe);
23875
var libComp = CreateCompilationWithMscorlib461AndCSharp(lib, references: s_valueTupleRefs, options:
TestOptions
.DebugDll);
23901
var comp = CompileAndVerify(source, expectedOutput: "42qq", references: new[] { libCompRef }, options:
TestOptions
.DebugExe, verify: Verification.Passes);
23962
parseOptions:
TestOptions
.Regular, expectedOutput: @"(1, 2)");
24075
var comp = CreateCompilationWithMscorlib461AndCSharp(source, references: s_valueTupleRefs, options:
TestOptions
.UnsafeDebugDll);
24254
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
24317
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
24382
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
24454
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
24527
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
24597
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
25018
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
25125
parseOptions:
TestOptions
.Regular, expectedOutput: @"
25159
parseOptions:
TestOptions
.Regular, expectedOutput: @"
25275
references: new[] { SystemXmlRef }, options:
TestOptions
.DebugExe);
25315
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
25324
var libWithVT = CreateEmptyCompilation(valuetuple_cs, references: new[] { corlibWithoutVTRef }, parseOptions: parseOptions, options:
TestOptions
.DebugDll);
25396
options:
TestOptions
.ReleaseExe);
25424
var comp = CreateCompilationWithMscorlib40(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options:
TestOptions
.DebugExe);
25464
var comp = CreateCompilationWithMscorlib40(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, parseOptions:
TestOptions
.Regular8);
25548
options:
TestOptions
.ReleaseExe);
25617
options:
TestOptions
.DebugExe, expectedOutput:
25646
options:
TestOptions
.ReleaseExe, expectedOutput:
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),
26216
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
26447
options:
TestOptions
.DebugExe);
26512
options:
TestOptions
.DebugExe);
26569
options:
TestOptions
.DebugExe);
26577
options:
TestOptions
.DebugExe);
26631
var executeComp = CreateCompilation(executable_cs, references: new[] { comp.EmitToImageReference(), libRef, missingRef }, options:
TestOptions
.DebugExe);
27039
var comp1 = CreateCompilation(source0 + source1, targetFramework: TargetFramework.Mscorlib40, options:
TestOptions
.DebugExe);
27046
var comp4 = CreateCompilation(source0 + source2, targetFramework: TargetFramework.Mscorlib40, options:
TestOptions
.DebugExe);
27049
var comp5 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options:
TestOptions
.DebugExe, references: comp1Ref);
27053
var comp6 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options:
TestOptions
.DebugExe, references: comp1ImageRef);
27057
var comp7 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib46, options:
TestOptions
.DebugExe, references: comp1Ref);
27123
var comp1 = CreateCompilation(source0 + source1, targetFramework: TargetFramework.Mscorlib40, options:
TestOptions
.DebugExe);
27130
var comp4 = CreateCompilation(source0 + source2, targetFramework: TargetFramework.Mscorlib40, options:
TestOptions
.DebugExe);
27133
var comp5 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options:
TestOptions
.DebugExe, references: comp1Ref);
27137
var comp6 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options:
TestOptions
.DebugExe, references: comp1ImageRef);
27141
var comp7 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib46, options:
TestOptions
.DebugExe, references: comp1Ref);
27197
var comp1 = CreateCompilation(source0 + source1, targetFramework: TargetFramework.Mscorlib40, options:
TestOptions
.DebugExe);
27204
var comp4 = CreateCompilation(source0 + source2, targetFramework: TargetFramework.Mscorlib40, options:
TestOptions
.DebugExe);
27207
var comp5 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options:
TestOptions
.DebugExe, references: comp1Ref);
27211
var comp6 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options:
TestOptions
.DebugExe, references: comp1ImageRef);
27215
var comp7 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib46, options:
TestOptions
.DebugExe, references: comp1Ref);
27275
var comp1 = CreateCompilation(source0 + source1, targetFramework: TargetFramework.Mscorlib40, options:
TestOptions
.DebugExe);
27282
var comp4 = CreateCompilation(source0 + source2, targetFramework: TargetFramework.Mscorlib40, options:
TestOptions
.DebugExe);
27285
var comp5 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options:
TestOptions
.DebugExe, references: comp1Ref);
27289
var comp6 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options:
TestOptions
.DebugExe, references: comp1ImageRef);
27293
var comp7 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib46, options:
TestOptions
.DebugExe, references: comp1Ref);
27336
var comp1 = CreateCompilation(source0, options:
TestOptions
.DebugExe.WithAllowUnsafe(true));
27537
var comp0 = CreateCompilation(new[] { source0, source1 }, options:
TestOptions
.DebugDll);
27540
var comp1 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
27543
var comp2 = CreateCompilation(source1, references: new[] { comp1.EmitToImageReference() }, options:
TestOptions
.DebugDll);
27563
var comp = CreateCompilation(new[] { source }, options:
TestOptions
.DebugDll);
27616
var compilation = CreateCompilationWithMscorlib461(source, null,
TestOptions
.UnsafeDebugExe);
27654
options:
TestOptions
.ReleaseExe);
27901
options:
TestOptions
.ReleaseExe);
28025
var comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40, assemblyName: "emptyValueTuple", parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
28963
", options:
TestOptions
.UnsafeReleaseDll, symbolValidator: symbolValidator);
29179
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseDll);
29229
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: """
29352
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: """
29457
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: """
CodeGen\CodeGenUsingDeclarationTests.cs (8)
681
var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe).VerifyDiagnostics();
1162
var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe).VerifyDiagnostics();
1189
var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe).VerifyDiagnostics();
1234
var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe).VerifyDiagnostics();
1281
var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe).VerifyDiagnostics();
1317
var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe).VerifyDiagnostics();
1402
var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
1429
var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe);
CodeGen\DestructorTests.cs (1)
692
var compilation = CreateCompilation(text, options:
TestOptions
.ReleaseDll);
CodeGen\EventTests.cs (5)
620
var compilation = CreateCompilation(csharpSource, new MetadataReference[] { ilAssemblyReference },
TestOptions
.ReleaseExe);
645
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
707
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
779
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
842
var compilation = CreateCompilation(source, options:
TestOptions
.DebugDll);
CodeGen\FixedSizeBufferTests.cs (30)
50
}", options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails);
115
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "12", verify: Verification.Fails)
176
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "12", verify: Verification.Passes)
227
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "12", verify: Verification.Passes)
278
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "12", verify: Verification.Passes)
328
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
361
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
398
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
439
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "12", verify: Verification.Fails)
504
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "12", verify: Verification.Fails)
569
var comp1 = CompileAndVerify(s1, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Passes).Compilation;
572
options:
TestOptions
.UnsafeReleaseExe,
607
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "12", verify: Verification.Fails)
640
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
665
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
692
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
714
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
758
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "133", verify: Verification.Fails)
798
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(
827
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(
856
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(
912
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(
953
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(
978
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Passes,
1010
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Passes,
1052
}", options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: @"
1067
}", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
1091
}", options:
TestOptions
.UnsafeReleaseDll);
1122
}", options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
1152
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, targetFramework: TargetFramework.Mscorlib40, assemblyName: "fixedBuffer");
CodeGen\ForeachTest.cs (13)
66
}", options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("Test.Main", @"
329
",
TestOptions
.ReleaseExe);
385
",
TestOptions
.ReleaseExe);
446
",
TestOptions
.ReleaseExe);
498
", targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe);
546
",
TestOptions
.ReleaseExe);
595
",
TestOptions
.ReleaseExe);
694
", references: new[] { MscorlibRef_v4_0_30316_17626 },
TestOptions
.ReleaseExe);
741
",
TestOptions
.ReleaseExe);
796
",
TestOptions
.ReleaseExe);
867
",
TestOptions
.DebugExe);
1398
var comp = CreateCompilationWithMscorlib40AndSystemCore(text, options:
TestOptions
.ReleaseExe);
1683
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularDefault.WithFeature("run-nullable-analysis", "never"));
CodeGen\ForLoopsTests.cs (5)
726
var c = CompileAndVerify(source, options:
TestOptions
.ReleaseDll);
907
var c = CompileAndVerify(source, options:
TestOptions
.ReleaseDll);
961
var c = CompileAndVerify(source, options:
TestOptions
.ReleaseDll);
1265
var c = CompileAndVerify(source, options:
TestOptions
.ReleaseDll);
1916
var c = CompileAndVerify(text, options:
TestOptions
.DebugExe);
CodeGen\GotoTest.cs (24)
503
var c = CompileAndVerify(source, options:
TestOptions
.ReleaseDll);
932
var compilation = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe);
947
var compilation = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe);
983
var compilation = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe);
1000
var s0 = CSharpCompilation.CreateScriptCompilation("s0.dll", SyntaxFactory.ParseSyntaxTree(source0, options:
TestOptions
.Script), references);
1002
var s1 = CSharpCompilation.CreateScriptCompilation("s1.dll", SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.Script), references, previousScriptCompilation: s0);
1019
var compilation = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions:
TestOptions
.Script);
1039
var compilation = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions:
TestOptions
.Script);
1066
var compilation = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe);
1086
var compilation = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe);
1111
var s0 = CSharpCompilation.CreateScriptCompilation("s0.dll", SyntaxFactory.ParseSyntaxTree(source0, options:
TestOptions
.Script), references);
1113
var s1 = CSharpCompilation.CreateScriptCompilation("s1.dll", SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.Script), references, previousScriptCompilation: s0);
1128
var options =
TestOptions
.DebugDll.WithSourceReferenceResolver(resolver);
1129
var compilation = CreateCompilationWithMscorlib461(sourceB, options: options, parseOptions:
TestOptions
.Script);
1146
var tree = Parse(source, options:
TestOptions
.Script);
1159
var tree = Parse(source, options:
TestOptions
.Script);
1173
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script);
1188
compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script);
1201
compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script);
CodeGen\IndexAndRangeTests.cs (39)
24
expectedOutput is null ?
TestOptions
.ReleaseDll :
TestOptions
.ReleaseExe);
190
var comp = CreateCompilationWithIndexAndRangeAndSpan(src,
TestOptions
.ReleaseExe);
280
var comp = CreateCompilationWithIndexAndRangeAndSpan(src,
TestOptions
.ReleaseExe);
412
var comp = CreateCompilationWithIndexAndRangeAndSpan(src,
TestOptions
.ReleaseExe);
509
var comp = CreateCompilationWithIndex(src, options:
TestOptions
.ReleaseExe);
676
var comp = CreateCompilationWithIndex(src, options:
TestOptions
.ReleaseExe);
829
var comp = CreateCompilationWithIndexAndRangeAndSpanAndMemoryExtensions(src,
TestOptions
.ReleaseExe);
917
var comp = CreateCompilationWithIndexAndRangeAndSpan(src,
TestOptions
.ReleaseExe);
951
var comp = CreateCompilationWithIndexAndRange(src,
TestOptions
.ReleaseExe);
1024
}",
TestOptions
.ReleaseExe);
1098
}",
TestOptions
.ReleaseExe); ;
1183
}",
TestOptions
.ReleaseExe);
1899
}",
TestOptions
.ReleaseExe);
1957
var comp = CreateCompilationWithIndex(source, WithNullableEnable(
TestOptions
.DebugExe));
2099
}" + TestSources.GetSubArray,
TestOptions
.ReleaseExe);
2207
}" + PrintIndexesAndRangesCode, options:
TestOptions
.ReleaseExe);
2551
}" + PrintIndexesAndRangesCode, options:
TestOptions
.ReleaseExe);
2587
}" + PrintIndexesAndRangesCode, options:
TestOptions
.ReleaseExe).VerifyDiagnostics();
2625
}", options:
TestOptions
.DebugExe);
2689
}", options:
TestOptions
.DebugExe);
2738
}" + PrintIndexesAndRangesCode, options:
TestOptions
.ReleaseExe), expectedOutput: "value: '3', fromEnd: 'True'");
2757
}" + PrintIndexesAndRangesCode, options:
TestOptions
.ReleaseExe),
2787
}" + PrintIndexesAndRangesCode, options:
TestOptions
.ReleaseExe),
2816
}" + PrintIndexesAndRangesCode, options:
TestOptions
.ReleaseExe),
2845
}" + PrintIndexesAndRangesCode, options:
TestOptions
.ReleaseExe),
2875
}" + PrintIndexesAndRangesCode, options:
TestOptions
.ReleaseExe), expectedOutput: "value: '0', fromEnd: 'True'")
2904
}" + PrintIndexesAndRangesCode, options:
TestOptions
.ReleaseExe),
2936
}" + PrintIndexesAndRangesCode, options:
TestOptions
.ReleaseExe),
2968
}" + PrintIndexesAndRangesCode, options:
TestOptions
.ReleaseExe),
3000
options:
TestOptions
.ReleaseExe),
3017
options:
TestOptions
.ReleaseExe),
3036
options:
TestOptions
.ReleaseExe),
3058
options:
TestOptions
.ReleaseExe),
3081
}" + PrintIndexesAndRangesCode, options:
TestOptions
.ReleaseExe),
3108
}", options:
TestOptions
.ReleaseExe), expectedOutput: "YES");
3195
",
TestOptions
.ReleaseExe);
3260
",
TestOptions
.ReleaseExe);
3361
",
TestOptions
.ReleaseExe);
CodeGen\IndexerTests.cs (4)
423
var compVerifier = CompileAndVerify(text, options:
TestOptions
.ReleaseExe.WithModuleName("MODULE"));
571
var compVerifier = CompileAndVerify(text, options:
TestOptions
.ReleaseExe.WithModuleName("MODULE"));
719
var compVerifier = CompileAndVerify(text, options:
TestOptions
.ReleaseExe.WithModuleName("MODULE"));
944
var compVerifier = CompileAndVerify(text, options:
TestOptions
.ReleaseExe.WithModuleName("MODULE"));
CodeGen\ITuplePatternTests.cs (3)
19
return CreateCompilation(new[] { source, _iTupleSource }, options: options ??
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularWithRecursivePatterns);
229
var verifier = CompileAndVerify(CreatePatternCompilation(source,
TestOptions
.DebugDll));
CodeGen\ObjectAndCollectionInitializerTests.cs (7)
1386
var comp = CreateCompilationWithMscorlib461AndCSharp(source, options:
TestOptions
.ReleaseExe);
1483
var comp = CreateCompilationWithMscorlib461AndCSharp(source, options:
TestOptions
.ReleaseExe);
1820
var comp = CreateCompilationWithMscorlib461AndCSharp(source, options:
TestOptions
.ReleaseExe);
3534
CompileAndVerify(source, options:
TestOptions
.DebugExe.WithAllowUnsafe(true), expectedOutput: "1", verify: Verification.Fails);
3581
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe.WithAllowUnsafe(true), verify: Verification.Fails, expectedOutput:
3692
var comp = CSharpTestBase.CreateCompilation(source, options:
TestOptions
.ReleaseExe);
3731
var comp = CSharpTestBase.CreateCompilation(source, options:
TestOptions
.ReleaseExe);
CodeGen\PatternTests.cs (129)
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);
235
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
269
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
333
var compilation = CreateCompilation(source, options:
TestOptions
.DebugDll);
401
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
502
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
634
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
695
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
771
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
832
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
857
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
893
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
932
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
968
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
1008
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
1055
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
1106
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
1141
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
1179
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
1223
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
1282
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
1339
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
1399
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
1471
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
1535
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
1598
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
1657
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
1712
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
1773
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
1840
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
1904
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
1973
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
2038
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
2173
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
2267
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
2404
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularWithRecursivePatterns);
2538
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularWithoutRecursivePatterns);
2612
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2646
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularWithRecursivePatterns);
2667
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularWithRecursivePatterns);
2713
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
2793
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
2839
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
2902
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2999
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3055
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3096
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3128
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
3237
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, references: new[] { CSharpRef });
3265
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
3295
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
3315
var compilation = CreateEmptyCompilation(source, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.ReleaseDll);
3384
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3473
var v = CompileAndVerify(source, options:
TestOptions
.DebugExe);
3548
foreach (var options in new[] {
TestOptions
.DebugExe,
TestOptions
.ReleaseExe })
3631
foreach (var options in new[] {
TestOptions
.DebugExe,
TestOptions
.ReleaseExe })
3703
foreach (var options in new[] {
TestOptions
.DebugExe,
TestOptions
.ReleaseExe })
3779
foreach (var options in new[] {
TestOptions
.DebugExe,
TestOptions
.ReleaseExe })
3992
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
3995
compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
4030
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4033
compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
4058
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4094
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4121
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
4173
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
4213
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
4248
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
4327
foreach (var compilationOptions in new[] {
TestOptions
.ReleaseExe,
TestOptions
.DebugExe })
4508
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4542
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4576
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4613
var verifier = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput:
4670
var verifier = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput:
4716
var verifier = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput:
4773
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4806
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4842
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4880
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4914
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4951
var compilation = CreateCompilationWithMscorlibAndSpan(source, options:
TestOptions
.ReleaseExe);
5453
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
5481
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
5507
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularWithPatternCombinators);
5549
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularWithPatternCombinators);
5607
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularWithPatternCombinators);
5653
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularWithPatternCombinators);
5715
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularWithPatternCombinators);
5789
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularWithPatternCombinators);
5879
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularWithPatternCombinators);
5938
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularWithPatternCombinators);
6023
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularWithPatternCombinators);
6107
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularWithPatternCombinators);
6195
var verifier = CompileAndVerify(source, expectedOutput: "012323", options:
TestOptions
.DebugExe);
6280
var verifier = CompileAndVerify(source, expectedOutput: " 0 1 2 3 2 3", options:
TestOptions
.DebugExe);
6369
var verifier = CompileAndVerify(source, expectedOutput: "0123452345", options:
TestOptions
.DebugExe);
6465
var verifier = CompileAndVerify(source, expectedOutput: "0123233", options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
6550
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugDll);
6650
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: "012");
6745
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: """
6852
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: "System.ActionSystem.Action");
CodeGen\PropertyTests.cs (1)
30
var compilation = CreateCompilation(source, options:
TestOptions
.DebugDll);
CodeGen\SwitchTests.cs (77)
429
var compVerifier = CompileAndVerify(text, expectedOutput: "1", options:
TestOptions
.DebugExe);
2899
var compVerifier = CompileAndVerify(text, options:
TestOptions
.ReleaseExe.WithModuleName("MODULE"),
2900
parseOptions:
TestOptions
.RegularPreview.WithDisableLengthBasedSwitch(), expectedOutput: "True");
3040
var comp = CSharpCompilation.Create("Name", references: new[] { reference }, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
3046
compVerifier = CompileAndVerify(text, options:
TestOptions
.ReleaseExe.WithModuleName("MODULE"), expectedOutput: "True");
3348
var compVerifier = CompileAndVerify(text, options:
TestOptions
.ReleaseExe.WithModuleName("MODULE"),
3349
parseOptions:
TestOptions
.RegularPreview.WithDisableLengthBasedSwitch(), expectedOutput: "PASS");
3673
compVerifier = CompileAndVerify(text, options:
TestOptions
.ReleaseExe.WithModuleName("MODULE"), expectedOutput: "PASS");
4032
var compVerifier = CompileAndVerify(text, expectedOutput: "1", parseOptions:
TestOptions
.RegularPreview.WithDisableLengthBasedSwitch());
7161
var compVerifier = CompileAndVerify(text, parseOptions:
TestOptions
.RegularPreview.WithDisableLengthBasedSwitch(), expectedOutput: "3");
7852
var comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularPreview.WithDisableLengthBasedSwitch(),
7853
options:
TestOptions
.ReleaseExe.WithModuleName("MODULE"));
7989
comp = CreateCompilation(text, options:
TestOptions
.ReleaseExe.WithModuleName("MODULE"));
8092
var comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularPreview.WithDisableLengthBasedSwitch(),
8093
options:
TestOptions
.ReleaseExe.WithModuleName("MODULE"));
8223
comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularPreview.WithDisableLengthBasedSwitch());
8302
comp = CreateCompilation(text, options:
TestOptions
.ReleaseExe.WithModuleName("MODULE"));
8796
options:
TestOptions
.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication),
8809
options:
TestOptions
.DebugDll.WithOutputKind(OutputKind.ConsoleApplication),
8863
options:
TestOptions
.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication),
8882
options:
TestOptions
.DebugDll.WithOutputKind(OutputKind.ConsoleApplication),
8939
options:
TestOptions
.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication),
8952
options:
TestOptions
.DebugDll.WithOutputKind(OutputKind.ConsoleApplication),
9003
options:
TestOptions
.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication),
9022
options:
TestOptions
.DebugDll.WithOutputKind(OutputKind.ConsoleApplication),
9077
options:
TestOptions
.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication),
9093
options:
TestOptions
.DebugDll.WithOutputKind(OutputKind.ConsoleApplication),
9150
options:
TestOptions
.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication),
9167
options:
TestOptions
.DebugDll.WithOutputKind(OutputKind.ConsoleApplication),
9225
options:
TestOptions
.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication),
9242
options:
TestOptions
.DebugDll.WithOutputKind(OutputKind.ConsoleApplication),
9300
options:
TestOptions
.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication),
9319
options:
TestOptions
.DebugDll.WithOutputKind(OutputKind.ConsoleApplication),
9369
options:
TestOptions
.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication),
9385
options:
TestOptions
.DebugDll.WithOutputKind(OutputKind.ConsoleApplication),
9441
CreateCompilation(source, parseOptions:
TestOptions
.Regular7).VerifyDiagnostics(
9450
options:
TestOptions
.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication),
9451
parseOptions:
TestOptions
.Regular7_1,
9476
options:
TestOptions
.DebugDll.WithOutputKind(OutputKind.ConsoleApplication),
9477
parseOptions:
TestOptions
.Regular7_1,
9572
CreateCompilation(source, parseOptions:
TestOptions
.Regular7).VerifyDiagnostics(
9581
options:
TestOptions
.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication),
9582
parseOptions:
TestOptions
.Regular7_1,
9625
options:
TestOptions
.DebugDll.WithOutputKind(OutputKind.ConsoleApplication),
9626
parseOptions:
TestOptions
.Regular7_1,
9723
options:
TestOptions
.DebugDll.WithOutputKind(OutputKind.ConsoleApplication),
9765
CreateCompilation(source, parseOptions:
TestOptions
.Regular7).VerifyDiagnostics(
9774
options:
TestOptions
.DebugDll.WithOutputKind(OutputKind.ConsoleApplication),
9775
parseOptions:
TestOptions
.Regular7_1,
9820
CreateCompilation(source, parseOptions:
TestOptions
.Regular7).VerifyDiagnostics(
9829
options:
TestOptions
.DebugDll.WithOutputKind(OutputKind.ConsoleApplication),
9830
parseOptions:
TestOptions
.Regular7_1,
9873
CreateCompilation(source, parseOptions:
TestOptions
.Regular7).VerifyDiagnostics(
9882
options:
TestOptions
.DebugDll.WithOutputKind(OutputKind.ConsoleApplication),
9883
parseOptions:
TestOptions
.Regular7_1)
9925
CreateCompilation(source, parseOptions:
TestOptions
.Regular7).VerifyDiagnostics(
9934
options:
TestOptions
.DebugDll.WithOutputKind(OutputKind.ConsoleApplication),
9935
parseOptions:
TestOptions
.Regular7_1)
10027
options:
TestOptions
.DebugDll.WithOutputKind(OutputKind.ConsoleApplication))
10119
options:
TestOptions
.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication))
10170
options:
TestOptions
.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication),
10246
options:
TestOptions
.DebugDll.WithOutputKind(OutputKind.ConsoleApplication).WithMetadataImportOptions(MetadataImportOptions.All));
10520
options:
TestOptions
.DebugDll.WithOutputKind(OutputKind.ConsoleApplication))
10607
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe)
10695
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe)
10802
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9)
10867
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9)
11028
options:
TestOptions
.ReleaseExe.WithOutputKind(OutputKind.ConsoleApplication),
11029
parseOptions:
TestOptions
.RegularWithPatternCombinators,
11286
options:
TestOptions
.ReleaseExe.WithOutputKind(OutputKind.ConsoleApplication),
11287
parseOptions:
TestOptions
.RegularWithPatternCombinators,
11544
options:
TestOptions
.ReleaseExe.WithOutputKind(OutputKind.ConsoleApplication),
11545
parseOptions:
TestOptions
.RegularWithPatternCombinators,
11973
options:
TestOptions
.ReleaseExe.WithOutputKind(OutputKind.ConsoleApplication),
11974
parseOptions:
TestOptions
.RegularWithPatternCombinators,
CodeGen\UnsafeTests.cs (226)
32
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Passes);
59
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
89
var comp = CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll);
115
var comp = CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll);
141
var comp = CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll);
167
var comp = CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll);
193
var comp = CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll);
219
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Passes);
244
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
291
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
338
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
372
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "123", verify: Verification.Fails);
409
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "456", verify: Verification.Fails);
437
var compVerifierOptimized = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "2", verify: Verification.Fails);
456
var compVerifierUnoptimized = CompileAndVerify(text, options:
TestOptions
.UnsafeDebugExe, expectedOutput: "2", verify: Verification.Fails);
500
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "1", verify: Verification.Fails);
552
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"Before: 2 7
599
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"ab", verify: Verification.Fails);
647
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"12", verify: Verification.Fails);
694
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"3", verify: Verification.Fails);
712
compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"3", verify: Verification.Fails);
752
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"34", verify: Verification.Fails);
776
compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"34", verify: Verification.Fails);
827
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"123", verify: Verification.Fails);
849
compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"123", verify: Verification.Fails);
903
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"123", verify: Verification.Fails);
926
compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"123", verify: Verification.Fails);
970
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"34", verify: Verification.Fails);
1008
compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"34", verify: Verification.Fails);
1084
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails);
1204
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails);
1248
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"
1277
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "210", verify: Verification.Fails);
1297
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "1", verify: Verification.Fails).VerifyIL("C.Main", @"
1338
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"1", verify: Verification.Fails);
1396
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"123", verify: Verification.Fails);
1454
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"12", verify: Verification.Fails);
1524
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"12", verify: Verification.Fails);
1586
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
1659
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"12", verify: Verification.Fails);
1725
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"a", verify: Verification.Fails);
1770
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeDebugExe, expectedOutput: @"a", verify: Verification.Fails);
1814
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeDebugExe, expectedOutput: @"h", verify: Verification.Fails);
1871
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeDebugExe, expectedOutput: @"hTrue", verify: Verification.Fails);
1956
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"hTrue", verify: Verification.Fails);
2027
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"01", verify: Verification.Fails);
2095
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"01", verify: Verification.Fails);
2163
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"01", verify: Verification.Fails);
2234
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"970104", verify: Verification.Fails);
2325
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
2387
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
2450
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
2506
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
2567
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
2628
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
2688
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
2764
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
2848
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
2978
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
3029
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
3094
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
3178
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
3258
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
3314
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
3359
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
3413
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
3463
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
3515
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
3569
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
3622
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
3676
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
3726
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
3776
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
3825
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
3865
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
3906
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
3964
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
4028
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
4095
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).
4157
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Fails);
4217
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Fails);
4272
var compVerifier = CreateCompilationWithMscorlib46(text, options:
TestOptions
.UnsafeReleaseExe, parseOptions:
TestOptions
.Regular7_2);
4305
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"0", verify: Verification.Fails);
4356
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Fails);
4418
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Fails);
4482
var compVerifier = CreateCompilationWithMscorlib46(text, options:
TestOptions
.UnsafeReleaseExe);
4534
var compVerifier = CreateCompilationWithMscorlib46(text, options:
TestOptions
.UnsafeReleaseExe);
4581
var compVerifier = CreateCompilationWithMscorlib46(text, options:
TestOptions
.UnsafeReleaseExe);
4619
var compVerifier = CreateCompilationWithMscorlib46(text, options:
TestOptions
.UnsafeReleaseExe);
4658
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"20", verify: Verification.Fails);
4732
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"5456");
4792
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"5456");
4884
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"2123
4973
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"5456");
5033
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"23", verify: Verification.Fails);
5111
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"3", verify: Verification.Fails);
5172
var compVerifier = CreateCompilationWithMscorlib46(text, options:
TestOptions
.UnsafeReleaseExe);
5214
var compVerifier = CreateCompilationWithMscorlib46(text, options:
TestOptions
.UnsafeReleaseExe);
5253
var compVerifier = CreateCompilationWithMscorlib46(text, options:
TestOptions
.UnsafeReleaseExe, parseOptions:
TestOptions
.Regular7_2);
5289
var compVerifier = CreateCompilationWithMscorlib46(text, options:
TestOptions
.UnsafeReleaseExe);
5325
var compVerifier = CreateCompilationWithMscorlib46(text, options:
TestOptions
.UnsafeReleaseExe);
5361
var compVerifier = CreateCompilationWithMscorlib46(text, options:
TestOptions
.UnsafeReleaseExe);
5400
var compVerifier = CreateCompilationWithMscorlib46(text, options:
TestOptions
.UnsafeReleaseExe);
5413
var missing = CreateCompilationWithMscorlib461(missing_cs, options:
TestOptions
.DebugDll, assemblyName: "missing");
5424
var lib = CreateCompilationWithMscorlib461(lib_cs, references: new[] { missing.EmitToImageReference() }, options:
TestOptions
.DebugDll);
5439
var comp = CreateCompilationWithMscorlib461(source, references: new[] { lib.EmitToImageReference() }, options:
TestOptions
.UnsafeDebugDll);
5474
var compVerifier = CreateCompilationWithMscorlib46(text, options:
TestOptions
.UnsafeReleaseExe);
5502
var comp = CreateCompilationWithMscorlib46(text, options:
TestOptions
.UnsafeReleaseExe);
5539
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"");
5619
var compVerifier = CreateCompilationWithMscorlib46(text, options:
TestOptions
.UnsafeReleaseExe);
5666
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"00", verify: Verification.Fails);
5793
var comp = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseExe);
5868
CompileAndVerify(string.Format(template, "unchecked"), options:
TestOptions
.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL);
5869
CompileAndVerify(string.Format(template, "checked"), options:
TestOptions
.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL);
5919
CompileAndVerify(string.Format(template, "unchecked"), options:
TestOptions
.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL);
5920
CompileAndVerify(string.Format(template, "checked"), options:
TestOptions
.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL);
5956
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", @"
6046
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", @"
6136
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.FailsPEVerify).VerifyIL("C.M", @"
6226
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.FailsPEVerify).VerifyIL("C.M", @"
6367
CompileAndVerify(string.Format(template, "unchecked"), options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", expectedIL);
6368
CompileAndVerify(string.Format(template, "checked"), options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", expectedIL);
6430
CompileAndVerify(string.Format(template, "unchecked"), options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", expectedIL);
6431
CompileAndVerify(string.Format(template, "checked"), options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", expectedIL);
6537
CompileAndVerify(string.Format(template, "unchecked"), options:
TestOptions
.UnsafeDebugExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL, sequencePoints: "C.Main");
6538
CompileAndVerify(string.Format(template, "checked "), options:
TestOptions
.UnsafeDebugExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL, sequencePoints: "C.Main");
6594
CompileAndVerify(string.Format(template, "unchecked"), options:
TestOptions
.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL);
6595
CompileAndVerify(string.Format(template, "checked"), options:
TestOptions
.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL);
6636
CompileAndVerify(string.Format(template, "unchecked"), options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Passes).VerifyIL("C.M", expectedIL);
6637
CompileAndVerify(string.Format(template, "checked"), options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Passes).VerifyIL("C.M", expectedIL);
6705
CompileAndVerify(string.Format(template, "unchecked"), options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Passes).VerifyIL("C.M", expectedIL);
6706
CompileAndVerify(string.Format(template, "checked"), options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Passes).VerifyIL("C.M", expectedIL);
6760
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "12", verify: Verification.Fails).VerifyIL("C.Main", @"
6823
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "1234", verify: Verification.FailsPEVerify).VerifyIL("C.Main", @"
6984
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Passes).VerifyIL("C.Main", @"
7071
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Passes).VerifyIL("C.Main", @"
7113
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Passes).VerifyIL("C.Main", @"
7156
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("S.Main", @"
7221
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("S.Main", @"
7286
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("S.Main", @"
7351
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("S.Main", @"
7421
CompileAndVerify(text, options:
TestOptions
.UnsafeDebugDll, verify: Verification.Fails).VerifyIL("C.Test", @"
7529
var comp = CompileAndVerify(text, options:
TestOptions
.UnsafeDebugDll, verify: Verification.Fails);
7697
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"2147483651
7783
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "4", verify: Verification.Fails).VerifyIL("S.Main", @"
7847
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "4", verify: Verification.Fails).VerifyIL("S.Main", @"
7906
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "I0", verify: Verification.Fails).VerifyIL("S.Main", @"
7974
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "8", verify: Verification.Fails).VerifyIL("S.Main", @"
8081
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("S.Main", @"
8148
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "44", verify: Verification.Fails).VerifyIL("S.Main", @"
8206
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "11", verify: Verification.Fails).VerifyIL("S.Main", @"
8262
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "11", verify: Verification.Fails).VerifyIL("S.Main", @"
8321
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "01", verify: Verification.Fails).VerifyIL("S.Main", @"
8376
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "2", verify: Verification.Fails);
8774
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails);
8875
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails);
8910
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: expectedOutput);
8945
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails);
8954
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"
8981
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"
9045
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails);
9092
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails);
9122
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Passes, expectedOutput: @"
9172
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Passes);
9210
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails);
9251
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"
9360
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails);
9461
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails);
9496
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails);
9531
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails);
9588
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails);
9645
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails);
9692
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails);
9736
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails);
9784
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "011010011010", verify: Verification.Fails).VerifyIL("S.Main", @"
9880
", options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"
9922
", options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"
9963
", options:
TestOptions
.UnsafeReleaseExe);
10013
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", @"
10070
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", @"
10107
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.FailsPEVerify).VerifyIL("C.M", @"
10153
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"123
10194
var verifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails);
10267
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "0", verify: Verification.Fails).VerifyIL("T.Main", @"
10290
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "0", verify: Verification.Fails).VerifyIL("T.Main", @"
10340
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
10415
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"
10473
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.FailsPEVerify);
10497
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Passes);
10523
var comp = CreateCompilation(text, options:
TestOptions
.UnsafeDebugExe);
10553
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
10624
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
10684
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.Test", @"
10768
CompileAndVerify(string.Format(template, "int"), options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes);
10769
CompileAndVerify(string.Format(template, "int*"), options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes);
10770
CompileAndVerify(string.Format(template, "int**"), options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes);
10771
CompileAndVerify(string.Format(template, "int[]"), options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes);
10772
CompileAndVerify(string.Format(template, "int[][]"), options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes);
10773
CompileAndVerify(string.Format(template, "int*[]"), options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes);
10807
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.FailsPEVerify with
10827
var c = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.FailsPEVerify with
10849
var c = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.FailsPEVerify with
10903
var comp = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
10927
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Passes).VerifyDiagnostics(
10950
var comp = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails).VerifyDiagnostics();
11003
var comp = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "ABC", verify: Verification.Fails).VerifyDiagnostics();
11070
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "b", verify: Verification.Fails);
11114
var verifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "hello", verify: Verification.Fails);
11183
var verifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"
11263
var verifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"
11315
var verifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll.WithConcurrentBuild(false), verify: Verification.Passes);
11339
var verifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll.WithConcurrentBuild(false), verify: Verification.FailsPEVerify);
11357
var comp = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
11379
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "F6543210", verify: Verification.Fails);
11425
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "F6543210", verify: Verification.Fails);
11474
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "F6543210", verify: Verification.Fails);
11516
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "F654320F", verify: Verification.Fails);
11559
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "0", verify: Verification.Passes);
11613
var compVerifier = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "System.Byte[]", verify: Verification.Fails);
11686
var v = CompileAndVerify(text, options:
TestOptions
.UnsafeDebugExe, expectedOutput: "System.Byte[]", verify: Verification.Fails);
11806
var compilation = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource, targetFramework: TargetFramework.Mscorlib40, options:
TestOptions
.ReleaseExe);
11832
CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "OK", verify: Verification.Passes);
11857
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "0", verify: Verification.FailsPEVerify);
11889
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "0");
CodeGen\WinMdDelegateTests.cs (4)
56
options: winmd ?
TestOptions
.ReleaseWinMD :
TestOptions
.ReleaseDll,
145
options:
TestOptions
.ReleaseWinMD.WithAllowUnsafe(true),
153
options:
TestOptions
.UnsafeReleaseDll,
Emit\BinaryCompatibility.cs (4)
34
var lib0Image = CreateCompilationWithMscorlib46(lib0, options:
TestOptions
.ReleaseDll, assemblyName: "lib").EmitToImageReference();
46
var lib1Image = CreateCompilationWithMscorlib46(lib1, options:
TestOptions
.ReleaseDll, assemblyName: "lib").EmitToImageReference();
58
var clientImage = CreateCompilationWithMscorlib46(client, references: new[] { lib0Image }, options:
TestOptions
.ReleaseDll).EmitToImageReference();
69
var compilation = CreateCompilationWithMscorlib46(program, references: new[] { lib1Image, clientImage }, options:
TestOptions
.ReleaseExe);
Emit\CompilationEmitTests.cs (164)
80
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("abc.X"));
83
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("\"abc.X\""));
99
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("решения.X"));
102
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("\"решения.X\""));
561
", options:
TestOptions
.DebugExe);
897
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
1021
var pia = CreateCompilation(piaSource, options:
TestOptions
.ReleaseDll, assemblyName: "pia");
1043
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll,
1051
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll,
1099
var pia = CreateCompilation(piaSource, options:
TestOptions
.ReleaseDll, assemblyName: "pia");
1122
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll,
1130
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll,
1205
CSharpCompilation comp1 = CreateCompilation(Parse(source1), options:
TestOptions
.DebugDll.WithDeterministic(true), assemblyName: name);
1209
Compilation comp2 = CreateCompilation(Parse(source2), options:
TestOptions
.DebugDll.WithDeterministic(true), assemblyName: name);
1310
options:
TestOptions
.DebugDll.WithDeterministic(true).WithOutputKind(OutputKind.NetModule));
1322
", references: new[] { reference }, options:
TestOptions
.ReleaseDll);
1888
options:
TestOptions
.DebugDll.WithDeterministic(true), assemblyName: name);
1893
options:
TestOptions
.DebugDll.WithAllowUnsafe(true));
1904
var options =
TestOptions
.DebugDll.WithDeterministic(false);
1999
options:
TestOptions
.ReleaseDll.WithCryptoKeyFile(snk.Path).WithPublicSign(true));
2014
var signedDllOptions =
TestOptions
.SigningReleaseDll.
2032
var signedDllOptions =
TestOptions
.SigningReleaseDll.
2052
var signedDllOptions =
TestOptions
.SigningReleaseDll
2096
options:
TestOptions
.DebugDll.WithDeterministic(true), assemblyName: name);
2124
parseOptions:
TestOptions
.Regular7_2.WithNoRefSafetyRulesAttribute(),
2125
options:
TestOptions
.DebugDll.WithDeterministic(true));
2130
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
2133
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
2164
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
2192
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
2221
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
2261
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
2263
options:
TestOptions
.DebugDll.WithDeterministic(true));
2270
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
2280
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
2292
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
2328
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
2330
options:
TestOptions
.DebugDll.WithDeterministic(true));
2337
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
2347
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
2359
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
2395
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
2397
options:
TestOptions
.DebugDll.WithDeterministic(true));
2404
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
2414
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
2426
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
2455
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
2457
options:
TestOptions
.DebugDll.WithDeterministic(true));
2465
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
2500
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
2502
options:
TestOptions
.DebugDll.WithDeterministic(true));
2510
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
2524
options:
TestOptions
.DebugDll.WithDeterministic(true));
2538
options:
TestOptions
.DebugDll.WithDeterministic(true));
2552
options:
TestOptions
.DebugDll.WithDeterministic(true));
2567
options:
TestOptions
.DebugDll.WithDeterministic(true));
2580
options:
TestOptions
.DebugDll.WithDeterministic(true).WithOutputKind(OutputKind.NetModule));
2594
options:
TestOptions
.DebugDll.WithDeterministic(true).WithOutputKind(OutputKind.NetModule));
2607
options:
TestOptions
.DebugDll);
2633
options:
TestOptions
.DebugDll);
2653
options:
TestOptions
.DebugDll.WithDeterministic(true));
2699
options:
TestOptions
.ReleaseDll,
3485
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithPlatform(Platform.AnyCpu));
3489
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithPlatform(Platform.X86));
3493
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithPlatform(Platform.X64));
3499
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithPlatform(Platform.AnyCpu32BitPreferred));
3505
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithPlatform(Platform.Arm));
3523
options:
TestOptions
.DebugDll.WithPlatform(Platform.X86));
3557
options:
TestOptions
.DebugDll.WithPlatform(Platform.X64));
3607
options:
TestOptions
.DebugDll.WithPlatform(Platform.Arm));
3647
options:
TestOptions
.ReleaseExe.WithPlatform(Platform.AnyCpu));
3688
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithPlatform(Platform.X64));
3738
var compilation = CreateCompilation(source, options:
TestOptions
.CreateTestOptions(OutputKind.WindowsRuntimeApplication, OptimizationLevel.Debug));
3756
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
3761
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
3766
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
3771
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithPlatform(Platform.X86));
3776
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithPlatform(Platform.X86));
3781
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithPlatform(Platform.X86));
3785
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithPlatform(Platform.X64));
3790
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithPlatform(Platform.X64));
3795
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithPlatform(Platform.X64));
3810
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4013
var compilation = CreateCompilation("class A { }", options:
TestOptions
.ReleaseDll, assemblyName: name);
4048
options:
TestOptions
.ReleaseModule.WithModuleName(name + extension));
4079
var compilation = CreateCompilation("class A { }", options:
TestOptions
.ReleaseDll, assemblyName: name);
4110
var compilation = CreateCompilation("class A { }", options:
TestOptions
.ReleaseDll, assemblyName: name);
4141
var compilation = CreateCompilation("class A { }", options:
TestOptions
.ReleaseDll, assemblyName: name);
4172
var compilation = CreateCompilation("class A { }", options:
TestOptions
.ReleaseDll, assemblyName: name);
4210
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseModule, assemblyName: "ContentType");
4230
var compilation = CreateCompilation("class A { }", options:
TestOptions
.ReleaseDll);
4253
var compilation = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll);
4288
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithOutputKind(OutputKind.NetModule));
4317
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
4364
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
4425
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
4491
var compilation = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll);
4548
var compilation = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll);
4610
var c1 = CreateCompilation(p1, options:
TestOptions
.ReleaseDll, assemblyName: Guid.NewGuid().ToString());
4620
var comp = CreateCompilation(source1, options:
TestOptions
.ReleaseModule);
4622
CompileAndVerify(source2, references: new[] { metadataRef }, options:
TestOptions
.ReleaseModule, verify: Verification.Fails);
4659
var comp = CreateCompilation(text, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
4672
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
4678
var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options:
TestOptions
.ReleaseDll.WithPlatform(Platform.Itanium), assemblyName: "PlatformMismatch");
4692
parseOptions: parseOptions, options:
TestOptions
.ReleaseDll.WithPlatform(Platform.AnyCpu));
4698
parseOptions: parseOptions, options:
TestOptions
.ReleaseDll.WithPlatform(Platform.AnyCpu));
4704
parseOptions: parseOptions, options:
TestOptions
.ReleaseModule.WithPlatform(Platform.AnyCpu));
4710
parseOptions: parseOptions, options:
TestOptions
.ReleaseModule.WithPlatform(Platform.AnyCpu));
4716
parseOptions: parseOptions, options:
TestOptions
.ReleaseDll.WithPlatform(Platform.X86));
4724
parseOptions: parseOptions, options:
TestOptions
.ReleaseDll.WithPlatform(Platform.X86));
4732
parseOptions: parseOptions, options:
TestOptions
.ReleaseModule.WithPlatform(Platform.X86));
4740
parseOptions: parseOptions, options:
TestOptions
.ReleaseModule.WithPlatform(Platform.X86));
4757
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
4763
var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options:
TestOptions
.ReleaseModule.WithPlatform(Platform.Itanium), assemblyName: "PlatformMismatch");
4776
parseOptions: parseOptions, options:
TestOptions
.ReleaseDll.WithPlatform(Platform.AnyCpu));
4784
parseOptions: parseOptions, options:
TestOptions
.ReleaseDll.WithPlatform(Platform.X86));
4792
parseOptions: parseOptions, options:
TestOptions
.ReleaseModule.WithPlatform(Platform.AnyCpu));
4802
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
4808
var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options:
TestOptions
.ReleaseDll.WithPlatform(Platform.X86), assemblyName: "PlatformMismatch");
4823
parseOptions: parseOptions, options:
TestOptions
.ReleaseDll.WithPlatform(Platform.Itanium));
4831
parseOptions: parseOptions, options:
TestOptions
.ReleaseDll.WithPlatform(Platform.Itanium));
4839
parseOptions: parseOptions, options:
TestOptions
.ReleaseModule.WithPlatform(Platform.Itanium));
4847
parseOptions: parseOptions, options:
TestOptions
.ReleaseModule.WithPlatform(Platform.Itanium));
4858
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
4864
var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options:
TestOptions
.ReleaseModule.WithPlatform(Platform.X86), assemblyName: "PlatformMismatch");
4878
parseOptions: parseOptions, options:
TestOptions
.ReleaseDll.WithPlatform(Platform.Itanium));
4889
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
4895
var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options:
TestOptions
.ReleaseDll.WithPlatform(Platform.AnyCpu), assemblyName: "PlatformMismatch");
4910
parseOptions: parseOptions, options:
TestOptions
.ReleaseDll.WithPlatform(Platform.Itanium));
4916
parseOptions: parseOptions, options:
TestOptions
.ReleaseDll.WithPlatform(Platform.Itanium));
4922
parseOptions: parseOptions, options:
TestOptions
.ReleaseModule.WithPlatform(Platform.Itanium));
4928
parseOptions: parseOptions, options:
TestOptions
.ReleaseModule.WithPlatform(Platform.Itanium));
4937
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
4943
var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options:
TestOptions
.ReleaseModule.WithPlatform(Platform.AnyCpu), assemblyName: "PlatformMismatch");
4957
parseOptions: parseOptions, options:
TestOptions
.ReleaseDll.WithPlatform(Platform.Itanium));
4966
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
4972
var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options:
TestOptions
.ReleaseDll.WithPlatform(Platform.Itanium), assemblyName: "PlatformMismatch");
4987
parseOptions: parseOptions, options:
TestOptions
.ReleaseDll.WithPlatform(Platform.Itanium));
4993
parseOptions: parseOptions, options:
TestOptions
.ReleaseDll.WithPlatform(Platform.Itanium));
4999
parseOptions: parseOptions, options:
TestOptions
.ReleaseModule.WithPlatform(Platform.Itanium));
5005
parseOptions: parseOptions, options:
TestOptions
.ReleaseModule.WithPlatform(Platform.Itanium));
5014
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
5020
var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options:
TestOptions
.ReleaseModule.WithPlatform(Platform.Itanium), assemblyName: "PlatformMismatch");
5035
parseOptions: parseOptions, options:
TestOptions
.ReleaseDll.WithPlatform(Platform.Itanium));
5043
var comp = CreateEmptyCompilation("", new[] { TestReferences.SymbolsTests.netModule.x64COFF }, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.DebugDll);
5069
var compilation = CreateCompilation(source, null,
TestOptions
.ReleaseDll);
5141
var compilation = CreateCompilation(source, null,
TestOptions
.ReleaseDll);
5206
var compilation = CreateCompilation(source, null,
TestOptions
.DebugDll);
5262
var comp1 = CreateCompilation(s1, options:
TestOptions
.ReleaseModule);
5266
var comp2 = CreateCompilation(s2, options:
TestOptions
.ReleaseModule, references: new[] { ref1 });
5270
var comp3 = CreateCompilation(s3, options:
TestOptions
.ReleaseExe, references: new[] { ref1, ref2 });
5309
var comp1 = CreateCompilation(s1, options:
TestOptions
.ReleaseModule.WithModuleName("A"));
5313
var comp2 = CreateCompilation(s2, options:
TestOptions
.ReleaseModule.WithModuleName("B"), references: new[] { ref1 });
5317
var comp3 = CreateCompilation(s3, options:
TestOptions
.ReleaseExe.WithModuleName("C"), references: new[] { ref1, ref2 });
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 });
5549
var modRef = CreateCompilation("public class A { }", options:
TestOptions
.ReleaseModule, assemblyName: "refMod").EmitToImageReference();
5571
var options =
TestOptions
.DebugDll.WithGeneralDiagnosticOption(ReportDiagnostic.Error);
5579
var options =
TestOptions
.DebugDll.WithSpecificDiagnosticOptions("CS0169", ReportDiagnostic.Error);
5616
var options =
TestOptions
.DebugDll.WithGeneralDiagnosticOption(ReportDiagnostic.Error);
5624
var options =
TestOptions
.DebugDll.WithSpecificDiagnosticOptions("CS0612", ReportDiagnostic.Error);
Emit\CovariantReturnTests.cs (4)
247
parseOptions:
TestOptions
.WithCovariantReturns,
278
var compilation = CreateCovariantCompilation(source, options:
TestOptions
.DebugExe);
313
var compilation = CreateCovariantCompilation(source, options:
TestOptions
.DebugExe);
546
var compilation = CreateCovariantCompilation(program, options:
TestOptions
.DebugExe, references: new[] { ref0, ref1b, ref2 });
Emit\DesktopStrongNameProviderTests.cs (2)
95
var options =
TestOptions
112
var options =
TestOptions
Emit\DeterministicTests.cs (9)
31
return CompiledGuid(source, assemblyName, options: debug ?
TestOptions
.DebugExe :
TestOptions
.ReleaseExe, platform: platform);
53
var options = (optimize ?
TestOptions
.ReleaseExe :
TestOptions
.DebugExe).WithPlatform(platform).WithDeterministic(true);
77
options:
TestOptions
.DebugDll.WithDeterministic(true));
82
options:
TestOptions
.DebugDll.WithDeterministic(false));
175
var mvid1 = CompiledGuid(source.Replace("CHANGE", ""), "X1",
TestOptions
.DebugDll, emitRefAssembly);
176
var mvid2 = CompiledGuid(source.Replace("CHANGE", "private void M() { }"), "X1",
TestOptions
.DebugDll, emitRefAssembly);
268
TestOptions
.DebugExe.WithDeterministic(true));
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.cs (1)
1022
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
Emit\DynamicAnalysis\DynamicInstrumentationTests.cs (48)
678
CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput, options:
TestOptions
.ReleaseExe);
682
verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput, options:
TestOptions
.DebugExe);
744
CompilationVerifier verifier = CompileAndVerify(source, expectedOutput: checker.ExpectedOutput, options:
TestOptions
.ReleaseExe);
748
verifier = CompileAndVerify(source, expectedOutput: checker.ExpectedOutput, options:
TestOptions
.DebugExe);
854
CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput, options:
TestOptions
.ReleaseExe);
856
verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput, options:
TestOptions
.DebugExe);
948
CompilationVerifier verifier = CompileAndVerify(source, expectedOutput: checker.ExpectedOutput, options:
TestOptions
.ReleaseExe);
952
verifier = CompileAndVerify(source, expectedOutput: checker.ExpectedOutput, options:
TestOptions
.DebugExe);
1029
CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput, options:
TestOptions
.ReleaseExe);
1031
verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput, options:
TestOptions
.DebugExe);
1225
CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, options:
TestOptions
.UnsafeDebugExe, expectedOutput: expectedOutput, verify: Verification.Fails);
2478
var verifier = CompileAndVerify(source + InstrumentationHelperSource, options:
TestOptions
.ReleaseDll);
2499
var verifier = CompileAndVerify(source + InstrumentationHelperSource, options:
TestOptions
.ReleaseDll);
2519
var verifier = CompileAndVerify(source + InstrumentationHelperSource, options:
TestOptions
.ReleaseDll);
2538
var verifier = CompileAndVerify(source + InstrumentationHelperSource, options:
TestOptions
.ReleaseDll);
2568
options:
TestOptions
.ReleaseDll,
2569
parseOptions:
TestOptions
.Regular9);
2598
options:
TestOptions
.ReleaseDll,
2599
parseOptions:
TestOptions
.Regular9);
2645
options:
TestOptions
.ReleaseDll,
2646
parseOptions:
TestOptions
.Regular9);
2677
var verifier = CompileAndVerify(source + InstrumentationHelperSource, options:
TestOptions
.ReleaseDll);
2711
var verifier = CompileAndVerify(source + InstrumentationHelperSource, options:
TestOptions
.ReleaseDll);
2749
var verifier = CompileAndVerify(source + InstrumentationHelperSource, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.RegularPreview);
2794
var verifier = CompileAndVerify(source + InstrumentationHelperSource, options:
TestOptions
.ReleaseDll);
2863
var verifier = CompileAndVerify(source + InstrumentationHelperSource, options:
TestOptions
.ReleaseDll);
2893
var verifier = CompileAndVerify(source + InstrumentationHelperSource, options:
TestOptions
.ReleaseDll);
2923
options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular9);
2958
var c = CreateCompilationWithMscorlib40(source + InstrumentationHelperSource, options:
TestOptions
.ReleaseDll);
2994
var c = CreateCompilationWithMscorlib40(source + InstrumentationHelperSource, options:
TestOptions
.ReleaseDll);
3097
var verifier = CompileAndVerify(source, expectedOutput, options:
TestOptions
.ReleaseExe);
3173
verifier = CompileAndVerify(source, expectedOutput, options:
TestOptions
.DebugExe);
3243
var verifier = CompileAndVerify(source, expectedOutput, options:
TestOptions
.ReleaseExe);
3247
verifier = CompileAndVerify(source, expectedOutput, options:
TestOptions
.DebugExe);
3369
var verifier = CompileAndVerify(sources, expectedOutput, options:
TestOptions
.ReleaseExe);
3372
verifier = CompileAndVerify(sources, expectedOutput, options:
TestOptions
.DebugExe);
3495
var verifier = CompileAndVerify(sources, expectedOutput, options:
TestOptions
.ReleaseExe);
3498
verifier = CompileAndVerify(sources, expectedOutput, options:
TestOptions
.DebugExe);
3569
var verifier = CompileAndVerify(source, expectedOutput, options:
TestOptions
.ReleaseExe);
3572
verifier = CompileAndVerify(source, expectedOutput, options:
TestOptions
.DebugExe);
3618
var verifier = CompileAndVerify(source, expectedOutput, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
3622
verifier = CompileAndVerify(source, expectedOutput, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
3646
options: (options ??
TestOptions
.ReleaseExe).WithDeterministic(true),
3661
var compilation = CreateCompilation(trees.ToArray(), options: (options ??
TestOptions
.ReleaseExe).WithDeterministic(true));
Emit\EmitCustomModifiers.cs (5)
45
options:
TestOptions
.UnsafeReleaseExe);
600
var comp = CreateCompilationWithILAndMscorlib40(source, il, TargetFramework.Mscorlib40, options:
TestOptions
.ReleaseExe);
656
var comp = CreateCompilationWithILAndMscorlib40(source, il, TargetFramework.Mscorlib40, options:
TestOptions
.ReleaseExe);
707
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.UnsafeReleaseExe);
741
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.UnsafeReleaseExe);
Emit\EmitErrorTests.cs (2)
264
var netModule = CreateCompilation(moduleSource, options:
TestOptions
.ReleaseModule, assemblyName: "ModuleNameMismatch");
306
var compilation1 = CreateCompilation(builder.ToString(), null,
TestOptions
.DebugDll.WithSpecificDiagnosticOptions(warnOpts));
Emit\EmitMetadataTests.cs (28)
86
CompileAndVerify(source, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), symbolValidator: module =>
120
}, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
230
options:
TestOptions
.DebugDll.WithOutputKind(OutputKind.NetModule));
421
CompileAndVerify(source, options:
TestOptions
.ReleaseDll, symbolValidator: module =>
529
CompileAndVerify(source, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.ReleaseDll, sourceSymbolValidator: validator(true), symbolValidator: validator(false));
579
CompileAndVerify(source, sourceSymbolValidator: validator(true), symbolValidator: validator(false), options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
673
CompileAndVerify(source: source, sourceSymbolValidator: validator(true), symbolValidator: validator(false), options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
741
CompileAndVerify(source: source, sourceSymbolValidator: validator(true), symbolValidator: validator(false), options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
888
CompileAndVerify(source: source, sourceSymbolValidator: validator(true), symbolValidator: validator(false), options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
916
}", options:
TestOptions
.DebugExe);
940
}", parseOptions:
TestOptions
.Regular,
941
options:
TestOptions
.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.Internal));
1010
}", parseOptions:
TestOptions
.Regular,
1011
options:
TestOptions
.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.Internal));
1288
options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
1543
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
2222
var options =
TestOptions
.ReleaseExe.WithPlatform(platform);
2230
var syntax = SyntaxFactory.ParseSyntaxTree(@"class C {}",
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
2234
options:
TestOptions
.ReleaseDll.WithDeterministic(true),
2419
var syntax = SyntaxFactory.ParseSyntaxTree(@"class C { static void Main() { } }",
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
2423
options:
TestOptions
.DebugExe.WithPlatform(Platform.X64).WithDeterministic(true),
2597
options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All),
2642
CompileAndVerify(text, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
2714
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
2810
}", new[] { reference },
TestOptions
.ReleaseExe);
2871
options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All),
2923
options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All),
Emit\EntryPointTests.cs (69)
18
return CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithWarningLevel(5).WithMainTypeName(mainTypeName), parseOptions: parseOptions);
49
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
125
var compilation = CompileConsoleApp(source, parseOptions:
TestOptions
.Regular7_1);
144
var compilation = CompileConsoleApp(source, parseOptions:
TestOptions
.Regular7);
283
Parse(csx, options:
TestOptions
.Script),
284
Parse(cs, options:
TestOptions
.Regular)
286
options:
TestOptions
.ReleaseExe);
374
SyntaxFactory.ParseSyntaxTree(csx, options:
TestOptions
.Script),
376
options:
TestOptions
.ReleaseExe);
395
SyntaxFactory.ParseSyntaxTree(csx, options:
TestOptions
.Script),
397
options:
TestOptions
.ReleaseExe);
410
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("N.M"));
428
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("C.D"));
446
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("C.D"));
481
var compilation = CreateCompilation(cs, options:
TestOptions
.ReleaseExe);
494
compilation = CreateCompilation(cs, options:
TestOptions
.ReleaseExe.WithMainTypeName("C"));
502
compilation = CreateCompilation(cs, options:
TestOptions
.ReleaseExe.WithMainTypeName("D.DD"));
530
CompileAndVerify(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("A.B.C"), expectedOutput: "1");
554
CompileAndVerify(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("A.B.C"), expectedOutput: "1");
580
CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("A.B.C")).VerifyDiagnostics(
602
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("C"));
624
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("C"));
647
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("C"));
675
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("C"));
696
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("C"));
726
new[] { SyntaxFactory.ParseSyntaxTree(source, options:
TestOptions
.Script) },
727
options:
TestOptions
.ReleaseExe);
749
SyntaxFactory.ParseSyntaxTree(csx, options:
TestOptions
.Script),
750
SyntaxFactory.ParseSyntaxTree(cs, options:
TestOptions
.Regular)
752
options:
TestOptions
.ReleaseExe);
783
SyntaxFactory.ParseSyntaxTree(csx, options:
TestOptions
.Script),
784
SyntaxFactory.ParseSyntaxTree(cs, options:
TestOptions
.Regular)
786
options:
TestOptions
.ReleaseExe);
812
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("C"));
815
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("D"));
831
options:
TestOptions
.ReleaseExe.WithMainTypeName("D"));
849
options:
TestOptions
.ReleaseExe.WithMainTypeName("C"));
857
options:
TestOptions
.ReleaseExe.WithMainTypeName("D"));
865
options:
TestOptions
.ReleaseExe.WithMainTypeName("I"));
895
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("C"));
900
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("D"));
907
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("E"));
930
SyntaxFactory.ParseSyntaxTree(csx, options:
TestOptions
.Script),
931
SyntaxFactory.ParseSyntaxTree(cs, options:
TestOptions
.Regular),
933
options:
TestOptions
.ReleaseExe.WithMainTypeName("C"));
1160
CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(// (8,24): warning CS0028: 'Extension.Main(B, string[])' has the wrong signature to be an entry point
1180
CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(// (8,23): warning CS0028: 'Extension.Main(B)' has the wrong signature to be an entry point
1197
CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(// (5,23): warning CS0028: 'Extension.Main(string)' has the wrong signature to be an entry point
1389
CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("D")).VerifyDiagnostics(
1402
CreateCompilation(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
1407
CreateCompilation(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
1412
CreateCompilation(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
1417
CreateCompilation(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
1422
CreateCompilation(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
1427
CreateCompilation(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
1441
CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithMainTypeName(string.Empty)).VerifyDiagnostics(
1455
CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("D")).VerifyDiagnostics(
1470
CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("d")).VerifyDiagnostics(
1488
CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("B")).VerifyDiagnostics(
1493
CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("extension")).VerifyDiagnostics(
1511
CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("Main")).VerifyDiagnostics(
1533
CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("Program")).VerifyDiagnostics();
1552
options:
TestOptions
.ReleaseExe).
1570
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
1573
var netModule = CreateCompilation(source, options:
TestOptions
.ReleaseModule);
1577
options:
TestOptions
.ReleaseExe,
1596
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1617
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1637
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
Emit\InAttributeModifierTests.cs (10)
4200
CompileAndVerify(source: userCode, expectedOutput: "5", references: new[] { testRef.ToMetadataReference() }, options:
TestOptions
.ReleaseExe, symbolValidator: validator);
4201
CompileAndVerify(source: userCode, expectedOutput: "5", references: new[] { testRef.EmitToImageReference() }, options:
TestOptions
.ReleaseExe, symbolValidator: validator);
4247
CompileAndVerify(source: userCode, expectedOutput: "5", references: new[] { testRef.ToMetadataReference() }, options:
TestOptions
.ReleaseExe, symbolValidator: validator);
4248
CompileAndVerify(source: userCode, expectedOutput: "5", references: new[] { testRef.EmitToImageReference() }, options:
TestOptions
.ReleaseExe, symbolValidator: validator);
4296
CompileAndVerify(source: userCode, expectedOutput: "5", references: new[] { testRef.ToMetadataReference() }, options:
TestOptions
.ReleaseExe, symbolValidator: validator);
4297
CompileAndVerify(source: userCode, expectedOutput: "5", references: new[] { testRef.EmitToImageReference() }, options:
TestOptions
.ReleaseExe, symbolValidator: validator);
4348
CompileAndVerify(source: userCode, expectedOutput: "5", references: new[] { testRef.ToMetadataReference() }, options:
TestOptions
.ReleaseExe, symbolValidator: validator);
4349
CompileAndVerify(source: userCode, expectedOutput: "5", references: new[] { testRef.EmitToImageReference() }, options:
TestOptions
.ReleaseExe, symbolValidator: validator);
4401
CompileAndVerify(source: userCode, expectedOutput: "5", references: new[] { testRef.ToMetadataReference() }, options:
TestOptions
.ReleaseExe, symbolValidator: validator);
4402
CompileAndVerify(source: userCode, expectedOutput: "5", references: new[] { testRef.EmitToImageReference() }, options:
TestOptions
.ReleaseExe, symbolValidator: validator);
Emit\OptionalArgumentsTests.cs (4)
108
var compilation = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource, TargetFramework.Mscorlib461, options:
TestOptions
.DebugExe);
144
var comp1 = CreateCompilation(source1, options:
TestOptions
.DebugDll);
176
options:
TestOptions
.DebugExe);
185
options:
TestOptions
.DebugExe);
Emit\ResourceTests.cs (4)
42
var c1 = CreateCompilation(source, assemblyName: "Win32VerNoAttrs", options:
TestOptions
.ReleaseExe);
132
var c1 = CreateCompilation(source, assemblyName: "Win32WithCoff", options:
TestOptions
.ReleaseDll);
290
var c1 = CSharpCompilation.Create("goo", references: new[] { MscorlibRef }, options:
TestOptions
.ReleaseDll);
832
var c1 = CreateCompilation(source, assemblyName: "Win32VerAttrs", options:
TestOptions
.ReleaseExe);
PrivateProtected.cs (36)
38
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_2)
77
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_2)
100
var baseCompilation = CreateCompilation(source1, parseOptions:
TestOptions
.Regular7_2,
101
options:
TestOptions
.SigningReleaseDll,
137
CreateCompilation(source2, parseOptions:
TestOptions
.Regular7_2,
140
options:
TestOptions
.SigningReleaseDll)
188
CreateCompilation(source2, parseOptions:
TestOptions
.Regular7_2,
191
options:
TestOptions
.SigningReleaseDll)
240
CreateCompilation(source2, parseOptions:
TestOptions
.Regular7_2,
243
options:
TestOptions
.SigningReleaseDll)
246
CreateCompilation(source2, parseOptions:
TestOptions
.Regular7_2,
249
options:
TestOptions
.SigningReleaseDll)
274
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_2)
294
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_2)
318
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_2)
360
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_2)
386
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_2)
400
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_2)
419
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_2)
451
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_2)
468
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_2)
498
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_2)
549
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1)
579
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_2)
596
parseOptions:
TestOptions
.Regular7_2,
613
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_2)
625
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_2)
658
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_2)
681
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_2)
695
var compilation1 = CreateCompilation(source1, parseOptions:
TestOptions
.Regular7_2);
704
CreateCompilation(source2, parseOptions:
TestOptions
.Regular7_2,
722
var compilation1 = CreateCompilation(source1, parseOptions:
TestOptions
.Regular7_2);
730
CreateCompilation(source2, parseOptions:
TestOptions
.Regular7_2,
748
var compilation1 = CreateCompilation(source1, parseOptions:
TestOptions
.Regular7_2);
757
CreateCompilation(source2, parseOptions:
TestOptions
.Regular7_2,
786
CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Regular7_2)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1305)
CodeGen\CodeGenCallTests.cs (357)
78
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
117
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
176
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
192
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
251
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
291
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
350
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
366
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
432
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
626
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
692
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
776
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
844
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
1118
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
1186
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
1310
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
1380
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
1600
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
1668
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
1773
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
1855
options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
1934
options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
2016
options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
2052
options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
2134
options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
2214
options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
2296
options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
2332
options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
2391
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
2439
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
2489
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
2491
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
2550
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
2599
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
2649
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
2651
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
2717
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
2919
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
2976
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
2978
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
3046
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
3328
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
3386
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
3388
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
3456
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
3510
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
3579
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
3599
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
3668
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
3722
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
3791
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
3811
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
3887
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
4102
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
4178
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
4271
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
4349
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
4644
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
4722
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
4855
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
4924
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
5000
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
5069
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
5099
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
5168
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
5245
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
5314
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
5344
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
5420
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
5652
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
5728
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
5824
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
5902
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
6214
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
6292
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
6428
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
6497
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
6569
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
6638
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
6666
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
6735
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
6808
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
6877
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
6905
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
6981
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
7197
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
7273
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
7364
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
7442
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
7738
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
7816
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
7947
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
8016
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
8088
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
8157
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
8185
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
8254
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
8327
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
8396
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
8424
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
8500
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
8722
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
8798
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
8892
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
8970
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
9272
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
9350
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
9484
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
9558
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
9634
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
9705
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
9735
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
9815
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
10069
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
10147
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
10263
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
10337
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
10413
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
10484
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
10514
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
10594
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
10854
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
10932
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
11051
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
11120
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
11220
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
11289
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
11331
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
11400
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
11501
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
11570
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
11612
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
11688
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
11932
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
12008
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
12113
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
12191
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
12515
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
12593
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
12738
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
12807
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
12865
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
12934
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
12959
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
13028
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
13086
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
13155
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
13180
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
13256
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
13475
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
13551
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
13646
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
13715
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
13789
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
13858
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
13887
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
13956
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
14031
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
14100
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
14129
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
14205
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
14453
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
14529
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
14633
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
14709
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
14929
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
15005
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
15098
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
15174
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
15495
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
15571
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
15711
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
15780
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
15874
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
15943
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
15982
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
16051
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
16146
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
16215
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
16254
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
16330
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
16568
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
16644
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
16746
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
16815
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
16917
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
16986
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
17029
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
17098
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
17201
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
17270
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
17313
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
17389
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
17641
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
17717
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
17826
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
17902
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
18150
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
18226
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
18333
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
18409
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
18739
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
18815
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
18963
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
19030
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
19084
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
19151
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
19170
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
19237
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
19292
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
19359
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
19378
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
19452
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
19646
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
19720
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
19804
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
19883
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
19950
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
20029
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
20053
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
20132
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
20200
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
20279
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
20303
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
20389
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
20603
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
20689
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
20779
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
20860
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
20943
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
21024
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
21059
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
21140
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
21224
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
21305
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
21340
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
21428
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
21668
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
21756
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
21855
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
21936
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
22007
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
22088
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
22120
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
22201
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
22273
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
22354
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
22386
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
22474
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
22715
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
22803
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
22910
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
22991
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
23076
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
23157
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
23193
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
23274
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
23360
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
23441
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
23477
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
23565
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
23832
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
23920
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
24032
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
24120
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
24364
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
24452
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
24553
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
24641
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
24986
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
25074
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
25222
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
25303
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
25414
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
25495
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
25544
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
25625
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
25737
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
25818
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
25867
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
25955
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
26223
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
26311
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
26424
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
26505
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
26610
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
26691
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
26737
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
26818
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
26924
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
27005
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
27051
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
27139
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
27405
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
27493
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
27605
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
27686
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
27799
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
27880
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
27930
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
28011
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
28125
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
28206
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
28256
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
28344
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
28620
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
28708
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
28825
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
28913
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
29185
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
29273
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
29388
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
29476
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
29824
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
29912
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
30065
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
30144
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
30213
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
30292
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
30320
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
30399
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
30469
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
30548
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
30576
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
30662
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
30892
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
30978
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
31076
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
31148
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
31217
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
31289
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
31317
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
31389
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
31459
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
31531
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
31559
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
31638
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
31854
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
31933
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
32024
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
32096
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
32199
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
32271
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
32316
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
32388
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
32492
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
32564
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
32609
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
32688
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
32944
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
33023
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
33134
CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
33190
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
33296
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics();
33403
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics();
33463
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, verify: Verification.Fails, expectedOutput: expectedOutput).VerifyDiagnostics();
33506
CompileAndVerify(source, options:
TestOptions
.DebugExe, verify: Verification.Fails, expectedOutput: expectedOutput).VerifyDiagnostics();
CodeGen\CodeGenLengthBasedSwitchTests.cs (16)
267
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview.WithDisableLengthBasedSwitch());
505
comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1034
comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularPreview.WithDisableLengthBasedSwitch());
1472
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview.WithDisableLengthBasedSwitch());
1795
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview.WithDisableLengthBasedSwitch());
2430
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview.WithDisableLengthBasedSwitch());
2864
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview.WithDisableLengthBasedSwitch());
7761
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview.WithDisableLengthBasedSwitch());
9184
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview.WithDisableLengthBasedSwitch());
9581
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview.WithDisableLengthBasedSwitch());
10342
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview.WithDisableLengthBasedSwitch());
11643
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview.WithDisableLengthBasedSwitch());
12647
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview.WithDisableLengthBasedSwitch());
13108
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview.WithDisableLengthBasedSwitch());
13585
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview.WithDisableLengthBasedSwitch());
14020
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview.WithDisableLengthBasedSwitch());
CodeGen\CodeGenMethodGroupConversionCachingTests.cs (15)
519
var verifier = CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, symbolValidator: VerifyNoCacheContainersIn("Program"));
4686
CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll).VerifyIL("C.Test", @"
4722
CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll).VerifyIL("C<T>.Test", @"
4762
CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll).VerifyIL("C.Test<T>", @"
5621
var comp = CompileAndVerify(source, parseOptions:
TestOptions
.Regular11);
5704
var verifier = CompileAndVerifyWithWinRt(source, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.ReleaseWinMD);
5821
var verifier = CompileAndVerifyWithWinRt(source, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.ReleaseWinMD);
5902
CompileAndVerify(text, parseOptions:
TestOptions
.Regular11, expectedOutput: PASS).VerifyIL("Test.Main", @"
5961
", parseOptions:
TestOptions
.Regular11, expectedOutput: @"
6026
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.DebugExe);
6169
var compilation = CreateCompilationWithIL(source, ilSource, options:
TestOptions
.ReleaseExe);
6325
var compilation = CreateCompilationWithIL(source, ilSource, options:
TestOptions
.DebugExe);
CodeGen\CodeGenSpanBasedStringConcatTests.cs (38)
329
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
382
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
437
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
481
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
535
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
586
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
1066
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
1176
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
1356
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
1467
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
1533
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
1598
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
1659
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
1739
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
1785
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
1848
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
1931
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
2056
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
2117
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
2707
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
2895
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
3171
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
3356
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
3431
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
3507
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
3580
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
3701
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
3749
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
3823
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
3953
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
4285
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
4338
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
4471
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
4561
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
4685
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
4754
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
5479
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
5669
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
CodeGen\IndexAndRangeTests.cs (24)
57
var comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
201
comp = CreateCompilationWithIndex(source, parseOptions:
TestOptions
.Regular12);
233
var comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
237
comp = CreateCompilationWithIndex(source, parseOptions:
TestOptions
.Regular12);
275
var comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
279
comp = CreateCompilationWithIndex(source, parseOptions:
TestOptions
.Regular12);
568
var comp = CreateCompilationWithIndex(source, options:
TestOptions
.ReleaseExe);
823
var comp = CreateCompilationWithIndex(source, options:
TestOptions
.ReleaseExe);
1567
var comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
1721
comp = CreateCompilationWithIndex(source, parseOptions:
TestOptions
.Regular12);
1759
var comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
1763
comp = CreateCompilationWithIndex(source, parseOptions:
TestOptions
.Regular12);
1957
var comp = CreateCompilationWithIndex(source, parseOptions:
TestOptions
.Regular12);
1976
comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
2197
var comp = CreateCompilationWithIndexAndRange(source, parseOptions: useCsharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
2485
comp = CreateCompilationWithIndexAndRange(source, parseOptions:
TestOptions
.Regular12);
3620
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseExe);
Emit\EditAndContinue\AssemblyReferencesTests.cs (16)
30
TestOptions
.ReleaseDll.WithCryptoPublicKey(TestResources.TestKeys.PublicKey_ce65828c82a341f2);
66
var compilation0 = CreateEmptyCompilation(src1, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), references: references);
136
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
202
var lib0 = CreateCompilation(srcLib, assemblyName: "Lib", options:
TestOptions
.DebugDll);
205
var lib1 = CreateCompilation(srcLib, assemblyName: "Lib", options:
TestOptions
.DebugDll);
208
var lib2 = CreateCompilation(srcLib, assemblyName: "Lib", options:
TestOptions
.DebugDll);
211
var compilation0 = CreateEmptyCompilation(src0, new[] { MscorlibRef, lib0.ToMetadataReference() }, assemblyName: "C", options:
TestOptions
.DebugDll);
301
var lib0 = CreateCompilation(srcLib, assemblyName: "Lib", options:
TestOptions
.DebugDll);
306
var lib1 = CreateCompilation(srcLib, assemblyName: "Lib", options:
TestOptions
.DebugDll);
310
var lib2 = CreateCompilation(srcLib, assemblyName: "Lib", options:
TestOptions
.DebugDll);
315
var compilation0 = CreateEmptyCompilation(src0, new[] { MscorlibRef, lib0.ToMetadataReference() }, assemblyName: "C", options:
TestOptions
.DebugDll);
386
var lib0 = CreateCompilation(srcLib, assemblyName: "Lib", options:
TestOptions
.DebugDll);
390
var lib1 = CreateCompilation(srcLib, assemblyName: "Lib", options:
TestOptions
.DebugDll);
394
var lib2 = CreateCompilation(srcLib, assemblyName: "Lib", options:
TestOptions
.DebugDll);
398
var compilation0 = CreateEmptyCompilation(src0, new[] { MscorlibRef, lib0.EmitToImageReference() }, assemblyName: "C", options:
TestOptions
.DebugDll);
482
var compilation0 = CreateEmptyCompilation(src0, new[] { MscorlibRef, ref01, ref11 }, assemblyName: "C", options:
TestOptions
.DebugDll);
Emit\EditAndContinue\EditAndContinueClosureTests.cs (11)
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());
4626
var compilation0 = CreateCompilation(source0.Tree, options:
TestOptions
.DebugExe);
4685
var compilation0 = CreateCompilation(source0.Tree, options:
TestOptions
.DebugDll);
4733
var compilation0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.DebugDll, targetFramework: TargetFramework.NetStandard20);
5631
using var _ = new EditAndContinueTest(options:
TestOptions
.DebugExe)
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 (15)
46
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
47
var compilation0 = CreateCompilation(Parse(source0, "a.cs", parseOptions), options:
TestOptions
.DebugDll);
228
var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.DebugDll);
345
var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.DebugDll);
447
var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.DebugDll);
520
var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.DebugDll);
571
var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.DebugDll);
7996
var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
8688
var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All), assemblyName: "A");
8771
var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All), assemblyName: "A");
Emit\EditAndContinue\EditAndContinueTest.cs (2)
27
private readonly CSharpCompilationOptions _compilationOptions = (options ??
TestOptions
.DebugDll).WithConcurrentBuild(false);
28
private readonly CSharpParseOptions _parseOptions = parseOptions ??
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
Emit\EditAndContinue\EditAndContinueTestBase.cs (2)
33
internal static readonly CSharpCompilationOptions ComSafeDebugDll =
TestOptions
.DebugDll.WithConcurrentBuild(false);
50
parser: s => Parse(s, fileName, options ??
TestOptions
.Regular.WithNoRefSafetyRulesAttribute()),
Emit\EditAndContinue\EditAndContinueTests.cs (143)
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);
856
using var _ = new EditAndContinueTest(options:
TestOptions
.DebugDll, targetFramework: TargetFramework.NetStandard20)
1005
using var _ = new EditAndContinueTest(options:
TestOptions
.DebugDll, 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);
2437
using var _ = new EditAndContinueTest(options:
TestOptions
.DebugExe)
2540
using var _ = new EditAndContinueTest(options:
TestOptions
.DebugExe)
2633
using var _ = new EditAndContinueTest(options:
TestOptions
.DebugDll)
2789
using var _ = new EditAndContinueTest(options:
TestOptions
.DebugDll)
2838
using var _ = new EditAndContinueTest(options:
TestOptions
.DebugDll)
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();
7634
var compilation0 = CreateCompilation(Parse(source0, "a.cs", parseOptions), options:
TestOptions
.DebugDll);
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:
8026
var options =
TestOptions
.UnsafeDebugDll;
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);
9172
var compilation0 = CreateCompilation(source, 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);
10879
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
10949
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
11022
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
11089
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
11213
var compilation0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.DebugDll, targetFramework: TargetFramework.NetStandard20);
11270
var compilation0 = CreateCompilation(source, new[] { CSharpRef }, options:
TestOptions
.DebugDll);
11336
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll, references: new[] { CSharpRef });
11722
var compilationPIA = CreateCompilation(sourcePIA, options:
TestOptions
.DebugDll);
11775
var compilationPIA = CreateCompilation(sourcePIA, options:
TestOptions
.DebugDll);
11861
var compilationPIA = CreateCompilation(sourcePIA, options:
TestOptions
.DebugDll);
11863
var compilation0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular10, options:
TestOptions
.DebugDll, references: new MetadataReference[] { referencePIA, CSharpRef });
11949
var compilationPIA = CreateCompilation(sourcePIA, options:
TestOptions
.DebugDll);
11951
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll, references: new MetadataReference[] { referencePIA, CSharpRef });
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);
12557
var compilationA0 = CreateCompilation(sourceA0, options:
TestOptions
.DebugDll, assemblyName: "LibA");
12559
var compilationB0 = CreateCompilation(sourceB0, new[] { compilationA0.ToMetadataReference() }, options:
TestOptions
.DebugDll, assemblyName: "LibB");
12560
var compilationB1 = CreateCompilation(sourceB1, new[] { compilationA1.ToMetadataReference() }, options:
TestOptions
.DebugDll, assemblyName: "LibB");
12622
var compilationA = CreateCompilation(sourceA, options:
TestOptions
.DebugDll, assemblyName: "AssemblyA");
12625
var compilationB0 = CreateCompilation(sourceB0, new[] { aRef }, options:
TestOptions
.DebugDll, assemblyName: "AssemblyB");
12695
parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(),
12742
var compilation0 = CreateCompilation(String.Format(source, 1), options:
TestOptions
.DebugDll);
12818
var compilation0 = CreateCompilation(source0.Tree, options:
TestOptions
.DebugDll, assemblyName: "PdbReadingErrorsAssembly");
15672
using var _ = new EditAndContinueTest(options:
TestOptions
.DebugDll, targetFramework: TargetFramework.NetStandard20)
15756
using var _ = new EditAndContinueTest(options:
TestOptions
.DebugDll, targetFramework: TargetFramework.NetLatest, verification: Verification.Skipped)
15897
using var _ = new EditAndContinueTest(options:
TestOptions
.DebugDll, targetFramework: TargetFramework.NetStandard20, verification: Verification.Skipped)
15991
var compilation0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.DebugExe);
Emit\EditAndContinue\LocalSlotMappingTests.cs (45)
47
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
340
var debug = CreateCompilation(source, options:
TestOptions
.DebugDll);
341
var release = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
426
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
530
var compilation0 = CreateCompilation(source0.Tree, options:
TestOptions
.DebugDll);
642
var compilation0 = CreateCompilation(source0.Tree, options:
TestOptions
.DebugDll);
752
var compilation0 = CreateCompilationWithTasksExtensions(new[] { source0.Tree, asyncStreamsTree }, options:
TestOptions
.DebugDll);
843
var compilation0 = CreateCompilationWithTasksExtensions(new[] { source0.Tree, asyncStreamsTree }, options:
TestOptions
.DebugDll);
1147
var compilation0 = CreateEmptyCompilation(source, options:
TestOptions
.DebugDll, references: new[] { MscorlibRef_v20 });
1148
var compilation1 = CreateEmptyCompilation(source, options:
TestOptions
.DebugDll, references: new[] { MscorlibRef_v20 });
1208
var compilation0 = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
1316
var compilation0 = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
1480
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
1663
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
1848
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
2008
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
2040
options:
TestOptions
.DebugDll,
2148
var compilation0 = CreateCompilation(source0.Tree, options:
TestOptions
.DebugDll);
2194
var compilation1 = CreateCompilation(source1.Tree, options:
TestOptions
.DebugDll);
2341
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
2418
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll);
2598
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
2736
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
2881
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
2990
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
3117
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
3331
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
3438
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
3551
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
3659
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
3751
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
3970
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
4079
var compilation0 = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugDll);
4233
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
4280
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
4336
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
4391
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
4443
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
4499
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
4568
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
4648
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
4741
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
4802
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
4862
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
4951
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
Emit\EditAndContinue\SymbolMatcherTests.cs (61)
30
var compilation = CreateCompilation(source, options:
TestOptions
.DebugDll);
77
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
140
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
166
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
190
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll, references: new[] { metadataRef });
231
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
276
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll).WithSource(source1);
304
var lib0 = CreateCompilation(libSource, options:
TestOptions
.DebugDll, assemblyName: "Lib");
305
var lib1 = CreateCompilation(libSource, options:
TestOptions
.DebugDll, assemblyName: "Lib");
307
var compilation0 = CreateCompilation(source, new[] { lib0.ToMetadataReference() }, options:
TestOptions
.DebugDll);
341
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
372
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
404
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
439
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
490
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll);
545
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
561
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll);
600
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
624
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
648
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
672
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
696
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
720
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
744
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
768
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
792
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
816
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
854
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
902
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
943
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
948
var compilation1 = CreateCompilation(source, options:
TestOptions
.DebugDll);
983
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
1008
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
1033
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
1056
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
1100
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
1115
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll);
1162
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
1211
var compilation0 = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular9);
1245
var compilation0 = CreateCompilation(source1, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular9);
1296
var compilation0 = CreateCompilation(source1, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular9);
1319
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
1341
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
1364
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
1385
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
1411
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
1469
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll);
1520
var compilation0 = CreateCompilation(source0, options:
TestOptions
.UnsafeDebugDll);
1521
var compilation1 = CreateCompilation(source1, options:
TestOptions
.UnsafeDebugDll);
1580
var compilation0 = CreateCompilation(source0, options:
TestOptions
.UnsafeDebugDll);
1581
var compilation1 = CreateCompilation(source1, options:
TestOptions
.UnsafeDebugDll);
1650
var compilation0 = CreateCompilation(source0, options:
TestOptions
.UnsafeDebugDll);
1651
var compilation1 = CreateCompilation(source1, options:
TestOptions
.UnsafeDebugDll);
1715
var compilation0 = CreateCompilation(source, options:
TestOptions
.DebugDll);
1757
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
1809
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
1856
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
1901
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
Emit\ManagedAddressTests.cs (1)
52
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugExe).VerifyDiagnostics(
Emit\NumericIntPtrTests.cs (172)
123
var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.Regular9);
173
var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.Regular9);
266
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
328
var comp = CreateEmptyCompilation(sourceA, options:
TestOptions
.UnsafeReleaseDll);
365
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.UnsafeReleaseDll);
429
var comp = CreateEmptyCompilation(sourceA, options:
TestOptions
.UnsafeReleaseDll);
485
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.UnsafeReleaseDll);
560
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
670
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
767
var comp = CreateEmptyCompilation(source, parseOptions:
TestOptions
.Regular9);
842
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
933
var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
936
comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
941
comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
944
comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
995
var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
998
comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
1003
comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
1006
comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
1021
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(5), parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
1024
comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(6), parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
1188
var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
1191
comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
1196
comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
1199
comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
1231
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8, targetFramework: TargetFramework.Net70);
1234
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
1252
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
1275
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8, targetFramework: TargetFramework.Net70);
1278
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
1296
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
1328
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
1363
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70).VerifyDiagnostics(
1377
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12, targetFramework: TargetFramework.Net70).VerifyDiagnostics(
1408
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics);
1409
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics);
1432
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
1456
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
1491
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
1520
var comp = CreateCompilation("", parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
1625
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
1646
comp = CreateCompilation(sourceB, references: new[] { AsReference(comp, useCompilationReference) }, parseOptions: useLatest ?
TestOptions
.Regular9 :
TestOptions
.Regular8, targetFramework: TargetFramework.Net70);
1738
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
1757
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: useCSharp9 ?
TestOptions
.Regular9 :
TestOptions
.Regular8, targetFramework: TargetFramework.Net70);
1865
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3, targetFramework: TargetFramework.Net70);
1889
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
1913
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
1965
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
2048
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
2150
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
2223
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
2251
comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
2274
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
2292
comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
2407
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
2457
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
2598
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
2776
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
2796
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
2811
var comp = CreateCompilation(source0, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
2823
comp = CreateCompilation(source1, references: new[] { ref0 }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
2840
var comp = CreateCompilation(source0, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
2855
comp = CreateCompilation(source1, references: new[] { ref0 }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
2877
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
2919
var comp = CreateCompilation(source0, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
2952
var comp = CreateCompilation(source0, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
3052
var comp = CreateCompilation(new[] { sourceA, sourceB }, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
3055
comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
3059
comp = CreateCompilation(sourceB, references: new[] { ref1 }, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
3062
comp = CreateCompilation(sourceB, references: new[] { ref2 }, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
3065
comp = CreateCompilation(sourceB, references: new[] { ref1 }, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular8, targetFramework: TargetFramework.Net70);
3068
comp = CreateCompilation(sourceB, references: new[] { ref2 }, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular8, targetFramework: TargetFramework.Net70);
3125
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
3293
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
6003
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithAllowUnsafe(useUnsafeContext), parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
6240
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
6613
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
6847
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
6897
var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.Regular9);
7020
var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
8121
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithAllowUnsafe(useUnsafeContext), parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
8182
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
8408
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
8612
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
8688
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
9013
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
9032
comp = CreateCompilation(sourceB, references: new[] { refA }, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
9060
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
9089
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
9121
comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
9139
comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
9157
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
9188
comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
9206
comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
9245
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
9274
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
9298
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
9327
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
9362
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
9427
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
9508
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
9646
var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
9702
var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
9832
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
9904
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.UnsafeReleaseDll, targetFramework: TargetFramework.Net70);
9917
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
9939
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net70);
10273
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, targetFramework: TargetFramework.Net70);
10325
var parseOptions = (useCSharp11 ?
TestOptions
.Regular11 :
TestOptions
.Regular10).WithNoRefSafetyRulesAttribute();
10681
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
11047
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseExe, targetFramework: TargetFramework.Net70);
11051
comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseExe);
11168
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70);
11191
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70);
11219
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70);
11244
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70);
11269
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70);
11289
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70);
11687
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseExe, targetFramework: TargetFramework.Net70);
11704
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseExe, targetFramework: TargetFramework.Net70);
11745
var comp = CreateCompilation(new[] { TestSources.Span, source }, options:
TestOptions
.UnsafeReleaseExe);
11748
comp = CreateCompilation(new[] { source }, options:
TestOptions
.UnsafeReleaseExe, targetFramework: TargetFramework.Net70);
11812
options:
TestOptions
.UnsafeReleaseDll,
Emit\RuntimeProbing\ModuleCancellationTests.cs (3)
28
options: options ?? (expectedOutput != null ?
TestOptions
.UnsafeDebugExe :
TestOptions
.UnsafeDebugDll),
145
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe);
Emit\RuntimeProbing\StackOverflowProbingTests.cs (3)
27
options: options ?? (expectedOutput != null ?
TestOptions
.UnsafeDebugExe :
TestOptions
.UnsafeDebugDll),
135
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe);
Emit\UnmanagedTypeModifierTests.cs (3)
1034
options:
TestOptions
.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All),
1087
options:
TestOptions
.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All),
1474
CompileAndVerify(code, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"
PDB\CheckSumTest.cs (3)
26
TestOptions
.DebugDll.WithSourceReferenceResolver(new SourceFileResolver(ImmutableArray.Create<string>(), baseDirectory)));
103
CompileAndVerify(text, options:
TestOptions
.DebugExe).
304
TestOptions
.DebugDll.WithSourceReferenceResolver(null));
PDB\CSharpDeterministicBuildCompilationTests.cs (6)
129
}", options:
TestOptions
.DebugDll);
134
}", options:
TestOptions
.DebugDll);
189
}", options:
TestOptions
.DebugDll);
194
}", options:
TestOptions
.DebugDll);
253
}", options:
TestOptions
.DebugDll);
258
}", options:
TestOptions
.DebugDll);
PDB\PDBAsyncTests.cs (19)
70
var compilation = CreateCompilationWithMscorlib461(text, options:
TestOptions
.DebugDll).VerifyDiagnostics();
386
var compilation = CreateCompilationWithMscorlib461(text, options:
TestOptions
.DebugDll).VerifyDiagnostics();
545
options:
TestOptions
.DebugDll,
621
var v = CompileAndVerify(CreateCompilationWithMscorlib461(text, options:
TestOptions
.DebugDll));
759
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
847
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
952
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
1039
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
1155
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
1259
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
1366
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
1464
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
1550
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
1658
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
1694
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
1948
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
2017
var compilation = CreateCompilationWithMscorlib461(src, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.DebugDll);
2100
var v = CreateEmptyCompilation(src, LatestVbReferences, options:
TestOptions
.DebugDll);
PDB\PDBConstantTests.cs (12)
34
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
100
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
209
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
287
CompileAndVerify(text, options:
TestOptions
.DebugDll).VerifyPdb("C.M", @"
337
var c = CompileAndVerify(text, options:
TestOptions
.DebugDll);
409
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
487
CompileAndVerify(text, options:
TestOptions
.DebugDll).VerifyPdb("C.M", @"
532
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
609
var c = CompileAndVerify(text, options:
TestOptions
.DebugDll);
666
var c = CompileAndVerify(text, options:
TestOptions
.DebugDll);
726
var c = CompileAndVerify(text, options:
TestOptions
.DebugDll);
781
CompileAndVerify(text, options:
TestOptions
.DebugDll).VerifyPdb("C.M", @"
PDB\PDBDynamicLocalsTests.cs (31)
49
var c = CreateCompilationWithMscorlib40AndSystemCore(source, references: new[] { CSharpRef }, options:
TestOptions
.DebugDll);
147
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
213
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
272
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
337
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
393
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
451
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
527
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
609
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
676
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
764
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
844
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
926
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
1012
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
1138
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
1286
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
1535
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
1708
var c = CreateCompilation(source, options:
TestOptions
.DebugDll);
1778
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
1832
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
1882
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
1940
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
1998
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
2057
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
2117
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
2171
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
2226
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
2290
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
2352
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
2412
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
2497
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseDll);
PDB\PDBEmbeddedSourceTests.cs (2)
44
var c = CreateCompilation(new[] { tree1, tree2 }, options:
TestOptions
.DebugDll);
104
var c = CreateCompilation(tree, options:
TestOptions
.DebugDll);
PDB\PDBIteratorTests.cs (21)
34
var c = CreateCompilationWithMscorlib40AndSystemCore(text, options:
TestOptions
.DebugDll);
79
var c = CreateCompilationWithMscorlib40AndSystemCore(text, options:
TestOptions
.DebugDll);
124
var c = CreateCompilationWithMscorlib40AndSystemCore(text, options:
TestOptions
.DebugDll);
180
var c = CompileAndVerify(text, options:
TestOptions
.ReleaseDll, symbolValidator: module =>
251
var c = CompileAndVerify(text, options:
TestOptions
.DebugDll, symbolValidator: module =>
339
var c = CreateCompilationWithMscorlib40AndSystemCore(text, options:
TestOptions
.DebugDll);
437
var c = CreateCompilationWithMscorlib40AndSystemCore(text, options:
TestOptions
.ReleaseExe);
552
var c = CreateCompilationWithMscorlib40AndSystemCore(text, options:
TestOptions
.DebugExe);
736
var v = CompileAndVerify(text, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
807
var v = CompileAndVerify(text, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
913
CompileAndVerify(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
931
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
1027
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
1101
var v = CompileAndVerify(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
1225
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
1371
var v = CompileAndVerify(source, new[] { CSharpRef }, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
1457
var v = CompileAndVerify(source, new[] { CSharpRef }, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
1519
var v = CompileAndVerify(source, new[] { CSharpRef }, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
1587
var c = CreateCompilationWithMscorlib40AndSystemCore(text, options:
TestOptions
.DebugDll);
1624
var compilation = CreateCompilation(src, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.DebugDll, targetFramework: TargetFramework.NetCoreApp);
PDB\PDBLambdaTests.cs (29)
35
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
109
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source.Tree, options:
TestOptions
.DebugDll);
129
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
203
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
319
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
439
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
553
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
638
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
748
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
827
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
912
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
992
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
1068
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
1156
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
1229
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
1301
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
1377
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
1447
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
1523
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
1599
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
1675
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
1759
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll);
1801
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll);
1847
var compilation = CreateCompilation(source.Tree, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
1875
var compilation = CreateCompilation(source.Tree, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
1909
var compilation = CreateCompilation(source.Tree, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
1926
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
2024
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
2146
var c = CompileAndVerify(source, options:
TestOptions
.DebugDll);
PDB\PDBLocalFunctionTests.cs (5)
42
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
157
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
235
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
326
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
407
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
PDB\PDBSourceLinkTests.cs (5)
51
var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options:
TestOptions
.DebugDll);
81
var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options:
TestOptions
.DebugDll);
121
var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options:
TestOptions
.DebugDll);
143
var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options:
TestOptions
.DebugDll);
185
var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options:
TestOptions
.DebugDll);
PDB\PDBTests.cs (169)
50
var comp = CSharpCompilation.Create("Compilation", new[] { tree1, tree2, tree3, tree4 }, new[] { MscorlibRef }, options:
TestOptions
.ReleaseDll);
70
var comp = CSharpCompilation.Create("Compilation", new[] { tree1, tree2, tree3, tree4 }, new[] { MscorlibRef }, options:
TestOptions
.ReleaseDll);
94
Compilation compilation = CreateCompilation("class C { }", options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.Regular);
110
var driver = CSharpGeneratorDriver.Create(new[] { testGenerator }, parseOptions:
TestOptions
.Regular);
140
var comp = CSharpCompilation.Create("test", new[] { tree1, tree2 }, TargetFrameworkUtil.StandardReferences,
TestOptions
.DebugDll);
174
options:
TestOptions
.DebugDll.WithSourceReferenceResolver(SourceFileResolver.Default));
218
options:
TestOptions
.DebugDll.WithSourceReferenceResolver(SourceFileResolver.Default));
250
var compilation = CreateCompilation(source0, options:
TestOptions
.DebugDll);
282
var compilation = CreateCompilation(source0, options:
TestOptions
.DebugDll);
314
var compilation = CreateCompilation(source0, options:
TestOptions
.DebugDll.WithDeterministic(true));
447
CreateCompilation(source, options:
TestOptions
.DebugDll).VerifyEmitDiagnostics(
471
var debug = CreateCompilation(source, new[] { CSharpRef }, options:
TestOptions
.DebugWinMD);
510
var release = CreateCompilation(source, new[] { CSharpRef }, options:
TestOptions
.ReleaseWinMD);
556
var debug = CreateCompilation(source, options:
TestOptions
.DebugWinMD);
581
var release = CreateCompilation(source, options:
TestOptions
.ReleaseWinMD);
648
var c = CreateCompilation(source, options:
TestOptions
.DebugDll);
671
var c = CreateCompilation(source, options:
TestOptions
.DebugExe);
697
var c1 = CreateCompilation(source1, options:
TestOptions
.DebugDll);
698
var c2 = CreateCompilation(source2, options:
TestOptions
.DebugDll);
745
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
802
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
838
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
879
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
933
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
998
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
1066
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
1240
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
1327
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
1423
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
1491
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
1567
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll);
1622
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll);
1677
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll);
1699
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll);
1732
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll);
1829
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
1943
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe);
2023
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
2074
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
2116
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
2168
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe);
2226
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
2297
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll);
2393
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll);
2531
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll);
2589
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll);
2671
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll);
2721
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll);
2866
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll);
2978
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll.WithModuleName("MODULE"));
3106
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll);
3195
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
3267
var c = CreateCompilation(source, options:
TestOptions
.DebugDll);
3428
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
3519
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
3618
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
3719
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugExe);
3773
c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe);
3841
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular7_1);
3935
c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular7_1);
4007
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular7_1);
4039
c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular7_1);
4079
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll);
4169
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll);
4413
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll);
4535
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
4621
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
4726
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
4822
}",
TestOptions
.DebugDll);
4832
}",
TestOptions
.DebugDll);
4843
}",
TestOptions
.DebugDll);
4855
}",
TestOptions
.DebugDll);
4868
}",
TestOptions
.DebugDll);
4897
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
5062
var compilation = CreateCompilation(new[] { Parse(text1, "a.cs"), Parse(text2, "b.cs"), Parse(text3, "a.cs") }, options:
TestOptions
.DebugDll);
5109
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
5150
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
5189
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
5240
}",
TestOptions
.DebugDll);
5248
}",
TestOptions
.DebugDll);
5256
}",
TestOptions
.DebugDll);
5264
}",
TestOptions
.DebugDll,
TestOptions
.Regular);
5282
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
5316
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
5399
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
5548
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
5626
var v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll));
5775
var v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll));
5864
var v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll));
5953
var v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseDll));
6035
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
6104
var c = CreateCompilation(source, options:
TestOptions
.DebugDll);
6221
var c = CreateCompilation(source, options:
TestOptions
.DebugDll);
6347
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
6440
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
6527
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
6588
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
6652
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
6736
var c = CreateCompilation(source, options:
TestOptions
.DebugDll);
6851
var c = CreateCompilation(source, options:
TestOptions
.DebugDll);
6953
var c = CreateCompilation(source, options:
TestOptions
.DebugDll);
7064
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
7105
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
7159
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.UnsafeDebugExe);
7218
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.UnsafeDebugDll);
7277
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.UnsafeDebugExe);
7352
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.UnsafeDebugExe);
7418
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.UnsafeDebugDll);
7486
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.UnsafeDebugExe);
7568
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.UnsafeDebugDll);
7646
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.UnsafeDebugExe);
7692
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.UnsafeDebugExe);
7748
var compilation = CreateCompilation(text1, options:
TestOptions
.DebugDll);
7854
var c = CreateCompilationWithMscorlib40AndSystemCore(src, references: new[] { CSharpRef, ValueTupleRef, SystemRuntimeFacadeRef }, options:
TestOptions
.DebugDll);
7901
var c = CreateCompilationWithMscorlib40AndSystemCore(src, references: new[] { CSharpRef, ValueTupleRef, SystemRuntimeFacadeRef }, options:
TestOptions
.DebugExe);
7955
var c = CreateCompilationWithMscorlib40AndSystemCore(src, references: new[] { CSharpRef, ValueTupleRef, SystemRuntimeFacadeRef }, options:
TestOptions
.DebugDll);
8407
var c = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugDll, references: new[] { SystemCoreRef });
8452
var c = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugDll, references: new[] { SystemCoreRef });
8507
var c = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugDll, references: new[] { SystemCoreRef });
8559
var c = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugDll, references: new[] { SystemCoreRef });
8619
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
8694
var c = CreateCompilation(source, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.NetCoreApp);
9091
var c = CreateCompilation(source, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.NetCoreApp);
9458
var c = CreateCompilation(source, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.NetCoreApp);
9687
var c = CreateCompilation(source, options:
TestOptions
.DebugDll);
10082
var verifier = CompileAndVerify(source, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.DebugDll);
10291
var verifier = CompileAndVerify(source, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.DebugDll);
10529
var c = CreateCompilation(source, options:
TestOptions
.DebugDll);
10700
var c = CreateCompilation(source, options:
TestOptions
.DebugDll);
10840
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
10883
var c = CreateCompilation(source, options:
TestOptions
.DebugDll);
10970
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
11147
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll, references: s_valueTupleRefs);
11249
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll, references: s_valueTupleRefs);
11286
var c = CreateCompilation(source, options:
TestOptions
.DebugDll);
11320
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll, references: s_valueTupleRefs);
11344
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll, references: s_valueTupleRefs);
11368
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll, references: s_valueTupleRefs);
11423
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
11438
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
11487
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
11533
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
11575
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
11620
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
11676
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
11732
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
11848
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
11908
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
11975
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
12032
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
12068
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
12308
var c = CSharpCompilation.Create("Compilation", new[] { tree }, new[] { MscorlibRef_v46 }, options:
TestOptions
.DebugDll.WithDebugPlusMode(true));
12404
options:
TestOptions
.DebugDll);
12468
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
12541
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll);
12625
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll);
12706
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll);
12798
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll);
12911
var c = CreateCompilation(new[] { tree1, tree2 }, options:
TestOptions
.DebugDll);
12949
var c = CreateCompilation(new[] { tree }, options:
TestOptions
.DebugDll);
12972
options:
TestOptions
.DebugDll);
PDB\PDBTupleTests.cs (6)
27
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
74
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
126
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
193
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
244
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
310
var c = CreateCompilation(source, options:
TestOptions
.DebugDll);
PDB\PDBUsingTests.cs (53)
33
options:
TestOptions
.DebugDll);
60
CompileAndVerify(text, options:
TestOptions
.DebugDll).VerifyPdb(@"
140
CompileAndVerify(text, options:
TestOptions
.DebugDll).VerifyPdb(@"
220
CompileAndVerify(text, options:
TestOptions
.DebugDll).VerifyPdb(@"
300
CompileAndVerify(text, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.NetFramework).VerifyPdb(@"
380
CompileAndVerify(text, options:
TestOptions
.DebugDll).VerifyPdb(@"
467
CompileAndVerify(text, options:
TestOptions
.UnsafeDebugDll, targetFramework: TargetFramework.NetFramework).VerifyPdb(@"
573
parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(),
574
options:
TestOptions
.DebugDll,
664
var compilation1 = CreateCompilation(source1, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.DebugDll, assemblyName: "TestExternAliases2");
673
parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(),
674
options:
TestOptions
.DebugDll,
717
var compilation1 = CreateCompilation(source1, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.DebugDll, assemblyName: "TestExternAliases3");
726
parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(),
727
options:
TestOptions
.DebugDll,
771
var dummyCompilation = CreateCompilation(src1, assemblyName: "A", options:
TestOptions
.DebugDll);
790
options:
TestOptions
.DebugDll,
818
comp = CreateCompilation(sourceB, references: new[] { refA }, options:
TestOptions
.DebugDll);
882
comp = CreateCompilation([sourceB, sourceC], references: new[] { refA1, refA4 }, options:
TestOptions
.DebugDll);
968
comp = CreateCompilation([sourceB, sourceC], references: new[] { refA1, refA4 }, options:
TestOptions
.DebugDll);
1055
comp = CreateCompilation([sourceB, sourceC], references: new[] { refA1, refA4 }, options:
TestOptions
.DebugDll);
1148
comp = CreateCompilation([sourceB, sourceC], references: new[] { refA1, refA4 }, options:
TestOptions
.DebugDll);
1241
comp = CreateCompilation([sourceB, sourceC], references: new[] { refA1, refA4 }, options:
TestOptions
.DebugDll);
1333
comp = CreateCompilation([sourceB, sourceC], references: new[] { refA1, refA4 }, options:
TestOptions
.DebugDll);
1398
CSharpCompilation dummyCompilation1 = CreateCompilation(dummySource, assemblyName: "A", options:
TestOptions
.DebugDll);
1399
CSharpCompilation dummyCompilation2 = CreateCompilation(dummySource, assemblyName: "B", options:
TestOptions
.DebugDll);
1412
options:
TestOptions
.DebugDll,
1485
options:
TestOptions
.DebugDll,
1559
options:
TestOptions
.DebugDll,
1692
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll);
1715
options:
TestOptions
.DebugDll,
1765
var compilation1 = CreateCompilation(source1, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.DebugDll);
1782
parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(),
1783
options:
TestOptions
.DebugDll,
1865
options:
TestOptions
.DebugDll,
2043
options:
TestOptions
.DebugDll,
2210
CompileAndVerify(text, options:
TestOptions
.DebugDll).VerifyPdb(@"
2259
CompileAndVerify(text, options:
TestOptions
.DebugDll).VerifyPdb(@"
2340
CompileAndVerify(text, options:
TestOptions
.DebugDll).VerifyPdb(@"
2444
CompileAndVerify(text, options:
TestOptions
.DebugDll).VerifyPdb(@"
2502
CompileAndVerify(text, options:
TestOptions
.DebugDll).VerifyPdb(@"
2558
var v = CompileAndVerify(source, options:
TestOptions
.DebugDll);
2611
CompileAndVerify(source, new[] { libRef }, options:
TestOptions
.DebugExe).VerifyPdb("Test.Main", @"
2795
}",
TestOptions
.ReleaseExe, methodName: "Test.Main");
2816
}",
TestOptions
.ReleaseExe, methodName: "Test.Main");
2834
var comp1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, assemblyName: "Comp1");
2851
var comp2 = CreateCompilation(source2, new[] { comp1.ToMetadataReference() }, options:
TestOptions
.DebugExe);
2905
var compilation = CreateCompilation(text, options:
TestOptions
.DebugExe);
2973
var comp = CreateCompilationWithMscorlib40(source, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), references: new[] { SystemCoreRef.WithAliases(new[] { "A" }), SystemDataRef });
3070
var c = CreateCompilation(source, assemblyName: "EmittingPdbVsNot", options:
TestOptions
.ReleaseDll);
PDB\PDBWinMdExpTests.cs (5)
29
options:
TestOptions
.ReleaseWinMD,
110
options:
TestOptions
.ReleaseWinMD,
157
options:
TestOptions
.ReleaseWinMD,
236
options:
TestOptions
.ReleaseWinMD,
272
options:
TestOptions
.ReleaseWinMD,
PDB\PortablePdbTests.cs (6)
42
var c = CreateCompilation(source, options:
TestOptions
.DebugDll);
166
var c = CreateCompilation(Parse(source, "goo.cs"), options:
TestOptions
.DebugDll);
226
var c = CreateCompilation(Parse(source, "goo.cs"), options:
TestOptions
.DebugDll.WithDeterministic(true));
301
var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options:
TestOptions
.DebugDll);
342
var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options:
TestOptions
.DebugDll);
381
var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options:
TestOptions
.DebugDll);
PDB\TypeDefinitionDocumentTests.cs (1)
464
var compilation = CreateCompilation(trees, options:
TestOptions
.DebugDll);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6118)
Attributes\AttributeTests.cs (121)
40
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll.WithDeterministic(true));
525
}", parseOptions:
TestOptions
.Regular7_2);
582
}", options:
TestOptions
.DebugExe);
615
}", options:
TestOptions
.DebugExe);
641
}", options:
TestOptions
.DebugDll);
1116
}", options:
TestOptions
.DebugExe);
1180
}", options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular7_2);
1219
}", options:
TestOptions
.DebugExe);
1258
}", options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular7_2);
1296
}", options:
TestOptions
.DebugExe);
1336
}", options:
TestOptions
.DebugExe);
1701
CSharpCompilationOptions opt =
TestOptions
.ReleaseDll;
1748
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_2);
1837
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
1871
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
1932
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
1995
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
2214
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
2280
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
2351
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
2483
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
3093
var compilation = CreateCompilation(source, references, options:
TestOptions
.ReleaseDll);
3166
CSharpCompilationOptions opt =
TestOptions
.ReleaseDll;
3208
CSharpCompilationOptions opt =
TestOptions
.ReleaseDll;
3258
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
3306
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
3358
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
3410
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
3442
CSharpCompilationOptions opt =
TestOptions
.ReleaseDll;
3581
CSharpCompilationOptions opt =
TestOptions
.ReleaseDll;
3675
CSharpCompilationOptions opt =
TestOptions
.ReleaseDll;
3782
CSharpCompilationOptions opt =
TestOptions
.ReleaseDll;
4132
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4175
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4219
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4264
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4308
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4510
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4956
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
5062
var compilation = CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.ReleaseExe);
5131
var compilation = CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.ReleaseExe);
5167
var compilation = CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.ReleaseExe);
5242
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
5300
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
5361
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
5884
", options:
TestOptions
.ReleaseDll);
5944
", options:
TestOptions
.ReleaseDll);
5992
CSharpCompilationOptions opt =
TestOptions
.ReleaseDll;
6286
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
6295
compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
6346
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
6355
compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
6758
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
7490
CSharpCompilationOptions opt =
TestOptions
.ReleaseDll;
7608
CSharpCompilationOptions opt =
TestOptions
.ReleaseDll;
7651
CSharpCompilationOptions opt =
TestOptions
.ReleaseDll;
7709
CSharpCompilationOptions opt =
TestOptions
.ReleaseDll;
7807
CSharpCompilationOptions opt =
TestOptions
.ReleaseDll;
7915
CSharpCompilationOptions opt =
TestOptions
.ReleaseDll;
7917
var compilation = CreateCompilation(source, null, options: opt, parseOptions:
TestOptions
.Regular10);
7953
CSharpCompilationOptions opt =
TestOptions
.ReleaseDll;
7955
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
7999
var comp = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource, parseOptions:
TestOptions
.Regular9);
8009
comp = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource, parseOptions:
TestOptions
.RegularPreview);
8892
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
9009
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
9030
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
9071
var comp = CreateCompilationWithILAndMscorlib40(source, il, parseOptions:
TestOptions
.Regular10);
9091
comp = CreateCompilationWithILAndMscorlib40(source, il, parseOptions:
TestOptions
.RegularPreview);
9126
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
9141
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
9172
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
9199
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
9908
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
9990
var compilation = CreateCompilation(source, options:
TestOptions
.DebugDll);
10019
var compilation1 = CreateCompilationWithMscorlib40(source1, options:
TestOptions
.DebugDll);
10032
var compilation2 = CreateCompilationWithMscorlib40(source2, new[] { new CSharpCompilationReference(compilation1) }, options:
TestOptions
.DebugDll, assemblyName: "Test.dll");
10043
var compilation3 = CreateCompilationWithMscorlib461(source2, new[] { new CSharpCompilationReference(compilation1) }, options:
TestOptions
.DebugDll);
10173
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
10211
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
10236
var libRef = CreateCompilation(lib_cs, parseOptions:
TestOptions
.RegularPreview).EmitToImageReference();
10238
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview, references: new[] { libRef });
10242
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, references: new[] { libRef });
10259
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
10263
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
10286
var libRef = CreateCompilation(lib_cs, parseOptions:
TestOptions
.RegularPreview).EmitToImageReference();
10288
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview, references: new[] { libRef });
10292
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, references: new[] { libRef });
10312
var libRef = CreateCompilation(lib_cs, parseOptions:
TestOptions
.RegularPreview).EmitToImageReference();
10314
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview, references: new[] { libRef });
10318
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, references: new[] { libRef });
10338
var libRef = CreateCompilation(lib_cs, parseOptions:
TestOptions
.RegularPreview).EmitToImageReference();
10340
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview, references: new[] { libRef });
10344
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, references: new[] { libRef });
10360
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
10385
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
10392
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
10421
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
10428
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
10459
var comp = CreateCompilation(new[] { source1, source2 }, parseOptions:
TestOptions
.Regular10);
10466
var comp2 = CreateCompilation(source2, references: new[] { comp1.ToMetadataReference() }, parseOptions:
TestOptions
.Regular9);
10469
comp2 = CreateCompilation(source2, references: new[] { comp1.EmitToImageReference() }, parseOptions:
TestOptions
.Regular9);
10508
var comp = CreateCompilationWithIL(source, il, parseOptions:
TestOptions
.Regular9);
10530
var comp = CreateCompilation(new[] { source1, source2 }, parseOptions:
TestOptions
.Regular10);
10537
var comp2 = CreateCompilation(source2, references: new[] { comp1.ToMetadataReference() }, parseOptions:
TestOptions
.Regular9);
10540
comp2 = CreateCompilation(source2, references: new[] { comp1.EmitToImageReference() }, parseOptions:
TestOptions
.Regular9);
10574
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
10754
var comp = CreateCompilationWithIL(source, il, options:
TestOptions
.DebugExe);
10872
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
10895
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
10901
comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular12);
10908
comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular11);
10922
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
10939
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
11008
var verifier = CompileAndVerify(source, symbolValidator: validateMetadata, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
11217
var verifier = CompileAndVerify(source, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), sourceSymbolValidator: verify, symbolValidator: verify, expectedOutput: "a");
11576
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
Attributes\AttributeTests_Assembly.cs (135)
31
var other = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
41
var comp = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
52
var comp = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
70
var comp = CreateCompilation(s, options:
TestOptions
.ReleaseDll.WithCurrentLocalTime(now));
84
var comp = CreateCompilation(s, options:
TestOptions
.ReleaseDll.WithCurrentLocalTime(new DateTime(2300, 1, 1)));
99
var other = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
106
other = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
118
var comp = CreateCompilation(s, options:
TestOptions
.ReleaseDll.WithDeterministic(true));
131
var comp = CreateCompilation(s, options:
TestOptions
.ReleaseDll.WithDeterministic(true));
144
var other = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
154
var other = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
164
var other = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
174
var other = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
193
var other = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
206
var other = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
227
var other = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
236
other = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
245
other = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
267
var other = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
277
var other = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
287
var other = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
297
var other = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
306
var comp = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
310
comp = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
314
comp = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
323
var comp = CreateCompilation(s, options:
TestOptions
.ReleaseExe);
327
comp = CreateCompilation(s, options:
TestOptions
.ReleaseExe);
335
var comp = CreateCompilation(s, options:
TestOptions
.ReleaseExe);
347
var comp = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
362
var comp = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
376
", options:
TestOptions
.ReleaseDll, assemblyName: "neutral");
386
", options:
TestOptions
.ReleaseDll, assemblyName: "de");
396
", options:
TestOptions
.ReleaseDll, assemblyName: "en_us");
412
", new MetadataReference[] { deRef, neutralRef },
TestOptions
.ReleaseDll, assemblyName: assemblyNameBase + "10");
419
compilation = compilation.WithOptions(
TestOptions
.ReleaseModule);
422
compilation = CreateCompilationWithMscorlib40("", new MetadataReference[] { compilation.EmitToImageReference() },
TestOptions
.ReleaseDll, assemblyName: assemblyNameBase + "20");
444
", new MetadataReference[] { en_usRef }, options:
TestOptions
.ReleaseDll, assemblyName: assemblyNameBase + "23");
448
compilation = compilation.WithOptions(
TestOptions
.ReleaseModule);
451
compilation = CreateCompilationWithMscorlib40("", new MetadataReference[] { compilation.EmitToImageReference() },
TestOptions
.ReleaseDll, assemblyName: assemblyNameBase + "25");
463
", new MetadataReference[] { deRef, neutralRef },
TestOptions
.ReleaseDll, assemblyName: assemblyNameBase + "30");
467
compilation = compilation.WithOptions(
TestOptions
.ReleaseModule);
470
compilation = CreateCompilationWithMscorlib40("", new MetadataReference[] { compilation.EmitToImageReference() },
TestOptions
.ReleaseDll, assemblyName: assemblyNameBase + "40");
495
", new MetadataReference[] { deRef },
TestOptions
.ReleaseDll, assemblyName: assemblyNameBase + "50");
502
compilation = compilation.WithOptions(
TestOptions
.ReleaseModule);
505
compilation = CreateCompilationWithMscorlib40("", new MetadataReference[] { compilation.EmitToImageReference() },
TestOptions
.ReleaseDll, assemblyName: assemblyNameBase + "60");
518
var other = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
524
other = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
534
var other = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
544
var other = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
554
var other = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
560
other = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
570
var other = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
592
", options:
TestOptions
.ReleaseDll, references: new[] { hash_module });
623
", options:
TestOptions
.ReleaseDll, references: new[] { hash_module });
654
", options:
TestOptions
.ReleaseDll, references: new[] { hash_module });
684
", options:
TestOptions
.ReleaseDll, references: new[] { hash_module });
713
", options:
TestOptions
.ReleaseDll, references: new[] { MscorlibRef_v4_0_30316_17626, hash_module });
742
", options:
TestOptions
.ReleaseDll, references: new[] { MscorlibRef_v4_0_30316_17626, hash_module });
775
", options:
TestOptions
.ReleaseDll, references: new[] { MscorlibRef_v4_0_30316_17626, hash_module });
807
{}", options:
TestOptions
.ReleaseModule);
815
", options:
TestOptions
.ReleaseDll, references: new[] { hash_module_Comp.EmitToImageReference() });
835
", options:
TestOptions
.ReleaseDll);
848
", options:
TestOptions
.ReleaseDll, references: new[] { hash_module });
862
", options:
TestOptions
.ReleaseDll);
869
var comp = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
876
comp = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
880
comp = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
892
var comp = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
905
var comp = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
920
var comp = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
1013
var netmoduleCompilation = CreateCompilationWithMscorlib40(source, options:
TestOptions
.ReleaseModule, references: references, assemblyName: assemblyName);
1076
parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(),
1077
options:
TestOptions
.ReleaseExe);
1123
parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(),
1124
options:
TestOptions
.ReleaseModule);
1177
options:
TestOptions
.ReleaseModule,
1178
parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(),
1197
parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(),
1198
options:
TestOptions
.ReleaseExe);
1238
parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(),
1239
options:
TestOptions
.ReleaseModule);
1271
var consoleappCompilation = CreateCompilationWithMscorlib40(consoleappSource, references: new[] { GetNetModuleWithAssemblyAttributesRef() }, options:
TestOptions
.ReleaseExe);
1323
var consoleappCompilation = CreateCompilationWithMscorlib40(consoleappSource, references: new[] { GetNetModuleWithAssemblyAttributesRef() }, options:
TestOptions
.ReleaseExe);
1374
var consoleappCompilation = CreateCompilationWithMscorlib40(consoleappSource, references: new[] { GetNetModuleWithAssemblyAttributesRef() }, options:
TestOptions
.ReleaseExe);
1419
var compilation = CreateCompilationWithMscorlib40(consoleappSource, references: new[] { netmodule1Ref }, options:
TestOptions
.ReleaseExe);
1432
compilation = CreateCompilationWithMscorlib40(netmodule2Source, options:
TestOptions
.ReleaseModule, references: new[] { netmodule1Ref });
1439
compilation = CreateCompilationWithMscorlib40("", options:
TestOptions
.ReleaseDll, references: new[] { netmodule1Ref, netmodule2Ref });
1497
var compilation = CreateCompilationWithMscorlib40(source, references: new[] { GetNetModuleWithAssemblyAttributesRef() }, options:
TestOptions
.ReleaseDll);
1523
var compilation = CreateCompilationWithMscorlib40(source1, references: new[] { defsRef, netmodule1Ref }, options:
TestOptions
.ReleaseDll);
1533
compilation = CreateCompilationWithMscorlib40("", references: new[] { defsRef, netmodule1Ref, netmodule2Ref }, options:
TestOptions
.ReleaseDll);
1576
var compilation = CreateCompilationWithMscorlib40(source, references: new[] { netmoduleRef }, options:
TestOptions
.ReleaseDll);
1629
var compilation = CreateCompilationWithMscorlib40(source, references: new[] { netmoduleDefsRef, netmodule0Ref, netmodule1Ref, netmodule2Ref, netmodule3Ref }, options:
TestOptions
.ReleaseDll);
1671
var compilation = CreateCompilationWithMscorlib40(source, references: new[] { netmoduleRef }, options:
TestOptions
.ReleaseDll);
1718
var compilation = CreateCompilationWithMscorlib40(source, references: new[] { netmoduleRef }, options:
TestOptions
.ReleaseDll);
1744
var appCompilation = CreateCompilationWithMscorlib40(app, references: new[] { netModuleRef }, options:
TestOptions
.ReleaseDll);
1750
appCompilation = CreateCompilationWithMscorlib40(app, references: new[] { netModuleRef, Net40.References.SystemCore }, options:
TestOptions
.ReleaseDll);
1784
var appCompilation = CreateCompilationWithMscorlib40(app, references: new[] { netModuleRef }, options:
TestOptions
.ReleaseDll);
1835
var module = CreateCompilation(moduleSrc, options:
TestOptions
.ReleaseModule, assemblyName: "M");
1932
var module = CreateCompilation(moduleSrc, options:
TestOptions
.ReleaseModule, assemblyName: "M");
1958
var module1 = CreateCompilation(moduleSrc1, options:
TestOptions
.ReleaseModule, assemblyName: "M1");
1965
var module2 = CreateCompilation(moduleSrc2, options:
TestOptions
.ReleaseModule, assemblyName: "M2");
1986
var module1 = CreateCompilation(moduleSrc1, options:
TestOptions
.ReleaseModule, assemblyName: "M1");
2011
var module1 = CreateCompilation(moduleSrc1, options:
TestOptions
.ReleaseModule, assemblyName: "M1");
2018
var module2 = CreateCompilation(moduleSrc2, options:
TestOptions
.ReleaseModule, assemblyName: "M2");
2039
var module1 = CreateCompilation(moduleSrc1, options:
TestOptions
.ReleaseModule, assemblyName: "M1");
2064
var module1 = CreateCompilation(moduleSrc1, options:
TestOptions
.ReleaseModule, assemblyName: "M1");
2071
var module2 = CreateCompilation(moduleSrc2, options:
TestOptions
.ReleaseModule, assemblyName: "M2");
2090
var module1 = CreateCompilation(moduleSrc1, options:
TestOptions
.ReleaseModule, assemblyName: "M1");
2116
var compMod1 = CreateCompilation(mod1Source, options:
TestOptions
.ReleaseModule, assemblyName: "M1");
2117
var compMod2 = CreateCompilation(mod2Source, options:
TestOptions
.ReleaseModule, assemblyName: "M2");
2121
options:
TestOptions
.ReleaseDll);
2148
var compMod1 = CreateCompilation(mod1Source, options:
TestOptions
.ReleaseModule, assemblyName: "M1");
2149
var compMod2 = CreateCompilation(mod2Source, options:
TestOptions
.ReleaseModule, assemblyName: "M2");
2153
options:
TestOptions
.ReleaseDll);
2178
var compMod1 = CreateCompilation(mod1Source, options:
TestOptions
.ReleaseModule, assemblyName: "M1");
2179
var compMod2 = CreateCompilation(mod2Source, options:
TestOptions
.ReleaseModule, assemblyName: "M2");
2183
options:
TestOptions
.ReleaseDll);
2210
var compMod1 = CreateCompilation(mod1Source, options:
TestOptions
.ReleaseModule, assemblyName: "M1");
2211
var compMod2 = CreateCompilation(mod2Source, options:
TestOptions
.ReleaseModule, assemblyName: "M2");
2215
options:
TestOptions
.ReleaseDll);
2237
var compMod1 = CreateCompilation(mod1Source, options:
TestOptions
.ReleaseModule, assemblyName: "M1");
2240
options:
TestOptions
.ReleaseExe);
2272
var compilation = CreateCompilation(s, options:
TestOptions
.ReleaseDll);
2286
var attributeDefinition1 = CreateCompilation(attribute1, options:
TestOptions
.ReleaseDll, assemblyName: "A1").EmitToImageReference();
2291
var moduleWithAttribute = CreateCompilation(module, references: new[] { attributeDefinition1 }, options:
TestOptions
.ReleaseModule, assemblyName: "M1").EmitToImageReference();
2293
var comp = CreateCompilation("", references: new[] { moduleWithAttribute, attributeDefinition1 }, options:
TestOptions
.ReleaseDll);
2305
var comp2 = CreateCompilation("", references: new[] { moduleWithAttribute }, options:
TestOptions
.ReleaseDll);
2318
var attributeDefinition2 = CreateCompilation(attribute2, options:
TestOptions
.ReleaseDll, assemblyName: "A1").EmitToImageReference();
2320
var comp3 = CreateCompilation("", references: new[] { moduleWithAttribute, attributeDefinition2 }, options:
TestOptions
.ReleaseDll);
2337
var c1Definition = CreateCompilation(c1, options:
TestOptions
.ReleaseDll, assemblyName: "A1").EmitToImageReference();
2347
var module1WithAttribute = CreateCompilation(module1, references: new[] { c1Definition }, options:
TestOptions
.ReleaseModule, assemblyName: "M1").EmitToImageReference();
2349
var comp = CreateCompilation("", references: new[] { module1WithAttribute, c1Definition }, options:
TestOptions
.ReleaseDll);
2361
var comp2 = CreateCompilation("", references: new[] { module1WithAttribute }, options:
TestOptions
.ReleaseDll);
2376
var module2WithAttribute = CreateCompilation(module2, references: new[] { c1Definition }, options:
TestOptions
.ReleaseModule, assemblyName: "M1").EmitToImageReference();
2377
var comp3 = CreateCompilation("", references: new[] { module2WithAttribute, c1Definition }, options:
TestOptions
.ReleaseDll);
Attributes\AttributeTests_CallerInfoAttributes.cs (191)
72
var compilation = CreateEmptyCompilation(source, GetReferencesWithoutInteropServices(), options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
138
var compilation = CreateEmptyCompilation(source, GetReferencesWithoutInteropServices(), options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
203
var compilation = CreateEmptyCompilation(source, GetReferencesWithoutInteropServices(), options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
259
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
318
var compilation = CreateEmptyCompilation(source, GetReferencesWithoutInteropServices(), options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
375
var compilation = CreateEmptyCompilation(source, GetReferencesWithoutInteropServices(), options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
420
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
459
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
498
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
526
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
565
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
626
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
659
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
679
var comp1 = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, parseOptions:
TestOptions
.Regular9);
690
var compilation = CreateCompilation(source2, references: new[] { ref1 }, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
716
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
742
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
767
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
796
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
825
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
854
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
889
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
924
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
953
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
982
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
1014
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
1063
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
1098
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
1137
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
1177
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
1215
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
1250
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
1290
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
1321
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
1346
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe);
1393
var compilation = CreateCompilationWithIL(source, il, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe);
1444
var compilation = CreateCompilation(source, targetFramework: TargetFramework.Net50, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
1478
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
1512
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
1545
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
1582
var compilation = CreateCompilation(source2, references: new[] { ref1 }, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
1613
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
1648
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
1688
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
1730
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
1776
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
1815
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
1849
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
1913
var compilation = CreateCompilationWithIL(source, il, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
1941
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
1973
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
2005
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
2038
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
2077
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
2121
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
2153
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
2181
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
2209
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
2237
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
2297
var compilation = CreateCompilationWithILAndMscorlib40(source, il, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
2331
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
2367
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
2405
var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
2442
var compilation = CreateCompilation(source, targetFramework: TargetFramework.Net50, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
2493
var compilation = CreateCompilation(source, targetFramework: TargetFramework.Net50, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
2677
var compilation = CreateCompilationWithMscorlib461(source, new MetadataReference[] { SystemRef },
TestOptions
.ReleaseExe);
2711
var compilation = CreateCompilationWithMscorlib461(source, new MetadataReference[] { SystemRef },
TestOptions
.ReleaseExe);
2755
var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemRef },
TestOptions
.ReleaseExe);
2846
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
2891
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
2926
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
2957
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
3046
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
3077
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
3170
var compilation = CreateCompilationWithMscorlib461(source, new[] { libReference },
TestOptions
.ReleaseExe);
3235
CompileAndVerify(source, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: verify);
3278
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
3323
CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(0)).VerifyDiagnostics(
3389
TestOptions
.ReleaseExe);
3428
var compilation = CreateCompilationWithMscorlib461(source, references: new MetadataReference[] { SystemRef }, options:
TestOptions
.ReleaseExe);
3485
var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemRef },
TestOptions
.ReleaseExe);
3521
var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemRef },
TestOptions
.ReleaseExe);
3563
var compilation = CreateCompilationWithMscorlib461(source, references: new MetadataReference[] { SystemRef }, options:
TestOptions
.ReleaseExe);
3606
var compilation = CreateCompilationWithMscorlib461(source, references: new MetadataReference[] { SystemRef }, options:
TestOptions
.ReleaseExe);
3647
options:
TestOptions
.ReleaseExe,
3648
parseOptions:
TestOptions
.Regular9);
3693
options:
TestOptions
.ReleaseExe,
3694
parseOptions:
TestOptions
.Regular9);
3742
options:
TestOptions
.ReleaseExe,
3743
parseOptions:
TestOptions
.Regular9);
3782
var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemRef },
TestOptions
.ReleaseExe);
3830
var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemRef },
TestOptions
.ReleaseExe);
3868
var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemRef },
TestOptions
.ReleaseExe);
3908
TestOptions
.ReleaseExe);
3966
var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemRef },
TestOptions
.ReleaseExe);
4008
var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemRef },
TestOptions
.ReleaseExe);
4060
var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemRef },
TestOptions
.ReleaseExe);
4134
var compilation = CreateCompilationWithMscorlib461(source, references: new MetadataReference[] { SystemRef }, options:
TestOptions
.ReleaseExe);
4175
TestOptions
.ReleaseExe.WithSourceReferenceResolver(SourceFileResolver.Default));
4211
SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.Regular9, path: @"C:\filename", encoding: Encoding.UTF8)
4213
options:
TestOptions
.ReleaseExe.WithSourceReferenceResolver(SourceFileResolver.Default));
4271
TestOptions
.ReleaseExe.WithSourceReferenceResolver(new SourceFileResolver(ImmutableArray<string>.Empty, baseDirectory: @"C:\A\B")));
4336
var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemRef },
TestOptions
.ReleaseExe);
4379
var compilation = CreateCompilationWithMscorlib461(source, references: new MetadataReference[] { SystemRef }, options:
TestOptions
.ReleaseExe);
4401
var compilation = CreateCompilationWithMscorlib461(source, references: new MetadataReference[] { SystemRef }, options:
TestOptions
.ReleaseExe);
4431
var compilation = CreateCompilationWithMscorlib461(source, references: new MetadataReference[] { SystemRef }, options:
TestOptions
.ReleaseExe);
4484
var compilation = CreateCompilationWithMscorlib461(source, new[] { libReference },
TestOptions
.ReleaseExe);
4519
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
4637
TestOptions
.ReleaseExe);
4669
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
4720
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
4790
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
4823
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
4906
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
5024
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
5173
TestOptions
.ReleaseExe);
5222
new[] { SyntaxFactory.ParseSyntaxTree(source, options:
TestOptions
.Regular7, path: @"C:\filename", encoding: Encoding.UTF8) },
5223
options:
TestOptions
.ReleaseExe);
5292
var compilation = CreateCompilationWithMscorlib461(new SyntaxTree[] { SyntaxFactory.ParseSyntaxTree(source, options:
TestOptions
.Regular7, path: @"C:\filename") }).VerifyDiagnostics(
5384
var compilation = CreateCompilationWithMscorlib461(source, new MetadataReference[] { SystemRef },
TestOptions
.ReleaseExe);
5420
var compilation = CreateCompilationWithMscorlib461(source, new MetadataReference[] { SystemRef },
TestOptions
.ReleaseExe);
5456
var compilation = CreateCompilationWithMscorlib461(source, new MetadataReference[] { SystemRef },
TestOptions
.ReleaseExe);
5495
var compilation = CreateCompilationWithMscorlib461(source, new MetadataReference[] { SystemRef },
TestOptions
.ReleaseExe);
5557
TestOptions
.ReleaseExe);
5617
TestOptions
.ReleaseExe);
5672
TestOptions
.ReleaseExe);
5711
TestOptions
.ReleaseExe);
5757
TestOptions
.ReleaseExe);
Attributes\AttributeTests_Conditional.cs (2)
252
var compilation = CreateCompilation(syntaxTree, options:
TestOptions
.ReleaseExe);
463
var compilation = CreateCompilation(syntaxTree, options:
TestOptions
.ReleaseExe);
Attributes\AttributeTests_Dynamic.cs (18)
103
var comp = CreateCompilationWithMscorlib40(s_dynamicTestSource, options:
TestOptions
.UnsafeReleaseDll, references: new[] { SystemCoreRef, ValueTupleRef, SystemRuntimeFacadeRef });
562
var comp = CreateCompilationWithMscorlib46(s_dynamicTestSource, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options:
TestOptions
.UnsafeReleaseDll);
821
parseOptions:
TestOptions
.Script,
822
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
839
CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script).VerifyDiagnostics(
853
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
854
parseOptions:
TestOptions
.Script,
871
var comp = CreateCompilationWithMscorlib461(source: source, parseOptions:
TestOptions
.Script).VerifyDiagnostics(
888
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
889
parseOptions:
TestOptions
.Script,
910
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
911
parseOptions:
TestOptions
.Script.WithLanguageVersion(LanguageVersion.Preview),
930
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script).VerifyDiagnostics(
944
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script).VerifyDiagnostics(
1087
CompileAndVerify(source, references: new[] { CSharpRef }, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
1188
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
1225
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
1333
CreateCompilationWithMscorlib461(source: source, parseOptions:
TestOptions
.Script).VerifyDiagnostics(
Attributes\AttributeTests_Embedded.cs (6)
45
CreateCompilation(code, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute()).VerifyEmitDiagnostics();
105
}", options:
TestOptions
.ReleaseModule);
193
CompileAndVerify(code, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), verify: Verification.Passes, expectedOutput: "3");
221
var module = CreateCompilation(options:
TestOptions
.ReleaseModule, assemblyName: "testModule", source: @"
270
var reference = CreateCompilation(assemblyName: "testRef", parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), source: @"
492
var compilation1 = CreateCompilation(parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), source: @"
Attributes\AttributeTests_Experimental.cs (1)
261
var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { DeprecatedAttributeSource, ExperimentalAttributeSource, source }, parseOptions:
TestOptions
.Regular9);
Attributes\AttributeTests_IsByRefLike.cs (7)
356
var options =
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All);
398
CreateCompilation(code, options:
TestOptions
.ReleaseModule).VerifyDiagnostics(
415
CreateCompilation(code, options:
TestOptions
.ReleaseModule).VerifyDiagnostics(
440
CompileAndVerify(code, verify: Verification.Fails, references: new[] { reference }, options:
TestOptions
.ReleaseModule, symbolValidator: module =>
452
var options =
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All);
516
CreateCompilation(text, options:
TestOptions
.ReleaseModule).VerifyDiagnostics(
606
var options =
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All);
Attributes\AttributeTests_IsUnmanaged.cs (23)
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 =>
201
options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All),
229
options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All),
258
CompileAndVerify(text, verify: Verification.Fails, references: new[] { reference }, options:
TestOptions
.ReleaseModule, symbolValidator: module =>
284
CompileAndVerify(text, verify: Verification.Fails, references: new[] { reference }, options:
TestOptions
.ReleaseModule, symbolValidator: module =>
320
options:
TestOptions
.ReleaseModule.WithMetadataImportOptions(MetadataImportOptions.All),
349
options:
TestOptions
.ReleaseModule.WithMetadataImportOptions(MetadataImportOptions.All),
417
options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All),
437
options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All),
626
var options =
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All);
665
CreateCompilation(code, options:
TestOptions
.ReleaseModule).VerifyDiagnostics(
680
CreateCompilation(code, options:
TestOptions
.ReleaseModule).VerifyDiagnostics(
702
CreateCompilation(source: code, options:
TestOptions
.ReleaseModule.WithMetadataImportOptions(MetadataImportOptions.All)).VerifyDiagnostics(
713
CreateCompilation(source: code, options:
TestOptions
.ReleaseModule.WithMetadataImportOptions(MetadataImportOptions.All)).VerifyDiagnostics(
722
var options =
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All);
771
CreateCompilation(text, options:
TestOptions
.DebugDll.WithOutputKind(outputKind)).VerifyDiagnostics(
794
CreateCompilation(text, options:
TestOptions
.DebugDll.WithOutputKind(outputKind)).VerifyDiagnostics(
814
CreateCompilation(text, options:
TestOptions
.DebugDll.WithOutputKind(outputKind)).VerifyDiagnostics(
Attributes\AttributeTests_LifetimeAnnotation.cs (4)
454
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
491
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
518
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
554
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
Attributes\AttributeTests_Locations.cs (2)
198
CreateCompilation(source, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
246
CreateCompilation(source, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
Attributes\AttributeTests_MarshalAs.cs (6)
32
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
66
options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
704
options:
TestOptions
.ReleaseDll.WithWarningLevel(7))
709
options:
TestOptions
.ReleaseDll.WithWarningLevel(8))
1449
CreateCompilation(source, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
1531
options:
TestOptions
.ReleaseExe,
Attributes\AttributeTests_NativeInteger.cs (64)
71
comp = CreateCompilation(source, references: new[] { ref0 }, parseOptions:
TestOptions
.Regular9);
102
var comp = CreateCompilation(new[] { source1, source2 }, parseOptions:
TestOptions
.Regular9);
128
var comp = CreateCompilation(new[] { source1, source2 }, parseOptions:
TestOptions
.Regular9);
165
var comp = CreateCompilation(new[] { sourceAttribute, source }, parseOptions:
TestOptions
.Regular8);
168
comp = CreateCompilation(new[] { sourceAttribute, source }, parseOptions:
TestOptions
.Regular9);
204
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
256
var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions:
TestOptions
.Regular8);
266
comp = CreateCompilation(source1, new[] { ref0 }, parseOptions:
TestOptions
.Regular9);
342
var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions:
TestOptions
.Regular8);
346
comp = CreateCompilation(source1, new[] { ref0 }, parseOptions:
TestOptions
.Regular9);
419
var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions:
TestOptions
.Regular8);
429
comp = CreateCompilation(source1, new[] { ref0 }, parseOptions:
TestOptions
.Regular9);
502
var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions:
TestOptions
.Regular8);
506
comp = CreateCompilation(source1, new[] { ref0 }, parseOptions:
TestOptions
.Regular9);
590
var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions:
TestOptions
.Regular8);
612
comp = CreateCompilation(source1, new[] { ref0 }, parseOptions:
TestOptions
.Regular9);
706
var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions:
TestOptions
.Regular8);
722
comp = CreateCompilation(source1, new[] { ref0 }, parseOptions:
TestOptions
.Regular9);
770
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
787
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
815
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
844
comp = CreateCompilation(source2, references: new[] { ref1 }, parseOptions:
TestOptions
.Regular9);
857
comp = CreateCompilation(source3, references: new[] { ref2 }, parseOptions:
TestOptions
.Regular9);
876
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
893
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
909
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
927
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
944
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
966
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
986
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
1002
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
1016
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
1030
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
1056
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
1080
parseOptions:
TestOptions
.Regular9,
1081
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
1104
parseOptions:
TestOptions
.Regular9,
1105
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
1127
parseOptions:
TestOptions
.Regular9,
1128
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
1151
parseOptions:
TestOptions
.Regular9,
1152
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
1174
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseModule);
1198
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseModule);
1287
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
1333
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.UnsafeReleaseDll);
1357
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.UnsafeReleaseDll);
1375
var comp = CreateCompilation(source1, parseOptions:
TestOptions
.Regular9);
1397
comp = CreateCompilation(source2, references: new[] { ref1 }, parseOptions:
TestOptions
.Regular9);
1413
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), parseOptions:
TestOptions
.Regular9);
1421
comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(6), parseOptions:
TestOptions
.Regular9);
1444
options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All),
1445
parseOptions:
TestOptions
.Regular9.WithNullablePublicOnly());
1460
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
1488
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
1513
", options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular9, symbolValidator: symbolValidator);
1558
", options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular9, symbolValidator: symbolValidator);
Attributes\AttributeTests_Nullable.cs (134)
30
var comp = CreateEmptyCompilation(source, parseOptions:
TestOptions
.Regular8);
355
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
371
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
379
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }, parseOptions:
TestOptions
.Regular8);
398
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
426
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
451
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
490
var comp = CreateCompilation(new[] { sourceAttribute, source }, parseOptions:
TestOptions
.Regular7);
526
var options =
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All);
561
var options =
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All);
597
var comp0 = CreateEmptyCompilation(source0, parseOptions:
TestOptions
.Regular7);
608
parseOptions:
TestOptions
.Regular8);
645
var comp0 = CreateEmptyCompilation(source0, parseOptions:
TestOptions
.Regular7);
656
parseOptions:
TestOptions
.Regular8);
698
var comp0 = CreateEmptyCompilation(source0, parseOptions:
TestOptions
.Regular7);
709
parseOptions:
TestOptions
.Regular8);
746
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
797
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7);
811
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
841
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular8);
864
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular8);
886
var comp = CreateCompilation(new[] { source }, options: WithNullable(NullableContextOptions.Enable), parseOptions:
TestOptions
.Regular8);
908
var comp = CreateCompilation(new[] { source }, options: WithNullable(NullableContextOptions.Annotations), parseOptions:
TestOptions
.Regular8);
931
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular8);
954
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular8);
970
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
993
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular8, options: WithNullableEnable(
TestOptions
.ReleaseModule));
1004
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8, options:
TestOptions
.ReleaseModule);
1082
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
1103
var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8, references: new[] { comp.EmitToImageReference() });
1130
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
1158
var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8, references: new[] { comp.EmitToImageReference() });
1181
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
1208
var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8, references: new[] { comp.EmitToImageReference() });
1342
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
1372
var comp2 = CreateCompilation(new[] { source, source2 }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
1381
comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8, references: new[] { comp.EmitToImageReference() });
1407
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7);
1434
var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8, references: new[] { comp.EmitToImageReference() });
1455
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
1480
var comp2 = CreateCompilation(new[] { source, source2 }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
1489
comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8, references: new[] { comp.EmitToImageReference() });
1513
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
1534
var comp2 = CreateCompilation(new[] { source, source2 }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
1546
comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8, references: new[] { comp.EmitToImageReference() });
1902
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
1923
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
1944
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
1961
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
1984
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
2040
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
2056
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
2070
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
2084
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
2145
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
2166
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
2192
parseOptions:
TestOptions
.Regular8,
2193
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
2219
parseOptions:
TestOptions
.Regular8,
2220
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
2239
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular8);
2254
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8, references: new[] { ref0 });
2272
parseOptions:
TestOptions
.Regular8,
2273
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
2296
parseOptions:
TestOptions
.Regular8,
2297
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
2322
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseModule);
2349
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseModule);
2492
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular8);
2505
parseOptions:
TestOptions
.Regular8,
2506
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
2530
parseOptions:
TestOptions
.Regular8,
2531
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
2556
parseOptions:
TestOptions
.Regular8,
2557
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
2585
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
3471
var parseOptions =
TestOptions
.Regular8;
3516
var parseOptions =
TestOptions
.Regular8;
3631
var options =
TestOptions
.ReleaseDll;
3632
var parseOptions =
TestOptions
.Regular8;
3756
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
3826
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
3867
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
3967
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
4036
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
4115
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
4393
var comp0 = CreateEmptyCompilation(source0, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
4415
parseOptions:
TestOptions
.Regular8.WithNoRefSafetyRulesAttribute());
4429
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular8, options: WithNullableEnable(
TestOptions
.ReleaseModule));
4449
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular8, options: WithNullableEnable(
TestOptions
.ReleaseModule));
4470
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular8, options: WithNullableEnable(
TestOptions
.ReleaseModule));
4488
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular8, options: WithNullableEnable(
TestOptions
.ReleaseModule));
4503
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular8, options: WithNullableEnable(
TestOptions
.ReleaseModule));
4518
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular8, options: WithNullableEnable(
TestOptions
.ReleaseModule));
4536
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular8, options: WithNullableEnable(
TestOptions
.ReleaseModule));
4560
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular8, options: WithNullableEnable(
TestOptions
.ReleaseModule));
4585
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular8, options: WithNullableEnable(
TestOptions
.ReleaseModule));
4606
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular8, options: WithNullableEnable(
TestOptions
.ReleaseModule));
4621
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular8, options: WithNullableEnable(
TestOptions
.ReleaseModule));
4647
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8, options:
TestOptions
.ReleaseModule);
4669
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular8, options: WithNullableEnable(
TestOptions
.ReleaseModule));
4706
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular8, options: WithNullableEnable(
TestOptions
.ReleaseModule));
4725
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular8, options: WithNullableEnable(
TestOptions
.ReleaseModule));
4744
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
4794
var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8, references: new[] { comp.EmitToImageReference() });
4853
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
4924
var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8, references: new[] { comp.EmitToImageReference() });
4970
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
4991
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
5028
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8, options:
TestOptions
.DebugExe);
5063
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8, options:
TestOptions
.DebugExe);
5299
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, references: new[] { library }, expectedOutput:
5317
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, references: new[] { library }, expectedOutput:
5343
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, references: new[] { library }, expectedOutput:
5367
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, references: new[] { library }, expectedOutput:
Attributes\AttributeTests_NullableContext.cs (6)
87
var comp = CreateCompilation(new[] { source1, source2 }, parseOptions:
TestOptions
.Regular7);
128
var comp = CreateCompilation(new[] { sourceAttribute, source }, parseOptions:
TestOptions
.Regular7);
204
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
231
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
337
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8, options:
TestOptions
.DebugExe);
Attributes\AttributeTests_NullablePublicOnly.cs (27)
32
var parseOptions =
TestOptions
.Regular8;
52
var comp = CreateCompilation(NullablePublicOnlyAttributeDefinition, parseOptions:
TestOptions
.Regular7);
57
var parseOptions =
TestOptions
.Regular8;
84
var parseOptions =
TestOptions
.Regular8;
100
var parseOptions =
TestOptions
.Regular8;
119
var options =
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All);
120
var parseOptions =
TestOptions
.Regular7;
140
var parseOptions =
TestOptions
.Regular8;
160
var parseOptions =
TestOptions
.Regular8;
180
var parseOptions =
TestOptions
.Regular8;
200
var parseOptions =
TestOptions
.Regular8;
217
var parseOptions =
TestOptions
.Regular8;
253
options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All),
254
parseOptions:
TestOptions
.Regular8.WithNullablePublicOnly());
271
var parseOptions =
TestOptions
.Regular8;
291
var parseOptions =
TestOptions
.Regular8;
310
var parseOptions =
TestOptions
.Regular8;
330
var parseOptions =
TestOptions
.Regular8;
353
var options =
TestOptions
.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All);
354
var parseOptions =
TestOptions
.Regular8;
376
var options =
TestOptions
.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All);
377
var parseOptions =
TestOptions
.Regular8;
406
var comp = CreateCompilation(new[] { sourceAttribute, source }, parseOptions:
TestOptions
.Regular7);
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());
566
var parseOptions =
TestOptions
.Regular8;
Attributes\AttributeTests_ReadOnlyStruct.cs (8)
346
var options =
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All);
388
CreateCompilation(code, options:
TestOptions
.ReleaseModule).VerifyDiagnostics(
405
CreateCompilation(code, options:
TestOptions
.ReleaseModule).VerifyDiagnostics(
432
CompileAndVerify(code, verify: Verification.Fails, references: new[] { reference }, options:
TestOptions
.ReleaseModule, symbolValidator: module =>
444
var options =
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All);
486
CompileAndVerify(text, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), verify: Verification.Passes, symbolValidator: module =>
508
CreateCompilation(text, options:
TestOptions
.ReleaseModule).VerifyDiagnostics(
598
var options =
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All);
Attributes\AttributeTests_RefReadOnly.cs (24)
594
var options =
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All);
622
var options =
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All);
648
var options =
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All);
682
var options =
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All);
721
var options =
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All);
753
var options =
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All);
780
var options =
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All);
815
var options =
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All);
1051
var options =
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All);
1095
CreateCompilation(code, options:
TestOptions
.ReleaseModule).VerifyDiagnostics(
1111
CreateCompilation(code, options:
TestOptions
.ReleaseModule).VerifyDiagnostics(
1135
CreateCompilation(code, options:
TestOptions
.ReleaseModule).VerifyDiagnostics(
1156
CompileAndVerify(code, verify: Verification.Fails, references: new[] { reference }, options:
TestOptions
.ReleaseModule, symbolValidator: module =>
1169
var options =
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All);
1233
CreateCompilation(text, options:
TestOptions
.ReleaseModule).VerifyDiagnostics(
1325
var options =
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All);
1532
var compilation = CreateCompilation(code, options:
TestOptions
.ReleaseModule, references: new[] { reference });
1556
var compilation = CreateCompilation(code, options:
TestOptions
.ReleaseModule);
2342
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
2366
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
2389
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
2413
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
2438
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseModule);
2464
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseModule);
Attributes\AttributeTests_RefSafetyRules.cs (10)
28
var comp = CreateCompilation(new[] { source, RefSafetyRulesAttributeDefinition }, parseOptions:
TestOptions
.Regular10);
39
var comp = CreateCompilation(RefSafetyRulesAttributeDefinition, parseOptions:
TestOptions
.Regular10);
49
comp = CreateCompilation(source, references: new[] { ref1 }, parseOptions:
TestOptions
.Regular10);
70
var comp = CreateCompilation(new[] { source1, source2 }, parseOptions:
TestOptions
.Regular10);
95
comp = CreateCompilation(source, references: new[] { ref1 }, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
125
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
152
var refA = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular10).EmitToImageReference();
154
var comp = CreateCompilation(source, references: new[] { refA }, parseOptions:
TestOptions
.Regular10);
171
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersionA));
181
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersionB));
Attributes\AttributeTests_Security.cs (18)
670
var compilation = CreateCompilationWithMscorlib40(source, options:
TestOptions
.ReleaseDll, assemblyName: "Test");
723
var compilation = CreateCompilationWithMscorlib40(source, options:
TestOptions
.ReleaseDll);
766
var compilation = CreateCompilationWithMscorlib40(source, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular9);
804
var compilation = CreateCompilationWithMscorlib40(source, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.RegularPreview);
844
var compilation = CreateCompilationWithMscorlib40(source, options:
TestOptions
.ReleaseDll);
897
var compilation = CreateCompilationWithMscorlib40(source, options:
TestOptions
.ReleaseDll);
949
var compilation = CreateCompilationWithMscorlib40(source, options:
TestOptions
.ReleaseDll);
1009
var compilation = CreateCompilationWithMscorlib40(source, options:
TestOptions
.ReleaseDll);
1075
var compilation = CreateCompilationWithMscorlib40(source, options:
TestOptions
.ReleaseDll);
1137
var compilation = CreateCompilationWithMscorlib40(source, options:
TestOptions
.ReleaseDll);
1200
var compilation = CreateCompilationWithMscorlib40(source, options:
TestOptions
.ReleaseDll);
1303
var compilation = CreateCompilationWithMscorlib40(source, options:
TestOptions
.UnsafeReleaseDll);
1383
var compilation = CreateCompilationWithMscorlib40(source, options:
TestOptions
.UnsafeReleaseDll);
1507
TestOptions
.ReleaseDll.WithXmlReferenceResolver(resolver));
1586
CreateCompilationWithMscorlib40(source, options:
TestOptions
.DebugDll.WithXmlReferenceResolver(resolver)).VerifyDiagnostics(
1629
TestOptions
.ReleaseDll.WithXmlReferenceResolver(new XmlFileResolver(tempDir.Path)));
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 (51)
125
var comp = CreateEmptyCompilation("", new[] { reference }, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
145
var reference = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll).EmitToImageReference();
146
var comp = CreateEmptyCompilation("", new[] { reference }, options:
TestOptions
.UnsafeReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
171
var options =
TestOptions
.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel)
220
var options =
TestOptions
.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel)
259
var options =
TestOptions
.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel)
287
var options =
TestOptions
.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel)
371
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
425
var options =
TestOptions
.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel)
480
var options =
TestOptions
.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel)
538
var options =
TestOptions
.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel)
576
var options =
TestOptions
.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel)
619
var options =
TestOptions
.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel)
665
CompileAndVerify(source, symbolValidator: validate, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
735
CompileAndVerify(source, symbolValidator: validate, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
797
options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All),
871
CompileAndVerify(source, symbolValidator: validate, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
981
var options =
TestOptions
.CreateTestOptions(outputKind, optimizationLevel);
1016
var options =
TestOptions
.CreateTestOptions(outputKind, optimizationLevel);
1051
var options =
TestOptions
.CreateTestOptions(outputKind, optimizationLevel);
1086
var options =
TestOptions
.CreateTestOptions(outputKind, optimizationLevel);
1122
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
1123
var options =
TestOptions
.CreateTestOptions(outputKind, optimizationLevel);
1161
var options =
TestOptions
.CreateTestOptions(outputKind, optimizationLevel);
1196
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
1197
var options =
TestOptions
.CreateTestOptions(outputKind, optimizationLevel);
1234
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
1235
var options =
TestOptions
.CreateTestOptions(outputKind, optimizationLevel);
1261
var options =
TestOptions
.CreateTestOptions(outputKind, optimizationLevel);
1262
var compilation = CreateEmptyCompilation("", parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options: options);
1305
var options =
TestOptions
.CreateTestOptions(outputKind, optimizationLevel);
1354
var options =
TestOptions
.CreateTestOptions(outputKind, optimizationLevel);
1401
var options =
TestOptions
.CreateTestOptions(outputKind, optimizationLevel);
1445
var options =
TestOptions
.CreateTestOptions(outputKind, optimizationLevel);
1488
var options =
TestOptions
.CreateTestOptions(outputKind, optimizationLevel);
1519
", options:
TestOptions
.CreateTestOptions(OutputKind.NetModule, optimizationLevel));
1532
var options =
TestOptions
.CreateTestOptions(outputKind, optimizationLevel);
1560
", options:
TestOptions
.CreateTestOptions(OutputKind.NetModule, optimizationLevel));
1573
var options =
TestOptions
.CreateTestOptions(outputKind, optimizationLevel);
1608
var compilation = CreateCompilationWithMscorlib40(source, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.CreateTestOptions(outputKind, OptimizationLevel.Release, allowUnsafe: true));
1671
var options =
TestOptions
.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel)
1714
var options =
TestOptions
.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel)
1756
var options =
TestOptions
.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel)
1798
var referenceOptions =
TestOptions
.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel)
1802
var options =
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All);
1837
var options =
TestOptions
.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel)
1867
var options =
TestOptions
.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel)
1897
var referenceOptions =
TestOptions
.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel)
1901
var options =
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All);
1914
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
Attributes\AttributeTests_Tuples.cs (9)
109
options:
TestOptions
.ReleaseDll,
117
options:
TestOptions
.UnsafeReleaseDll,
143
options:
TestOptions
.ReleaseDll);
175
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
213
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
239
options:
TestOptions
.UnsafeReleaseDll,
658
options:
TestOptions
.ReleaseDll);
948
parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(),
1048
parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(),
Attributes\AttributeTests_WellKnownAttributes.cs (97)
1613
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: "");
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) =>
3701
CompileAndVerify(source, options:
TestOptions
.ReleaseDll, verify: Verification.FailsPEVerify, sourceSymbolValidator: sourceValidator, symbolValidator: metadataValidator);
4703
CompileAndVerify(source, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), assemblyValidator: (assembly) =>
4812
CompileAndVerify(source, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), assemblyValidator: (assembly) =>
5016
var script = CreateCompilation("", parseOptions:
TestOptions
.Script);
5141
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
5143
var compilation = CreateCompilation(syntaxTree, options:
TestOptions
.ReleaseDll);
5204
CompileAndVerify(source, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
5271
var opt =
TestOptions
.ReleaseDll;
5761
parseOptions:
TestOptions
.Regular9,
5762
options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All));
6650
CreateCompilation(source, null,
TestOptions
.ReleaseDll.WithConcurrentBuild(false)).VerifyDiagnostics(
8787
verify(
TestOptions
.DebugDll.WithGeneralDiagnosticOption(ReportDiagnostic.Warn),
8793
verify(
TestOptions
.DebugDll.WithGeneralDiagnosticOption(ReportDiagnostic.Error),
8799
verify(
TestOptions
.DebugDll.WithGeneralDiagnosticOption(ReportDiagnostic.Hidden),
8804
verify(
TestOptions
.DebugDll.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress));
8807
verify(
TestOptions
.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("TEST1", ReportDiagnostic.Warn)),
8813
verify(
TestOptions
.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("TEST1", ReportDiagnostic.Error)),
8819
verify(
TestOptions
.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("TEST1", ReportDiagnostic.Hidden)),
8825
verify(
TestOptions
.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("TEST1", ReportDiagnostic.Suppress)));
8828
verify(
TestOptions
.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("CS0618", ReportDiagnostic.Error)),
8834
verify(
TestOptions
.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("CS0618", ReportDiagnostic.Suppress)),
9779
var compilation1 = CreateEmptyCompilation(source1, WinRtRefs,
TestOptions
.ReleaseDll);
9844
var compilation2 = CreateEmptyCompilation(source2, WinRtRefs.Concat(new[] { new CSharpCompilationReference(compilation1) }),
TestOptions
.ReleaseDll);
9872
compilation2 = CreateEmptyCompilation(source2, WinRtRefs.Concat(new[] { compilation1.EmitToImageReference() }),
TestOptions
.ReleaseDll);
9905
? CreateEmptyCompilation(new[] { (libSrc, "libSrc"), (src, "src") }, WinRtRefs,
TestOptions
.ReleaseDll)
9907
references: WinRtRefs.Append(CreateEmptyCompilation(new[] { libSrc }, WinRtRefs,
TestOptions
.ReleaseDll).EmitToImageReference()).ToArray(),
9908
TestOptions
.ReleaseDll);
10171
var compilation1 = CreateEmptyCompilation(source1, WinRtRefs,
TestOptions
.ReleaseDll);
10208
var compilation1 = CreateEmptyCompilation(source1, WinRtRefs,
TestOptions
.ReleaseDll);
10224
var compilation2 = CreateEmptyCompilation(source2, WinRtRefs.Concat(new[] { new CSharpCompilationReference(compilation1) }),
TestOptions
.ReleaseDll);
10284
var cscomp = CreateEmptyCompilation(cssource, new[] { MscorlibRef, ilReference },
TestOptions
.ReleaseExe);
10392
var cscomp = CreateEmptyCompilation(cssource, new[] { MscorlibRef, ilReference },
TestOptions
.ReleaseExe);
10428
return CompileAndVerifyWithSkipLocalsInit(src,
TestOptions
.UnsafeReleaseDll, parseOptions, verify ?? Verification.Fails);
10502
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
10537
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
10570
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods, verify: Verification.Fails);
10603
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods, verify: Verification.Fails);
10695
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll);
10820
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
10850
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
10910
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
10955
var verifier = CompileAndVerifyWithSkipLocalsInit(source,
TestOptions
.Regular9);
10997
var verifier = CompileAndVerifyWithSkipLocalsInit(source,
TestOptions
.Regular9);
11039
var verifier = CompileAndVerifyWithSkipLocalsInit(source,
TestOptions
.Regular9);
11081
var verifier = CompileAndVerifyWithSkipLocalsInit(source,
TestOptions
.Regular9);
11123
var verifier = CompileAndVerifyWithSkipLocalsInit(source,
TestOptions
.Regular9);
11165
var verifier = CompileAndVerifyWithSkipLocalsInit(source,
TestOptions
.Regular9);
11392
var verifier = CompileAndVerifyWithSkipLocalsInit(source, parseOptions:
TestOptions
.RegularPreview, verify: Verification.Skipped);
11417
var verifier = CompileAndVerifyWithSkipLocalsInit(source, parseOptions:
TestOptions
.RegularPreview, verify: Verification.Skipped);
11448
var verifier = CompileAndVerifyWithSkipLocalsInit(source, parseOptions:
TestOptions
.RegularPreview, verify: Verification.Skipped);
11479
var verifier = CompileAndVerifyWithSkipLocalsInit(source,
TestOptions
.UnsafeReleaseExe);
11498
var verifier = CompileAndVerifyWithSkipLocalsInit(source,
TestOptions
.UnsafeReleaseExe, verify: Verification.Passes);
11537
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
11578
var comp1 = CompileAndVerify(source1, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
11614
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
11662
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
11696
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
11733
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
11764
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
11809
var comp_init = CompileAndVerify(source_init, options:
TestOptions
.UnsafeReleaseDll);
11810
var comp_skip = CompileAndVerify(source_skip, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
11847
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll);
11890
var comp_init = CompileAndVerify(source_init, options:
TestOptions
.UnsafeReleaseDll);
11891
var comp_skip = CompileAndVerify(source_skip, options:
TestOptions
.UnsafeReleaseDll);
11933
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
11985
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
12057
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
12092
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
12165
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
12226
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
12255
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll);
12301
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll);
12419
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
12469
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
12524
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
12582
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
12629
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
12658
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
12686
var comp = CompileAndVerify(source, options:
TestOptions
.UnsafeDebugExe, verify: Verification.Fails);
12714
var comp = CompileAndVerify(source, options:
TestOptions
.DebugModule.WithAllowUnsafe(true), verify: Verification.Fails);
12744
var metadata_comp = CreateCompilation(metadata_source, options:
TestOptions
.DebugModule.WithAllowUnsafe(true));
12799
var verifier = CompileAndVerify(src, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
12865
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll.WithAllowUnsafe(true));
12919
var comp = CreateCompilation(new[] { src, skipLocalsInitDef1 }, options:
TestOptions
.UnsafeDebugDll);
13040
var verifier = CompileAndVerify(src, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Skipped);
13086
var verifier = CompileAndVerify(src, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Skipped);
13113
var comp = CreateCompilation(new[] { src, skipLocalsInitDef }, options:
TestOptions
.UnsafeReleaseDll);
13492
}", options:
TestOptions
.ReleaseExe);
13553
var comp = CreateCompilation(new[] { sourceAttribute, sourceA }, parseOptions:
TestOptions
.RegularPreview);
13598
var comp = CreateCompilation(new[] { sourceAttribute, sourceA }, parseOptions:
TestOptions
.RegularPreview);
Attributes\EmitTestStrongNameProvider.cs (2)
33
var options =
TestOptions
.DebugDll
53
var options =
TestOptions
.DebugDll
Attributes\InternalsVisibleToAndStrongNameTests.cs (149)
40
new object[] {
TestOptions
.Regular },
41
new object[] {
TestOptions
.RegularWithLegacyStrongName }
45
return SpecializedCollections.SingletonEnumerable(new object[] {
TestOptions
.Regular });
95
options:
TestOptions
.ReleaseDll.WithStrongNameProvider(new DesktopStrongNameProvider()),
109
var other = CreateCompilation(s, options:
TestOptions
.SigningReleaseDll, parseOptions: parseOptions);
141
var comp = CreateCompilation(syntaxTree, options:
TestOptions
.ReleaseDll);
152
TestOptions
.ReleaseDll.WithStrongNameProvider(GetProviderWithPath(keyFileDir)));
170
var comp = CreateCompilation(syntaxTree, options:
TestOptions
.ReleaseDll);
182
TestOptions
.ReleaseDll.WithStrongNameProvider(GetProviderWithPath(PathUtilities.CombineAbsoluteAndRelativePaths(keyFileDir, @"TempSubDir\"))));
193
var options =
TestOptions
.SigningReleaseDll.WithStrongNameProvider(s_providerNoSigningTempPath);
195
var compilation = CreateCompilation(code, options: options, parseOptions:
TestOptions
.Regular);
198
compilation = CreateCompilation(code, options: options, parseOptions:
TestOptions
.RegularWithLegacyStrongName);
208
var options =
TestOptions
.SigningReleaseDll.WithStrongNameProvider(SigningTestHelpers.DefaultDesktopStrongNameProvider);
210
var compilation = CreateCompilation(code, options: options, parseOptions:
TestOptions
.Regular);
215
compilation = CreateCompilation(code, options: options, parseOptions:
TestOptions
.RegularWithLegacyStrongName);
227
var syntaxTree = Parse(s, @"IVTAndStrongNameTests\AnotherTempDir\temp.cs",
TestOptions
.RegularWithLegacyStrongName);
234
var options =
TestOptions
.ReleaseDll.WithStrongNameProvider(provider);
255
var other = CreateCompilation(s, options:
TestOptions
.SigningReleaseDll, parseOptions: parseOptions);
281
var other = CreateCompilation(s, options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions);
298
var comp = CreateCompilation(s, options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(keyFileName), parseOptions: parseOptions);
311
TestOptions
.ReleaseDll.WithCryptoKeyFile(keyFileName).WithStrongNameProvider(GetProviderWithPath(keyFileDir)));
323
options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(s_publicKeyFile).WithDelaySign(true),
341
options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(publicKeyFileName).WithDelaySign(true),
358
TestOptions
.ReleaseDll.WithCryptoKeyFile(publicKeyFileName).WithDelaySign(true).WithStrongNameProvider(GetProviderWithPath(publicKeyFileDir)));
368
var other = CreateCompilation(s, options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile("goo"), parseOptions: parseOptions);
383
CSharpCompilation other = CreateCompilation(s, options:
TestOptions
.ReleaseDll.WithCryptoKeyFile(tempFile.Path), parseOptions: parseOptions);
396
var other = CreateCompilation(s, options:
TestOptions
.SigningReleaseDll.WithCryptoKeyContainer("goo"), parseOptions: parseOptions);
415
var other = CreateCompilation(s, options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions);
427
var other = CreateCompilation(s, options:
TestOptions
.SigningReleaseDll.WithCryptoKeyContainer("RoslynTestContainer"), parseOptions: parseOptions);
438
var options =
TestOptions
.SigningReleaseDll
453
var other = CreateCompilation(s, options:
TestOptions
.SigningReleaseDll, parseOptions: parseOptions);
464
var other = CreateCompilation(s, options:
TestOptions
.SigningReleaseDll, parseOptions: parseOptions);
477
var c = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithCryptoPublicKey(s_publicKey), parseOptions: parseOptions);
501
var c = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithCryptoPublicKey(s_publicKey).WithPublicSign(true), parseOptions: parseOptions);
517
c = CreateCompilation(source, options:
TestOptions
.SigningReleaseModule.WithCryptoPublicKey(s_publicKey).WithPublicSign(true), parseOptions: parseOptions);
524
c = CreateCompilation(source, options:
TestOptions
.SigningReleaseModule.WithCryptoKeyFile(s_publicKeyFile).WithPublicSign(true), parseOptions: parseOptions);
541
c = CreateCompilation(source1, options:
TestOptions
.SigningReleaseModule.WithCryptoKeyFile(snk.Path).WithPublicSign(true));
557
var c = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithPublicSign(true), parseOptions: parseOptions);
577
var c = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithPublicSign(true), parseOptions: parseOptions);
609
options:
TestOptions
.ReleaseDll
631
options:
TestOptions
.ReleaseDll
655
options:
TestOptions
.ReleaseDll
677
options:
TestOptions
.ReleaseDll
694
options:
TestOptions
.SigningReleaseDll
718
options:
TestOptions
.ReleaseDll
739
options:
TestOptions
.ReleaseDll
756
options:
TestOptions
.ReleaseDll.WithPublicSign(true),
772
var c = CreateCompilation(source, options:
TestOptions
.SigningReleaseDll.
798
var other = CreateCompilation(s, options:
TestOptions
.SigningReleaseDll, assemblyName: "Paul", parseOptions: parseOptions);
813
options:
TestOptions
.SigningReleaseDll,
837
options:
TestOptions
.SigningReleaseDll);
849
var otherStream = CreateCompilation(s, options:
TestOptions
.SigningReleaseDll, parseOptions: parseOptions).EmitToStream();
864
options:
TestOptions
.SigningReleaseDll,
885
options:
TestOptions
.SigningReleaseDll,
899
options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile),
917
TestOptions
.SigningReleaseDll.WithCryptoKeyContainer("roslynTestContainer"),
931
var other = CreateCompilation(s, assemblyName: "Paul", options:
TestOptions
.SigningReleaseDll, parseOptions: parseOptions);
947
options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile),
988
var other = CreateCompilation(cs0281, references: new[] { friendClass.EmitToImageReference() }, assemblyName: "cs0281", options:
TestOptions
.SigningReleaseDll, parseOptions: parseOptions);
1032
var other = CreateCompilation(cs0281, references: new[] { friendClass.EmitToImageReference() }, assemblyName: "cs0281", options:
TestOptions
.SigningReleaseDll, parseOptions: parseOptions);
1072
options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile),
1092
options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile),
1106
options:
TestOptions
.SigningReleaseDll,
1122
options:
TestOptions
.SigningReleaseDll,
1136
options:
TestOptions
.SigningReleaseDll);
1151
options:
TestOptions
.SigningReleaseDll,
1165
options:
TestOptions
.SigningReleaseDll);
1181
options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile),
1196
options:
TestOptions
.SigningReleaseDll,
1216
options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile),
1231
options:
TestOptions
.SigningReleaseDll,
1257
options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile),
1270
options:
TestOptions
.SigningReleaseDll,
1287
options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile),
1302
TestOptions
.SigningReleaseDll,
1323
options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile),
1338
TestOptions
.SigningReleaseDll,
1366
options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(SigningTestHelpers.KeyPairFile2),
1383
options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile),
1406
", options:
TestOptions
.SigningReleaseDll, parseOptions: parseOptions);
1423
", options:
TestOptions
.SigningReleaseExe.WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions);
1453
options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(SigningTestHelpers.MaxSizeKeyFile),
1474
options:
TestOptions
.SigningReleaseExe.WithCryptoKeyFile(SigningTestHelpers.MaxSizeKeyFile),
1484
options:
TestOptions
.SigningReleaseExe.WithCryptoKeyFile(SigningTestHelpers.MaxSizeKeyFile),
1502
options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions);
1554
TestOptions
.SigningReleaseDll,
1576
var other = CreateCompilation(s, options:
TestOptions
.SigningReleaseModule);
1589
var other = CreateCompilation(s, options:
TestOptions
.SigningReleaseModule);
1602
var other = CreateCompilation(s, options:
TestOptions
.SigningReleaseModule, parseOptions: parseOptions);
1608
other = CreateCompilation(s, new[] { reference },
TestOptions
.SigningReleaseDll);
1625
var other = CreateCompilation(s, options:
TestOptions
.SigningReleaseModule);
1632
other = CreateCompilation(s, new[] { reference },
TestOptions
.SigningReleaseDll, parseOptions: parseOptions);
1642
var options =
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(PublicKeyFile);
1661
var options =
TestOptions
.SigningReleaseModule.WithCryptoKeyContainer("roslynTestContainer");
1680
var options =
TestOptions
.SigningReleaseModule.WithCryptoKeyContainer("roslynTestContainer");
1700
var other = CreateCompilation(s, options:
TestOptions
.SigningReleaseModule.WithCryptoKeyContainer("roslynTestContainer"), parseOptions: parseOptions);
1718
var options =
TestOptions
.SigningReleaseModule.WithCryptoKeyFile(s_keyPairFile);
1734
var options =
TestOptions
.SigningReleaseDll
1755
var options =
TestOptions
.SigningDebugDll.WithCryptoKeyFile(s_keyPairFile);
1778
var options =
TestOptions
.SigningReleaseModule.WithCryptoKeyFile(s_keyPairFile);
1796
var other = CreateCompilation(s, options:
TestOptions
.SigningReleaseModule.WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions);
1816
options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(s_publicKeyFile), parseOptions: parseOptions);
1822
other = other.WithOptions(
TestOptions
.SigningReleaseModule.WithCryptoKeyFile(s_publicKeyFile));
1826
options:
TestOptions
.SigningReleaseDll,
1845
options:
TestOptions
.SigningReleaseModule, parseOptions: parseOptions);
1849
options:
TestOptions
.SigningReleaseDll,
1866
}", options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(s_publicKeyFile), parseOptions: parseOptions);
1886
options:
TestOptions
.SigningReleaseDll, parseOptions: parseOptions);
1907
options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions);
1923
}", options:
TestOptions
.SigningReleaseDll.WithDelaySign(false), parseOptions: parseOptions);
1942
}", options:
TestOptions
.SigningReleaseDll.WithDelaySign(true).WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions);
1967
var options =
TestOptions
.SigningReleaseDll
2027
var comp = CreateCompilation(csharp, new[] { ilRef }, assemblyName: "asm2", options:
TestOptions
.SigningReleaseDll, parseOptions: parseOptions);
2085
var comp1 = CreateCompilationWithMscorlib461(source1, options:
TestOptions
.SigningReleaseDll, assemblyName: "asm1", parseOptions: parseOptions);
2089
var comp2 = CreateCompilationWithMscorlib461(source2, new[] { ref1 }, options:
TestOptions
.SigningReleaseDll, assemblyName: "asm2", parseOptions: parseOptions);
2093
var comp3 = CreateCompilationWithMscorlib461(source3, new[] { SystemCoreRef, ref1, ref2 }, options:
TestOptions
.SigningReleaseDll, assemblyName: "asm3", parseOptions: parseOptions);
2204
var comp1 = CreateCompilationWithMscorlib461(source1, options:
TestOptions
.SigningReleaseDll, assemblyName: "asm1", parseOptions: parseOptions);
2208
var comp2 = CreateCompilationWithMscorlib461(source2, new[] { ref1 }, options:
TestOptions
.SigningReleaseDll, assemblyName: "asm2", parseOptions: parseOptions);
2212
var comp3 = CreateCompilationWithMscorlib461(source3, new[] { ref1, ref2 }, options:
TestOptions
.SigningReleaseDll, assemblyName: "asm3", parseOptions: parseOptions);
2216
var comp4 = CreateCompilationWithMscorlib461(source4, new[] { SystemCoreRef, ref1, ref2, ref3 }, options:
TestOptions
.SigningReleaseDll, assemblyName: "asm4", parseOptions: parseOptions);
2368
options:
TestOptions
.SigningReleaseDll,
2379
options:
TestOptions
.SigningReleaseDll,
2401
", options:
TestOptions
.SigningReleaseDll, assemblyName: "Unsigned", parseOptions: parseOptions);
2413
", options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions);
2429
", options:
TestOptions
.SigningReleaseDll, assemblyName: "Unsigned", parseOptions: parseOptions);
2441
", options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions);
2511
options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile),
2540
options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), references: new[] { MscorlibRef_v4_0_30316_17626 }, parseOptions: parseOptions);
2569
var options =
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile);
2599
options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(s_publicKeyFile).WithDelaySign(true),
2631
options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(s_publicKeyFile).WithDelaySign(true), references: new[] { MscorlibRef_v4_0_30316_17626 }, parseOptions: parseOptions);
2656
options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(s_publicKeyFile).WithDelaySign(true), references: new[] { MscorlibRef_v4_0_30316_17626 }, parseOptions: parseOptions);
2686
options:
TestOptions
.SigningReleaseDll.WithCryptoKeyFile(s_publicKeyFile).WithDelaySign(true), references: new[] { MscorlibRef_v4_0_30316_17626 }, parseOptions: parseOptions);
2710
", options:
TestOptions
.SigningReleaseDll, assemblyName: "Bug769840_A", parseOptions: parseOptions);
2723
options:
TestOptions
.SigningReleaseModule,
2752
var ca = CreateCompilation(sourceA, options:
TestOptions
.ReleaseDll, assemblyName: "ClassLibrary2", parseOptions: parseOptions);
2755
var cb = CreateCompilation(sourceB, options:
TestOptions
.ReleaseExe, assemblyName: "X", references: new[] { new CSharpCompilationReference(ca) }, parseOptions: parseOptions);
2780
var ca = CreateCompilation(sourceA, options:
TestOptions
.ReleaseDll, assemblyName: "ClassLibrary2", parseOptions: parseOptions);
2783
var cb = CreateCompilation(sourceB, options:
TestOptions
.ReleaseExe, assemblyName: "X", references: new[] { new CSharpCompilationReference(ca) }, parseOptions: parseOptions);
2813
var options =
TestOptions
.DebugDll;
2825
var options =
TestOptions
.DebugDll.WithCryptoKeyFile(string.Empty);
2836
var options =
TestOptions
.DebugDll.WithPublicSign(true);
2848
var options =
TestOptions
.DebugDll.WithCryptoKeyFile(string.Empty).WithPublicSign(true);
2862
var options =
TestOptions
.ReleaseDll
2870
}", options: options, parseOptions:
TestOptions
.RegularWithLegacyStrongName);
2897
var libRef = CreateCompilation(lib_cs, options:
TestOptions
.SigningReleaseDll, parseOptions: parseOptions).EmitToImageReference();
2911
options:
TestOptions
.SigningReleaseDll, parseOptions: parseOptions);
2934
var libRef = CreateCompilation(lib_cs, options:
TestOptions
.SigningReleaseDll).EmitToImageReference();
2948
var c2 = CreateCompilation(new[] { source1, source2 }, new[] { libRef }, assemblyName: "WantsIVTAccess", options:
TestOptions
.SigningReleaseDll);
Diagnostics\DiagnosticAnalyzerTests.cs (27)
144
var options =
TestOptions
.ReleaseDll.WithSpecificDiagnosticOptions(
167
var options =
TestOptions
.ReleaseDll.WithSpecificDiagnosticOptions(
200
var options =
TestOptions
.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Error);
286
var options =
TestOptions
.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Error);
320
var options =
TestOptions
.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions);
336
options =
TestOptions
.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions);
348
options =
TestOptions
.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions);
399
var options =
TestOptions
.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Default);
404
options =
TestOptions
.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Error);
410
options =
TestOptions
.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Warn);
417
options =
TestOptions
.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Info);
424
options =
TestOptions
.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Hidden);
431
options =
TestOptions
.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress);
451
var options =
TestOptions
.ReleaseDll;
462
options =
TestOptions
.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions);
526
var options =
TestOptions
.ReleaseDll;
534
options =
TestOptions
.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions);
541
options =
TestOptions
.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions);
1142
var options =
TestOptions
.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions);
1151
options =
TestOptions
.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions);
2458
var compilation = CreateCompilationWithMscorlib461(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
3140
var compilation = CreateCompilation(new[] { source1, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
3385
var options =
TestOptions
.DebugDll.WithSyntaxTreeOptionsProvider(
3428
var options =
TestOptions
.DebugDll.WithSyntaxTreeOptionsProvider(
3480
var options =
TestOptions
.DebugDll.WithSyntaxTreeOptionsProvider(
3532
var options =
TestOptions
.DebugDll.WithSyntaxTreeOptionsProvider(
3553
options =
TestOptions
.DebugDll.WithSyntaxTreeOptionsProvider(
Diagnostics\DiagnosticSuppressorTests.cs (1)
670
var options =
TestOptions
.DebugDll.WithConcurrentBuild(concurrent);
Diagnostics\OperationAnalyzerTests.cs (3)
22
private static readonly CSharpParseOptions patternParseOptions =
TestOptions
.Regular;
187
CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe)
1386
CreateCompilationWithMscorlib461(source, options:
TestOptions
.UnsafeReleaseDll)
FieldKeywordTests.cs (35)
682
parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion),
683
options:
TestOptions
.ReleaseExe,
843
parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion),
952
parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion),
1065
parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion),
1066
options:
TestOptions
.ReleaseExe,
1162
parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion),
1163
options:
TestOptions
.ReleaseExe,
1399
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
1487
parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion),
4052
options: includeStructInitializationWarnings ?
TestOptions
.ReleaseExe.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings) :
TestOptions
.ReleaseExe,
4203
options: includeStructInitializationWarnings ?
TestOptions
.ReleaseExe.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings) :
TestOptions
.ReleaseExe,
4335
options: includeStructInitializationWarnings ?
TestOptions
.ReleaseExe.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings) :
TestOptions
.ReleaseExe,
4469
options: includeStructInitializationWarnings ?
TestOptions
.ReleaseExe.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings) :
TestOptions
.ReleaseExe,
4926
var comp = CreateCompilation([sourceA, sourceB], options:
TestOptions
.ReleaseExe);
7973
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
8027
var parseOptions =
TestOptions
.RegularNext;
8169
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
8362
parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion),
8363
options:
TestOptions
.ReleaseExe,
8505
parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion),
8594
parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion),
8669
parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion),
10199
parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion),
10200
options:
TestOptions
.ReleaseExe,
10302
parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion),
10303
options:
TestOptions
.ReleaseExe,
10401
parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion),
10402
options:
TestOptions
.ReleaseExe,
10486
var parseOptions =
TestOptions
.RegularPreview;
10520
var parseOptions =
TestOptions
.RegularPreview;
FirstClassSpanTests.cs (312)
59
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
78
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
110
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13);
115
comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
156
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.ReleaseExe);
168
comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext, options:
TestOptions
.ReleaseExe);
171
comp = CreateCompilationWithSpanAndMemoryExtensions(source,
TestOptions
.ReleaseExe);
192
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13);
197
comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
221
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
257
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
279
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
305
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
314
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext).VerifyDiagnostics(expectedDiagnostics);
339
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
361
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13);
366
comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
392
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
418
parseOptions:
TestOptions
.Regular13);
424
parseOptions:
TestOptions
.RegularNext);
449
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13);
454
comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
480
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13);
485
comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
510
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13);
515
comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
540
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13);
545
comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
571
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13);
576
comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
599
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13);
609
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext).VerifyDiagnostics(expectedDiagnostics);
629
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
652
parseOptions:
TestOptions
.Regular13);
658
parseOptions:
TestOptions
.RegularNext);
682
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13);
692
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext).VerifyDiagnostics(expectedDiagnostics);
712
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13);
722
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext).VerifyDiagnostics(expectedDiagnostics);
742
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
769
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
803
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
833
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
859
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13);
889
comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext, targetFramework: TargetFramework.Net90);
915
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
941
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13);
970
comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext, targetFramework: TargetFramework.Net90);
996
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
1023
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13);
1049
comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
1068
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
1098
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
1117
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
1131
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
1161
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
1180
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
1194
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
1224
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
1243
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
1265
CreateCompilation(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
1277
CreateCompilation(source, parseOptions:
TestOptions
.RegularNext).VerifyDiagnostics(expectedDiagnostics);
1296
CreateCompilation(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
1308
CreateCompilation(source, parseOptions:
TestOptions
.RegularNext).VerifyDiagnostics(expectedDiagnostics);
1327
CreateCompilation(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
1342
CreateCompilation(source, parseOptions:
TestOptions
.RegularNext).VerifyDiagnostics(expectedDiagnostics);
1364
CreateCompilation(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
1376
CreateCompilation(source, parseOptions:
TestOptions
.RegularNext).VerifyDiagnostics(expectedDiagnostics);
1398
CreateCompilation(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
1410
CreateCompilation(source, parseOptions:
TestOptions
.RegularNext).VerifyDiagnostics(expectedDiagnostics);
1428
CreateCompilation(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
1440
CreateCompilation(source, parseOptions:
TestOptions
.RegularNext).VerifyDiagnostics(expectedDiagnostics);
1458
CreateCompilation(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
1470
CreateCompilation(source, parseOptions:
TestOptions
.RegularNext).VerifyDiagnostics(expectedDiagnostics);
1924
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
1993
var spanDll = CreateCompilation(TestSources.Span, options:
TestOptions
.UnsafeReleaseDll)
2001
options:
TestOptions
.UnsafeReleaseExe.WithSpecificDiagnosticOptions("CS0436", ReportDiagnostic.Suppress),
2002
parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
2160
options:
TestOptions
.UnsafeReleaseExe.WithSpecificDiagnosticOptions("CS0436", ReportDiagnostic.Suppress));
2398
options:
TestOptions
.UnsafeReleaseExe.WithSpecificDiagnosticOptions("CS0436", ReportDiagnostic.Suppress));
2631
options:
TestOptions
.UnsafeReleaseExe.WithSpecificDiagnosticOptions("CS0436", ReportDiagnostic.Suppress));
2901
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
2917
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
2932
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
2955
CompileAndVerify(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion))
2978
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
2994
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3010
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3026
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics();
3040
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3059
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3075
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3091
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3107
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics();
3121
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3139
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3162
CompileAndVerify(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion), verify: Verification.FailsILVerify)
3194
CompileAndVerify(source, parseOptions:
TestOptions
.Regular13, verify: Verification.FailsILVerify)
3216
CompileAndVerify(source, parseOptions:
TestOptions
.RegularNext, verify: Verification.FailsILVerify)
3234
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3252
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3276
CompileAndVerify(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion), verify: Verification.FailsILVerify)
3307
CompileAndVerify(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion), verify: Verification.FailsILVerify)
3338
CompileAndVerify(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion), verify: Verification.FailsILVerify)
3366
CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3382
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3398
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3421
CompileAndVerify(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion), verify: Verification.FailsILVerify)
3451
CompileAndVerify(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion))
3484
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
3520
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext).VerifyDiagnostics(expectedDiagnostics);
3544
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
3580
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext).VerifyDiagnostics(expectedDiagnostics);
3604
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
3643
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
3667
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
3706
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
3722
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics();
3742
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
3763
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext).VerifyDiagnostics(expectedDiagnostics);
3786
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
3813
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext).VerifyDiagnostics(expectedDiagnostics);
3834
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3868
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
3908
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
3941
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
3964
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion), targetFramework: TargetFramework.Net90).VerifyDiagnostics(
3995
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4014
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
4026
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
4042
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4203
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4271
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4297
var comp = CreateCompilationWithSpanAndMemoryExtensions(source,
TestOptions
.DebugDll);
4331
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4356
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4372
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4388
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4406
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4431
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4447
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4463
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4486
var verifier = CompileAndVerify(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
4518
var verifier = CompileAndVerify(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion), verify: Verification.FailsILVerify);
4549
var verifier = CompileAndVerify(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
4581
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
4622
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13);
4679
comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
4702
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
4731
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
4749
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext, targetFramework: TargetFramework.Net90);
4772
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
4789
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext, targetFramework: TargetFramework.Net90);
4812
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
4829
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext, targetFramework: TargetFramework.Net90);
4855
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4891
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4915
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
4938
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
4953
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext).VerifyDiagnostics(expectedDiagnostics);
4974
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
4995
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext).VerifyDiagnostics(expectedDiagnostics);
5028
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
5052
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext).VerifyDiagnostics(expectedDiagnostics);
5078
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
5123
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext).VerifyDiagnostics(expectedDiagnostics);
5145
CreateCompilationWithSpanAndMemoryExtensions(source,
TestOptions
.UnsafeReleaseExe,
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5170
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13);
5256
comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
5280
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
5365
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
5373
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5387
var comp = CreateCompilation([source, source2], parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
5411
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5434
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5460
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
5475
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
5496
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
5511
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics);
5530
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
5548
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
5580
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
5611
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5655
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
5667
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext).VerifyDiagnostics(expectedDiagnostics);
5686
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
5691
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
5722
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5748
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
5773
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5792
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
5819
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5836
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5857
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5887
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
5911
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
5923
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext).VerifyDiagnostics(expectedDiagnostics);
6001
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
6008
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
6034
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
6041
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
6067
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
6074
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext, targetFramework: TargetFramework.Net90);
6100
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
6107
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext, targetFramework: TargetFramework.Net90);
6133
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
6140
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
6174
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
6181
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
6215
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
6271
verifyWithMissing(missingRosHelper,
TestOptions
.Regular13, expectedDiagnostics);
6272
verifyWithMissing(missingSpanHelper,
TestOptions
.Regular13, expectedDiagnostics);
6280
verifyWithMissing(missingRosHelper,
TestOptions
.RegularNext);
6281
verifyWithMissing(missingSpanHelper,
TestOptions
.RegularNext, expectedDiagnostics);
6283
verifyWithMissing(missingRosHelper,
TestOptions
.RegularPreview);
6284
verifyWithMissing(missingSpanHelper,
TestOptions
.RegularPreview, expectedDiagnostics);
6344
verifyWithMissing(missingRosHelper,
TestOptions
.Regular13, expectedDiagnostics);
6345
verifyWithMissing(missingSpanHelper,
TestOptions
.Regular13, expectedDiagnostics);
6353
verifyWithMissing(missingRosHelper,
TestOptions
.RegularNext, expectedDiagnostics);
6354
verifyWithMissing(missingSpanHelper,
TestOptions
.RegularNext);
6356
verifyWithMissing(missingRosHelper,
TestOptions
.RegularPreview, expectedDiagnostics);
6357
verifyWithMissing(missingSpanHelper,
TestOptions
.RegularPreview);
6379
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
6397
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
6420
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
6438
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
6461
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
6480
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext, targetFramework: TargetFramework.Net90);
6503
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
6521
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext, targetFramework: TargetFramework.Net90);
6544
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
6562
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
6585
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
6606
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
6627
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
6631
comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
6674
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
6690
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
6956
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
7001
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
7030
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
7060
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(
7093
var verifier = CompileAndVerify(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
7179
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
7200
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
7204
comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
7264
parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
7301
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13);
7343
comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
7367
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
7374
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
7396
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
7417
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
7424
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
7448
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
7468
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
7491
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13);
7496
comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
7521
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
7541
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
7562
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
7583
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13);
7588
comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
7612
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
7634
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
7760
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
7779
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13);
7784
comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
7806
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13);
7811
comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
7833
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
7852
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
7871
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
7890
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13);
7895
comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
7919
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
7940
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13);
7945
comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
7968
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13);
7973
comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
7998
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13);
8003
comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
8025
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
8035
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext, targetFramework: TargetFramework.Net90);
8081
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
8088
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
8110
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
8129
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
8139
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
8161
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
8171
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext, targetFramework: TargetFramework.Net90);
8218
CreateCompilationWithSpanAndMemoryExtensions([source1, source2], parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
8225
var comp = CreateCompilationWithSpanAndMemoryExtensions([source1, source2], parseOptions:
TestOptions
.RegularNext);
8242
comp = CreateCompilationWithSpanAndMemoryExtensions([source1, source3], parseOptions:
TestOptions
.Regular13);
8245
comp = CreateCompilationWithSpanAndMemoryExtensions([source1, source3], parseOptions:
TestOptions
.RegularNext);
8271
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
8287
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
8309
CreateCompilationWithSpanAndMemoryExtensions([source1, source2], parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
8316
var comp = CreateCompilationWithSpanAndMemoryExtensions([source1, source2], parseOptions:
TestOptions
.RegularNext);
8335
comp = CreateCompilationWithSpanAndMemoryExtensions([source1, source3], parseOptions:
TestOptions
.Regular13);
8338
comp = CreateCompilationWithSpanAndMemoryExtensions([source1, source3], parseOptions:
TestOptions
.RegularNext);
8362
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
8369
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, targetFramework: TargetFramework.Net90, parseOptions:
TestOptions
.RegularNext);
8393
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13);
8398
comp = CreateCompilationWithSpanAndMemoryExtensions(source, targetFramework: TargetFramework.Net90, parseOptions:
TestOptions
.RegularNext);
8434
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13);
8439
comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
8501
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular13);
8506
comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularNext);
FlowAnalysis\FlowDiagnosticTests.cs (24)
933
CreateCompilation(program, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
1227
CreateCompilation(program, parseOptions:
TestOptions
.Regular10)
1237
var verifier = CompileAndVerify(program, parseOptions:
TestOptions
.Regular11);
1291
CreateCompilation(program, parseOptions:
TestOptions
.Regular10)
1297
var verifier = CompileAndVerify(program, parseOptions:
TestOptions
.Regular11);
1322
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular9);
1350
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular9);
1392
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular10);
1410
comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular11);
1449
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular10);
1467
comp = CreateCompilation(text, options:
TestOptions
.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), parseOptions:
TestOptions
.Regular11);
1485
comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular11);
1757
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular10);
1788
comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular11);
2347
CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "");
2414
CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions:
TestOptions
.Regular10);
2427
comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions:
TestOptions
.Regular11);
2571
CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions:
TestOptions
.Regular10);
2584
comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions:
TestOptions
.Regular11);
2702
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
2711
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular11);
2732
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
2744
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular11);
FlowAnalysis\FlowTestBase.cs (3)
119
var comp = CreateCompilation(program, parseOptions:
TestOptions
.RegularPreview, references: references);
140
var comp = CreateCompilation(program, parseOptions:
TestOptions
.RegularPreview, references: references);
166
var comp = CreateCompilation(program, parseOptions:
TestOptions
.RegularPreview, targetFramework: targetFramework, references: references);
FlowAnalysis\FlowTests.cs (7)
169
comp = CreateCompilation(src, parseOptions:
TestOptions
.Regular7_3);
1640
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
1688
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
5510
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7);
5933
CompileAndVerify(source, parseOptions:
TestOptions
.Regular12, expectedOutput: "c").VerifyDiagnostics(expectedDiagnostic);
5934
CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput: "c").VerifyDiagnostics(expectedDiagnostic);
5935
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
FlowAnalysis\LocalFunctions.cs (4)
725
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
741
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular11);
1502
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
1512
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular11);
FlowAnalysis\RegionAnalysisTests.cs (7)
5525
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
5566
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
5615
var verifier = CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "42");
6465
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
6473
compilation = CreateCompilation(source, parseOptions:
TestOptions
.Regular11);
9254
", options:
TestOptions
.UnsafeDebugDll);
14139
options:
TestOptions
.UnsafeDebugDll);
FlowAnalysis\StructTests.cs (18)
560
options:
TestOptions
.ReleaseDll.WithWarningLevel(5),
570
options:
TestOptions
.ReleaseDll.WithWarningLevel(5),
580
options:
TestOptions
.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel),
587
options:
TestOptions
.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel),
649
CreateCompilation(source2, references: new MetadataReference[] { sourceReference }, options:
TestOptions
.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics(
651
CreateCompilation(source2, references: new MetadataReference[] { metadataReference }, options:
TestOptions
.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics(
653
CreateCompilation(source2, references: new MetadataReference[] { sourceReference }, options:
TestOptions
.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics(
658
CreateCompilation(source2, references: new MetadataReference[] { metadataReference }, options:
TestOptions
.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics(
694
CreateCompilation(source2, references: new MetadataReference[] { sourceReference }, options:
TestOptions
.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics(
696
CreateCompilation(source2, references: new MetadataReference[] { metadataReference }, options:
TestOptions
.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics(
698
CreateCompilation(source2, references: new MetadataReference[] { sourceReference }, options:
TestOptions
.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics(
703
CreateCompilation(source2, references: new MetadataReference[] { metadataReference }, options:
TestOptions
.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics(
726
var comp1 = CreateCompilation(source, options:
TestOptions
.DebugModule);
738
CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options:
TestOptions
.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics(
769
var comp1 = CreateCompilation(source, options: WithNullableEnable(
TestOptions
.DebugModule));
802
var comp1 = CreateCompilation(source, options:
TestOptions
.DebugModule);
814
CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options:
TestOptions
.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics(
816
CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options:
TestOptions
.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics(
OverloadResolutionPriorityTests.cs (5)
863
CreateCompilation([source, OverloadResolutionPriorityAttributeDefinition], parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
874
var definingComp = CreateCompilation([source, OverloadResolutionPriorityAttributeDefinition], parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
883
CompileAndVerify(consumingSource, references: [definingComp.ToMetadataReference()], parseOptions:
TestOptions
.Regular12, expectedOutput: "8765").VerifyDiagnostics();
884
CompileAndVerify(consumingSource, references: [definingComp.ToMetadataReference()], parseOptions:
TestOptions
.Regular13, expectedOutput: "4321").VerifyDiagnostics();
975
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
RefReadonlyParameterTests.cs (209)
183
CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
258
CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
837
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
861
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
914
var verifier = CompileAndVerify(new[] { source, RequiresLocationAttributeDefinition }, options:
TestOptions
.UnsafeReleaseDll,
964
CreateCompilationWithIL(source, ilSource, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
969
var comp = CreateCompilationWithIL(source, ilSource, options:
TestOptions
.UnsafeDebugDll);
1028
CreateCompilationWithIL(new[] { source, RequiresLocationAttributeDefinition }, ilSource, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
1051
var comp = CreateCompilationWithIL(new[] { source, RequiresLocationAttributeDefinition }, ilSource, options:
TestOptions
.UnsafeDebugDll);
1115
var comp = CreateCompilationWithIL(source, ilSource, options:
TestOptions
.UnsafeDebugDll);
1169
var comp = CreateCompilationWithIL(source, ilSource, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
1217
var comp = CreateCompilationWithIL(source, ilSource, options:
TestOptions
.UnsafeDebugDll);
1245
var comp = CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, options:
TestOptions
.UnsafeDebugDll);
1269
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
1286
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
1319
var comp2 = CreateCompilation(source2, new[] { comp1Ref }, assemblyName: "Assembly2", options:
TestOptions
.UnsafeDebugDll);
1331
var comp2b = CreateCompilation(source2, new[] { comp1bRef }, assemblyName: "Assembly2", options:
TestOptions
.UnsafeDebugDll);
1345
var comp3 = CreateCompilation(source3, new[] { comp1bRef }, assemblyName: "Assembly3", options:
TestOptions
.UnsafeDebugDll);
1369
var comp1v1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, assemblyName: "Assembly1", options:
TestOptions
.UnsafeReleaseDll);
1385
var comp2 = CreateCompilation(source2, new[] { comp1v1Ref }, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1416
var comp1v2 = CreateCompilation(source1, new[] { comp4Ref }, assemblyName: "Assembly1", options:
TestOptions
.UnsafeReleaseDll);
1430
var comp1v3 = CreateCompilation(new[] { source1, source5 }, new[] { comp4Ref }, assemblyName: "Assembly1", options:
TestOptions
.UnsafeReleaseDll);
1437
var comp1v4 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, new[] { comp4Ref }, assemblyName: "Assembly1", options:
TestOptions
.UnsafeReleaseDll);
1477
assemblyName: "Assembly2", options:
TestOptions
.UnsafeReleaseDll);
1489
var comp3 = CreateCompilation(source2, new[] { comp1Ref }, assemblyName: "Assembly3", options:
TestOptions
.UnsafeReleaseDll);
1522
var comp = CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics();
1542
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
1558
var comp1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options:
TestOptions
.UnsafeDebugDll);
1574
CreateCompilation(source2, new[] { comp1Ref }, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
1589
CreateCompilation(source2, new[] { comp1Ref }, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(expectedDiagnostics);
1590
CreateCompilation(source2, new[] { comp1Ref }, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(expectedDiagnostics);
1638
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
1643
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics();
1700
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
1715
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
1738
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(expectedDiagnostics);
1739
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
1752
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
1767
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
1790
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(expectedDiagnostics);
1791
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
1804
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
1825
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
1845
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(expectedDiagnostics);
1846
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
1866
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(expectedDiagnostics);
1867
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
1887
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(expectedDiagnostics);
1888
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
1901
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
1916
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
1936
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(expectedDiagnostics);
1937
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
1950
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
1965
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
1985
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(expectedDiagnostics);
1986
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
1999
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
2014
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
2034
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(expectedDiagnostics);
2035
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
2048
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
2053
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics();
2073
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(expectedDiagnostics);
2074
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
2087
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
2092
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics();
2105
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
2110
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics();
2139
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(expectedDiagnostics);
2140
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
2169
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(expectedDiagnostics);
2170
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
2199
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(expectedDiagnostics);
2200
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
2213
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
2218
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics();
2232
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
2247
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
2250
CreateCompilation(source, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
2269
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
2284
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
2287
CreateCompilation(source, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
3181
CreateCompilation(source2, new[] { comp1Ref }, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
3196
CreateCompilation(source2, new[] { comp1Ref }, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
3312
expectedOutput: "555", options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails);
3334
CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(
3461
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
3473
CompileAndVerify(source, expectedOutput: "object5", parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
3692
CompileAndVerify(source, expectedOutput: "25 15 15", parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
3701
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
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();
3833
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
3848
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
3908
CompileAndVerify(new[] { source1, source2 }, expectedOutput: expectedOutput, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
3909
CompileAndVerify(new[] { source1, source2 }, expectedOutput: expectedOutput, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics();
3918
CompileAndVerify(new[] { source1, source3 }, expectedOutput: "1", parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
3927
CreateCompilation(new[] { source1, source3 }, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
4001
CompileAndVerify(source, expectedOutput: "ECC", parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
4010
CompileAndVerify(source, expectedOutput: "CCC", parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
4042
CompileAndVerify(source, expectedOutput: "YCC", parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
4054
CompileAndVerify(source, expectedOutput: "CCC", parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
4133
CreateCompilation(new[] { source1, source2 }, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(expectedDiagnostics2);
4134
CreateCompilation(new[] { source1, source2 }, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics2);
4142
CreateCompilation(new[] { source1, source3 }, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
4155
CompileAndVerify(new[] { source1, source3 }, expectedOutput: expectedOutput3, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics3);
4166
CompileAndVerify(new[] { source1, source4 }, expectedOutput: expectedOutput4, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
4167
CompileAndVerify(new[] { source1, source4 }, expectedOutput: expectedOutput4, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics();
4191
CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
4192
CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics();
4216
CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
4217
CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics();
4427
CompileAndVerify(source, expectedOutput: "E", parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
4436
CompileAndVerify(source, expectedOutput: "C", parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
4547
? CreateCompilation(source2, new[] { CreateCompilation(source1).VerifyDiagnostics(warning1).EmitToImageReference() }, options:
TestOptions
.ReleaseExe)
4548
: CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.ReleaseExe);
4598
? CreateCompilation(source2, new[] { CreateCompilation(source1).VerifyDiagnostics(warning1).EmitToImageReference() }, options:
TestOptions
.ReleaseExe)
4599
: CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.ReleaseExe);
4736
? CreateCompilation(source2, new[] { CreateCompilation(source1).VerifyDiagnostics(warnings1).EmitToImageReference() }, options:
TestOptions
.ReleaseExe)
4737
: CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.ReleaseExe);
4837
? CreateCompilation(source2, new[] { CreateCompilation(source1).VerifyDiagnostics(warning1).EmitToImageReference() }, options:
TestOptions
.ReleaseExe)
4838
: CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.ReleaseExe);
5091
expectedOutput: "111", options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails);
5480
options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails);
7007
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
7012
CreateCompilation(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
7032
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
7037
CreateCompilation(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
7061
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
7066
CreateCompilation(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
7096
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(
7124
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(
7234
CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
7238
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(expectedDiagnostics);
7259
CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedWarnings);
7260
CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(expectedWarnings);
7277
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
7278
CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(expectedDiagnostics);
7664
CompileAndVerify(source1, expectedOutput: "12", parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
7673
CompileAndVerify(source2, expectedOutput: expectedOutput, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics();
7688
CreateCompilation(source3, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
7721
CreateCompilation(source2, new[] { comp1Ref }, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
7739
CreateCompilation(source2, new[] { comp1Ref }, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
7744
CreateCompilation(source2, new[] { comp1Ref }, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
7764
CompileAndVerify(source2, new[] { comp1Ref }, expectedOutput: expectedOutput, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
7776
CreateCompilation(source3, new[] { comp1Ref }, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
7790
CompileAndVerify(source3, new[] { comp1Ref }, expectedOutput: expectedOutput, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
7826
CreateCompilation(source2 + Environment.NewLine + source3, new[] { comp1Ref }, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
7843
CompileAndVerify(source2, new[] { comp1Ref }, expectedOutput: expectedOutput, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
7853
CreateCompilation(source3, new[] { comp1Ref }, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
7882
CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, options:
TestOptions
.UnsafeDebugExe).VerifyDiagnostics(
7949
expectedOutput: "r i o v i i v v v v v", options:
TestOptions
.UnsafeDebugExe).VerifyDiagnostics();
7971
var comp1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options:
TestOptions
.UnsafeDebugDll);
7996
CreateCompilation(source2, new[] { comp1Ref }, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.UnsafeDebugExe).VerifyDiagnostics(
8023
CreateCompilation(source2, new[] { comp1Ref }, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics);
8024
CreateCompilation(source2, new[] { comp1Ref }, options:
TestOptions
.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics);
8046
var comp1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options:
TestOptions
.UnsafeDebugDll);
8081
CreateCompilation(source2, new[] { comp1Ref }, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); CreateCompilation(source2, new[] { comp1Ref }, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics);
8082
CreateCompilation(source2, new[] { comp1Ref }, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics);
8083
CreateCompilation(source2, new[] { comp1Ref }, options:
TestOptions
.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics);
8116
CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, options:
TestOptions
.UnsafeDebugExe).VerifyDiagnostics(
8176
CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options:
TestOptions
.UnsafeDebugExe).VerifyDiagnostics(
8184
expectedOutput: "XYYY", options:
TestOptions
.UnsafeDebugExe).VerifyDiagnostics(
8193
expectedOutput: "XYXX", options:
TestOptions
.UnsafeDebugExe).VerifyDiagnostics(
8212
var comp1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options:
TestOptions
.UnsafeDebugDll);
8230
var comp = CreateCompilation(source2, new[] { comp1Ref }, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.UnsafeDebugExe);
8251
CreateCompilation(source2, new[] { comp1Ref }, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics);
8252
CreateCompilation(source2, new[] { comp1Ref }, options:
TestOptions
.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics);
8276
CompileAndVerify(source2, new[] { comp1Ref }, verify: Verification.Fails, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeDebugExe,
8278
CompileAndVerify(source2, new[] { comp1Ref }, verify: Verification.Fails, options:
TestOptions
.UnsafeDebugExe,
8293
CompileAndVerify(source3, new[] { comp1Ref }, verify: Verification.Fails, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.UnsafeDebugExe,
8308
CompileAndVerify(source3, new[] { comp1Ref }, verify: Verification.Fails, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeDebugExe,
8310
CompileAndVerify(source3, new[] { comp1Ref }, verify: Verification.Fails, options:
TestOptions
.UnsafeDebugExe,
8327
var comp1 = CreateCompilation(source1, options:
TestOptions
.UnsafeDebugDll);
8342
CreateCompilation(source2, new[] { comp1Ref }, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.UnsafeDebugExe).VerifyDiagnostics(
8356
CompileAndVerify(source2, new[] { comp1Ref }, verify: Verification.Fails, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeDebugExe,
8358
CompileAndVerify(source2, new[] { comp1Ref }, verify: Verification.Fails, options:
TestOptions
.UnsafeDebugExe,
8372
CreateCompilation(source3, new[] { comp1Ref }, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.UnsafeDebugExe).VerifyDiagnostics(
8384
CreateCompilation(source3, new[] { comp1Ref }, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics);
8385
CreateCompilation(source3, new[] { comp1Ref }, options:
TestOptions
.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics);
8549
CreateCompilation(source2, new[] { comp1Ref }, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
8569
CompileAndVerify(source2, new[] { comp1Ref }, expectedOutput: expectedOutput, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
8578
CreateCompilation(source3, new[] { comp1Ref }, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
8596
CreateCompilation(source3, new[] { comp1Ref }, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
8603
CompileAndVerify(source3, new[] { comp1Ref }, expectedOutput: expectedOutput, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
8615
CompileAndVerify(source3, new[] { comp1Ref }, expectedOutput: expectedOutput, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
8648
CreateCompilation(source2 + Environment.NewLine + source3, new[] { comp1Ref }, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
8671
CompileAndVerify(source2, new[] { comp1Ref }, expectedOutput: expectedOutput, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
8684
CreateCompilation(source3, new[] { comp1Ref }, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
RefStructInterfacesTests.cs (317)
45
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
47
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
78
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
80
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
160
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
162
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
192
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
194
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
277
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
279
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
315
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
317
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
407
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
409
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
439
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
441
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
525
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
527
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
563
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
565
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
809
CreateCompilation(src7, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
811
CreateCompilation(src7, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
843
CreateCompilation(src8, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
845
CreateCompilation(src8, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
1032
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
1351
CreateCompilation(src7, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
1353
comp7 = CreateCompilation(src7, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular12);
1404
CreateCompilation(src8, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
1406
comp8 = CreateCompilation(src8, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular12);
1927
CreateCompilation(src7, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
1929
comp7 = CreateCompilation(src7, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular12);
1980
CreateCompilation(src8, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
1982
comp8 = CreateCompilation(src8, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular12);
4386
comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
4389
CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
4395
comp = CreateCompilation(src, targetFramework: TargetFramework.Mscorlib461Extended, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
4402
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
4437
CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
4439
CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
4445
CreateCompilation(src, targetFramework: TargetFramework.Mscorlib461Extended, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
5466
CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
5468
CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
5599
CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
5601
CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
5863
CreateCompilation(src, targetFramework: TargetFramework.Net70, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics();
5865
CreateCompilation(src, targetFramework: TargetFramework.Net70, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
5984
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
6064
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
6595
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
6731
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
6848
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
6969
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
7108
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
7233
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
7274
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
7277
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
7320
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
7330
comp2 = CreateCompilation(src1 + src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
7337
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
7358
var comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
7361
comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
7386
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
7393
comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
7432
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
7622
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
7840
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
8037
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
8230
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
8429
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
8505
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
8686
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
8689
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
8728
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
8738
comp2 = CreateCompilation(src1 + src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
8745
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
8762
var comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
8765
comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
8788
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
8795
comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
8827
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
8834
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
8889
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
9093
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
9303
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
9456
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
9668
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
9892
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
10104
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
10338
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
10433
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
10500
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
10697
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
10936
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
11152
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
11379
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
11596
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
11691
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
11756
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
11759
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
11812
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
11819
comp2 = CreateCompilation(src1 + src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
11826
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
11841
var comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
11844
comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
11876
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
11889
comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
11939
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
11987
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
12023
var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
12231
var comp2 = CreateCompilation(src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
12290
var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
12498
var comp2 = CreateCompilation(src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
12536
var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
12746
var comp2 = CreateCompilation(src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
12795
var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
13065
var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
13324
var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
13599
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
13664
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
13706
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
13716
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
13764
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
13780
comp2 = CreateCompilation(src1 + src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
13793
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
13814
var comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
13817
comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
13853
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
13869
comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
13910
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
13926
comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
13966
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
14307
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
14668
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
15019
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
15367
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
15720
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
15797
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
16139
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
16142
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
16181
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
16191
comp2 = CreateCompilation(src1 + src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
16198
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
16215
var comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
16218
comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
16242
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
16249
comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
16285
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
16292
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
16332
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
16374
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
16426
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
16487
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
16554
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
16628
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
16700
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
16746
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
16811
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
16876
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
16960
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
17048
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
17141
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
17238
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
17322
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
17391
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
17398
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
17467
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
17477
comp2 = CreateCompilation(src1 + src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
17487
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
17510
var comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
17513
comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
17550
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
17566
comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
17611
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
17808
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
18030
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
18233
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
18434
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
18640
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
18714
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
18903
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
18906
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
18943
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
18950
comp2 = CreateCompilation(src1 + src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
18957
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
18974
var comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
18977
comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
19000
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
19007
comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
19039
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
19046
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
19096
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
19267
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
19444
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
19592
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
19777
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
19957
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
20000
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
20036
var comp = CreateCompilation([src1, src2], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
20040
CreateCompilation([src1, src2], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics();
20041
CreateCompilation([src1, src2], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
20049
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
20053
CreateCompilation(src2, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics();
20054
CreateCompilation(src2, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
20060
CreateCompilation([src1, src2], targetFramework: TargetFramework.Mscorlib461Extended, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
20081
comp = CreateCompilation([src1, src3], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
20085
CreateCompilation([src1, src3], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics();
20086
CreateCompilation([src1, src3], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
20092
comp = CreateCompilation(src3, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
20095
CreateCompilation(src3, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics();
20096
CreateCompilation(src3, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular12).VerifyEmitDiagnostics();
20098
CreateCompilation([src1, src3], targetFramework: TargetFramework.Mscorlib461Extended, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
20106
CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Mscorlib461Extended, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
20112
CreateCompilation(src3, references: [comp1Ref], targetFramework: TargetFramework.Mscorlib461Extended, options:
TestOptions
.ReleaseExe).VerifyEmitDiagnostics();
20190
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
20293
var comp = CreateCompilation([src1, src2], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
20297
CreateCompilation([src1, src2], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics();
20298
CreateCompilation([src1, src2], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
20306
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
20310
CreateCompilation(src2, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics();
20311
CreateCompilation(src2, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
20317
CreateCompilation([src1, src2], targetFramework: TargetFramework.Mscorlib461Extended, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
20338
comp = CreateCompilation([src1, src3], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
20342
CreateCompilation([src1, src3], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics();
20343
CreateCompilation([src1, src3], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
20349
comp = CreateCompilation(src3, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
20352
CreateCompilation(src3, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics();
20353
CreateCompilation(src3, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular12).VerifyEmitDiagnostics();
20355
CreateCompilation([src1, src3], targetFramework: TargetFramework.Mscorlib461Extended, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
20363
CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Mscorlib461Extended, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
20369
CreateCompilation(src3, references: [comp1Ref], targetFramework: TargetFramework.Mscorlib461Extended, options:
TestOptions
.ReleaseExe).VerifyEmitDiagnostics();
20401
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
20448
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
20493
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
20538
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
21831
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
22060
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.DebugExe);
22473
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
22529
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
22584
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
22632
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
22676
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.UnsafeReleaseExe);
22725
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70, options:
TestOptions
.ReleaseExe);
22777
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70, options:
TestOptions
.ReleaseExe);
22823
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70, options:
TestOptions
.ReleaseExe);
22892
options:
TestOptions
.UnsafeReleaseExe,
22922
options:
TestOptions
.UnsafeReleaseExe,
22953
options:
TestOptions
.UnsafeReleaseExe,
22984
options:
TestOptions
.UnsafeReleaseExe,
23015
options:
TestOptions
.UnsafeReleaseExe,
23047
options:
TestOptions
.UnsafeReleaseExe,
23078
options:
TestOptions
.UnsafeReleaseExe,
23109
options:
TestOptions
.UnsafeReleaseExe,
23163
options:
TestOptions
.UnsafeReleaseExe,
23194
options:
TestOptions
.UnsafeReleaseExe,
23618
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
23671
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
23733
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
24030
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
24133
comp = CreateCompilation(src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
24191
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
24266
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
24365
comp = CreateCompilation(src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
24528
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
24647
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
24729
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseDll);
24790
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
24882
var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
25026
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
25110
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
25324
var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
25510
var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseDll);
25574
var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
26360
comp = CreateCompilation(text, targetFramework: TargetFramework.Net60, parseOptions:
TestOptions
.Regular10);
26815
var comp = CreateCompilation(text, targetFramework: TargetFramework.Net60, parseOptions:
TestOptions
.Regular10);
26895
var comp = CreateCompilation(new[] { text, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net60, parseOptions:
TestOptions
.Regular10);
27178
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
27288
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
27522
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
27707
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
27817
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
27949
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
28083
var comp = CreateCompilation(text, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
28258
var comp = CreateCompilation(text, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
28316
var comp = CreateCompilation(text, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
28385
var comp = CreateCompilation(text, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
28433
var comp = CreateCompilation(text, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
28493
var comp = CreateCompilation(text, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
28553
var comp = CreateCompilation(text, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
28628
var comp = CreateCompilation(text, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
28725
var comp2 = CreateCompilation(text2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
28738
comp2 = CreateCompilation(text2 + text1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
28751
comp2 = CreateCompilation(text2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
28766
var comp3 = CreateCompilation(text3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
28769
comp3 = CreateCompilation(text3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
28806
var comp2 = CreateCompilation(text2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
28822
comp2 = CreateCompilation(text2 + text1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular12);
28835
comp2 = CreateCompilation(text2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions:
TestOptions
.Regular13);
28884
var comp = CreateCompilation(text, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options:
TestOptions
.ReleaseExe);
28910
var piaCompilation = CreateCompilation(pia, options:
TestOptions
.ReleaseDll, assemblyName: "Pia", targetFramework: s_targetFrameworkSupportingByRefLikeGenerics);
28925
var compilation1 = CreateCompilation(consumer, options:
TestOptions
.ReleaseExe,
28929
var compilation2 = CreateCompilation(consumer, options:
TestOptions
.ReleaseExe,
RefUnsafeInIteratorAndAsyncTests.cs (49)
33
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
41
CreateCompilation(source, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics();
61
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
69
CreateCompilation(source, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics();
89
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
97
CreateCompilation(source, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics();
119
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
127
CreateCompilation(source, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics();
154
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyEmitDiagnostics(expectedDiagnostics);
155
CreateCompilation(source, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
175
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
180
CreateCompilation(source, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics();
206
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyEmitDiagnostics(expectedDiagnostics);
207
CreateCompilation(source, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
251
CreateCompilation(source, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
266
CreateCompilation(source, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics);
267
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics);
286
CreateCompilation(source, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
301
CreateCompilation(source, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics);
302
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics);
324
CreateCompilation(source, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
336
CreateCompilation(source, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics);
337
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics);
418
CreateCompilation(source, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyDiagnostics(
430
CreateCompilation(source, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics);
431
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics);
573
CreateCompilation(source, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
588
CreateCompilation(source, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics);
589
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics);
741
var comp = CreateCompilationWithTasksExtensions(source, options:
TestOptions
.ReleaseExe);
795
var comp = CreateCompilationWithTasksExtensions(source, options:
TestOptions
.ReleaseExe);
838
CreateCompilation(source, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyDiagnostics(
850
CreateCompilation(source, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics);
851
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics);
1132
var comp = CreateCompilationWithTasksExtensions(source, options:
TestOptions
.ReleaseExe);
1206
var comp = CreateCompilationWithTasksExtensions(source, options:
TestOptions
.ReleaseExe);
1305
var comp = CreateCompilationWithTasksExtensions(source, options:
TestOptions
.ReleaseExe);
Semantics\CollectionExpressionTests.cs (188)
150
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
837
CompileAndVerify([source, s_collectionExtensions], parseOptions:
TestOptions
.Regular13, expectedOutput: expectedOutput);
838
CompileAndVerify([source, s_collectionExtensions], parseOptions:
TestOptions
.RegularPreview, expectedOutput: expectedOutput);
840
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyEmitDiagnostics(
1044
CompileAndVerify([source, s_collectionExtensions], parseOptions:
TestOptions
.Regular13,
1046
CompileAndVerify([source, s_collectionExtensions], parseOptions:
TestOptions
.RegularPreview,
1048
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyEmitDiagnostics(
1409
verify(
TestOptions
.Regular12, expectedType12);
1410
verify(
TestOptions
.Regular13, expectedType13);
1411
verify(
TestOptions
.RegularPreview, expectedType13);
1437
options:
TestOptions
.ReleaseExe);
1531
options:
TestOptions
.ReleaseExe);
1631
options:
TestOptions
.ReleaseExe);
1735
parseOptions:
TestOptions
.Regular12,
1736
options:
TestOptions
.ReleaseExe);
1815
options:
TestOptions
.ReleaseExe);
1851
options:
TestOptions
.ReleaseExe);
1921
parseOptions:
TestOptions
.Regular13,
1922
options:
TestOptions
.ReleaseExe);
1928
parseOptions:
TestOptions
.RegularPreview,
1929
options:
TestOptions
.ReleaseExe);
1935
parseOptions:
TestOptions
.Regular12,
1936
options:
TestOptions
.ReleaseExe);
1960
parseOptions:
TestOptions
.Regular13,
1966
parseOptions:
TestOptions
.RegularPreview,
1967
options:
TestOptions
.ReleaseExe,
1973
parseOptions:
TestOptions
.Regular12,
2009
options:
TestOptions
.ReleaseExe);
2075
var comp = CreateCompilation(new[] { source, s_collectionExtensionsWithSpan }, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net80);
2078
comp = CreateCompilation(new[] { source, s_collectionExtensionsWithSpan }, parseOptions:
TestOptions
.RegularPreview, targetFramework: TargetFramework.Net80);
2084
parseOptions:
TestOptions
.Regular12,
2205
parseOptions:
TestOptions
.Regular13,
2212
parseOptions:
TestOptions
.RegularPreview,
2216
CreateCompilation(source, parseOptions:
TestOptions
.Regular12, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(
2241
CompileAndVerify(source, parseOptions:
TestOptions
.Regular13, expectedOutput: expectedOutput).VerifyDiagnostics();
2242
CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput: expectedOutput).VerifyDiagnostics();
2244
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyEmitDiagnostics(
2309
CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(version)).VerifyDiagnostics(
2333
CompileAndVerify(source, parseOptions:
TestOptions
.Regular13, expectedOutput: expectedOutput);
2334
CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput: expectedOutput);
2336
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
2363
parseOptions:
TestOptions
.Regular13,
2369
parseOptions:
TestOptions
.RegularPreview,
2374
CreateCompilation(source, parseOptions:
TestOptions
.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
2408
parseOptions:
TestOptions
.Regular13,
2415
parseOptions:
TestOptions
.RegularPreview,
2422
parseOptions:
TestOptions
.Regular12,
2492
parseOptions:
TestOptions
.Regular13,
2498
parseOptions:
TestOptions
.RegularPreview,
2504
parseOptions:
TestOptions
.Regular12,
2585
parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(expectedDiagnostics);
2589
parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(expectedDiagnostics);
2593
parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
2661
parseOptions:
TestOptions
.Regular13,
2667
parseOptions:
TestOptions
.RegularPreview,
2673
parseOptions:
TestOptions
.Regular12,
2772
parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(expectedDiagnostics);
2776
parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(expectedDiagnostics);
2780
parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
2844
parseOptions:
TestOptions
.Regular13,
2850
parseOptions:
TestOptions
.RegularPreview,
2856
parseOptions:
TestOptions
.Regular12,
2938
parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(expectedDiagnostics);
2942
parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(expectedDiagnostics);
2946
parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
3077
options:
TestOptions
.ReleaseExe);
3115
options:
TestOptions
.ReleaseExe);
3149
options:
TestOptions
.ReleaseExe);
3191
options:
TestOptions
.ReleaseExe);
4973
var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.RegularPreview.WithNoRefSafetyRulesAttribute());
5037
var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.RegularPreview.WithNoRefSafetyRulesAttribute());
5085
var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.RegularPreview.WithNoRefSafetyRulesAttribute());
5928
var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.RegularPreview.WithNoRefSafetyRulesAttribute());
6006
var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.RegularPreview.WithNoRefSafetyRulesAttribute());
6034
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseExe);
6061
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseExe);
6089
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseExe);
6114
CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe, targetFramework: TargetFramework.Net80, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("0, 2, "));
6139
var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options:
TestOptions
.UnsafeReleaseExe, targetFramework: TargetFramework.Net80);
6185
CompileAndVerify(new[] { source, s_collectionExtensions }, options:
TestOptions
.UnsafeReleaseExe, targetFramework: TargetFramework.Net80, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("[0, 2], "));
6207
var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, options:
TestOptions
.UnsafeReleaseExe, targetFramework: TargetFramework.Net80, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("1010"));
6299
var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, options:
TestOptions
.UnsafeReleaseExe, targetFramework: TargetFramework.Net80, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("10200"));
7510
var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options:
TestOptions
.ReleaseExe);
7820
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
8245
var comp = CreateCompilation(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options:
TestOptions
.ReleaseExe);
8308
var comp = CreateCompilation(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options:
TestOptions
.ReleaseExe);
8393
var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options:
TestOptions
.ReleaseExe);
8478
var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options:
TestOptions
.ReleaseExe);
9050
var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options:
TestOptions
.ReleaseExe);
9280
var parseOptions =
TestOptions
.RegularPreview;
9311
var parseOptions =
TestOptions
.RegularPreview;
9392
options:
TestOptions
.ReleaseExe,
9510
options:
TestOptions
.ReleaseExe,
9629
options:
TestOptions
.ReleaseExe,
10139
var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options:
TestOptions
.ReleaseExe, expectedOutput: "[1, 2, 3], ");
10367
var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options:
TestOptions
.ReleaseExe, expectedOutput: "[1, 2, 3], ");
10953
var comp = CreateCompilation(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options:
TestOptions
.ReleaseExe);
11000
var comp = CreateCompilation(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options:
TestOptions
.ReleaseExe);
11058
var comp = CreateCompilation(new[] { sourceA, sourceB, s_collectionExtensions }, references: new[] { CSharpRef }, options:
TestOptions
.ReleaseExe);
11141
var comp = CreateCompilation(new[] { sourceA, sourceB, s_collectionExtensions }, references: new[] { CSharpRef }, options:
TestOptions
.ReleaseExe);
11213
var comp = CreateCompilation(new[] { sourceA, sourceB, s_collectionExtensions }, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
12247
var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options:
TestOptions
.ReleaseExe);
12318
var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options:
TestOptions
.ReleaseExe);
12380
options:
TestOptions
.UnsafeReleaseExe,
12421
var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options:
TestOptions
.ReleaseExe);
12441
comp = CreateCompilation(new[] { source, s_collectionExtensions }, options:
TestOptions
.ReleaseExe);
14890
var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options:
TestOptions
.ReleaseExe);
14941
var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options:
TestOptions
.ReleaseExe);
15001
var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options:
TestOptions
.ReleaseExe);
15388
comp = CreateCompilation(new[] { sourceB, s_collectionExtensions }, references: new[] { refA }, targetFramework: targetFramework, options:
TestOptions
.ReleaseExe);
15512
options:
TestOptions
.ReleaseExe);
15637
comp = CreateCompilation(sourceC, references: new[] { refA }, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
20682
options:
TestOptions
.ReleaseExe);
20970
var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.RegularPreview.WithNoRefSafetyRulesAttribute());
21118
var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.RegularPreview.WithNoRefSafetyRulesAttribute());
21355
options:
TestOptions
.ReleaseExe,
21509
options:
TestOptions
.ReleaseExe,
21606
options:
TestOptions
.ReleaseExe,
21720
options:
TestOptions
.ReleaseExe,
21828
options:
TestOptions
.ReleaseExe,
21936
options:
TestOptions
.ReleaseExe,
22589
options: useUnsafe ?
TestOptions
.UnsafeReleaseExe :
TestOptions
.ReleaseExe);
22697
var comp = CreateCompilation(new[] { sourceA, CollectionBuilderAttributeDefinition }, parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp10), targetFramework: TargetFramework.Net60);
22724
comp = CreateCompilation(new[] { sourceB, s_collectionExtensions }, references: new[] { refA }, targetFramework: TargetFramework.Net60, options:
TestOptions
.ReleaseExe.WithSpecificDiagnosticOptions(WithSpanAllocWarning));
22837
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("11"));
22880
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, options:
TestOptions
.ReleaseExe, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("11"));
22950
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("11"));
22993
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, options:
TestOptions
.ReleaseExe, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("11"));
23768
options:
TestOptions
.ReleaseExe);
25148
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe.WithSpecificDiagnosticOptions(WithSpanAllocWarning));
25884
var comp = CreateCompilation(new[] { source, s_collectionExtensionsWithSpan }, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
26360
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options:
TestOptions
.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning));
28481
CreateCompilation(source, targetFramework: TargetFramework.Net70, options:
TestOptions
.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning)).VerifyEmitDiagnostics(
29335
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
30082
var comp = CreateCompilation(new[] { sourceA, s_collectionExtensions }, targetFramework: TargetFramework.Net80, options: ExecutionConditionUtil.IsMonoOrCoreClr ?
TestOptions
.DebugExe :
TestOptions
.DebugDll);
30286
var comp = CreateCompilation([sourceA, s_collectionExtensions], options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
30830
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify: Verification.Skipped, options:
TestOptions
.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning));
31144
CreateCompilation(src, targetFramework: TargetFramework.Net70, options:
TestOptions
.ReleaseExe.WithSpecificDiagnosticOptions(WithSpanAllocWarning)).VerifyEmitDiagnostics(
33429
var comp = CreateCompilation(new[] { source, CollectionBuilderAttributeDefinition }, targetFramework: TargetFramework.Net70, options:
TestOptions
.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning));
33970
var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput("[1, 2, 3, 4, 5, 6],"), targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
34146
var comp = CreateCompilation(new[] { source, s_collectionExtensionsWithSpan }, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
34648
var comp = CreateCompilation(new[] { source, s_collectionExtensionsWithSpan }, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net80);
34705
var comp = CreateCompilation([source, s_collectionExtensions], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
34750
var comp = CreateCompilation([source, s_collectionExtensions], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
34795
var comp = CreateCompilation([source, s_collectionExtensions], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
35252
var comp = CreateCompilation([source, s_collectionExtensions], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
35345
var comp = CreateCompilation([source, s_collectionExtensions], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
36371
var comp = CreateCompilation([source, s_collectionExtensions], options:
TestOptions
.ReleaseExe);
37084
var comp = CreateCompilation([source, s_collectionExtensions], options:
TestOptions
.ReleaseExe);
38272
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
38351
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
38392
var comp = CreateCompilation([source, s_collectionExtensions], options:
TestOptions
.ReleaseExe);
38442
var comp = CreateCompilation([source, s_collectionExtensions], options:
TestOptions
.ReleaseExe);
38487
var comp = CreateCompilation([source, s_collectionExtensions], options:
TestOptions
.ReleaseExe);
38536
var comp = CreateCompilation([source, s_collectionExtensions], options:
TestOptions
.ReleaseExe);
38592
var comp = CreateCompilation([sourceB1, sourceA, s_collectionExtensions], options:
TestOptions
.ReleaseExe);
38622
comp = CreateCompilation([sourceB2, sourceA, s_collectionExtensions], options:
TestOptions
.ReleaseExe);
38671
var comp = CreateCompilation([sourceB1, sourceA, s_collectionExtensions], options:
TestOptions
.ReleaseExe);
38701
comp = CreateCompilation([sourceB2, sourceA, s_collectionExtensions], options:
TestOptions
.ReleaseExe);
38754
var comp = CreateCompilation([sourceB1, sourceA, s_collectionExtensions], options:
TestOptions
.ReleaseExe);
38788
comp = CreateCompilation([sourceB2, sourceA, s_collectionExtensions], options:
TestOptions
.ReleaseExe);
38859
comp = CreateCompilation([sourceC, s_collectionExtensions], references: [refA2, refB], options:
TestOptions
.ReleaseExe);
40711
var comp = CreateCompilation([source, s_collectionExtensions], options:
TestOptions
.ReleaseExe);
41723
var comp = CreateCompilation([sourceA, sourceB, s_collectionExtensions], options:
TestOptions
.UnsafeReleaseExe);
41738
CompileAndVerify([sourceA, sourceB, sourceC, s_collectionExtensions], options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "[1, 2, 3], ");
41771
var comp = CreateCompilation([sourceA, sourceB1, s_collectionExtensions], options:
TestOptions
.UnsafeReleaseExe);
41806
CompileAndVerify([sourceA, sourceB2, s_collectionExtensions], options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "[1, 2, 3], ");
42706
var comp1 = CreateCompilation(source1, options:
TestOptions
.UnsafeDebugDll);
42719
var comp2 = CreateCompilation(source2, references: [comp1Ref], options:
TestOptions
.UnsafeDebugExe);
42735
var comp3 = CreateCompilation(source3, references: [comp1Ref], options:
TestOptions
.UnsafeDebugExe);
42786
var comp1 = CreateCompilation(source1, options:
TestOptions
.UnsafeDebugDll);
42799
var comp2 = CreateCompilation(source2, references: [comp1Ref], options:
TestOptions
.UnsafeDebugExe);
42815
var comp3 = CreateCompilation(source3, references: [comp1Ref], options:
TestOptions
.UnsafeDebugExe);
42841
var myCollection_v0 = CreateCompilation(myCollection_v0Source, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll, assemblyName: "Collection");
42853
var builder = CreateCompilation(builderSource, references: [myCollection_v0.ToMetadataReference()], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
42868
var myCollection = CreateCompilation(myCollectionSource, references: [builder.ToMetadataReference()], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll, assemblyName: "Collection");
42886
var comp = CreateCompilation(src, references: [myCollectionRef, builder.EmitToImageReference()], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
42893
comp = CreateCompilation(src, references: [myCollectionRef], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
43347
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
43402
comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
43410
comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
43459
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
43514
comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
43522
comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
43539
comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
43673
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
Semantics\ExperimentalAttributeTests.cs (3)
236
var moduleComp = CreateCompilation(libSrc1, options:
TestOptions
.DebugModule, references: new[] { attrRef });
266
var moduleComp = CreateCompilation(libSrc1, options:
TestOptions
.DebugModule, references: new[] { attrRef });
533
var moduleComp = CreateCompilation(libSrc, options:
TestOptions
.ReleaseModule, references: new[] { attrRef });
Semantics\InlineArrayTests.cs (518)
294
comp = CreateCompilationWithIL("", ilSource, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
360
comp = CreateCompilationWithIL("", ilSource, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
426
comp = CreateCompilationWithIL("", ilSource, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
492
comp = CreateCompilationWithIL("", ilSource, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
556
comp = CreateCompilationWithIL("", ilSource, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
648
comp = CreateCompilationWithIL("", ilSource, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
685
var comp = CreateCompilation(src, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
737
comp = CreateCompilationWithIL("", ilSource, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
775
var comp = CreateCompilation(src, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
819
comp = CreateCompilationWithIL("", ilSource, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
854
var comp = CreateCompilation(src, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
922
comp = CreateCompilationWithIL("", ilSource, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
960
var comp = CreateCompilation(src, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
1046
comp = CreateCompilationWithIL(consumer, ilSource, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
1136
comp = CreateCompilationWithIL(consumer, ilSource, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
1533
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugDll.WithAllowUnsafe(true));
2028
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugDll.WithAllowUnsafe(true));
2095
var comp = CreateCompilationWithIL(src, ilSource, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugDll.WithAllowUnsafe(true));
2113
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugDll.WithAllowUnsafe(true));
2131
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugDll.WithAllowUnsafe(true));
2153
var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugDll);
2175
var comp2 = CreateCompilation(src2, references: new[] { comp1.ToMetadataReference() }, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugExe);
2279
var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugDll);
2299
var comp2 = CreateCompilation(src2, references: new[] { comp1.ToMetadataReference() }, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugExe);
2324
var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugDll);
2462
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
2492
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular12);
2495
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular11);
2553
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
2590
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
2633
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
2671
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
2703
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
2741
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
2782
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
2824
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
2864
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
2889
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
2914
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
2945
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
2983
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
3015
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
3041
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
3070
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
3100
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
3134
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
3197
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
3260
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
3336
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
3560
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
3792
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
4017
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
4142
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
4271
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
4402
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
4528
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
4678
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
4836
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
4894
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
4950
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
4997
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
5027
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
5074
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
5309
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
5527
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
5655
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
5871
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
5988
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
6017
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular12);
6020
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular11);
6071
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
6167
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
6183
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular12);
6186
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular11);
6247
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
6291
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
6329
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
6362
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
6401
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
6444
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
6487
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
6528
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
6553
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
6584
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
6622
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
6655
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
6681
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
6711
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
6741
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
6757
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
6780
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
6813
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
6857
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
6907
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
6957
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
7013
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
7063
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
7118
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
7153
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
7187
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
7257
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
7336
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
7472
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
7617
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
7785
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
7947
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
8105
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
8163
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
8205
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
8250
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
8280
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
8313
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
8337
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular12);
8340
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular11);
8372
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
8425
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
8480
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
8543
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
8597
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
8659
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
8691
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
8721
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
8753
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
8773
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
8807
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
8885
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
8939
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
8979
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
9016
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
9053
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
9118
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
9159
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
9193
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
9242
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
9289
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
9340
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
9391
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
9430
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
9475
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
9521
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
9558
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
9593
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
9641
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
9693
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
9745
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
9785
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
9825
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
9871
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
9910
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
9950
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
9979
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
10013
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
10060
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
10111
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
10150
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
10187
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
10222
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
10261
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
10304
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
10345
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
10390
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
10431
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
10460
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
10492
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
10528
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
10602
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
10654
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
10706
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
10746
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
10792
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
10838
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
10873
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
10908
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
10947
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
10986
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
11026
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
11060
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
11094
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
11130
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
11176
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
11222
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
11272
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
11346
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
11398
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
11437
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
11472
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
11514
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
11543
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
11569
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
11596
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
11622
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
11650
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
11674
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
11700
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
11723
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
11746
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
11769
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
11790
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
11811
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
11832
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
11858
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
11884
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
11905
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
11931
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
11959
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
12000
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
12056
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
12106
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
12140
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
12170
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
12197
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
12260
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
12327
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
12376
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
12411
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
12439
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
12473
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
12496
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
12523
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
12551
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
12585
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
12608
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
12635
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
12662
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
12700
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
12725
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
12748
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
12790
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
12835
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
12867
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
12892
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
12914
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
12968
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
13027
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
13080
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
13117
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular10);
13154
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
13210
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
13269
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
13311
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular10);
13342
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
13359
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular10);
13382
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
13396
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular10);
13428
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
13473
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular10);
13524
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
13542
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular10);
13585
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
13603
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular10);
13653
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
13694
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
13748
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
13806
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
13864
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
13917
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
13968
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
14019
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
14055
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
14086
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
14116
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
14156
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
14185
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
14235
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
14265
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
14294
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
14338
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
14366
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
14420
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
14445
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
14469
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
14501
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
14538
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
14563
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
14596
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
14635
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
14684
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
14733
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
14781
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
14828
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
14872
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
14929
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
14973
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
15023
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
15081
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
15117
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
15163
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
15192
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular12);
15195
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular11);
15247
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
15384
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
15439
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
15500
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
15563
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
15617
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
15645
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
15671
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
15697
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
15893
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
15919
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
15948
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
15977
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
16012
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
16047
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
16084
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
16121
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
16144
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
16182
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
16230
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
16282
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
16317
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
16432
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
16482
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
16533
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
16578
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
16617
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
16670
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
16877
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
16940
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
16970
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
16973
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular12);
16976
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular11);
17008
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
17034
var comp = CreateCompilation(src + Buffer10Definition, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
17045
comp = CreateCompilation(src + Buffer10Definition, parseOptions:
TestOptions
.RegularNext, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
17048
comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
17079
var comp = CreateCompilation(src + Buffer10Definition, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
17095
comp = CreateCompilation(src + Buffer10Definition, parseOptions:
TestOptions
.RegularNext, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
17098
comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
17128
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
17162
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
17185
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
17212
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
17234
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
17540
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
17602
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
17658
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
17733
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
17775
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
17810
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
17846
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
17904
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
17987
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
18010
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
18046
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
18082
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
18118
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
18167
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
18274
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugExe.WithAllowUnsafe(true));
18302
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugExe.WithAllowUnsafe(true));
18331
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugExe.WithAllowUnsafe(true));
18370
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugExe.WithAllowUnsafe(true));
18402
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugExe.WithAllowUnsafe(true));
18433
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugExe.WithAllowUnsafe(true));
18463
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugExe.WithAllowUnsafe(true));
18503
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugExe.WithAllowUnsafe(true));
18540
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
18638
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
18711
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
18773
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
18795
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
18818
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
18821
comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular12);
18824
comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular11);
18865
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
18950
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
19000
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
19064
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
19086
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
19122
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
19157
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
19199
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
19287
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
19334
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
19367
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
19422
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
19488
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
19525
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
19566
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
19604
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
19642
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
19680
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
19717
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
19746
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
19781
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
19844
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
19882
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugDll.WithAllowUnsafe(true));
19923
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugDll.WithAllowUnsafe(true));
19981
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
20119
comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugExe);
20168
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
20319
comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugExe);
20350
CreateCompilation(src, parseOptions:
TestOptions
.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
20357
CompileAndVerify(src, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe,
20360
CompileAndVerify(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe,
20381
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
20441
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
20578
comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugExe);
20627
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
20778
comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugExe);
20812
CreateCompilation(src, parseOptions:
TestOptions
.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
20819
CompileAndVerify(src, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe,
20822
CompileAndVerify(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe,
20843
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
20892
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
20995
comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugExe);
21027
CreateCompilation(src, parseOptions:
TestOptions
.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
21037
CompileAndVerify(src, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe,
21040
CompileAndVerify(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe,
21072
CreateCompilation(src, parseOptions:
TestOptions
.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
21090
CreateCompilation(src, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics);
21123
CreateCompilation(src, parseOptions:
TestOptions
.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
21140
CreateCompilation(src, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics);
21174
CreateCompilation(src, parseOptions:
TestOptions
.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
21189
CreateCompilation(src, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics);
21241
CreateCompilation(src, parseOptions:
TestOptions
.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
21253
CreateCompilation(src, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics);
21281
CreateCompilation(src, parseOptions:
TestOptions
.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
21297
CreateCompilation(src, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics);
21325
CreateCompilation(src, parseOptions:
TestOptions
.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
21337
CreateCompilation(src, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics);
21388
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
21390
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugExe);
21418
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
21430
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
21470
CreateCompilation(src, parseOptions:
TestOptions
.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
21488
CreateCompilation(src, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics);
21539
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
21609
comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugExe);
21656
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
21729
comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugExe);
21768
CreateCompilation(src, parseOptions:
TestOptions
.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
21775
CompileAndVerify(src, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe,
21778
CompileAndVerify(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe,
21799
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
21858
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
21928
comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugExe);
21975
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
22048
comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugExe);
22090
CreateCompilation(src, parseOptions:
TestOptions
.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
22097
CompileAndVerify(src, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe,
22100
CompileAndVerify(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe,
22121
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
22169
var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
22232
comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugExe);
22272
CreateCompilation(src, parseOptions:
TestOptions
.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
22282
CompileAndVerify(src, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe,
22285
CompileAndVerify(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe,
22325
CreateCompilation(src, parseOptions:
TestOptions
.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
22343
CreateCompilation(src, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics);
22384
CreateCompilation(src, parseOptions:
TestOptions
.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
22401
CreateCompilation(src, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics);
22443
CreateCompilation(src, parseOptions:
TestOptions
.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
22458
CreateCompilation(src, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics);
22508
CreateCompilation(src, parseOptions:
TestOptions
.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
22520
CreateCompilation(src, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics);
22548
CreateCompilation(src, parseOptions:
TestOptions
.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
22564
CreateCompilation(src, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics);
22592
CreateCompilation(src, parseOptions:
TestOptions
.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
22604
CreateCompilation(src, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics);
22653
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
22655
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.DebugExe);
22681
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
22693
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
22731
CreateCompilation(src, parseOptions:
TestOptions
.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
22749
CreateCompilation(src, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics);
22772
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
22805
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
22832
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
22912
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
22935
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
22971
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
22999
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
23021
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
23054
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
23087
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
23109
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
23131
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
23160
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
23186
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
23222
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
23266
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
23289
CreateCompilation(src, parseOptions:
TestOptions
.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
23316
CreateCompilation(src, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net80).VerifyDiagnostics(expectedDiagnostics);
23340
foreach (var parseOptions in new[] {
TestOptions
.Regular12,
TestOptions
.Regular13,
TestOptions
.RegularPreview })
Semantics\LockTests.cs (24)
1630
CreateCompilation(sources, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
1637
CompileAndVerify(sources, parseOptions:
TestOptions
.RegularPreview, expectedOutput: expectedOutput,
1942
var verifier = CompileAndVerify([source, LockTypeDefinition], options:
TestOptions
.DebugExe,
2006
verifier = CompileAndVerify([source, LockTypeDefinition], options:
TestOptions
.ReleaseExe,
2082
var verifier = CompileAndVerify([source, LockTypeDefinition], options:
TestOptions
.DebugExe,
2237
verifier = CompileAndVerify([source, LockTypeDefinition], options:
TestOptions
.ReleaseExe,
2391
var verifier = CompileAndVerify([source, LockTypeDefinition], options:
TestOptions
.DebugExe,
2503
verifier = CompileAndVerify([source, LockTypeDefinition], options:
TestOptions
.ReleaseExe,
2611
var verifier = CompileAndVerify([source, LockTypeDefinition], options:
TestOptions
.DebugExe,
2675
verifier = CompileAndVerify([source, LockTypeDefinition], options:
TestOptions
.ReleaseExe,
2750
var verifier = CompileAndVerify([source, LockTypeDefinition], options:
TestOptions
.DebugExe,
2905
verifier = CompileAndVerify([source, LockTypeDefinition], options:
TestOptions
.ReleaseExe,
3055
var verifier = CompileAndVerify([source, LockTypeDefinition], options:
TestOptions
.DebugExe,
3119
verifier = CompileAndVerify([source, LockTypeDefinition], options:
TestOptions
.ReleaseExe,
3194
var verifier = CompileAndVerify([source, LockTypeDefinition], options:
TestOptions
.DebugExe,
3349
verifier = CompileAndVerify([source, LockTypeDefinition], options:
TestOptions
.ReleaseExe,
3543
var verifier = CompileAndVerify([source, LockTypeDefinition], options:
TestOptions
.ReleaseExe,
3547
verifier = CompileAndVerify([source, LockTypeDefinition], options:
TestOptions
.DebugExe,
3582
var verifier = CompileAndVerify([source, LockTypeDefinition], options:
TestOptions
.ReleaseExe,
3586
verifier = CompileAndVerify([source, LockTypeDefinition], options:
TestOptions
.DebugExe,
3655
var comp = CreateCompilationWithTasksExtensions([source, LockTypeDefinition, AsyncStreamsTypes], options:
TestOptions
.ReleaseExe);
3659
comp = CreateCompilationWithTasksExtensions([source, LockTypeDefinition, AsyncStreamsTypes], options:
TestOptions
.DebugExe);
3696
var comp = CreateCompilationWithTasksExtensions([source, LockTypeDefinition, AsyncStreamsTypes], options:
TestOptions
.DebugExe);
3887
comp = CreateCompilationWithTasksExtensions([source, LockTypeDefinition, AsyncStreamsTypes], options:
TestOptions
.ReleaseExe);
Semantics\OutVarTests.cs (941)
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);
1709
options:
TestOptions
.ReleaseExe,
1710
parseOptions:
TestOptions
.Regular);
1745
options:
TestOptions
.ReleaseExe,
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);
2388
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular7_1);
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);
4474
compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular7_3);
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);
5570
CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular7_2).VerifyDiagnostics(
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);
9091
compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular7_3);
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);
11329
CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular7_2).VerifyDiagnostics(
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);
12084
compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular7_3);
12224
var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular);
12234
compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular7_3);
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);
12762
compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular7_3);
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);
17988
options:
TestOptions
.ReleaseExe,
17989
parseOptions:
TestOptions
.Regular);
18018
options:
TestOptions
.ReleaseExe,
18019
parseOptions:
TestOptions
.Regular);
18062
options:
TestOptions
.ReleaseExe,
18063
parseOptions:
TestOptions
.Regular);
18093
options:
TestOptions
.ReleaseExe,
18094
parseOptions:
TestOptions
.Regular);
18132
options:
TestOptions
.ReleaseExe,
18133
parseOptions:
TestOptions
.Regular);
18173
options:
TestOptions
.ReleaseExe,
18174
parseOptions:
TestOptions
.Regular);
18216
options:
TestOptions
.ReleaseExe,
18217
parseOptions:
TestOptions
.Regular);
18259
options:
TestOptions
.ReleaseExe,
18260
parseOptions:
TestOptions
.Regular);
18298
options:
TestOptions
.ReleaseExe,
18299
parseOptions:
TestOptions
.Regular);
18343
options:
TestOptions
.ReleaseExe,
18344
parseOptions:
TestOptions
.Regular);
18374
options:
TestOptions
.ReleaseExe,
18375
parseOptions:
TestOptions
.Regular);
18425
var compilation = CreateCompilation(text, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular);
18438
CreateCompilation(text, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular7_2).VerifyDiagnostics(
18489
var compilation = CreateCompilation(text, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular);
18502
CreateCompilation(text, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular7_2).VerifyDiagnostics(
18537
options:
TestOptions
.ReleaseExe,
18538
parseOptions:
TestOptions
.Regular);
18582
options:
TestOptions
.ReleaseExe,
18583
parseOptions:
TestOptions
.Regular);
18634
options:
TestOptions
.ReleaseExe,
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);
19282
options:
TestOptions
.ReleaseExe,
19283
parseOptions:
TestOptions
.Regular);
19323
options:
TestOptions
.ReleaseExe,
19324
parseOptions:
TestOptions
.Regular);
19357
options:
TestOptions
.ReleaseExe,
19358
parseOptions:
TestOptions
.Regular);
19416
options:
TestOptions
.ReleaseExe,
19417
parseOptions:
TestOptions
.Regular);
19459
options:
TestOptions
.ReleaseExe,
19460
parseOptions:
TestOptions
.Regular);
19497
options:
TestOptions
.ReleaseExe,
19498
parseOptions:
TestOptions
.Regular);
19536
options:
TestOptions
.ReleaseExe,
19537
parseOptions:
TestOptions
.Regular);
19577
options:
TestOptions
.ReleaseExe,
19578
parseOptions:
TestOptions
.Regular);
19623
options:
TestOptions
.ReleaseExe,
19624
parseOptions:
TestOptions
.Regular12);
19683
options:
TestOptions
.ReleaseExe,
19684
parseOptions:
TestOptions
.Regular);
19726
options:
TestOptions
.ReleaseExe.WithAllowUnsafe(true),
19727
parseOptions:
TestOptions
.Regular);
19765
options:
TestOptions
.ReleaseExe,
19766
parseOptions:
TestOptions
.Regular);
19806
options:
TestOptions
.ReleaseExe,
19807
parseOptions:
TestOptions
.Regular);
19835
options:
TestOptions
.ReleaseExe,
19836
parseOptions:
TestOptions
.Regular);
19868
options:
TestOptions
.ReleaseExe,
19869
parseOptions:
TestOptions
.Regular);
19901
options:
TestOptions
.ReleaseExe,
19902
parseOptions:
TestOptions
.Regular);
19936
options:
TestOptions
.ReleaseExe,
19937
parseOptions:
TestOptions
.Regular);
19971
options:
TestOptions
.ReleaseExe,
19972
parseOptions:
TestOptions
.Regular);
20002
options:
TestOptions
.ReleaseExe,
20003
parseOptions:
TestOptions
.Regular7_1);
20039
var compilation = CreateCompilation(text, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular);
20179
var comp = CreateCompilation(text, options:
TestOptions
.DebugDll, references: new[] { CSharpRef });
20199
var compilation = CreateCompilation(text, options:
TestOptions
.ReleaseExe);
20219
var compilation = CreateCompilation(text, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular);
20247
var compilation = CreateCompilation(text, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular);
20539
var compilation = CreateCompilation(source2, references: new[] { reference1 }, options:
TestOptions
.DebugExe);
20611
options:
TestOptions
.ReleaseExe,
20612
parseOptions:
TestOptions
.Regular);
20771
options:
TestOptions
.ReleaseExe,
20772
parseOptions:
TestOptions
.Regular);
20824
options:
TestOptions
.ReleaseDebugDll.WithAllowUnsafe(true),
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);
23184
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
23268
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
23388
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
23433
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
23460
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
23519
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
23635
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
23729
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
23855
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
23973
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
24073
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
24201
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
24272
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
24362
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
24489
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
24520
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
24635
var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
24887
var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
25170
var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
25258
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
25353
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
25499
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
25544
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
25591
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
25669
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
25716
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
25785
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
25849
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
25903
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
26006
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
26060
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
26146
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
26194
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
26247
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
26306
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
26389
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
26449
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
26530
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
26580
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
26674
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
26724
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
26814
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
26865
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
26915
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
26995
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
27046
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
27135
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
27189
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
27288
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
27342
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
27427
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
27485
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
27549
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
27662
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
27726
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
27820
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
27875
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
27939
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
28053
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
28117
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
28218
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
28277
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
28331
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
28428
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
28482
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
28565
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
28613
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
28669
options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
28739
options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
28837
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
28896
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
28988
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
29047
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
29128
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
29192
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
29259
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
29368
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
29435
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
29530
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
29580
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
29643
options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
29728
options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
29844
options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
29929
options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
30032
options:
TestOptions
.DebugExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
30099
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
30166
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
30271
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
30338
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
30425
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
30478
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
30519
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
30563
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
30608
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
30666
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
30723
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
30837
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
30894
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
30993
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
31046
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
31087
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
31131
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
31191
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
31258
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
31364
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
31431
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
31521
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
31574
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
31615
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
31659
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
31704
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
31748
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
31776
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
31835
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
31863
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
31928
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
31953
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
32014
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"),
32015
parseOptions:
TestOptions
.Script);
32043
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
32103
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
32147
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
32187
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
32227
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script, skipUsesIsNullable: true);
32267
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script, skipUsesIsNullable: true);
32307
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script, skipUsesIsNullable: true);
32326
compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script, skipUsesIsNullable: true);
32362
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script, skipUsesIsNullable: true);
32379
compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script, skipUsesIsNullable: true);
32416
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
32456
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
32544
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
32572
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
32600
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
32626
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
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);
33056
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
33116
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
33170
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
33228
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
33305
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
33328
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
33372
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
33395
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
33422
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
33444
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
33476
var comp = CreateCompilationWithMscorlib40(source, options:
TestOptions
.DebugDll, references: new[] { Net40.References.SystemCore });
33502
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
33760
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
33858
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
33957
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
34055
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
34140
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
34196
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
34237
var compilation = CreateCompilation(text, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular);
34343
var compilation = CreateCompilation(syntaxTree, options:
TestOptions
.ReleaseExe);
34452
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular);
34557
var compilation = CreateCompilation(syntaxTree, options:
TestOptions
.DebugExe);
34653
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular);
35536
var compilation = CreateCompilation(text, options:
TestOptions
.ReleaseExe);
35692
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
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);
35953
CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular7_2).VerifyDiagnostics(
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\ParamsCollectionTests.cs (354)
97
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All));
199
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
277
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All));
315
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
459
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
495
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
590
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All));
643
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
721
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
779
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
828
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
878
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
937
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
978
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
1010
var myCollection_v0 = CreateCompilation(myCollection_v0Source, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll, assemblyName: "Collection");
1022
var builder = CreateCompilation(builderSource, references: [myCollection_v0.ToMetadataReference()], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
1037
var myCollection = CreateCompilation(myCollectionSource, references: [builder.ToMetadataReference()], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll, assemblyName: "Collection");
1064
var comp = CreateCompilation(src, references: [myCollectionRef, builder.EmitToImageReference()], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
1075
comp = CreateCompilation(src, references: [myCollectionRef], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
1130
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
1195
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
1262
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All));
1320
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
1387
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseDll);
1465
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
1514
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
1563
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseDll);
1600
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
1648
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
1696
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseDll);
1738
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
1791
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
1845
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
1897
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
1942
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
1986
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
2030
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
2070
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
2111
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
2146
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
2197
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseDll);
2246
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
2296
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
2354
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
2414
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All));
2461
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
2511
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseDll);
2602
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All));
2647
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseDll);
2708
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseDll);
2735
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All));
2772
comp = CreateCompilation(src2, options:
TestOptions
.ReleaseExe);
2786
comp = CreateCompilation(src2, options:
TestOptions
.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All));
2937
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All));
2970
comp = CreateCompilation(src2, options:
TestOptions
.ReleaseExe);
2981
comp = CreateCompilation(src2, options:
TestOptions
.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All));
3182
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
3307
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
3531
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
3848
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
3976
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.RegularPreview);
3979
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular13);
3982
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular12);
4016
var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
4023
var comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.RegularPreview);
4026
comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular13);
4029
comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular12);
4070
var comp = CreateCompilation(src2 + src1, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.RegularPreview);
4073
comp = CreateCompilation(src2 + src1, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular13);
4076
comp = CreateCompilation(src2 + src1, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular12);
4083
var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
4090
var comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.RegularPreview);
4093
comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular13);
4096
comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular12);
4138
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.RegularPreview);
4141
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular13);
4144
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular12);
4185
var comp = CreateCompilation(src2 + src1, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.RegularPreview);
4188
comp = CreateCompilation(src2 + src1, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular13);
4191
comp = CreateCompilation(src2 + src1, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular12);
4198
var comp1 = CreateCompilation(src1, options:
TestOptions
.ReleaseDll);
4205
var comp2 = CreateCompilation(src2, references: [comp1Ref], options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.RegularPreview);
4242
comp2 = CreateCompilation(src2, references: [comp1Ref], options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular13);
4246
comp2 = CreateCompilation(src2, references: [comp1Ref], options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular12);
4309
var comp = CreateCompilation(src2 + src1, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.RegularPreview);
4312
comp = CreateCompilation(src2 + src1, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular13);
4315
comp = CreateCompilation(src2 + src1, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular12);
4322
var comp1 = CreateCompilation(src1, options:
TestOptions
.ReleaseDll);
4329
var comp2 = CreateCompilation(src2, references: [comp1Ref], options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.RegularPreview);
4332
comp2 = CreateCompilation(src2, references: [comp1Ref], options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular13);
4335
comp2 = CreateCompilation(src2, references: [comp1Ref], options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), parseOptions:
TestOptions
.Regular12);
4398
var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
4405
var comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularPreview);
4408
comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular13);
4411
comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular12);
4442
var comp = CreateCompilation(src1 + src2, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
4445
var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
4446
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
4449
var comp3 = CreateCompilation(src1 + ParamCollectionAttributeSource, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
4450
var comp4 = CreateCompilation(src2, references: [comp3.ToMetadataReference()], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
4453
var comp5 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseModule);
4511
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All));
4514
var comp1 = CreateCompilation(ParamCollectionAttributeSource, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
4515
var comp2 = CreateCompilation(src, references: [comp1.ToMetadataReference()], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All));
4619
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
4664
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All));
4667
var comp1 = CreateCompilation(ParamCollectionAttributeSource, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
4668
var comp2 = CreateCompilation(src, references: [comp1.ToMetadataReference()], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All));
4741
var comp1 = CreateCompilation(src1, options:
TestOptions
.ReleaseDll);
4742
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], options:
TestOptions
.ReleaseExe);
4770
var comp1 = CreateCompilation(src1, options:
TestOptions
.ReleaseDll);
4771
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], options:
TestOptions
.ReleaseExe);
4808
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
4859
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
4897
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
5071
options:
TestOptions
.ReleaseExe);
5181
options:
TestOptions
.ReleaseExe);
5286
options:
TestOptions
.ReleaseExe);
5357
options:
TestOptions
.ReleaseExe);
5393
options:
TestOptions
.ReleaseExe);
5454
options:
TestOptions
.ReleaseExe);
5497
options:
TestOptions
.ReleaseExe);
5672
options:
TestOptions
.ReleaseExe);
5700
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
5787
CompileAndVerify(source, parseOptions:
TestOptions
.Regular13, expectedOutput: "List<byte>");
5809
parseOptions:
TestOptions
.Regular13,
5843
options:
TestOptions
.ReleaseExe);
6015
options:
TestOptions
.ReleaseExe);
6059
options:
TestOptions
.ReleaseExe);
6129
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
6156
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
6186
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
6229
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
6262
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
6311
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
6361
var comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
6365
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular13);
6369
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular12);
6429
var comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
6439
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular13);
6442
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular12);
6480
comp = CreateCompilation(src3, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular12);
6511
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
6540
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
6577
var comp1 = CreateCompilation(src1, references: [comp0Ref], targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
6585
comp1 = CreateCompilation(src1, references: [comp0Ref], targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular13);
6593
comp1 = CreateCompilation(src1, references: [comp0Ref], targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular12);
6618
var comp2 = CreateCompilation(src2, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
6655
var comp1 = CreateCompilation(src1, references: [comp0Ref], targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
6663
comp1 = CreateCompilation(src1, references: [comp0Ref], targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular13);
6671
comp1 = CreateCompilation(src1, references: [comp0Ref], targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular12);
6696
var comp2 = CreateCompilation(src2, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
6733
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
6770
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
6812
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
6854
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
6875
var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseDll);
6900
var comp = CreateCompilation(src, references: new[] { comp1Ref, comp2.EmitToImageReference() }, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
6936
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
6971
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
7002
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
7047
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
7074
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
7103
var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
7128
var comp2 = CreateCompilation(src2, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
7155
var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
7180
var comp2 = CreateCompilation(src2, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
7228
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
7277
var comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
7281
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular13);
7285
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular12);
7342
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
7393
var comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
7397
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular13);
7401
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular12);
7464
var comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
7474
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular13);
7477
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular12);
7513
comp = CreateCompilation(src3, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular12);
7546
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
7579
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
7620
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
7661
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
7707
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
7753
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
7774
var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseDll);
7802
var comp = CreateCompilation(src, references: new[] { comp1Ref, comp2.EmitToImageReference() }, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
7846
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
7889
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
7938
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
7992
var comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
7996
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular13);
8000
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular12);
8068
var comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
8078
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular13);
8081
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular12);
8117
comp = CreateCompilation(src3, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular12);
8152
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
8184
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
8221
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
8249
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
8318
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
8383
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
8466
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
8531
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
8565
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
8604
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
8677
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
8778
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
8875
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
8918
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
8962
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
9273
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
9314
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
9366
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
9420
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
9478
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
9535
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
9605
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
9693
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
9760
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
9801
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
9853
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
9914
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
9961
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
10014
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
10068
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
10124
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
10170
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
10212
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
10254
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
10300
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
10431
comp = CreateCompilationWithIL(src, il, options:
TestOptions
.ReleaseExe);
10555
comp = CreateCompilationWithIL(src, il, options:
TestOptions
.ReleaseExe);
10679
comp = CreateCompilationWithIL(src, il, options:
TestOptions
.ReleaseExe);
10796
comp = CreateCompilationWithIL(src, il, options:
TestOptions
.ReleaseExe);
10945
comp = CreateCompilationWithIL(src, il, options:
TestOptions
.ReleaseExe);
11093
comp = CreateCompilationWithIL(src, il, options:
TestOptions
.ReleaseExe);
11241
comp = CreateCompilationWithIL(src, il, options:
TestOptions
.ReleaseExe);
11383
comp = CreateCompilationWithIL(src, il, options:
TestOptions
.ReleaseExe);
11531
comp = CreateCompilationWithIL(src, il, options:
TestOptions
.ReleaseExe);
11678
comp = CreateCompilationWithIL(src, il, options:
TestOptions
.ReleaseExe);
11825
comp = CreateCompilationWithIL(src, il, options:
TestOptions
.ReleaseExe);
11966
comp = CreateCompilationWithIL(src, il, options:
TestOptions
.ReleaseExe);
12187
var comp = CreateCompilationWithIL(src, il, options:
TestOptions
.ReleaseExe);
12320
var comp = CreateCompilationWithIL(src, il, options:
TestOptions
.ReleaseExe);
12437
var comp = CreateCompilationWithIL(src, il, options:
TestOptions
.ReleaseExe);
12492
CompileAndVerify(source, options:
TestOptions
.DebugExe, expectedOutput: "DisposedDisposed").VerifyDiagnostics();
12523
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
12760
var comp = CreateCompilation(src1, references, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
12764
var comp1 = CreateCompilation(ParamCollectionAttributeSource, options:
TestOptions
.ReleaseDll);
12766
var comp2 = CreateCompilation(src1, references: references.Concat([comp1Ref]), options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
12770
var comp3 = CreateCompilation(src1, references, options:
TestOptions
.ReleaseModule);
12774
var comp4 = CreateCompilation(src1, references: references.Concat([comp1Ref]), options:
TestOptions
.ReleaseModule.WithMetadataImportOptions(MetadataImportOptions.All));
12788
var comp5 = CreateCompilation(brokenParamCollectionAttributeSource, options:
TestOptions
.ReleaseDll);
12790
var comp6 = CreateCompilation(src1, references: references.Concat([comp5Ref]), options:
TestOptions
.ReleaseDll);
12797
var comp7 = CreateCompilation(src1, references: references.Concat([comp5Ref]), options:
TestOptions
.ReleaseModule);
13155
var options =
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All);
13215
var options =
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All);
13243
var comp1 = CreateCompilationWithMscorlib40(ParamCollectionAttributeSource, options:
TestOptions
.ReleaseDll);
13278
var options =
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All);
13344
var comp2 = CreateCompilation(src2, references: [image ? comp1.EmitToImageReference() : comp1.ToMetadataReference()], options:
TestOptions
.ReleaseExe);
13410
var comp2 = CreateCompilation(src2, references: [image ? comp1.EmitToImageReference() : comp1.ToMetadataReference()], options:
TestOptions
.ReleaseExe);
13474
var comp2 = CreateCompilation(src2, references: [image ? comp1.EmitToImageReference() : comp1.ToMetadataReference()], options:
TestOptions
.ReleaseExe);
13507
var comp1 = CreateCompilation(source1, options:
TestOptions
.UnsafeDebugDll);
13519
var comp2 = CreateCompilation(source2, references: [comp1Ref], options:
TestOptions
.UnsafeDebugDll);
13539
var comp3 = CreateCompilation(source3, references: [comp1Ref], options:
TestOptions
.DebugDll);
13554
var comp4 = CreateCompilation(source4, references: [comp1Ref, comp3.ToMetadataReference()], options:
TestOptions
.ReleaseExe);
13579
var comp5 = CreateCompilation(source5, references: [comp1Ref, comp3.ToMetadataReference()], options:
TestOptions
.UnsafeReleaseExe);
13608
var comp1 = CreateCompilation(source1, options:
TestOptions
.UnsafeDebugDll);
13620
var comp2 = CreateCompilation(source2, references: [comp1Ref], options:
TestOptions
.UnsafeDebugDll);
13640
var comp3 = CreateCompilation(source3, references: [comp1Ref], options:
TestOptions
.DebugDll);
13655
var comp4 = CreateCompilation(source4, references: [comp1Ref, comp3.ToMetadataReference()], options:
TestOptions
.ReleaseExe);
13680
var comp5 = CreateCompilation(source5, references: [comp1Ref, comp3.ToMetadataReference()], options:
TestOptions
.UnsafeReleaseExe);
13724
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
13772
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
13828
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
13870
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
13918
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
13974
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
14016
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
14072
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
14114
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
14186
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
14266
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
14340
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
14390
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseExe);
14438
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
14501
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
15064
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseDll);
15107
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseDll);
15179
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
15248
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseExe);
15480
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
15530
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe);
15588
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe);
16398
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
16435
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
16473
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
16540
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
16567
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options:
TestOptions
.ReleaseDll);
16805
var comp = CreateEmptyCompilation([source1, core], options:
TestOptions
.ReleaseDll.WithAllowUnsafe(true));
16970
comp = CreateEmptyCompilation([source2, core], options:
TestOptions
.ReleaseDll.WithAllowUnsafe(true));
Semantics\PatternMatchingTestBase.cs (2)
433
return CreateCompilation(new[] { source, _iTupleSource }, options: options ??
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularWithPatternCombinators);
Semantics\PatternMatchingTests.cs (318)
49
CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
73
CreateCompilation(source, options:
TestOptions
.DebugExe).VerifyDiagnostics(
112
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
141
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
175
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
212
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
252
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe);
292
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
327
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
363
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
399
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
437
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
465
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
511
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
564
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
606
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
640
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
681
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
731
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
772
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
824
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
883
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular);
918
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
947
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
975
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe);
979
CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular7_2).VerifyDiagnostics(
1013
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe);
1042
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1068
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe);
1072
CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular7_2).VerifyDiagnostics(
1101
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1145
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe);
1163
CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular7_2).VerifyDiagnostics(
1213
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1263
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1309
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1372
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1422
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1476
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
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);
1777
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1822
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
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);
2027
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2071
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2121
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2168
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2224
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
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);
2453
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2491
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2536
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2574
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe.WithAllowUnsafe(true));
2607
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2656
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2696
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2740
var compilation = CreateCompilation(text, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular);
2785
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2835
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2877
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2923
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2964
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3005
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3029
var compilation = CreateCompilation(text, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular);
3076
var compilation = CreateCompilation(text, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular);
3112
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3162
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3222
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3254
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3329
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3360
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular6);
3387
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3412
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3438
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3475
options:
TestOptions
.ReleaseDebugDll.WithAllowUnsafe(true),
3476
parseOptions:
TestOptions
.Regular);
3520
CreateCompilation(source, options:
TestOptions
.DebugExe).VerifyDiagnostics(
3641
CreateCompilation(source, options:
TestOptions
.DebugExe).VerifyDiagnostics(
3689
CreateCompilation(source, options:
TestOptions
.DebugExe).VerifyDiagnostics(
3714
var compilation = CreateCompilation(source, options:
TestOptions
.DebugDll);
3736
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
3773
var compilation = CreateCompilation(source, options:
TestOptions
.DebugDll);
3795
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
3844
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3877
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3910
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3958
var compilation = CreateEmptyCompilation(source, options:
TestOptions
.DebugExe,
3989
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
4026
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
4064
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe,
4065
parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
4084
compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
4138
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
4169
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
4220
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
4245
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.Regular);
4284
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugExe);
4339
CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
4347
CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
4379
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll);
4418
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugExe);
4462
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.UnsafeDebugDll);
4536
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
4563
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
4593
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
4848
var compilation = CreateCompilation(program, parseOptions:
TestOptions
.RegularWithPatternCombinators).VerifyDiagnostics(
4864
var compilation = CreateCompilation(program, parseOptions:
TestOptions
.RegularWithPatternCombinators).VerifyDiagnostics(
5100
var compilation = CreateCompilation(program, options:
TestOptions
.DebugExe).VerifyDiagnostics(
5221
var compilation = CreateCompilation(program, options:
TestOptions
.DebugExe);
5250
CreateCompilation(program, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.Regular7).VerifyDiagnostics(
5258
CreateCompilation(program, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.Regular7_1).VerifyDiagnostics(
5297
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
5317
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
5596
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
5777
var compilation = CreateCompilation(source, references: new MetadataReference[] { CSharpRef }, options:
TestOptions
.ReleaseExe);
5810
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular7);
5819
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular7_1);
5853
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular7);
5862
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular7_1);
5896
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular7);
5905
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular7_1);
5942
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular7);
5951
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular7_1);
5988
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular7);
5997
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular7_1);
6072
var compilation = CreateCompilation(program, options:
TestOptions
.DebugExe);
6105
var compilation = CreateCompilation(program, options:
TestOptions
.DebugExe);
6128
CreateCompilation(program, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular7).VerifyDiagnostics(
6133
var compilation = CreateCompilation(program, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular7_1);
6159
var compilation = CreateCompilation(program, options:
TestOptions
.DebugDll.WithAllowUnsafe(true));
6224
var compilation = CreateCompilation(program, options:
TestOptions
.DebugExe.WithAllowUnsafe(true));
6277
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
6279
compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
6298
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
6321
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
6347
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
6368
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
6389
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
6414
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
6438
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
6477
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
6521
var compilation = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseExe);
6547
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
6603
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe);
6607
CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular7_2).VerifyDiagnostics(
6659
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
6711
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
6749
CreateCompilationWithMscorlibAndSpan(parseOptions:
TestOptions
.RegularWithPatternCombinators,
6805
CreateCompilationWithMscorlibAndSpan(parseOptions:
TestOptions
.RegularWithPatternCombinators, text: @"
6832
CreateCompilationWithMscorlibAndSpan(parseOptions:
TestOptions
.RegularWithRecursivePatterns, text: @"
6928
CreateCompilationWithMscorlibAndSpan(parseOptions:
TestOptions
.RegularWithPatternCombinators, text: @"
7024
CreateCompilationWithMscorlibAndSpan(parseOptions:
TestOptions
.RegularWithRecursivePatterns, text: @"
7106
CreateCompilationWithMscorlibAndSpan(parseOptions:
TestOptions
.RegularWithPatternCombinators, text: @"
7248
CreateCompilationWithMscorlibAndSpan(parseOptions:
TestOptions
.RegularWithRecursivePatterns, text: @"
7331
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7);
7366
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular7);
7391
var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview)
7440
var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularPreview)
7505
var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularPreview)
7584
var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularPreview)
7669
var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.ReleaseExe,
7670
parseOptions:
TestOptions
.RegularPreview.WithDisableLengthBasedSwitch());
7816
compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.ReleaseExe);
7986
var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.ReleaseExe,
7987
parseOptions:
TestOptions
.RegularPreview.WithDisableLengthBasedSwitch());
8120
compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularPreview)
8263
var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularPreview)
8343
var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview)
8444
var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview)
8490
CreateCompilationWithSpan(source, parseOptions:
TestOptions
.RegularPreview)
8519
CreateCompilationWithSpan(source, parseOptions:
TestOptions
.RegularPreview)
8572
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.RegularPreview);
8606
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular10);
8612
comp = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular11);
8648
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular10);
8654
comp = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular11);
8692
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularPreview);
8711
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularPreview);
8728
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularPreview);
8748
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularPreview);
8765
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularPreview)
8782
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularPreview);
8798
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularPreview);
8815
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularPreview);
8837
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularPreview)
8873
var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularPreview)
8955
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularPreview)
8982
var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview)
9033
var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularPreview)
9099
var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularPreview)
9180
var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularPreview)
9267
var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.ReleaseExe,
9268
parseOptions:
TestOptions
.RegularPreview.WithDisableLengthBasedSwitch());
9414
compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.ReleaseExe);
9585
var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.ReleaseExe,
9586
parseOptions:
TestOptions
.RegularPreview.WithDisableLengthBasedSwitch());
9719
compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularPreview)
9863
var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularPreview)
9944
var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview)
10044
var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview)
10090
CreateCompilationWithSpan(source, parseOptions:
TestOptions
.RegularPreview)
10119
CreateCompilationWithSpan(source, parseOptions:
TestOptions
.RegularPreview)
10176
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.RegularPreview);
10209
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular10);
10215
comp = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular11);
10250
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular10);
10256
comp = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular11);
10293
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularPreview);
10312
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularPreview);
10329
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularPreview);
10349
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularPreview);
10366
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularPreview)
10383
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularPreview);
10399
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularPreview);
10416
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularPreview);
10438
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularPreview)
10476
var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularPreview)
10558
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularPreview)
10575
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular11);
10606
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular11);
10626
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular11);
10648
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular11);
10676
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular11);
10703
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular11);
10734
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular11);
10752
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular11);
10782
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular11);
10800
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular11);
10824
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular11);
10854
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular11);
10910
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular11);
11008
comp = CreateCompilation(sourceB, references: new[] { refA }, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularPreview);
11181
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular11);
11343
comp = CreateCompilation(sourceB, references: new[] { refA }, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularPreview);
11361
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular11);
11385
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular11);
11406
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular11);
11463
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular11);
11589
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
11858
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
11898
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
11941
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
12299
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularPreview)
12321
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularPreview)
12339
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularPreview)
12353
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.RegularPreview)
Semantics\PatternMatchingTests_Global.cs (248)
53
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
100
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
175
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
222
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
286
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
345
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
399
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
497
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
551
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
632
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
674
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
722
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
781
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
859
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
919
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
995
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
1045
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
1127
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
1177
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
1255
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
1301
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
1351
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
1426
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
1477
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
1561
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
1615
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
1709
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
1763
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
1843
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
1898
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
1962
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
2069
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
2133
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
2220
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
2272
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
2336
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
2444
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
2508
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
2602
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
2656
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
2710
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
2802
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
2856
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
2934
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
2980
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
3033
options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
3101
options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
3192
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
3251
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
3338
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
3397
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
3473
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
3532
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
3599
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
3703
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
3770
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
3856
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
3916
options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
4001
options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
4114
options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
4199
options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
4295
options:
TestOptions
.DebugExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
4357
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
4424
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
4524
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
4591
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
4669
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
4713
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
4749
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
4788
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
4824
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
4877
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
4934
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
5043
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
5100
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
5190
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
5234
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
5270
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
5309
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
5364
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
5431
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
5549
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
5616
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
5719
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
5768
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
5804
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
5843
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
5884
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
5923
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
5949
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
6008
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
6036
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
6095
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
6121
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
6177
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"),
6178
parseOptions:
TestOptions
.Script);
6207
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
6260
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
6289
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
6317
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
6341
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
6370
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
6393
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
6487
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
6571
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
6679
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
6719
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
6746
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
6796
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
6906
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
7000
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
7120
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
7223
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
7323
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
7445
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
7504
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
7594
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
7703
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
7728
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
7837
var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
8089
var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
8366
var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
8448
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
8543
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
8683
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
Semantics\PatternMatchingTests_ListPatterns.cs (66)
63
var compilation = CreateCompilationWithIndexAndRangeAndSpan(source, parseOptions:
TestOptions
.RegularWithListPatterns, options:
TestOptions
.ReleaseExe);
281
var verifier = CompileAndVerify(new[] { source, TestSources.Index, TestSources.Range }, parseOptions:
TestOptions
.RegularWithListPatterns,
282
options:
TestOptions
.ReleaseDll);
451
var compilation = CreateCompilationWithIndexAndRange(source, parseOptions:
TestOptions
.Regular10);
464
compilation = CreateCompilationWithIndexAndRange(source, parseOptions:
TestOptions
.Regular11);
530
var compilation = CreateCompilationWithIndexAndRange(source, parseOptions:
TestOptions
.RegularWithListPatterns, options:
TestOptions
.ReleaseExe);
718
var compilation = CreateCompilationWithIndexAndRange(source, parseOptions:
TestOptions
.RegularWithListPatterns, options:
TestOptions
.ReleaseExe);
902
var compilation = CreateCompilationWithIndexAndRange(source, parseOptions:
TestOptions
.RegularWithListPatterns, options:
TestOptions
.ReleaseExe);
938
var compilation = CreateCompilationWithIndexAndRange(source, parseOptions:
TestOptions
.RegularWithListPatterns);
970
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithListPatterns);
1002
var compilation = CreateCompilationWithIndexAndRange(source, parseOptions:
TestOptions
.RegularWithListPatterns);
1155
var compilation = CreateCompilationWithIndexAndRange(source, parseOptions:
TestOptions
.RegularWithListPatterns);
1179
var compilation = CreateCompilationWithIndexAndRange(source, parseOptions:
TestOptions
.RegularWithListPatterns);
1224
var compilation = CreateCompilationWithIndexAndRange(source, parseOptions:
TestOptions
.RegularWithListPatterns);
1567
var compilation = CreateCompilationWithIndexAndRange(source, parseOptions:
TestOptions
.RegularWithListPatterns);
1612
var compilation = CreateCompilationWithIndexAndRange(source, options:
TestOptions
.ReleaseExe);
2275
var compilation = CreateCompilationWithIndexAndRange(source, parseOptions:
TestOptions
.RegularWithListPatterns, options:
TestOptions
.ReleaseExe);
2309
var compilation = CreateCompilationWithIndexAndRange(source, parseOptions:
TestOptions
.RegularWithListPatterns, options:
TestOptions
.ReleaseExe);
2334
var compilation = CreateCompilationWithIndexAndRange(source, parseOptions:
TestOptions
.RegularWithListPatterns, options:
TestOptions
.ReleaseExe);
2398
var compilation = CreateCompilationWithIndexAndRangeAndSpan(source, parseOptions:
TestOptions
.RegularWithListPatterns, options:
TestOptions
.ReleaseExe);
2438
var compilation = CreateCompilationWithIndexAndRange(source, parseOptions:
TestOptions
.RegularWithListPatterns, options:
TestOptions
.ReleaseExe);
2510
var compilation = CreateCompilationWithIndexAndRangeAndSpan(source, parseOptions:
TestOptions
.RegularWithListPatterns, options:
TestOptions
.ReleaseExe);
2569
var compilation = CreateCompilationWithIndexAndRange(source, parseOptions:
TestOptions
.RegularWithListPatterns, options:
TestOptions
.ReleaseExe);
2598
var compilation = CreateCompilation(new[] { source, TestSources.Index }, options:
TestOptions
.ReleaseExe);
2918
var compilation = CreateCompilationWithIndexAndRange(source, parseOptions:
TestOptions
.RegularWithListPatterns);
2949
var compilation = CreateCompilationWithIndexAndRange(source, parseOptions:
TestOptions
.RegularWithListPatterns, options:
TestOptions
.ReleaseExe);
3119
var comp = CreateCompilationWithIndexAndRangeAndSpan(source, options:
TestOptions
.ReleaseExe);
3176
var comp = CreateCompilationWithIndexAndRangeAndSpan(source, options:
TestOptions
.ReleaseExe);
3235
var comp = CreateCompilationWithIndexAndRangeAndSpan(source, options:
TestOptions
.ReleaseExe);
3283
references: new[] { lib2Ref }, parseOptions:
TestOptions
.RegularWithListPatterns);
6204
var comp = CreateCompilationWithIndexAndRange(src, parseOptions:
TestOptions
.RegularWithListPatterns);
6246
var comp = CreateCompilationWithIndexAndRange(src, parseOptions:
TestOptions
.RegularWithListPatterns);
6306
var comp = CreateCompilationWithIndexAndRange(src, parseOptions:
TestOptions
.RegularWithListPatterns);
6333
var comp = CreateCompilationWithIndexAndRange(src, parseOptions:
TestOptions
.RegularWithListPatterns);
6391
var comp = CreateCompilationWithIndexAndRange(src, parseOptions:
TestOptions
.RegularWithListPatterns, options:
TestOptions
.ReleaseExe);
6444
var comp = CreateCompilationWithIndexAndRange(src, parseOptions:
TestOptions
.RegularWithListPatterns, options:
TestOptions
.ReleaseExe);
6480
var comp = CreateCompilationWithIndexAndRange(src, parseOptions:
TestOptions
.RegularWithListPatterns);
6511
var comp = CreateCompilationWithIndexAndRange(src, parseOptions:
TestOptions
.RegularWithListPatterns);
6566
var comp = CreateCompilationWithIndexAndRange(src, parseOptions:
TestOptions
.RegularWithListPatterns);
6651
var comp = CreateCompilationWithIndexAndRange(src, parseOptions:
TestOptions
.RegularWithListPatterns);
6904
var comp = CreateCompilationWithIndexAndRange(src, parseOptions:
TestOptions
.RegularWithListPatterns, options:
TestOptions
.ReleaseExe);
7081
var compilation = CreateCompilation(new[] { source, TestSources.Index, _iTupleSource }, options:
TestOptions
.DebugExe);
7228
var comp = CreateCompilationWithIndexAndRangeAndSpan(new[] { src, TestSources.GetSubArray }, parseOptions:
TestOptions
.RegularWithListPatterns);
7251
var comp = CreateCompilationWithIndexAndRangeAndSpan(src, parseOptions:
TestOptions
.RegularWithListPatterns);
7286
var comp = CreateCompilationWithIndexAndRangeAndSpan(new[] { source, TestSources.GetSubArray }, options:
TestOptions
.DebugExe);
7317
var compilation = CreateCompilationWithIndexAndRange(source, options:
TestOptions
.ReleaseExe);
7382
var comp = CreateCompilationWithIndexAndRangeAndSpan(src, parseOptions:
TestOptions
.RegularWithListPatterns);
7412
var comp = CreateCompilationWithIndexAndRangeAndSpan(src, parseOptions:
TestOptions
.RegularWithListPatterns);
7644
var verifier = CompileAndVerify(new[] { source, TestSources.Index }, options:
TestOptions
.DebugDll);
8345
var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }, options:
TestOptions
.ReleaseExe);
8459
var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }, options:
TestOptions
.ReleaseDll);
Semantics\PatternMatchingTests_Scope.cs (179)
66
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular);
170
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
279
var compilation = CreateCompilation(text, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular);
325
var compilation = CreateCompilation(text, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular);
362
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
398
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
441
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
546
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
667
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
703
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
819
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
936
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
972
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1118
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1241
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1276
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1390
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1448
compilation = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular7_3);
1721
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2029
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2165
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2175
compilation = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular7_3);
2301
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2311
compilation = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular7_3);
2409
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2463
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2530
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2669
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2771
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2778
compilation = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular7_3);
2892
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2935
compilation = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular7_3);
3057
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3098
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3225
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3335
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3420
var compilation = CreateCompilation(source, options:
TestOptions
.DebugDll);
3504
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3592
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3677
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3768
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3858
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3959
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
4055
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
4130
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
4165
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
4207
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe);
4446
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
4831
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
5168
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
5297
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
5332
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
5465
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
5672
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
5879
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
6006
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
6090
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
6173
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
6260
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
6331
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
6404
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
6462
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
6507
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
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);
7050
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
7167
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
7202
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
7348
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
7490
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
7525
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
7684
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
7916
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
8145
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
8403
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
8635
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
8873
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
9121
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular);
9266
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
9478
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
9596
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
9631
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
9764
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe.WithAllowUnsafe(true));
9908
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe.WithAllowUnsafe(true));
10043
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
10155
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
10194
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
10337
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
10516
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
10668
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
10710
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
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);
11656
options:
TestOptions
.DebugExe,
11657
parseOptions:
TestOptions
.Regular);
11715
options:
TestOptions
.DebugExe,
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);
13914
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
Semantics\PatternMatchingTests2.cs (42)
121
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularWithRecursivePatterns);
484
CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularWithoutRecursivePatterns).VerifyDiagnostics(
492
CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics();
777
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular8);
1195
compilation = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
1198
compilation = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
1445
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularWithRecursivePatterns);
1970
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
1991
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
2015
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
2056
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
2093
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
2145
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
2182
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
2204
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
2399
CreateCompilation(source, options:
TestOptions
.ReleaseDll).VerifyDiagnostics();
2400
CreateCompilation(source, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
2434
CreateCompilation(source, options:
TestOptions
.ReleaseDll).VerifyDiagnostics();
2435
CreateCompilation(source, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics();
2461
CreateCompilation(source, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.RegularWithPatternCombinators).VerifyDiagnostics(
2519
CreateCompilation(source, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.RegularWithPatternCombinators).VerifyDiagnostics(
2560
CreateCompilation(source, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.RegularWithPatternCombinators).VerifyDiagnostics(
2598
CreateCompilation(source, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.RegularWithPatternCombinators).VerifyDiagnostics(
2636
CreateCompilation(source, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.RegularWithPatternCombinators).VerifyDiagnostics(
2666
CreateCompilation(source, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.RegularWithPatternCombinators).VerifyDiagnostics(
2701
CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators).VerifyDiagnostics(
2733
CreateCompilation(source, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.RegularWithPatternCombinators).VerifyDiagnostics(
2852
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators).VerifyDiagnostics(
Semantics\PatternMatchingTests3.cs (150)
385
var compilation = CreatePatternCompilation(source, options:
TestOptions
.DebugExe.WithAllowUnsafe(true));
420
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
470
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
501
var compilation = CreateCompilationWithMscorlibAndSpan(source, options:
TestOptions
.DebugDll);
522
var compilation = CreateCompilationWithMscorlibAndSpan(source, options:
TestOptions
.DebugDll);
540
var compilation = CreateCompilationWithMscorlibAndSpan(source, options:
TestOptions
.DebugDll);
593
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable));
636
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable));
679
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable));
722
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable));
746
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable));
769
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable));
812
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable));
854
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable));
902
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable));
961
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable));
989
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable));
1036
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable));
1089
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable));
1142
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable));
1195
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable));
1229
CreateCompilation(source, options:
TestOptions
.DebugExe.WithAllowUnsafe(true), parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
1243
CreateCompilation(source, options:
TestOptions
.DebugExe.WithAllowUnsafe(true), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics();
1355
CompileAndVerify(CreateCompilation(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(), expectedOutput: "0");
1379
CompileAndVerify(CreateCompilation(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(), expectedOutput: "null");
1608
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
1696
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1997
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
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));
3441
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3488
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe.WithAllowUnsafe(true));
3579
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3673
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3707
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3760
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3956
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
4058
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
4101
var compilation = CreatePatternCompilation(source, options:
TestOptions
.DebugDll);
4328
var compilation = CreatePatternCompilation(source, options:
TestOptions
.DebugDll);
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));
5046
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularWithPatternCombinators);
5093
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.RegularWithPatternCombinators);
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));
5536
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularWithPatternCombinators);
5563
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
5585
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
5608
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
5629
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
5654
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
5680
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
5704
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators, targetFramework: TargetFramework.NetCoreApp);
5725
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
5753
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
5791
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
5820
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
5853
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
5874
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
5909
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
5938
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
5967
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
5988
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
6014
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularWithPatternCombinators);
6035
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularWithPatternCombinators);
6076
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularWithPatternCombinators);
6128
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularWithPatternCombinators);
6180
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.RegularWithPatternCombinators);
6723
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
6819
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
6860
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
6901
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
6926
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
6953
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
6986
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
7013
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
7038
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
7067
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
7097
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
7124
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
7158
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
7192
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
7225
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
7249
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
7273
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
7296
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
7315
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
7335
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
7361
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
7389
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
7418
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
7641
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
Semantics\PatternMatchingTests4.cs (39)
90
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
240
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe);
275
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe);
866
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe);
903
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe);
940
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe);
3213
var compilation = CreatePatternCompilation(source, options:
TestOptions
.ReleaseExe);
3356
var compilation = CreatePatternCompilation(source, options:
TestOptions
.DebugExe.WithAllowUnsafe(true));
3383
var compilation = CreatePatternCompilation(source, options:
TestOptions
.DebugExe.WithAllowUnsafe(true));
3409
var compilation = CreatePatternCompilation(source, options:
TestOptions
.DebugExe.WithAllowUnsafe(true));
3430
var compilation = CreatePatternCompilation(source, options:
TestOptions
.DebugDll.WithAllowUnsafe(true));
3465
var compilation = CreatePatternCompilation(source, options:
TestOptions
.DebugDll.WithAllowUnsafe(true));
3485
CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
3503
CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
3522
CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
3727
var compilation = CreatePatternCompilation(source, options:
TestOptions
.DebugDll);
3747
var compilation = CreatePatternCompilation(source, options:
TestOptions
.DebugDll);
3774
var compilation = CreatePatternCompilation(source, options:
TestOptions
.DebugDll);
3831
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
3859
CreateCompilation(source, parseOptions:
TestOptions
.Regular7, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
3861
CreatePatternCompilation(source, options:
TestOptions
.ReleaseDll).VerifyDiagnostics();
3880
CreateCompilation(source, parseOptions:
TestOptions
.Regular7, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
3882
CreatePatternCompilation(source, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
3902
CreateCompilation(source, parseOptions:
TestOptions
.Regular7, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
3904
CreatePatternCompilation(source, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
3924
CreateCompilation(source, parseOptions:
TestOptions
.Regular7, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
3926
CreatePatternCompilation(source, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
3948
CreateCompilation(source, parseOptions:
TestOptions
.Regular7, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
3950
CreatePatternCompilation(source, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
3975
CreateCompilation(source, parseOptions:
TestOptions
.Regular7, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
3977
CreatePatternCompilation(source, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
4155
var comp = CreatePatternCompilation(source,
TestOptions
.DebugDll);
Semantics\PatternMatchingTests5.cs (38)
65
var compilation = CreateCompilation(program, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns, options:
TestOptions
.ReleaseExe);
172
var compilation = CreateCompilation(program, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns, options:
TestOptions
.ReleaseExe);
224
var compilation = CreateCompilation(program, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns, options:
TestOptions
.ReleaseExe);
291
var compilation = CreateCompilation(program, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns, options:
TestOptions
.ReleaseExe);
339
var compilation = CreateCompilation(program, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns);
369
var compilation = CreateCompilation(program, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns);
403
var compilation = CreateCompilation(program, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns);
422
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns);
526
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, DiagnosticDescription.None, parseOptions:
TestOptions
.Regular10);
559
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns);
688
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.Regular10);
717
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns);
745
var compilation = CreateCompilation(program, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns);
786
var comp = CreateCompilation(program, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns);
832
var comp = CreateCompilation(program, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns);
886
var comp = CreateCompilation(program, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns);
975
var compilation = CreateCompilation(program, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns);
1069
var compilation = CreateCompilation(program, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns, options:
TestOptions
.UnsafeDebugDll);
1427
var compilation = CreateCompilation(program, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns);
1477
var compilation = CreateCompilation(program, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns);
1558
var compilation = CreateCompilation(program, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns);
1595
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
1629
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns);
1660
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns);
1695
var compilation = CreateCompilation(program, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns);
1738
var compilation = CreateCompilation(program, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns);
1768
var compilation = CreateCompilation(program, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns);
1800
var compilation = CreateCompilation(program, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns);
1850
CompileAndVerify(program, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns, expectedOutput: @"
1873
var comp = CreateCompilation(program, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns);
1914
var comp = CreateCompilation(program, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns);
3033
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll.WithNullableContextOptions(nullableEnable ? NullableContextOptions.Enable : NullableContextOptions.Disable));
3130
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll.WithNullableContextOptions(nullableEnable ? NullableContextOptions.Enable : NullableContextOptions.Disable));
Semantics\PatternSwitchTests.cs (92)
39
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
68
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
96
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
125
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
161
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
189
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
218
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugExe);
245
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugExe);
273
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
300
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
327
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
348
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
399
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
426
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
452
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
478
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
503
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
531
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
557
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
580
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
603
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
626
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
649
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
669
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
691
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
841
var compilation = CreateCompilation(new[] { source, _iTupleSource }, options:
TestOptions
.DebugExe);
900
var compilation = CreateCompilation(source, options:
TestOptions
.DebugDll);
928
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
954
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
978
CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
983
CreateCompilation(source, options:
TestOptions
.DebugExe).VerifyDiagnostics(
1016
CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
1032
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1078
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1125
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1217
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1348
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1420
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1478
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1558
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1588
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1623
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1688
var compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.Regular8);
1862
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1885
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular);
1920
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular);
1966
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2006
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
2049
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2080
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2109
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2156
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2218
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2274
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
2332
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
2381
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
2445
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe);
2510
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe);
2570
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
2626
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
2663
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
2706
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
2748
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
2778
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
2809
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
2837
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
2865
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
2894
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
2925
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
2956
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
2987
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
3053
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
3100
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
3138
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
3176
source, options:
TestOptions
.ReleaseExe, references: new[] { SystemRuntimeFacadeRef, ValueTupleRef });
3206
source, options:
TestOptions
.ReleaseDll.WithOptimizationLevel(OptimizationLevel.Release), references: new[] { SystemCoreRef, CSharpRef });
3229
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular6);
3276
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular6);
3318
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
3380
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
3439
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
3464
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
3491
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
3521
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
3533
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
Semantics\PrimaryConstructorTests.cs (303)
59
var comp = CreateCompilation(src1, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.ReleaseDll);
66
comp = CreateCompilation(src1, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.ReleaseDll);
69
comp = CreateCompilation(src1, options:
TestOptions
.ReleaseDll);
85
var comp = CreateCompilation(src1, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.ReleaseDll);
92
comp = CreateCompilation(src1, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.ReleaseDll);
99
comp = CreateCompilation(src1, options:
TestOptions
.ReleaseDll);
114
var comp = CreateCompilation(src1, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.ReleaseDll);
121
comp = CreateCompilation(src1, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.ReleaseDll);
124
comp = CreateCompilation(src1, options:
TestOptions
.ReleaseDll);
156
var comp = CreateCompilation(src1, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.ReleaseDll);
163
comp = CreateCompilation(src1, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.ReleaseDll);
166
comp = CreateCompilation(src1, options:
TestOptions
.ReleaseDll);
181
var comp = CreateCompilation(src1, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.ReleaseDll);
191
comp = CreateCompilation(src1, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.ReleaseDll);
198
comp = CreateCompilation(src1, options:
TestOptions
.ReleaseDll);
217
var comp = CreateCompilation(src1, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.ReleaseDll);
224
comp = CreateCompilation(src1, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.ReleaseDll);
227
comp = CreateCompilation(src1, options:
TestOptions
.ReleaseDll);
242
var comp = CreateCompilation(src1, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.ReleaseDll);
252
comp = CreateCompilation(src1, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.ReleaseDll);
259
comp = CreateCompilation(src1, options:
TestOptions
.ReleaseDll);
279
var comp = CreateCompilation(src1, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.ReleaseDll);
289
comp = CreateCompilation(src1, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.ReleaseDll);
296
comp = CreateCompilation(src1, options:
TestOptions
.ReleaseDll);
313
var comp = CreateCompilation(src1, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.ReleaseDll);
320
comp = CreateCompilation(src1, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.ReleaseDll);
323
comp = CreateCompilation(src1, options:
TestOptions
.ReleaseDll);
334
var comp = CreateCompilation(src1, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.ReleaseDll);
337
comp = CreateCompilation(src1, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.ReleaseDll);
340
comp = CreateCompilation(src1, options:
TestOptions
.ReleaseDll);
351
var comp = CreateCompilation(src1, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.ReleaseDll);
354
comp = CreateCompilation(src1, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.ReleaseDll);
357
comp = CreateCompilation(src1, options:
TestOptions
.ReleaseDll);
985
var comp = CreateCompilation(src, options:
TestOptions
.DebugExe);
2837
var comp = CreateCompilation(src, options:
TestOptions
.DebugExe);
2889
var comp = CreateCompilation(src, options:
TestOptions
.DebugExe);
2914
var comp = CreateCompilation(src, options:
TestOptions
.DebugExe);
2940
var comp = CreateCompilation(src, options:
TestOptions
.DebugExe);
2982
var comp = CreateCompilation(src, options:
TestOptions
.DebugExe);
3006
var comp = CreateCompilation(src, options:
TestOptions
.DebugExe);
3189
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
3193
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular12);
3197
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular11);
6047
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
6080
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
6127
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
6164
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
6186
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
6207
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
6230
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
6257
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
6282
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
6320
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
6350
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
6384
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
6418
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
6453
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
6488
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
6528
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
6568
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
6611
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
6652
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
6697
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
6739
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
6805
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net60);
6827
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview.WithFeature("run-nullable-analysis", "never"), targetFramework: TargetFramework.NetCoreApp);
6853
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview.WithFeature("run-nullable-analysis", "never"), targetFramework: TargetFramework.NetCoreApp);
7790
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
8752
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
9158
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
9337
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
9360
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
9415
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
9452
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
9474
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
9516
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
9538
var comp1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll);
9572
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
9877
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
9907
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
9937
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
9990
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
10013
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
10035
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
10145
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
10184
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
10219
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
10262
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
10304
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
10335
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
10375
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
10407
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
10443
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
10482
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
10521
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
10557
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
10593
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
10632
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
10671
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
10714
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
10746
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
10782
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
10818
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
10869
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
10913
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
10957
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
11000
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
11043
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
11085
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
11130
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
11165
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
11192
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
11230
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
11257
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
11295
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
11330
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
11362
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
11393
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
11436
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
11479
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
11511
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
11554
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
11597
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
11777
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
11828
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
11905
var comp = CreateCompilationWithIL(source, ilSource, options:
TestOptions
.ReleaseDll);
11941
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseDll);
11988
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
12029
var comp1 = CreateCompilation(source1, options:
TestOptions
.ReleaseExe);
12109
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
12149
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
12192
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
12242
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
12315
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
12392
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
12448
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
12485
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
12517
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
12540
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
12564
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
12596
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
12619
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
12664
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
12687
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
12716
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
12739
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
12778
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
12829
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
12870
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
12901
}", options:
TestOptions
.UnsafeDebugDll).VerifyEmitDiagnostics(
12935
}", options:
TestOptions
.UnsafeDebugDll).VerifyEmitDiagnostics(
12963
}", options:
TestOptions
.UnsafeDebugDll).VerifyEmitDiagnostics(
12989
}", options:
TestOptions
.UnsafeDebugDll).VerifyEmitDiagnostics(
13014
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(
13039
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics();
13058
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(
13085
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(
13117
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(
13149
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(
13183
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(
13221
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(
13265
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(
13298
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(
13335
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(
13396
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(expected);
13426
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(
13489
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(expected);
13520
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(
13562
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(
14007
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
14048
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
14093
var verifier = CompileAndVerify(source, expectedOutput: " 0 1 2 3 2 3", options:
TestOptions
.DebugExe);
14412
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
14560
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
14590
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
14594
comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
14658
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, options:
TestOptions
.ReleaseExe);
14835
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
14852
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
14975
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
15060
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, options:
TestOptions
.ReleaseExe);
15267
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
15289
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
15432
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
15710
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
15732
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
15753
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
15774
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
15832
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
16062
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
16083
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
16108
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
16126
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
16152
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
16178
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
16196
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
16214
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
16240
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll, targetFramework: TargetFramework.NetCoreApp);
16266
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll, targetFramework: TargetFramework.NetCoreApp);
16292
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
16318
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
16339
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
16370
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
16404
var comp1 = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
16586
var comp2 = CreateCompilation(source, options:
TestOptions
.DebugExe);
16818
var comp1 = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
17075
var comp2 = CreateCompilation(source, options:
TestOptions
.DebugExe);
17363
var comp1 = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
17421
var comp2 = CreateCompilation(source, options:
TestOptions
.DebugExe);
17517
var comp1 = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
17606
var comp2 = CreateCompilation(source, options:
TestOptions
.DebugExe);
17737
var comp1 = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
17946
var comp2 = CreateCompilation(source, options:
TestOptions
.DebugExe);
18208
var comp1 = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
18502
var comp2 = CreateCompilation(source, options:
TestOptions
.DebugExe);
18844
var comp1 = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
19014
var comp2 = CreateCompilation(source, options:
TestOptions
.DebugExe);
19237
var comp1 = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
19311
var comp2 = CreateCompilation(source, options:
TestOptions
.DebugExe);
19464
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
19547
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
19596
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
19669
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
19694
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
19724
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
19749
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
19929
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
19952
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
20064
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseDll);
20129
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseDll);
20164
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
20467
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
20501
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
20593
var comp = CreateCompilation(src1, parseOptions:
TestOptions
.RegularPreview);
20626
var comp = CreateCompilation(src1, parseOptions:
TestOptions
.RegularPreview);
20667
var comp = CreateCompilation(src1, parseOptions:
TestOptions
.RegularPreview);
20711
var comp = CreateCompilation(src1, parseOptions:
TestOptions
.RegularPreview);
20758
var comp = CreateCompilation(src1, parseOptions:
TestOptions
.RegularPreview);
20814
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
20846
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
20878
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
20910
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
20932
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
20954
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
20983
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
21005
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
21039
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
21076
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
21110
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
21147
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
21182
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
21217
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
21252
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
21285
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
21316
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
21345
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
21385
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
21416
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
21453
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
21502
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
21545
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
21584
var comp = CreateCompilation(source1 + source2 + source3, options:
TestOptions
.ReleaseDll);
21594
comp = CreateCompilation(source2 + source1 + source3, options:
TestOptions
.ReleaseDll);
21626
var comp = CreateCompilation(new[] { source1, source2, source3 }, options:
TestOptions
.ReleaseDll);
21667
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
21732
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll, targetFramework: TargetFramework.NetCoreApp);
21793
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll, targetFramework: TargetFramework.NetCoreApp);
21854
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll, targetFramework: TargetFramework.NetCoreApp);
21890
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
21909
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll);
21928
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
21977
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
22006
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
22021
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
22042
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
22068
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
22094
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
22125
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
22147
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
22192
var comp = CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.ReleaseDll);
22258
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
Semantics\RecordTests.cs (475)
25
parseOptions:
TestOptions
.RegularPreview);
34
parseOptions:
TestOptions
.RegularPreview,
51
var comp = CreateCompilation(src1, parseOptions:
TestOptions
.Regular8, options:
TestOptions
.ReleaseDll);
63
comp = CreateCompilation(src2, parseOptions:
TestOptions
.Regular8, options:
TestOptions
.ReleaseDll);
75
comp = CreateCompilation(src3, parseOptions:
TestOptions
.Regular8, options:
TestOptions
.ReleaseDll);
94
comp = CreateCompilation(src1, options:
TestOptions
.ReleaseDll);
104
comp = CreateCompilation(src2, parseOptions:
TestOptions
.Regular9);
110
comp = CreateCompilation(new[] { src3, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
144
var comp = CreateCompilation(src1, parseOptions:
TestOptions
.Regular8);
157
comp = CreateCompilation(src2, parseOptions:
TestOptions
.Regular8);
167
comp = CreateCompilation(src3, parseOptions:
TestOptions
.Regular8);
200
var comp = CreateCompilation(src, parseOptions:
TestOptions
.Regular8, options:
TestOptions
.ReleaseDll);
228
comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseDll);
235
comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular10, options:
TestOptions
.ReleaseDll);
780
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
800
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular10);
855
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
1054
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular10);
1190
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
1209
comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular10);
1249
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options:
TestOptions
.UnsafeDebugDll);
1302
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options:
TestOptions
.UnsafeDebugDll);
1352
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options:
TestOptions
.UnsafeDebugDll);
1411
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options:
TestOptions
.UnsafeDebugExe);
1448
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options:
TestOptions
.UnsafeDebugDll);
1604
var verifier = CompileAndVerify(src, expectedOutput: "True", parseOptions:
TestOptions
.Regular10);
1714
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options:
TestOptions
.DebugExe);
2423
parseOptions:
TestOptions
.Regular9,
2468
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
2483
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
2618
var comp = CreateCompilationWithIL(new[] { src, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
2700
var comp = CreateCompilationWithIL(new[] { src, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
2713
comp = CreateCompilationWithIL(new[] { src, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular10);
2811
comp = CreateCompilation(src, parseOptions:
TestOptions
.Regular8);
2818
comp = CreateCompilation(src, parseOptions:
TestOptions
.Regular8, options:
TestOptions
.ReleaseDll.WithWarningLevel(6));
3155
var comp = CreateCompilation(src, options:
TestOptions
.DebugExe);
3414
var comp = CreateCompilationWithIL(src, il, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
3633
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
3736
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
3849
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
3962
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
4074
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
4187
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
4211
var comp2Ref = CreateCompilation(new[] { source2, IsExternalInitTypeDefinition }, references: new[] { comp1Ref }, parseOptions:
TestOptions
.Regular9).EmitToImageReference();
4236
var comp1Ref = CreateCompilation(new[] { source1, IsExternalInitTypeDefinition }, assemblyName: "Clone_12", parseOptions:
TestOptions
.Regular9).EmitToImageReference();
4242
var comp2Ref = CreateCompilation(new[] { source2, IsExternalInitTypeDefinition }, references: new[] { comp1Ref }, parseOptions:
TestOptions
.Regular9).EmitToImageReference();
4256
var comp3 = CreateCompilation(new[] { source3, IsExternalInitTypeDefinition }, references: new[] { comp2Ref }, parseOptions:
TestOptions
.Regular9);
4271
var comp1Ref = CreateCompilation(new[] { source1, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9).EmitToImageReference();
4277
var comp2Ref = CreateCompilation(new[] { source2, IsExternalInitTypeDefinition }, assemblyName: "Clone_13", references: new[] { comp1Ref }, parseOptions:
TestOptions
.Regular9).EmitToImageReference();
4283
var comp3Ref = CreateCompilation(new[] { source3, IsExternalInitTypeDefinition }, references: new[] { comp1Ref, comp2Ref }, parseOptions:
TestOptions
.Regular9).EmitToImageReference();
4295
var comp4 = CreateCompilation(new[] { source4, IsExternalInitTypeDefinition }, references: new[] { comp1Ref, comp3Ref }, parseOptions:
TestOptions
.Regular9);
4311
var comp5 = CreateCompilation(new[] { source4, IsExternalInitTypeDefinition }, references: new[] { comp3Ref }, parseOptions:
TestOptions
.Regular9);
4341
var comp2Ref = CreateCompilation(new[] { source2, IsExternalInitTypeDefinition }, references: new[] { comp1Ref }, parseOptions:
TestOptions
.Regular9).EmitToImageReference();
4366
var comp1Ref = CreateCompilation(new[] { source1, IsExternalInitTypeDefinition }, assemblyName: "Clone_15", parseOptions:
TestOptions
.Regular9).EmitToImageReference();
4372
var comp2Ref = CreateCompilation(new[] { source2, IsExternalInitTypeDefinition }, references: new[] { comp1Ref }, parseOptions:
TestOptions
.Regular9).EmitToImageReference();
4386
var comp3 = CreateCompilation(new[] { source3, IsExternalInitTypeDefinition }, references: new[] { comp2Ref }, parseOptions:
TestOptions
.Regular9);
4428
var comp1Ref = CreateCompilation(new[] { source1, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9).EmitToImageReference();
4434
var comp2Ref = CreateCompilation(new[] { source2, IsExternalInitTypeDefinition }, assemblyName: "Clone_16", references: new[] { comp1Ref }, parseOptions:
TestOptions
.Regular9).EmitToImageReference();
4440
var comp3Ref = CreateCompilation(new[] { source3, IsExternalInitTypeDefinition }, references: new[] { comp1Ref, comp2Ref }, parseOptions:
TestOptions
.Regular9).EmitToImageReference();
4452
var comp4 = CreateCompilation(new[] { source4, IsExternalInitTypeDefinition }, references: new[] { comp1Ref, comp3Ref }, parseOptions:
TestOptions
.Regular9);
4477
var comp5 = CreateCompilation(new[] { source4, IsExternalInitTypeDefinition }, references: new[] { comp3Ref }, parseOptions:
TestOptions
.Regular9);
4595
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
4698
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
4898
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
4916
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
4991
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
5068
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
5235
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
5267
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
5302
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options:
TestOptions
.DebugExe);
5327
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options:
TestOptions
.DebugExe);
5347
var comp = CreateCompilation(src, options:
TestOptions
.DebugExe);
5374
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options:
TestOptions
.DebugExe);
5453
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
5508
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
5547
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
5588
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
5654
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
5717
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
5766
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
5788
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
5883
var comp = CreateCompilation(src, parseOptions: usePreview ?
TestOptions
.Regular10 :
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
5914
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
5937
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
5963
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
6006
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
6047
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
6088
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
6128
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
6152
var comp = CreateCompilation(new[] { src1, src2, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
6176
var comp = CreateCompilation(new[] { src1, src2, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
6336
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
6405
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
6477
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
6549
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
6621
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
6699
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
6761
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
6845
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
6994
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
7004
comp = CreateCompilationWithIL(new[] { source2, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
7082
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
7160
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
7187
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
7271
parseOptions: usePreview ?
TestOptions
.Regular10 :
TestOptions
.Regular9);
7300
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
7320
var comp = CreateCompilation(src, parseOptions: usePreview ?
TestOptions
.Regular10 :
TestOptions
.Regular9);
7487
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
7587
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
7612
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
8813
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
9807
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
9925
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
10585
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
10796
var comp = CreateCompilation(new[] { sourceA, sourceB, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
10826
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
10874
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
10958
var compB = CreateCompilation(new[] { sourceB, IsExternalInitTypeDefinition }, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
11029
var compB = CreateCompilation(new[] { sourceB, IsExternalInitTypeDefinition }, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
11119
var compB = CreateCompilation(new[] { sourceB, IsExternalInitTypeDefinition }, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
11331
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
11545
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
11781
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
12070
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
12196
var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions:
TestOptions
.Regular9);
12281
var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
12360
var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
12465
var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
12522
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
12577
var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions:
TestOptions
.Regular9);
12634
var compB = CreateCompilation(RuntimeUtilities.IsCoreClrRuntime ? sourceB : new[] { sourceB, IsExternalInitTypeDefinition }, references: new[] { refA }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.NetLatest);
12686
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
12720
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
12903
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
12946
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
13004
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
13059
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
13181
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
13221
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
13308
var compB = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
13321
var compC = CreateCompilation(sourceC, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
13340
var compA = CreateCompilation(new[] { sourceA, IsExternalInitTypeDefinition }, assemblyName: "AssemblyA", parseOptions:
TestOptions
.Regular9);
13346
var compB = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9, assemblyName: "AssemblyB");
13355
var compC = CreateCompilation(sourceC, references: new[] { refA }, parseOptions:
TestOptions
.Regular9, assemblyName: "AssemblyB");
13358
var compB2 = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9, assemblyName: "AssemblyB2");
13500
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
13587
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
13599
var comp2 = CreateCompilationWithIL(new[] { source2, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
13672
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
13852
parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
13931
parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
13980
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
14006
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
14039
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
14072
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
14449
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
14462
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
15722
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: usePreview ?
TestOptions
.Regular10 :
TestOptions
.Regular9);
15934
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
16040
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
16140
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
16240
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
16281
var comp = CreateEmptyCompilation(source0, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
16290
comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions:
TestOptions
.Regular9.WithNoRefSafetyRulesAttribute());
16472
var comp = CreateCompilationWithIL(new[] { source1, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
16479
comp = CreateCompilationWithIL(new[] { source2, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
16486
comp = CreateCompilationWithIL(new[] { source1 + source3, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
16493
comp = CreateCompilationWithIL(new[] { source1 + source4, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
16500
comp = CreateCompilationWithIL(new[] { source2 + source3, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
16507
comp = CreateCompilationWithIL(new[] { source2 + source4, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
16607
var comp = CreateCompilationWithIL(new[] { source1, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
16618
comp = CreateCompilationWithIL(new[] { source2, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
16718
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
16729
comp = CreateCompilationWithIL(new[] { source2, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
16966
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
16977
comp = CreateCompilationWithIL(new[] { source2, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
17078
var comp = CreateCompilationWithIL(new[] { source2, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
17185
var comp = CreateCompilationWithIL(new[] { source2, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
17230
var comp = CreateEmptyCompilation(source0, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
17240
comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions:
TestOptions
.Regular9.WithNoRefSafetyRulesAttribute());
17326
var comp = CreateEmptyCompilation(source0, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
17336
comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions:
TestOptions
.Regular9.WithNoRefSafetyRulesAttribute());
17422
var comp = CreateEmptyCompilation(source0, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
17431
comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions:
TestOptions
.Regular9.WithNoRefSafetyRulesAttribute());
17581
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
17681
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
17787
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
17984
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
18038
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
18077
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
18112
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseDll);
18147
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
18189
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseDll);
18223
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseDll);
18259
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
18301
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
18363
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
18390
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseDll);
18416
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseDll);
18454
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
18483
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseDll);
18507
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseDll);
18580
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseDll);
18613
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
18652
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
18688
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
18790
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
18821
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseDll);
18861
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
18905
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
18949
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseDll);
18972
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseDll);
19020
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options: modifiers == "abstract " ?
TestOptions
.ReleaseDll :
TestOptions
.ReleaseExe);
19093
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options: modifiers == "abstract " ?
TestOptions
.ReleaseDll :
TestOptions
.ReleaseExe);
19144
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseDll);
19161
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseDll);
19191
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseDll);
19228
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseDll);
19301
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseDll);
19458
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
19499
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseDll);
19626
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
19745
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
19955
var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions:
TestOptions
.Regular9);
20031
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
20062
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
20131
var comp = CreateCompilation(src, options:
TestOptions
.DebugExe);
20283
var comp = CreateCompilation(src, options:
TestOptions
.DebugExe);
22524
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
22693
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
22806
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
22912
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
23019
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
23366
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
23533
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
23567
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
23714
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
23754
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
23805
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
23831
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
23893
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseDll);
23909
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseDll);
23929
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseDll);
23998
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
24058
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
24116
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
24179
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
24274
var comp = CreateEmptyCompilation(source0, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
24282
comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions:
TestOptions
.Regular9.WithNoRefSafetyRulesAttribute());
24339
var comp = CreateEmptyCompilation(source0, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
24347
comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions:
TestOptions
.Regular9.WithNoRefSafetyRulesAttribute());
24409
var comp = CreateEmptyCompilation(source0, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
24418
comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions:
TestOptions
.Regular9.WithNoRefSafetyRulesAttribute());
24488
var comp = CreateEmptyCompilation(source0, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
24502
comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions:
TestOptions
.Regular9.WithNoRefSafetyRulesAttribute());
24615
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
24869
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
24914
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
24941
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
24961
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
24998
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
25032
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
25097
parseOptions:
TestOptions
.Regular9,
25100
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
25157
parseOptions:
TestOptions
.Regular9,
25160
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
25234
parseOptions:
TestOptions
.Regular9,
25237
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
25291
parseOptions:
TestOptions
.Regular9,
25294
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
25366
parseOptions:
TestOptions
.Regular9,
25369
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
25450
parseOptions:
TestOptions
.Regular9,
25453
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
25520
parseOptions:
TestOptions
.Regular9,
25523
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
25563
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition, NotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
25588
parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe, verify: Verification.Skipped /* init-only */);
25611
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
27691
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9)
27896
var compDebug = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options:
TestOptions
.DebugExe);
27897
var compRelease = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options:
TestOptions
.ReleaseExe);
27919
var compDebug = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options:
TestOptions
.DebugExe);
27920
var compRelease = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options:
TestOptions
.ReleaseExe);
28109
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options:
TestOptions
.DebugExe);
28132
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
28179
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
28222
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithDocumentationComments, assemblyName: "Test");
28284
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
28335
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
28370
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
28400
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
28429
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
28460
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
28493
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
28539
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
28577
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
28624
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
28671
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
28719
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
28767
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
28819
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
28872
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
28929
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
28979
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
29037
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
29094
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
29165
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
29190
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
29215
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
29241
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
29248
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
29280
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
29315
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
29340
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
29368
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
29406
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
29444
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
29475
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
29485
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
29548
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview);
29579
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview);
29600
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview);
29613
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview);
29645
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
29648
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
29677
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
29680
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
29698
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
29725
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
29763
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
29786
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
29823
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
29855
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
29881
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
29910
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
29934
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.RegularPreview);
29958
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.RegularPreview);
30193
var compB = CreateCompilation(sourceB, references: new[] { refA }, options:
TestOptions
.ReleaseDll.WithSpecificDiagnosticOptions("CS1701", ReportDiagnostic.Suppress), parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.NetCoreApp);
30307
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net60);
30366
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithFeature("run-nullable-analysis", "never"), targetFramework: TargetFramework.NetCoreApp);
30390
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithFeature("run-nullable-analysis", "never"), targetFramework: TargetFramework.NetCoreApp);
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (12)
EndToEndTests.cs (12)
167
var options =
TestOptions
.DebugDll.WithConcurrentBuild(false);
248
var options =
TestOptions
.DebugDll.WithConcurrentBuild(false);
323
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe.WithConcurrentBuild(false));
357
var options =
TestOptions
.DebugDll.WithConcurrentBuild(concurrent);
449
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll.WithConcurrentBuild(false));
578
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll.WithConcurrentBuild(false));
677
var verifier = CompileAndVerify(files.ToArrayAndFree(), parseOptions:
TestOptions
.Regular.WithFeature("InterceptorsNamespaces", "global"), expectedOutput: makeExpectedOutput());
760
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll.WithConcurrentBuild(false));
796
var parseOptions =
TestOptions
.RegularPreview;
797
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
813
driverOptions:
TestOptions
.GeneratorDriverOptions);
861
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe.WithConcurrentBuild(false));
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (109)
CodeActions\AbstractCSharpCodeActionTest_NoEditor.cs (1)
14
protected override ParseOptions GetScriptOptions() =>
TestOptions
.Script;
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (2)
52
=> parameters.WithCompilationOptions((parameters.compilationOptions ??
TestOptions
.DebugDll).WithReportSuppressedDiagnostics(true));
1062
var compilationOptions =
TestOptions
.DebugDll.WithSpecificDiagnosticOptions(
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (2)
456
var experimental =
TestOptions
.Regular.WithFeatures(experimentalFeatures);
506
var experimental =
TestOptions
.Regular.WithFeatures(featuresToEnable);
EncapsulateField\EncapsulateFieldTests.cs (1)
904
await TestAllOptionsOffAsync(host, text, expected, new CodeAnalysis.CSharp.CSharpParseOptions(),
TestOptions
.ReleaseExe);
ExtractMethod\ExtractLocalFunctionTests.cs (17)
747
parseOptions:
TestOptions
.Regular, index: CodeActionIndex);
848
parseOptions:
TestOptions
.Regular, index: CodeActionIndex);
2061
""",
TestOptions
.Regular7_1, index: CodeActionIndex);
2092
""",
TestOptions
.Regular7_1, index: CodeActionIndex);
2123
""",
TestOptions
.Regular7_1, index: CodeActionIndex);
3572
""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement), parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3)));
3603
""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement), parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp7)));
3634
""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement), parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp8)));
3665
""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement), parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.Latest)));
4119
await TestExactActionSetOfferedAsync(code, [FeaturesResources.Extract_method], new TestParameters(parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp6)));
4135
await TestExactActionSetOfferedAsync(code, [FeaturesResources.Extract_method], new TestParameters(parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp5)));
5424
await TestAsync(code, expected,
TestOptions
.Script.WithLanguageVersion(LanguageVersion.CSharp9), index: 1);
5576
await TestAsync(code, expected,
TestOptions
.Script.WithLanguageVersion(LanguageVersion.CSharp7), index: CodeActionIndex);
5625
await TestAsync(code, expected,
TestOptions
.Script.WithLanguageVersion(LanguageVersion.CSharp7), index: CodeActionIndex);
5676
await TestAsync(code, expected,
TestOptions
.Script.WithLanguageVersion(LanguageVersion.CSharp7), index: CodeActionIndex);
5713
await TestAsync(code, expected,
TestOptions
.Script.WithLanguageVersion(LanguageVersion.CSharp7), index: CodeActionIndex);
5803
await TestAsync(code, expected,
TestOptions
.Regular, index: CodeActionIndex);
ExtractMethod\ExtractMethodTests2.cs (5)
999
parseOptions:
TestOptions
.Regular);
1101
parseOptions:
TestOptions
.Regular);
2404
""",
TestOptions
.Regular7_1);
2435
""",
TestOptions
.Regular7_1);
2466
""",
TestOptions
.Regular7_1);
InlineTemporary\InlineTemporaryTests.cs (7)
4041
""", parseOptions:
TestOptions
.Regular7);
4122
""", parseOptions:
TestOptions
.Regular7);
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\InteractiveIntroduceVariableTests.cs (1)
27
=> TestAsync(initial, expected,
TestOptions
.Script, null, index);
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);
685
TestOptions
.Regular);
755
TestOptions
.Regular);
825
TestOptions
.Regular);
1628
TestOptions
.Regular);
1711
TestOptions
.Regular);
1937
TestOptions
.Regular);
2014
TestOptions
.Regular);
RemoveUnusedVariable\RemoveUnusedVariableTests.cs (1)
780
""",
TestOptions
.Regular);
src\Analyzers\CSharp\Tests\AddParameter\AddParameterTests.cs (5)
2815
""", parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp9));
2925
""", parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp9));
2941
""", parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp12));
2967
""", parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp9));
2983
""", 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\ImplementAbstractClass\ImplementAbstractClassTests.cs (6)
567
parseOptions:
TestOptions
.Regular7);
1798
parseOptions:
TestOptions
.Regular7);
2159
""", parseOptions:
TestOptions
.RegularPreview);
2190
""", parseOptions:
TestOptions
.RegularPreview);
2221
""", parseOptions:
TestOptions
.RegularPreview);
2250
""", parseOptions:
TestOptions
.RegularPreview);
src\Analyzers\CSharp\Tests\RemoveUnusedLocalFunction\RemoveUnusedLocalFunctionTests.cs (1)
154
""",
TestOptions
.Regular);
src\Analyzers\CSharp\Tests\UseAutoProperty\UseAutoPropertyTests.cs (1)
109
""", new TestParameters(
TestOptions
.RegularPreview));
src\Analyzers\CSharp\Tests\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzerTests.cs (1)
657
var testParameters = new TestParameters(options: options, parseOptions:
TestOptions
.Regular8);
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));
UsePatternCombinators\CSharpUsePatternCombinatorsDiagnosticAnalyzerTests.cs (2)
25
private static readonly ParseOptions CSharp9 =
TestOptions
.RegularPreview.WithLanguageVersion(LanguageVersion.CSharp9);
146
await TestAllMissingOnExpressionAsync("o == 1 || o == 2", parseOptions:
TestOptions
.Regular8);
Wrapping\ParameterWrappingTests.cs (4)
1242
""", new TestParameters(
TestOptions
.RegularPreview));
1253
""", new TestParameters(
TestOptions
.RegularPreview));
1264
""", new TestParameters(
TestOptions
.RegularPreview));
1275
""", new TestParameters(
TestOptions
.RegularPreview));
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (150)
IOperation\FunctionPointerOperations.cs (2)
19
return CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular9);
IOperation\IOperationTests.cs (6)
257
}", options:
TestOptions
.Regular);
349
}", options:
TestOptions
.Regular);
405
var compilation = CreateCompilation(text, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular);
505
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
IOperation\IOperationTests_IAddressOfOperation.cs (2)
60
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, compilationOptions:
TestOptions
.UnsafeDebugDll);
140
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics,
TestOptions
.UnsafeDebugDll);
IOperation\IOperationTests_IAnonymousFunctionExpression.cs (1)
482
parseOptions:
TestOptions
.Regular8
IOperation\IOperationTests_IArgument.cs (8)
2456
var compilation = CreateEmptyCompilation(source, options: Test.Utilities.
TestOptions
.ReleaseDll);
2520
var compilation = CreateEmptyCompilation(source, options: Test.Utilities.
TestOptions
.ReleaseDll);
2608
var compilation = CreateEmptyCompilation(source, options: Test.Utilities.
TestOptions
.ReleaseDll);
2664
var compilation = CreateEmptyCompilation(source, options: Test.Utilities.
TestOptions
.ReleaseDll);
2722
var compilation = CreateEmptyCompilation(source, options: Test.Utilities.
TestOptions
.ReleaseDll);
2807
var compilation = CreateEmptyCompilation(source, options: Test.Utilities.
TestOptions
.ReleaseDll);
3861
var compilation = CreateEmptyCompilation(source, options: Test.Utilities.
TestOptions
.ReleaseDll);
3956
var compilation = CreateEmptyCompilation(source, options: Test.Utilities.
TestOptions
.ReleaseDll);
IOperation\IOperationTests_IConversionExpression.cs (6)
550
parseOptions:
TestOptions
.Regular7_1,
2934
compilationOptions:
TestOptions
.UnsafeReleaseDll,
2966
compilationOptions:
TestOptions
.UnsafeReleaseDll,
3002
compilationOptions:
TestOptions
.UnsafeReleaseDll,
3037
compilationOptions:
TestOptions
.UnsafeReleaseDll,
3450
comp = CreateCompilationWithSpan(source, parseOptions:
TestOptions
.Regular12);
IOperation\IOperationTests_IDeconstructionAssignmentOperation.cs (4)
418
VerifyOperationTreeAndDiagnosticsForTest<BlockSyntax>(source, expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
482
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
552
VerifyOperationTreeAndDiagnosticsForTest<BlockSyntax>(source, expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
628
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
IOperation\IOperationTests_IDelegateCreationExpression.cs (7)
530
parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates);
558
}, parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates);
759
parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates);
787
}, parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates);
1171
}, parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates);
1511
parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates);
2045
var comp = CreateCompilation(code, options:
TestOptions
.UnsafeReleaseExe);
IOperation\IOperationTests_IFieldReferenceExpression.cs (7)
75
parseOptions:
TestOptions
.Script);
101
parseOptions:
TestOptions
.Script);
125
parseOptions:
TestOptions
.Script);
151
parseOptions:
TestOptions
.Script);
176
parseOptions:
TestOptions
.Script);
295
VerifyOperationTreeAndDiagnosticsForTest<AssignmentExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, compilationOptions:
TestOptions
.UnsafeDebugDll);
335
VerifyOperationTreeAndDiagnosticsForTest<AssignmentExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, compilationOptions:
TestOptions
.UnsafeDebugDll);
IOperation\IOperationTests_IFixedStatement.cs (10)
88
compilationOptions:
TestOptions
.UnsafeDebugDll);
168
compilationOptions:
TestOptions
.UnsafeDebugDll);
257
compilationOptions:
TestOptions
.UnsafeDebugDll);
315
compilationOptions:
TestOptions
.UnsafeDebugDll);
383
compilationOptions:
TestOptions
.UnsafeDebugDll);
467
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, compilationOptions:
TestOptions
.UnsafeDebugDll);
562
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, compilationOptions:
TestOptions
.UnsafeDebugDll);
688
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
784
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedGraph, expectedDiagnostics, compilationOptions:
TestOptions
.UnsafeDebugDll);
915
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedGraph, expectedDiagnostics, compilationOptions:
TestOptions
.UnsafeDebugDll);
IOperation\IOperationTests_IForEachLoopStatement.cs (23)
1514
VerifyOperationTreeForTest<ForEachStatementSyntax>(source, expectedOperationTree, parseOptions:
TestOptions
.Regular9);
1567
VerifyOperationTreeForTest<ForEachStatementSyntax>(source, expectedOperationTree, parseOptions:
TestOptions
.Regular9);
1613
VerifyOperationTreeForTest<ForEachStatementSyntax>(source, expectedOperationTree, parseOptions:
TestOptions
.Regular9);
1672
VerifyOperationTreeForTest<ForEachStatementSyntax>(source, expectedOperationTree, parseOptions:
TestOptions
.Regular9);
1725
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions:
TestOptions
.Regular9);
1780
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions:
TestOptions
.Regular9);
1827
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions:
TestOptions
.Regular9);
1894
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions:
TestOptions
.Regular9);
3123
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source + TestSources.Span, expectedFlowGraph, expectedDiagnostics,
TestOptions
.ReleaseDll.WithAllowUnsafe(true));
3212
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source + TestSources.Span, expectedFlowGraph, expectedDiagnostics,
TestOptions
.ReleaseDll.WithAllowUnsafe(true));
3301
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source + TestSources.Span, expectedFlowGraph, expectedDiagnostics,
TestOptions
.ReleaseDll.WithAllowUnsafe(true));
3390
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source + TestSources.Span, expectedFlowGraph, expectedDiagnostics,
TestOptions
.ReleaseDll.WithAllowUnsafe(true));
4680
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.Regular9);
4811
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.Regular9);
4896
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.Regular9);
5066
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.Regular9);
5196
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions:
TestOptions
.Regular9);
5328
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions:
TestOptions
.Regular9);
5414
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions:
TestOptions
.Regular9);
5585
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions:
TestOptions
.Regular9);
6365
var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options:
TestOptions
.DebugExe);
6654
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
IOperation\IOperationTests_IInterpolatedStringOperation.cs (38)
1515
VerifyOperationTreeAndDiagnosticsForTest<VariableDeclaratorSyntax>(new[] { code, handler }, expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
1584
VerifyOperationTreeAndDiagnosticsForTest<VariableDeclaratorSyntax>(new[] { code, handler }, expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
1653
VerifyOperationTreeAndDiagnosticsForTest<VariableDeclaratorSyntax>(new[] { code, handler }, expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
1722
VerifyOperationTreeAndDiagnosticsForTest<VariableDeclaratorSyntax>(new[] { code, handler }, expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
1790
VerifyOperationTreeAndDiagnosticsForTest<VariableDeclaratorSyntax>(new[] { code, InterpolatedStringHandlerAttribute }, expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
1875
VerifyOperationTreeAndDiagnosticsForTest<VariableDeclaratorSyntax>(new[] { code, InterpolatedStringHandlerAttribute }, expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
1930
VerifyOperationTreeAndDiagnosticsForTest<VariableDeclaratorSyntax>(new[] { code, InterpolatedStringHandlerAttribute }, expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
1999
VerifyOperationTreeAndDiagnosticsForTest<VariableDeclaratorSyntax>(new[] { code, handler }, expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
2072
VerifyOperationTreeAndDiagnosticsForTest<VariableDeclaratorSyntax>(new[] { code, handler }, expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
2162
expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
2261
expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
2355
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, handlerType }, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
2458
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, handlerType }, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
2577
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, handlerType }, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
2701
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, handlerType }, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
2776
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, handlerType }, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
2876
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, handlerType }, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
3022
expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
3164
expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
3306
expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
3456
expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
3693
expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
3842
expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
4026
expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
4169
expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
4282
expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
4369
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, handlerType }, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
4464
VerifyOperationTreeAndDiagnosticsForTest<InvocationExpressionSyntax>(new[] { code, InterpolatedStringHandlerAttribute }, expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
4554
VerifyOperationTreeAndDiagnosticsForTest<InvocationExpressionSyntax>(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }, expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
4698
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
4728
VerifyOperationTreeAndDiagnosticsForTest<InterpolatedStringExpressionSyntax>(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }, expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
4921
expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
5012
expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
5206
VerifyOperationTreeAndDiagnosticsForTest<VariableDeclaratorSyntax>(new[] { code, handler }, expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
5262
VerifyOperationTreeAndDiagnosticsForTest<CastExpressionSyntax>(new[] { code, handler }, expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
5539
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
5645
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
5782
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
IOperation\IOperationTests_IIsPatternExpression.cs (8)
1070
VerifyOperationTreeAndDiagnosticsForTest<IsPatternExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns);
1138
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns);
1188
VerifyOperationTreeAndDiagnosticsForTest<IsPatternExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns);
1244
VerifyOperationTreeAndDiagnosticsForTest<IsPatternExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns);
1317
var compilation = CreateCompilation(source, new[] { vbCompilation.EmitToImageReference() }, parseOptions:
TestOptions
.Regular8);
2052
VerifyOperationTreeAndDiagnosticsForTest<IsPatternExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.RegularWithPatternCombinators);
2085
VerifyOperationTreeAndDiagnosticsForTest<IsPatternExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.RegularWithPatternCombinators);
2535
expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns);
IOperation\IOperationTests_INoneOperation.cs (1)
337
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, compilationOptions:
TestOptions
.UnsafeDebugDll);
IOperation\IOperationTests_INoPiaObjectCreationOperation.cs (7)
43
var piaCompilation = CreateCompilation(pia, options:
TestOptions
.ReleaseDll);
102
var piaCompilation = CreateCompilation(pia, options:
TestOptions
.ReleaseDll);
159
var piaCompilation = CreateCompilation(pia, options:
TestOptions
.ReleaseDll);
209
var piaCompilation = CreateCompilation(pia, options:
TestOptions
.ReleaseDll);
301
var piaCompilation = CreateCompilation(pia, options:
TestOptions
.ReleaseDll);
391
var piaCompilation = CreateCompilation(pia, options:
TestOptions
.ReleaseDll);
458
var piaCompilation = CreateCompilation(pia, options:
TestOptions
.ReleaseDll);
IOperation\IOperationTests_IObjectCreationExpression.cs (3)
18
private static readonly CSharpParseOptions ImplicitObjectCreationOptions =
TestOptions
.Regular9;
1399
", options:
TestOptions
.UnsafeReleaseExe);
2227
VerifyOperationTreeAndDiagnosticsForTest<InitializerExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.Regular9);
IOperation\IOperationTests_IPatternSwitchCase.cs (2)
746
VerifyOperationTreeAndDiagnosticsForTest<CasePatternSwitchLabelSyntax>(source, expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.RegularWithPatternCombinators);
781
VerifyOperationTreeAndDiagnosticsForTest<CasePatternSwitchLabelSyntax>(source, expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.RegularWithPatternCombinators);
IOperation\IOperationTests_IPointerIndirectionReferenceOperation.cs (2)
58
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, compilationOptions:
TestOptions
.UnsafeDebugDll);
116
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, compilationOptions:
TestOptions
.UnsafeDebugDll);
IOperation\IOperationTests_ISizeOfExpression.cs (1)
92
VerifyOperationTreeAndDiagnosticsForTest<SizeOfExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, compilationOptions:
TestOptions
.UnsafeReleaseDll);
IOperation\IOperationTests_ISwitchExpression.cs (1)
1689
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularWithPatternCombinators);
IOperation\IOperationTests_ISwitchOperation.cs (6)
3460
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularWithPatternCombinators);
3528
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularWithPatternCombinators);
3623
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularWithPatternCombinators);
3721
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularWithPatternCombinators);
3809
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularWithPatternCombinators);
3880
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularWithPatternCombinators);
IOperation\IOperationTests_ISymbolInitializer.cs (2)
30
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular);
IOperation\IOperationTests_IThrowOperation.cs (2)
2171
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
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 (6817)
Semantics\AccessCheckTests.cs (9)
1050
compilationOptions:
TestOptions
.ReleaseDll);
1064
compilationOptions:
TestOptions
.ReleaseDll,
1457
comp = CreateCompilation(sourceB, references: new[] { refA }, options:
TestOptions
.ReleaseExe, assemblyName: null);
1464
comp = CreateCompilation(sourceB, references: new[] { refA }, options:
TestOptions
.ReleaseExe, assemblyName: "B");
1490
comp = CreateCompilation(sourceB, references: new[] { refA }, options:
TestOptions
.ReleaseExe, assemblyName: null);
1497
comp = CreateCompilation(sourceB, references: new[] { refA }, options:
TestOptions
.ReleaseExe, assemblyName: "B");
1501
comp = CreateCompilation(sourceB, references: new[] { refA }, options:
TestOptions
.ReleaseExe, assemblyName: "B2");
1516
}", options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular9);
Semantics\AmbiguousOverrideTests.cs (1)
1359
var verifier = CompileAndVerify(csharp, new[] { reference }, options:
TestOptions
.ReleaseExe, expectedOutput: @"
Semantics\AnonymousFunctionTests.cs (20)
21
=> CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(expected);
25
options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
26
parseOptions:
TestOptions
.RegularPreview,
40
options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
41
parseOptions:
TestOptions
.RegularPreview,
72
CreateCompilation(source, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
1189
options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
1190
parseOptions:
TestOptions
.Regular9,
1318
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular9);
1357
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular9);
1377
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular9);
1398
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular9);
1446
CompileAndVerify(source, expectedOutput: "123456", parseOptions:
TestOptions
.Regular9);
1560
CompileAndVerify(source, expectedOutput: "123456", parseOptions:
TestOptions
.Regular9);
1581
CompileAndVerify(source, expectedOutput: "hello world", parseOptions:
TestOptions
.Regular9);
1612
CompileAndVerify(source, expectedOutput: "12", parseOptions:
TestOptions
.Regular9);
Semantics\ArglistTests.cs (4)
1543
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
1567
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
1636
options:
TestOptions
.DebugExe,
1659
options:
TestOptions
.DebugExe,
Semantics\AwaitExpressionTests.cs (6)
214
var comp = CreateCompilationWithMscorlib461(text, options:
TestOptions
.ReleaseDll);
242
var comp = CreateCompilationWithMscorlib461(text, options:
TestOptions
.ReleaseDll);
375
CompileAndVerify(text, options:
TestOptions
.ReleaseExe, expectedOutput: "Passed").VerifyDiagnostics();
376
CompileAndVerify(text, options:
TestOptions
.DebugExe, expectedOutput: "Passed").VerifyDiagnostics();
419
CompileAndVerify(text, options:
TestOptions
.ReleaseExe, expectedOutput: "Passed").VerifyDiagnostics();
420
CompileAndVerify(text, options:
TestOptions
.DebugExe, expectedOutput: "Passed").VerifyDiagnostics();
Semantics\BetterCandidates.cs (67)
28
return CreateCompilation(source, options: options, references: references, parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates);
32
Debug.Assert(
TestOptions
.Regular.LanguageVersion >= MessageID.IDS_FeatureImprovedOverloadCandidates.RequiredVersion());
33
return CreateCompilation(source, options: options, references: references, parseOptions:
TestOptions
.Regular);
53
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
58
var compilation = CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics();
80
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
85
var compilation = CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics();
111
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
116
var compilation = CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics();
145
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
150
var compilation = CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics();
178
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
183
var compilation = CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics();
225
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
230
var compilation = CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics();
267
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
275
var compilation = CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
302
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
313
var compilation = CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
357
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
362
var compilation = CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
408
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
413
var compilation = CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
449
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
454
var compilation = CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
477
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
482
var compilation = CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
506
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
511
var compilation = CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
536
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
541
var compilation = CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
567
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
572
CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
596
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
601
CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
626
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
631
CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
657
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
662
CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
687
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
692
var compilation = CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
718
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
726
var compilation = CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
755
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
760
var compilation = CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
786
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
791
var compilation = CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
817
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
822
var compilation = CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
858
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
863
var compilation = CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics();
887
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
892
var compilation = CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
916
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
921
var compilation = CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
945
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseExe.WithAllowUnsafe(true)).VerifyDiagnostics(
950
var compilation = CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseExe.WithAllowUnsafe(true)).VerifyDiagnostics(
1004
CreateCompilationWithoutBetterCandidates(source2, references: new[] { reference1 }, options:
TestOptions
.ReleaseExe.WithAllowUnsafe(true)).VerifyDiagnostics(
1012
CreateCompilationWithBetterCandidates(source2, references: new[] { reference1 }, options:
TestOptions
.ReleaseExe.WithAllowUnsafe(true)).VerifyDiagnostics(
1052
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
1069
var compilation = CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
1153
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
1158
var compilation = CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
1201
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
1206
var compilation = CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
1254
CreateCompilationWithoutBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
1259
var compilation = CreateCompilationWithBetterCandidates(source, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
Semantics\BindingAsyncTasklikeMoreTests.cs (9)
106
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe);
916
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugDll);
1005
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugDll);
1090
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugDll);
1117
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.UnsafeDebugExe);
1588
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
1593
compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1625
var compilation = CreateCompilation(source, parseOptions: useCSharp9 ?
TestOptions
.Regular9 :
TestOptions
.Regular10, targetFramework: TargetFramework.Net70);
Semantics\BindingAsyncTests.cs (20)
697
CreateCompilationWithMscorlib461(source, null,
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
716
CreateCompilationWithMscorlib461(source, null,
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
739
CreateCompilationWithMscorlib461(source, null,
TestOptions
.UnsafeReleaseDll)
766
CreateCompilationWithMscorlib461(source, null,
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
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();
1214
CreateCompilationWithMscorlib461(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
1253
CreateCompilationWithMscorlib461(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
1308
CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Regular7).VerifyDiagnostics(
1505
TestOptions
.UnsafeReleaseDll);
1546
TestOptions
.ReleaseDll).VerifyDiagnostics(
3144
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script);
3163
syntaxTree: SyntaxFactory.ParseSyntaxTree(source0, options:
TestOptions
.Script),
3299
CreateCompilationWithMscorlib461(source, options:
TestOptions
.UnsafeReleaseDll).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\BindingAwaitTests.cs (2)
2762
var comp = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef },
TestOptions
.ReleaseExe);
2834
var comp = CreateCompilationWithMscorlib461(source, new[] { Net40.References.SystemCore, Net40.References.MicrosoftCSharp },
TestOptions
.ReleaseExe);
Semantics\BindingTests.cs (11)
1965
CompileAndVerify(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
1987
CompileAndVerify(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
2038
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
2188
CreateCompilation(source, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
2213
CreateCompilation(source, parseOptions:
TestOptions
.Regular7, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics(
2439
CreateCompilationWithMscorlib461(text, parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates).VerifyDiagnostics(
2506
CreateCompilationWithMscorlib461(text, parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates).VerifyDiagnostics(
2715
var compilation = CreateCompilation(sourceText, options:
TestOptions
.DebugDll);
2771
var compilation = CreateCompilation(sourceText, options:
TestOptions
.DebugDll);
2826
var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceText, options:
TestOptions
.DebugDll);
2875
var compilation = CreateCompilationWithMscorlib40(sourceText, new[] { Net40.References.SystemCore }, options:
TestOptions
.DebugDll);
Semantics\ColorColorTests.cs (8)
1521
var comp = CreateCompilationWithMscorlib40AndSystemCore(text, options:
TestOptions
.DebugExe);
1580
var comp1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll, assemblyName: System.Guid.NewGuid().ToString());
1621
var comp1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll, assemblyName: System.Guid.NewGuid().ToString());
1659
var comp1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll, assemblyName: System.Guid.NewGuid().ToString());
1700
var comp1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll, assemblyName: System.Guid.NewGuid().ToString());
1738
var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe);
1760
CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseDll)
1809
var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseDll);
Semantics\ConditionalOperatorTests.cs (16)
71
TestConditional("true ? T : U", null, parseOptions:
TestOptions
.Regular8,
74
TestConditional("true ? T : U", null, parseOptions:
TestOptions
.Regular8.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()),
77
TestConditional("false ? T : 1", null, parseOptions:
TestOptions
.Regular8,
79
TestConditional("false ? T : 1", null, parseOptions:
TestOptions
.Regular8.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()),
104
TestConditional("false ? GetString : (System.Func<int>)null", null,
TestOptions
.WithoutImprovedOverloadCandidates,
194
TestConditional("1 ? null : null", null, parseOptions:
TestOptions
.Regular8,
197
TestConditional("1 ? null : null", null, parseOptions:
TestOptions
.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()),
715
options:
TestOptions
.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All));
1174
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe);
1246
TestConditionalCore(conditionalExpression, expectedType,
TestOptions
.Regular8, expectedDiagnostics);
1247
TestConditionalCore(conditionalExpression, expectedType,
TestOptions
.Regular8.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()), expectedDiagnostics);
1336
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1391
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
1438
var compilation = CreateCompilation(source, options:
TestOptions
.DebugDll);
1500
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe,
1520
compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
Semantics\ConstantTests.cs (16)
185
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
1582
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe);
3280
CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics(
3362
CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
3516
var comp = CreateCompilation(source.ToString(), options:
TestOptions
.ReleaseExe);
3626
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
3667
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
3688
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
3724
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
3806
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
3834
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
3903
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
3909
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
3977
", parseOptions:
TestOptions
.RegularPreview, expectedOutput: "", symbolValidator: module =>
3998
", parseOptions:
TestOptions
.RegularPreview, expectedOutput: "", symbolValidator: module =>
Semantics\DeconstructionTests.cs (27)
799
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1284
var comp = CreateCompilation(source, assemblyName: "comp", options:
TestOptions
.DebugExe);
1606
var libComp = CreateCompilation(new string[] { libSource }, references: new[] { libMissingRef }, parseOptions:
TestOptions
.Regular).VerifyDiagnostics();
1944
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
2223
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular6);
4089
options:
TestOptions
.UnsafeDebugDll,
4090
parseOptions:
TestOptions
.RegularPreview);
4332
var comp1 = CreateCompilation(source1, parseOptions:
TestOptions
.Script);
4363
var comp2 = CreateCompilation(source2, parseOptions:
TestOptions
.Script);
4597
var comp1 = CreateCompilation(source1, parseOptions:
TestOptions
.Script);
4619
var comp2 = CreateCompilation(source2, parseOptions:
TestOptions
.Script);
4739
var comp1 = CreateCompilation(source1, parseOptions:
TestOptions
.Script);
4749
var comp2 = CreateCompilation(source2, parseOptions:
TestOptions
.Script);
4886
var comp1 = CreateCompilation(source1, parseOptions:
TestOptions
.Script);
4896
var comp2 = CreateCompilation(source2, parseOptions:
TestOptions
.Script);
4968
var comp1 = CreateCompilation(source1, parseOptions:
TestOptions
.Script);
4978
var comp2 = CreateCompilation(source2, parseOptions:
TestOptions
.Script);
5075
var comp1 = CreateCompilation(source1, parseOptions:
TestOptions
.Script);
5085
var comp2 = CreateCompilation(source2, parseOptions:
TestOptions
.Script);
5290
var comp1 = CreateCompilation(source1, parseOptions:
TestOptions
.Script);
5321
var comp2 = CreateCompilation(source2, parseOptions:
TestOptions
.Script);
5577
var comp1 = CreateCompilation(source1, parseOptions:
TestOptions
.Script);
5599
var comp2 = CreateCompilation(source2, parseOptions:
TestOptions
.Script);
5727
var comp1 = CreateCompilation(source1, parseOptions:
TestOptions
.Script);
5755
var comp2 = CreateCompilation(source2, parseOptions:
TestOptions
.Script);
5943
var comp1 = CreateCompilation(source1, parseOptions:
TestOptions
.Script);
5962
var comp2 = CreateCompilation(source2, parseOptions:
TestOptions
.Script);
Semantics\DelegateTypeTests.cs (526)
85
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
100
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
125
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
140
comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
175
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
190
comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
217
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
308
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
323
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
352
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
367
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
393
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
402
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
426
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
435
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
460
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
535
var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.Regular9);
558
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
585
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
600
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
624
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
737
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.ReleaseExe);
783
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.ReleaseExe);
880
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.ReleaseExe);
923
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.ReleaseExe);
981
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
1021
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
1068
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
1199
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.ReleaseExe);
1241
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.ReleaseExe);
1320
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.ReleaseExe);
1366
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.ReleaseExe);
1409
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.ReleaseExe);
1450
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.ReleaseExe);
1542
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.ReleaseExe);
1622
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.ReleaseExe);
1673
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
1723
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
1773
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
1823
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
1873
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
1923
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
1974
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
2019
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
2068
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular12);
2075
comp = CreateCompilation(source, parseOptions: useCSharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
2122
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular12);
2132
comp = CreateCompilation(source, parseOptions: useCSharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
2187
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular12);
2197
comp = CreateCompilation(source, parseOptions: useCSharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
2250
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular12);
2257
comp = CreateCompilation(source, parseOptions: useCSharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
2307
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular12);
2310
comp = CreateCompilation(source, parseOptions: useCSharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
2346
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular12);
2349
comp = CreateCompilation(source, parseOptions: useCSharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
2389
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular12);
2392
comp = CreateCompilation(source, parseOptions: useCSharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
2429
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular12);
2439
comp = CreateCompilation(source, parseOptions: useCSharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
2479
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular12);
2486
comp = CreateCompilation(source, parseOptions: useCSharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
2527
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular12);
2534
comp = CreateCompilation(source, parseOptions: useCSharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
2575
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular12);
2582
comp = CreateCompilation(source, parseOptions: useCSharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
2624
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular12);
2631
comp = CreateCompilation(source, parseOptions: useCSharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
2677
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular12);
2680
comp = CreateCompilation(source, parseOptions: useCSharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
2711
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular12);
2721
comp = CreateCompilation(source, parseOptions: useCSharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
2769
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular12);
2773
comp = CreateCompilation(source, parseOptions: useCSharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
2798
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular12);
3067
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
3072
var comp = CreateCompilation(source, parseOptions: useCSharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview);
3100
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
3105
CreateCompilation(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
3129
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
3134
CreateCompilation(source, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
3211
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
3214
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
3242
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
3273
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
3294
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
3319
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
3340
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
3362
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
3389
CompileAndVerify(new[] { source, s_utils }, parseOptions:
TestOptions
.RegularPreview, expectedOutput: "System.Func<System.Object>, System.Action<System.Object, System.Int32>");
3416
CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput:
3446
CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput:
3466
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
3494
CompileAndVerify(new[] { source, s_utils }, parseOptions:
TestOptions
.RegularPreview, expectedOutput: "System.Action<System.Object>");
3517
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
3550
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular12);
3556
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular13);
3598
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.ReleaseExe);
3646
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular12);
3655
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular13);
3680
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
3706
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
3738
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
3774
CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, references: new[] { CSharpRef }, expectedOutput: "Microsoft.CSharp.RuntimeBinder.RuntimeBinderException");
3799
CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput:
3855
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
3858
comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
3882
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
3885
comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
3917
var comp = CreateCompilation(new[] { sourceB, s_utils }, new[] { refA }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.ReleaseExe);
3951
var comp = CreateCompilation(new[] { sourceB, s_utils }, new[] { refA }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.ReleaseExe);
3983
var comp = CreateCompilation(new[] { source, UnmanagedCallersOnlyAttributeDefinition }, parseOptions:
TestOptions
.RegularPreview);
4017
var comp = CreateCompilation(new[] { source, UnmanagedCallersOnlyAttributeDefinition }, parseOptions:
TestOptions
.RegularPreview);
4077
var comp = CreateEmptyCompilation(sourceB, new[] { refA }, parseOptions:
TestOptions
.RegularPreview);
4178
var comp = CreateEmptyCompilation(sourceB, new[] { refA }, parseOptions:
TestOptions
.RegularPreview);
4252
var comp = CreateEmptyCompilation(sourceB, new[] { refA }, parseOptions:
TestOptions
.RegularPreview);
4343
var comp = CreateEmptyCompilation(sourceB, new[] { refA }, parseOptions:
TestOptions
.RegularPreview);
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());
4722
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: expectedOutput);
4723
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
4751
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput:
4757
CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput:
4787
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput:
4793
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput:
4823
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: @"E.M");
4826
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: @"C.M");
4860
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
4881
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput:
4915
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
4924
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput:
4947
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
4956
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
4988
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "extension, extension, ");
4989
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: "extension, instance, ");
5016
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "extension, extension, ");
5017
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: "extension, instance, ");
5046
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: "extension, extension, ");
5047
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: "extension, instance, ");
5071
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
5096
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
5161
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: expectedOutput);
5162
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
5187
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: expectedOutput);
5188
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
5210
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: expectedOutput);
5211
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
5238
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: expectedOutput);
5239
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
5266
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput:
5296
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
5323
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
5325
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
5355
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
5357
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
5389
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
5391
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
5424
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
5426
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
5454
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: expectedOutput);
5455
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
5483
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: expectedOutput);
5484
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
5504
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: expectedOutput);
5505
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
5527
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: expectedOutput);
5528
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
5550
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: expectedOutput);
5551
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
5573
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: expectedOutput);
5574
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
5597
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: expectedOutput);
5598
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
5640
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: expectedOutput);
5641
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
5671
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: expectedOutput);
5672
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
5693
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
5711
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
5734
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: expectedOutput);
5735
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
5766
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: expectedOutput);
5767
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
5789
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
5806
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
5828
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
5842
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
5864
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
5878
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
5898
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
5910
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
5930
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
5942
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
5965
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
5980
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
6003
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
6015
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
6037
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
6044
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
6066
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
6084
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
6121
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: expectedOutput);
6122
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
6152
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput:
6167
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
6199
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput:
6207
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
6241
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput:
6249
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
6279
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
6281
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
6303
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
6310
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
6361
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: expectedOutput);
6362
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
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),
6818
CreateCompilation([source1, source2], parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
6819
CreateCompilation([source1, source2], parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(expectedDiagnostics);
6833
CompileAndVerify([source1, source3], parseOptions:
TestOptions
.Regular12, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
6834
CompileAndVerify([source1, source3], parseOptions:
TestOptions
.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
6874
CompileAndVerify(source, parseOptions:
TestOptions
.Regular12, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
6875
CompileAndVerify(source, parseOptions:
TestOptions
.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
6915
CompileAndVerify(source, parseOptions:
TestOptions
.Regular12, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
6916
CompileAndVerify(source, parseOptions:
TestOptions
.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
6956
CompileAndVerify(source, parseOptions:
TestOptions
.Regular12, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
6957
CompileAndVerify(source, parseOptions:
TestOptions
.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
6997
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
7007
CompileAndVerify(source, parseOptions:
TestOptions
.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
7053
CompileAndVerify(source, parseOptions:
TestOptions
.Regular12, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
7054
CompileAndVerify(source, parseOptions:
TestOptions
.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
7100
CompileAndVerify(source, parseOptions:
TestOptions
.Regular12, expectedOutput: expectedOutput).VerifyDiagnostics();
7101
CompileAndVerify(source, parseOptions:
TestOptions
.Regular13, expectedOutput: expectedOutput).VerifyDiagnostics();
7135
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
7145
CompileAndVerify(source, parseOptions:
TestOptions
.Regular13, expectedOutput: expectedOutput).VerifyDiagnostics();
7171
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
7181
CompileAndVerify(source, parseOptions:
TestOptions
.Regular13, expectedOutput: expectedOutput).VerifyDiagnostics();
7207
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
7217
CompileAndVerify(source, parseOptions:
TestOptions
.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
7256
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
7266
CompileAndVerify(source, parseOptions:
TestOptions
.Regular13, expectedOutput: expectedOutput).VerifyDiagnostics();
7299
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
7309
CompileAndVerify(source, parseOptions:
TestOptions
.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
7409
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput);
7410
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput);
7439
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput);
7440
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput);
7461
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
7484
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
7508
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
7517
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
7541
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
7550
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
7585
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
7611
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
7620
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
7642
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
7680
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
7689
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
7724
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
7762
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
7789
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
7801
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
7833
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
7894
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput);
7895
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput);
7916
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
7925
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
7945
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
7951
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
7983
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
8006
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
8023
var comp = CreateCompilation(new[] { source, s_utils }, options:
TestOptions
.ReleaseExe);
8046
var comp = CreateCompilation(new[] { source, s_utils }, options:
TestOptions
.ReleaseExe);
8078
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
8100
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
8122
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
8150
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
8178
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
8209
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
8218
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
8249
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
8286
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
8316
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
8325
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
8349
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
8358
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
8387
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
8399
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
8429
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
8444
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
8475
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput);
8476
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput);
8515
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
8538
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
8581
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput);
8582
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput);
8616
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
8652
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
8683
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput);
8684
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput);
8718
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
8754
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
8785
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
8791
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
8812
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
8858
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
8867
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
8889
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
8919
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
8948
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
8977
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
9007
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
9051
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
9085
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
9113
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
9152
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
9199
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
9212
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
9234
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
9247
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
9270
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
9295
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
9322
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
9343
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
9365
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
9390
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
9513
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
9556
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
9789
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
9791
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
9821
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9);
9822
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10);
9850
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9);
9851
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10);
9892
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
9894
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
9946
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
9948
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
9981
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9);
9982
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10);
10006
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9);
10007
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10);
10032
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9);
10033
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10);
10058
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9);
10059
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10);
10081
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9);
10082
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10);
10108
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9);
10109
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10);
10178
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
10190
comp = CreateCompilation(new[] { source, s_utils }, parseOptions:
TestOptions
.Regular10, options:
TestOptions
.DebugExe);
10251
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9.WithKind(SourceCodeKind.Script));
10263
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10.WithKind(SourceCodeKind.Script));
10559
CompileAndVerify(new[] { source, s_utils }, options:
TestOptions
.DebugExe, expectedOutput:
10617
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
10619
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
10664
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
10677
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
10699
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
10717
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
10741
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
10754
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
10777
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
10792
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
10816
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
10826
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
10852
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput: expectedOutput);
10853
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
10875
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
10887
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
10914
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput:
10924
CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: expectedOutput);
10947
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
10970
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
11008
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
11139
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
11193
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
11267
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
11333
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10, options:
TestOptions
.ReleaseExe);
11384
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
11410
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
11475
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
11554
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10, options:
TestOptions
.ReleaseExe);
11613
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
11650
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseExe);
11685
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
11718
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
11757
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
11798
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseExe);
11839
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseExe);
11895
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
11928
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
11959
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
11998
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
12029
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10, options:
TestOptions
.ReleaseExe);
12070
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10, options:
TestOptions
.ReleaseExe);
12106
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
12162
CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput:
12207
CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput:
12237
var comp = CreateCompilationWithSpan(source, options:
TestOptions
.ReleaseExe);
12260
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseExe);
12326
CompileAndVerify(new[] { sourceA, sourceB, sourceC }, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput:
12383
CompileAndVerify(new[] { sourceA, sourceB, sourceC }, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput:
12418
CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput:
12455
CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput:
12482
CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput:
12536
CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput:
12602
CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput:
12665
CompileAndVerify(sourceB, references: new[] { refA }, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput:
12722
CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput:
12763
CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput:
13015
CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput:
13059
CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput:
13162
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(
13295
CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: $"""
13318
CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: $"""
13434
CompileAndVerify(source, parseOptions:
TestOptions
.Regular12, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13435
CompileAndVerify(source, parseOptions:
TestOptions
.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13475
CompileAndVerify(source, parseOptions:
TestOptions
.Regular12, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13476
CompileAndVerify(source, parseOptions:
TestOptions
.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13508
CompileAndVerify(source, parseOptions:
TestOptions
.Regular12, expectedOutput: expectedOutput).VerifyDiagnostics();
13509
CompileAndVerify(source, parseOptions:
TestOptions
.Regular13, expectedOutput: expectedOutput).VerifyDiagnostics();
13538
CompileAndVerify(source, parseOptions:
TestOptions
.Regular12, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13539
CompileAndVerify(source, parseOptions:
TestOptions
.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13605
CompileAndVerify(source3, [comp2Ref, comp1b.EmitToImageReference()], parseOptions:
TestOptions
.Regular12, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13606
CompileAndVerify(source3, [comp2Ref, comp1b.EmitToImageReference()], parseOptions:
TestOptions
.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13644
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
13656
CompileAndVerify(source, parseOptions:
TestOptions
.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13711
CreateCompilation(source3, [comp2Ref, comp1bRef], parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
13723
CompileAndVerify(source3, [comp2Ref, comp1bRef], parseOptions:
TestOptions
.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13767
CreateCompilation([source1, source2], parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
13774
CompileAndVerify([source1, source2], parseOptions:
TestOptions
.Regular13, expectedOutput: expectedOutput).VerifyDiagnostics();
13788
CompileAndVerify([source1, source3], parseOptions:
TestOptions
.Regular12, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13789
CompileAndVerify([source1, source3], parseOptions:
TestOptions
.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13848
CreateCompilation(source3, [comp2Ref, comp1bRef], parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
13855
CompileAndVerify(source3, [comp2Ref, comp1bRef], parseOptions:
TestOptions
.Regular13, expectedOutput: expectedOutput).VerifyDiagnostics();
13869
CompileAndVerify(source4, [comp2Ref, comp1bRef], parseOptions:
TestOptions
.Regular12, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13870
CompileAndVerify(source4, [comp2Ref, comp1bRef], parseOptions:
TestOptions
.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13910
CompileAndVerify(source, parseOptions:
TestOptions
.Regular12, expectedOutput: expectedOutput).VerifyDiagnostics();
13911
CompileAndVerify(source, parseOptions:
TestOptions
.Regular13, expectedOutput: expectedOutput).VerifyDiagnostics();
13953
CompileAndVerify(source3, [comp2Ref, comp1aRef], parseOptions:
TestOptions
.Regular12, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13954
CompileAndVerify(source3, [comp2Ref, comp1aRef], parseOptions:
TestOptions
.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13982
CompileAndVerify(source3, [comp2Ref, comp1bRef], parseOptions:
TestOptions
.Regular12, expectedOutput: expectedOutput).VerifyDiagnostics();
13983
CompileAndVerify(source3, [comp2Ref, comp1bRef], parseOptions:
TestOptions
.Regular13, expectedOutput: expectedOutput).VerifyDiagnostics();
14436
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseExe);
14820
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
14868
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
14938
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
15027
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
15087
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
15164
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
15201
CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput);
15202
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput: expectedOutput);
15252
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
15317
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
15361
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
15414
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
15618
var verifier = CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview);
17526
CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: "True").VerifyDiagnostics();
17540
CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "4").VerifyDiagnostics();
Semantics\DynamicTests.cs (170)
58
CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
616
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
831
var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.UnsafeReleaseDll);
1278
var comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.UnsafeReleaseDll);
1281
comp = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.UnsafeReleaseDll);
1471
}, parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates);
1891
CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
2152
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.UnsafeReleaseDll);
2336
CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
2366
CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
2842
var comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.UnsafeReleaseDll);
2845
comp = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.UnsafeReleaseDll);
2876
CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
3037
CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(source, options:
TestOptions
.RegularPreview) }).VerifyDiagnostics(
3107
CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(source, options:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp5)) }).VerifyDiagnostics(
3224
CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(source, options:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp5)) }).VerifyDiagnostics(
3255
CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options:
TestOptions
.DebugDll).VerifyEmitDiagnostics(
3774
CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp4)).VerifyDiagnostics();
3775
CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp3)).VerifyDiagnostics(
3916
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugDll.WithAllowUnsafe(true), verify: Verification.FailsPEVerify).VerifyDiagnostics();
3944
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugDll.WithAllowUnsafe(true), verify: Verification.FailsPEVerify).VerifyDiagnostics();
3971
CreateCompilation(source, options:
TestOptions
.DebugDll.WithAllowUnsafe(true)).VerifyDiagnostics(
3995
var verifier = CompileAndVerify(source, new[] { CSharpRef }, options:
TestOptions
.DebugDll).VerifyDiagnostics();
4044
var compilation2 = CreateCompilation(source2, new[] { reference.WithEmbedInteropTypes(true), CSharpRef }, options:
TestOptions
.ReleaseExe);
4067
var compilation = CreateCompilation(source, new[] { CSharpRef }, options:
TestOptions
.DebugDll);
4094
var compilation = CreateCompilation(source, new[] { CSharpRef }, options:
TestOptions
.DebugDll);
4271
var compilation1 = CreateCompilation(consumer1, options:
TestOptions
.ReleaseExe,
4294
var compilation2 = CreateCompilation(consumer2, options:
TestOptions
.ReleaseExe,
4395
var compilation1 = CreateCompilation(consumer1, options:
TestOptions
.ReleaseExe,
4411
var compilation2 = CreateCompilation(consumer2, options:
TestOptions
.ReleaseExe,
4437
var comp = CreateCompilationWithMscorlib461AndCSharp(source, parseOptions:
TestOptions
.Regular7_2);
4462
var comp = CreateCompilationWithMscorlib461AndCSharp(source, parseOptions:
TestOptions
.Regular7_2);
4492
var comp1 = CreateCompilationWithMscorlib461AndCSharp(source1, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
4503
comp1 = CreateCompilationWithMscorlib461AndCSharp(source1, parseOptions:
TestOptions
.Regular7_2, options:
TestOptions
.DebugExe);
4528
var comp2 = CreateCompilationWithMscorlib461AndCSharp(source2, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
4535
comp2 = CreateCompilationWithMscorlib461AndCSharp(source2, parseOptions:
TestOptions
.Regular7_2, options:
TestOptions
.DebugExe);
4564
var comp = CreateCompilationWithMscorlib461AndCSharp(source, parseOptions:
TestOptions
.Regular7_2);
4593
var comp = CreateCompilationWithMscorlib461AndCSharp(source, parseOptions:
TestOptions
.Regular7_2);
4676
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
4948
var parseOptions = testPreview ?
TestOptions
.RegularPreview :
TestOptions
.Regular13;
5025
var comp2 = CreateCompilation(source2, options:
TestOptions
.DebugExe, parseOptions: parseOptions);
5072
var parseOptions = testPreview ?
TestOptions
.RegularPreview :
TestOptions
.Regular13;
5149
var comp2 = CreateCompilation(source2, options:
TestOptions
.DebugExe, parseOptions: parseOptions);
5195
var parseOptions = testPreview ?
TestOptions
.RegularPreview :
TestOptions
.Regular13;
5272
var comp2 = CreateCompilation(source2, options:
TestOptions
.DebugExe, parseOptions: parseOptions);
5319
var parseOptions = testPreview ?
TestOptions
.RegularPreview :
TestOptions
.Regular13;
5338
var comp1 = CreateCompilation(source1, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions);
5379
var comp1 = CreateCompilation(source1, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
5423
var comp1 = CreateCompilation(source1, options:
TestOptions
.DebugExe.WithAllowUnsafe(true), targetFramework: TargetFramework.StandardAndCSharp);
5451
var parseOptions = testPreview ?
TestOptions
.RegularPreview :
TestOptions
.Regular13;
5467
var comp1 = CreateCompilation(source1, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions);
5511
var comp1 = CreateCompilation(source1, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
5575
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
5613
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe.WithAllowUnsafe(true), targetFramework: TargetFramework.StandardAndCSharp);
5636
var parseOptions = version switch { 12 =>
TestOptions
.Regular12, 13 =>
TestOptions
.Regular13, _ =>
TestOptions
.RegularPreview };
5652
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions);
5668
var parseOptions = testPreview ?
TestOptions
.RegularPreview :
TestOptions
.Regular13;
5729
var comp1 = CreateCompilation(source1, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
5774
var comp1 = CreateCompilation(source1, options:
TestOptions
.DebugExe.WithAllowUnsafe(true), targetFramework: TargetFramework.StandardAndCSharp);
5802
var parseOptions = testPreview ?
TestOptions
.RegularPreview :
TestOptions
.Regular13;
5819
var comp1 = CreateCompilation(source1, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions);
5864
var comp1 = CreateCompilation(source1, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
5932
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
5971
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe.WithAllowUnsafe(true), targetFramework: TargetFramework.StandardAndCSharp);
5994
var parseOptions = testPreview ?
TestOptions
.RegularPreview :
TestOptions
.Regular13;
6070
var comp2 = CreateCompilation(source2, options:
TestOptions
.DebugExe, parseOptions: parseOptions);
6117
var parseOptions = testPreview ?
TestOptions
.RegularPreview :
TestOptions
.Regular13;
6193
var comp2 = CreateCompilation(source2, options:
TestOptions
.DebugExe, parseOptions: parseOptions);
6313
var comp2 = CreateCompilation(source2, options:
TestOptions
.DebugExe);
6373
var comp1 = CreateCompilation(source1, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
6416
var comp1 = CreateCompilation(source1, options:
TestOptions
.DebugExe.WithAllowUnsafe(true), targetFramework: TargetFramework.StandardAndCSharp);
6446
var parseOptions = testPreview ?
TestOptions
.RegularPreview :
TestOptions
.Regular13;
6462
var comp1 = CreateCompilation(source1, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions);
6506
var comp1 = CreateCompilation(source1, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
6549
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
6603
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe.WithAllowUnsafe(true), targetFramework: TargetFramework.StandardAndCSharp);
6668
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
6777
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
6887
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
6988
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
7056
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
7159
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
7272
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
7388
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
7501
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
7578
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
7683
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
7789
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
7892
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
7964
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
8070
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
8175
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
8280
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
8389
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
8498
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
8608
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
8721
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
8790
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
8858
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
8921
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
8980
var comp2 = CreateCompilation(source2, options:
TestOptions
.DebugExe);
9011
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
9070
var comp2 = CreateCompilation(source2, options:
TestOptions
.DebugExe);
9102
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
9161
var comp2 = CreateCompilation(source2, options:
TestOptions
.DebugExe);
9192
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
9248
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
9309
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
9366
var comp2 = CreateCompilation(source2, options:
TestOptions
.DebugExe);
9398
var comp3 = CreateCompilation(source3, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
9430
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
9487
var comp2 = CreateCompilation(source2, options:
TestOptions
.DebugExe);
9519
var comp3 = CreateCompilation(source3, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
9550
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
9606
var comp2 = CreateCompilation(source2, options:
TestOptions
.DebugExe);
9637
var comp3 = CreateCompilation(source3, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
9664
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
9716
var comp2 = CreateCompilation(source2, options:
TestOptions
.DebugExe);
9748
var comp3 = CreateCompilation(source3, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
9775
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
9827
var comp2 = CreateCompilation(source2, options:
TestOptions
.DebugExe);
9859
var comp3 = CreateCompilation(source3, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
9886
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
9937
var comp2 = CreateCompilation(source2, options:
TestOptions
.DebugExe);
9968
var comp3 = CreateCompilation(source3, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
10006
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
10134
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
10262
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
10379
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
10416
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
10550
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
10698
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
10847
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
10887
var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
10923
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
10968
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
11097
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
11181
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
11259
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
11314
var comp1 = CreateCompilation(source1, targetFramework: TargetFramework.StandardAndCSharp, parseOptions:
TestOptions
.Regular12);
11367
var comp1 = CreateCompilation(source1, targetFramework: TargetFramework.StandardAndCSharp, parseOptions:
TestOptions
.Regular12);
11414
var comp1 = CreateCompilation(source1, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions:
TestOptions
.Regular12);
11447
var comp1 = CreateCompilation(source1, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions:
TestOptions
.Regular12);
11491
var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, parseOptions:
TestOptions
.Regular12);
11532
var comp1 = CreateCompilation(source1, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions:
TestOptions
.Regular12);
11581
var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, parseOptions:
TestOptions
.Regular12);
11633
var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, parseOptions:
TestOptions
.Regular12);
11676
var comp1 = CreateCompilation(source1, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions:
TestOptions
.Regular12);
Semantics\ExpressionBodiedMemberTests.cs (2)
1043
CreateCompilation(source, parseOptions:
TestOptions
.Regular).VerifyDiagnostics();
1044
CreateCompilation(source, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
Semantics\ForEachTests.cs (11)
285
CreateCompilation(text, parseOptions:
TestOptions
.Regular7).VerifyDiagnostics(
1905
var boundNode = GetBoundForEachStatement(text,
TestOptions
.Regular,
2349
var comp = CreateEmptyCompilation(text, parseOptions:
TestOptions
.Regular7_3, skipUsesIsNullable: true);
3195
var boundNode = GetBoundForEachStatement(text,
TestOptions
.Regular7_3,
3231
var boundNode = GetBoundForEachStatement(text, options:
TestOptions
.Regular9);
3322
""", options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics();
3356
""", options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics();
3442
var comp1 = CreateEmptyCompilation(source1, options:
TestOptions
.DebugDll, assemblyName: "MissingBaseType1");
3470
var comp2 = CreateEmptyCompilation(source2, new[] { comp1.ToMetadataReference() }, options:
TestOptions
.DebugDll);
3485
var comp3 = CreateEmptyCompilation(source3, options:
TestOptions
.DebugDll, assemblyName: "MissingBaseType2");
3646
var comp = CreateCompilationWithMscorlibAndSpan(source, options:
TestOptions
.ReleaseDebugExe).VerifyDiagnostics();
Semantics\FunctionPointerTests.cs (39)
21
return CreateCompilation(source, options: options ??
TestOptions
.UnsafeReleaseDll, parseOptions: parseOptions, targetFramework: targetFramework ?? TargetFramework.Standard);
40
var comp = CreateCompilationWithFunctionPointers(src, parseOptions:
TestOptions
.Regular8);
47
comp = CreateCompilationWithFunctionPointers(src, parseOptions:
TestOptions
.Regular9);
57
var comp = CreateCompilationWithFunctionPointers(src, parseOptions:
TestOptions
.Regular11);
69
comp = CreateCompilationWithFunctionPointers(src, parseOptions:
TestOptions
.Regular12);
88
var comp = CreateCompilationWithFunctionPointers(src, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular11);
98
comp = CreateCompilationWithFunctionPointers(src, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular12);
105
comp = CreateCompilationWithFunctionPointers(src, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.RegularPreview);
119
var comp = CreateCompilationWithFunctionPointers(src, parseOptions:
TestOptions
.Regular11);
125
comp = CreateCompilationWithFunctionPointers(src, parseOptions:
TestOptions
.Regular12);
141
var comp = CreateCompilationWithFunctionPointers(src, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular11);
150
comp = CreateCompilationWithFunctionPointers(src, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.RegularPreview);
237
}", options:
TestOptions
.UnsafeReleaseExe);
2003
var comp = CreateCompilationWithIL(source, il, options:
TestOptions
.UnsafeReleaseDll);
2049
var comp = CreateCompilationWithIL(source, il, options:
TestOptions
.UnsafeReleaseExe);
2082
var comp = CreateCompilationWithIL(code, il, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.UnsafeReleaseExe);
2120
var comp = CreateCompilationWithIL("", il, references: new[] { cComp.ToMetadataReference() }, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.UnsafeReleaseDll);
2698
", options:
TestOptions
.UnsafeReleaseExe, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped);
2723
", options:
TestOptions
.UnsafeReleaseExe, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.Passes : Verification.Skipped);
2748
", options:
TestOptions
.UnsafeReleaseExe);
2780
", options:
TestOptions
.UnsafeReleaseExe);
2812
", options:
TestOptions
.UnsafeReleaseExe);
2845
", options:
TestOptions
.UnsafeReleaseExe);
2878
", options:
TestOptions
.UnsafeReleaseExe, targetFramework: TargetFramework.NetCoreApp);
2911
", options:
TestOptions
.UnsafeReleaseExe);
2946
", expectedOutput: "11", options:
TestOptions
.UnsafeReleaseExe, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.FailsILVerify : Verification.Skipped);
2976
", options:
TestOptions
.UnsafeReleaseExe);
3003
", options:
TestOptions
.UnsafeReleaseExe);
3033
", options:
TestOptions
.UnsafeReleaseExe);
3060
", options:
TestOptions
.UnsafeReleaseExe);
3269
}", options:
TestOptions
.UnsafeReleaseExe);
3350
var comp = CreateCompilationWithFunctionPointers(source,
TestOptions
.UnsafeReleaseExe);
3403
comp = CreateCompilationWithFunctionPointers(source, parseOptions:
TestOptions
.Regular7_3);
3846
}", options:
TestOptions
.UnsafeReleaseExe);
Semantics\GenericConstraintsTests.cs (74)
2192
CompileAndVerify(code, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
2437
options:
TestOptions
.UnsafeReleaseExe, references: new[] { reference, reference1 }, verify: Verification.Passes, expectedOutput: "123");
2523
options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: string.Join(Environment.NewLine, type, size)).VerifyIL("Test.M<T>", @"
2575
options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: "246").VerifyIL("Test.M<T>", @"
2613
options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Passes, expectedOutput: "NotNullableValueTypeConstraint, DefaultConstructorConstraint");
2638
}", options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Passes, expectedOutput: "4");
2673
}", options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Passes, expectedOutput: "8");
2873
}", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
2925
}", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
3042
options:
TestOptions
.UnsafeReleaseExe,
3080
options:
TestOptions
.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All),
3133
}", options:
TestOptions
.UnsafeReleaseDll);
3163
}", options:
TestOptions
.UnsafeReleaseDll);
3189
}", options:
TestOptions
.UnsafeReleaseDll);
3218
}", options:
TestOptions
.UnsafeReleaseDll);
3258
}", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
3296
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll)
3320
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll)
3350
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll)
3385
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll)
3414
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll)
3417
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular7_3)
3457
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll)
3464
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular7_3)
3492
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll)
3534
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll)
3558
var compilation = CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll);
3578
var compilation = CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll);
3599
var compilation = CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll);
3623
var compilation = CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll);
3654
var compilation = CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll);
3679
var compilation = CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll);
3707
var compilation = CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll);
3735
var compilation = CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll);
3763
var compilation = CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll);
3794
var compilation = CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll);
3830
var compilation = CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll);
3862
var compilation = CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll);
3890
var compilation = CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll);
3929
CompileAndVerify(code, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "42", verify: Verification.Skipped);
3962
CompileAndVerify(code, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Skipped)
4001
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular7_3)
4008
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
4031
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular7_3)
4040
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
4057
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular7_3)
4064
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
4081
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular7_3)
4087
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
4104
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular7_3)
4110
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
4127
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular7_3)
4134
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
4154
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular7_3)
4161
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
4184
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular7_3)
4194
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
4221
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular7_3)
4231
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll)
4260
options:
TestOptions
.UnsafeReleaseExe,
4284
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
4316
options:
TestOptions
.UnsafeReleaseExe,
4341
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll)
Semantics\GlobalUsingDirectiveTests.cs (359)
36
CreateCompilation(source, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
47
CreateCompilation(source, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
66
CreateCompilation(source, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics();
86
CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics();
108
CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
134
CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
191
var comp2 = CreateCompilation(source2, parseOptions:
TestOptions
.Regular10, options:
TestOptions
.DebugExe, references: new[] { comp1Ref });
234
var comp3 = CreateCompilation(source3, parseOptions:
TestOptions
.Regular10, options:
TestOptions
.DebugExe, references: new[] { comp1Ref });
304
var comp2 = CreateCompilation(source2, parseOptions:
TestOptions
.Regular10, options:
TestOptions
.DebugExe, references: new[] { comp1Ref });
353
var comp3 = CreateCompilation(source3, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe, references: new[] { comp1Ref });
404
var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe, references: new[] { comp1Ref });
421
var comp3 = CreateCompilation(new[] { source3, source2 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe, references: new[] { comp1Ref });
541
var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source, source1 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
544
comp = CreateCompilation(new[] { globalUsings2 + source, globalUsings1 + source1 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
547
comp = CreateCompilation(new[] { globalUsings1 + source1, globalUsings2 + source }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
550
comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 + source1 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
553
comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, source }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
556
comp = CreateCompilation(new[] { extAlias + source, globalUsings1 + globalUsings2 + source1 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe, references: new[] { extCompRef });
563
comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, extAlias + source }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe, references: new[] { extCompRef });
680
var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source, source1 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
683
comp = CreateCompilation(new[] { globalUsings2 + source, globalUsings1 + source1 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
686
comp = CreateCompilation(new[] { globalUsings1 + source1, globalUsings2 + source }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
689
comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 + source1 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
692
comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, source }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
695
comp = CreateCompilation(new[] { extAlias + source, globalUsings1 + globalUsings2 + source1 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe, references: new[] { extCompRef });
702
comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, extAlias + source }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe, references: new[] { extCompRef });
811
var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source, source1, program }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
814
comp = CreateCompilation(new[] { globalUsings2 + source, globalUsings1 + source1, program }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
817
comp = CreateCompilation(new[] { globalUsings1 + source1, globalUsings2 + source, program }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
820
comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 + source1, program }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
823
comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, source, program }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
869
var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2, source1 }, parseOptions:
TestOptions
.RegularPreview);
889
comp = CreateCompilation(new[] { globalUsings2, globalUsings1 + source1 }, parseOptions:
TestOptions
.RegularPreview);
892
comp = CreateCompilation(new[] { globalUsings1 + source1, globalUsings2 }, parseOptions:
TestOptions
.RegularPreview);
895
comp = CreateCompilation(new[] { globalUsings2 + globalUsings1, source1 }, parseOptions:
TestOptions
.RegularPreview);
940
var comp = CreateCompilation(new[] { globalUsings1 + usings2, source1 }, parseOptions:
TestOptions
.RegularPreview);
960
comp = CreateCompilation(new[] { usings2, globalUsings1 + source1 }, parseOptions:
TestOptions
.RegularPreview);
963
comp = CreateCompilation(new[] { globalUsings1 + source1, usings2 }, parseOptions:
TestOptions
.RegularPreview);
1020
var comp = CreateCompilation(source1, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
1061
var comp = CreateCompilation(source1, parseOptions:
TestOptions
.RegularPreview);
1111
var comp = CreateCompilation(source1, parseOptions:
TestOptions
.RegularPreview);
1235
var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source, source1 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
1238
comp = CreateCompilation(new[] { globalUsings2 + source, globalUsings1 + source1 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
1241
comp = CreateCompilation(new[] { globalUsings1 + source1, globalUsings2 + source }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
1244
comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 + source1 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
1247
comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, source }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
1250
comp = CreateCompilation(new[] { extAlias + source, globalUsings1 + globalUsings2 + source1 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe, references: new[] { extCompRef });
1257
comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, extAlias + source }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe, references: new[] { extCompRef });
1363
var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source, source1 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
1366
comp = CreateCompilation(new[] { globalUsings2 + source, globalUsings1 + source1 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
1369
comp = CreateCompilation(new[] { globalUsings1 + source1, globalUsings2 + source }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
1372
comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 + source1 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
1375
comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, source }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
1378
comp = CreateCompilation(new[] { extAlias + source, globalUsings1 + globalUsings2 + source1 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe, references: new[] { extCompRef });
1385
comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, extAlias + source }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe, references: new[] { extCompRef });
1483
var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source, source1, program }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
1486
comp = CreateCompilation(new[] { globalUsings2 + source, globalUsings1 + source1, program }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
1489
comp = CreateCompilation(new[] { globalUsings1 + source1, globalUsings2 + source, program }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
1492
comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 + source1, program }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
1495
comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, source, program }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
1530
var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2, source1 }, parseOptions:
TestOptions
.RegularPreview);
1550
comp = CreateCompilation(new[] { globalUsings2, globalUsings1 + source1 }, parseOptions:
TestOptions
.RegularPreview);
1553
comp = CreateCompilation(new[] { globalUsings1 + source1, globalUsings2 }, parseOptions:
TestOptions
.RegularPreview);
1556
comp = CreateCompilation(new[] { globalUsings2 + globalUsings1, source1 }, parseOptions:
TestOptions
.RegularPreview);
1590
var comp = CreateCompilation(new[] { globalUsings1 + usings2, source1 }, parseOptions:
TestOptions
.RegularPreview);
1610
comp = CreateCompilation(new[] { usings2, globalUsings1 + source1 }, parseOptions:
TestOptions
.RegularPreview);
1613
comp = CreateCompilation(new[] { globalUsings1 + source1, usings2 }, parseOptions:
TestOptions
.RegularPreview);
1691
var comp = CreateCompilation(source1, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
1807
var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source, source1 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
1810
comp = CreateCompilation(new[] { globalUsings2 + source, globalUsings1 + source1 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
1813
comp = CreateCompilation(new[] { globalUsings1 + source1, globalUsings2 + source }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
1816
comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 + source1 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
1819
comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, source }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
1893
var comp = CreateCompilation(new[] { source1, source2 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
1927
var comp = CreateCompilation(source1, parseOptions:
TestOptions
.RegularPreview);
1963
var comp = CreateCompilation(source1, parseOptions:
TestOptions
.RegularPreview);
2026
var comp = CreateCompilation(new[] { source2, source1, source3, source6, source4, "", source5 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
2073
var comp2 = CreateCompilation(new[] { source2 + source3, source5, source6 }, parseOptions:
TestOptions
.RegularPreview, references: new[] { comp1Ref });
2083
var comp3 = CreateCompilation(new[] { source2 + source3 + source4, source5, source6 }, parseOptions:
TestOptions
.RegularPreview, references: new[] { comp1Ref });
2096
var comp4 = CreateCompilation(new[] { source2 + source3 + source5, source6 }, parseOptions:
TestOptions
.RegularPreview, references: new[] { comp1Ref });
2109
var comp5 = CreateCompilation(new[] { source2 + source3 + source4 + source5, source6 }, parseOptions:
TestOptions
.RegularPreview, references: new[] { comp1Ref });
2129
var comp6 = CreateCompilation(new[] { source2, source3, source5, source6 }, parseOptions:
TestOptions
.RegularPreview, references: new[] { comp1Ref });
2139
var comp7 = CreateCompilation(new[] { source2, source3, source4, source5, source6 }, parseOptions:
TestOptions
.RegularPreview, references: new[] { comp1Ref });
2152
var comp8 = CreateCompilation(new[] { source2 + source3 + source5, source4, source6 }, parseOptions:
TestOptions
.RegularPreview, references: new[] { comp1Ref });
2155
var comp9 = CreateCompilation(new[] { source2 + source5, source3, source6 }, parseOptions:
TestOptions
.RegularPreview, references: new[] { comp1Ref });
2168
var comp10 = CreateCompilation(new[] { source2 + source5, source3, source4, source6 }, parseOptions:
TestOptions
.RegularPreview, references: new[] { comp1Ref });
2207
var comp2 = CreateCompilation(new[] { source1, source2, source3 }, parseOptions:
TestOptions
.RegularPreview, references: new[] { comp1Ref });
2218
comp2 = CreateCompilation(new[] { source1, source3, source2 }, parseOptions:
TestOptions
.RegularPreview, references: new[] { comp1Ref });
2242
var comp2 = CreateCompilation(new[] { source3, source5, source6 }, parseOptions:
TestOptions
.RegularPreview);
2253
var comp3 = CreateCompilation(new[] { source3 + source4, source5, source6 }, parseOptions:
TestOptions
.RegularPreview);
2267
var comp4 = CreateCompilation(new[] { source3 + source5, source6 }, parseOptions:
TestOptions
.RegularPreview);
2270
var comp5 = CreateCompilation(new[] { source3 + source4 + source5, source6 }, parseOptions:
TestOptions
.RegularPreview);
2273
var comp6 = CreateCompilation(new[] { source3, source4, source5, source6 }, parseOptions:
TestOptions
.RegularPreview);
2276
var comp7 = CreateCompilation(new[] { source3 + source5, source4, source6 }, parseOptions:
TestOptions
.RegularPreview);
2279
var comp8 = CreateCompilation(new[] { source5, source3, source6 }, parseOptions:
TestOptions
.RegularPreview);
2282
var comp9 = CreateCompilation(new[] { source5, source3, source4, source6 }, parseOptions:
TestOptions
.RegularPreview);
2300
var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions:
TestOptions
.RegularPreview);
2307
comp2 = CreateCompilation(new[] { source3, source2 }, parseOptions:
TestOptions
.RegularPreview);
2329
var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions:
TestOptions
.RegularPreview);
2340
comp2 = CreateCompilation(new[] { source3, source2 }, parseOptions:
TestOptions
.RegularPreview);
2343
comp2 = CreateCompilation(source2 + source3, parseOptions:
TestOptions
.RegularPreview);
2384
var comp2 = CreateCompilation(new[] { source3, source5, source6 }, parseOptions:
TestOptions
.RegularPreview);
2398
var comp3 = CreateCompilation(new[] { source3 + source4, source5, source6 }, parseOptions:
TestOptions
.RegularPreview);
2415
var comp4 = CreateCompilation(new[] { source3 + source5, source6 }, parseOptions:
TestOptions
.RegularPreview);
2418
var comp5 = CreateCompilation(new[] { source3 + source4 + source5, source6 }, parseOptions:
TestOptions
.RegularPreview);
2421
var comp6 = CreateCompilation(new[] { source3, source4, source5, source6 }, parseOptions:
TestOptions
.RegularPreview);
2424
var comp7 = CreateCompilation(new[] { source3 + source5, source4, source6 }, parseOptions:
TestOptions
.RegularPreview);
2427
var comp8 = CreateCompilation(new[] { source5, source3, source6 }, parseOptions:
TestOptions
.RegularPreview);
2430
var comp9 = CreateCompilation(new[] { source5, source3, source4, source6 }, parseOptions:
TestOptions
.RegularPreview);
2480
var comp2 = CreateCompilation(new[] { source3, source5, source6 }, parseOptions:
TestOptions
.RegularPreview);
2494
var comp3 = CreateCompilation(new[] { source3 + source4, source5, source6 }, parseOptions:
TestOptions
.RegularPreview);
2511
var comp4 = CreateCompilation(new[] { source3 + source5, source6 }, parseOptions:
TestOptions
.RegularPreview);
2514
var comp5 = CreateCompilation(new[] { source3 + source4 + source5, source6 }, parseOptions:
TestOptions
.RegularPreview);
2517
var comp6 = CreateCompilation(new[] { source3, source4, source5, source6 }, parseOptions:
TestOptions
.RegularPreview);
2520
var comp7 = CreateCompilation(new[] { source3 + source5, source4, source6 }, parseOptions:
TestOptions
.RegularPreview);
2523
var comp8 = CreateCompilation(new[] { source5, source3, source6 }, parseOptions:
TestOptions
.RegularPreview);
2526
var comp9 = CreateCompilation(new[] { source5, source3, source4, source6 }, parseOptions:
TestOptions
.RegularPreview);
2548
var comp2 = CreateCompilation(new[] { source3, source5, source6 }, parseOptions:
TestOptions
.RegularPreview);
2559
var comp3 = CreateCompilation(new[] { source3 + source4, source5, source6 }, parseOptions:
TestOptions
.RegularPreview);
2570
var comp4 = CreateCompilation(new[] { source3 + source5, source6 }, parseOptions:
TestOptions
.RegularPreview);
2577
var comp5 = CreateCompilation(new[] { source3 + source4 + source5, source6 }, parseOptions:
TestOptions
.RegularPreview);
2587
var comp6 = CreateCompilation(new[] { source3, source4, source5, source6 }, parseOptions:
TestOptions
.RegularPreview);
2597
var comp7 = CreateCompilation(new[] { source3 + source5, source4, source6 }, parseOptions:
TestOptions
.RegularPreview);
2607
var comp8 = CreateCompilation(new[] { source5, source3, source6 }, parseOptions:
TestOptions
.RegularPreview);
2610
var comp9 = CreateCompilation(new[] { source5, source3, source4, source6 }, parseOptions:
TestOptions
.RegularPreview);
2634
var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions:
TestOptions
.RegularPreview);
2641
comp2 = CreateCompilation(new[] { source3, source2 }, parseOptions:
TestOptions
.RegularPreview);
2662
var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions:
TestOptions
.RegularPreview);
2673
comp2 = CreateCompilation(new[] { source3, source2 }, parseOptions:
TestOptions
.RegularPreview);
2676
comp2 = CreateCompilation(source2 + source3, parseOptions:
TestOptions
.RegularPreview);
2702
var comp2 = CreateCompilation(new[] { source3, source5, source6 }, parseOptions:
TestOptions
.RegularPreview);
2713
var comp3 = CreateCompilation(new[] { source3 + source4, source5, source6 }, parseOptions:
TestOptions
.RegularPreview);
2724
var comp4 = CreateCompilation(new[] { source3 + source5, source6 }, parseOptions:
TestOptions
.RegularPreview);
2731
var comp5 = CreateCompilation(new[] { source3 + source4 + source5, source6 }, parseOptions:
TestOptions
.RegularPreview);
2741
var comp6 = CreateCompilation(new[] { source3, source4, source5, source6 }, parseOptions:
TestOptions
.RegularPreview);
2751
var comp7 = CreateCompilation(new[] { source3 + source5, source4, source6 }, parseOptions:
TestOptions
.RegularPreview);
2761
var comp8 = CreateCompilation(new[] { source5, source3, source6 }, parseOptions:
TestOptions
.RegularPreview);
2764
var comp9 = CreateCompilation(new[] { source5, source3, source4, source6 }, parseOptions:
TestOptions
.RegularPreview);
2788
var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions:
TestOptions
.RegularPreview);
2795
comp2 = CreateCompilation(new[] { source3, source2 }, parseOptions:
TestOptions
.RegularPreview);
2816
var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions:
TestOptions
.RegularPreview);
2827
comp2 = CreateCompilation(new[] { source3, source2 }, parseOptions:
TestOptions
.RegularPreview);
2830
comp2 = CreateCompilation(source2 + source3, parseOptions:
TestOptions
.RegularPreview);
2871
var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions:
TestOptions
.RegularPreview);
2905
comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions:
TestOptions
.RegularPreview);
2909
comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions:
TestOptions
.RegularPreview);
2913
comp2 = CreateCompilation(new[] { source3, source2 }, parseOptions:
TestOptions
.RegularPreview);
2917
comp2 = CreateCompilation(source2 + source3, parseOptions:
TestOptions
.RegularPreview);
2957
var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions:
TestOptions
.RegularPreview);
2991
comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions:
TestOptions
.RegularPreview);
2995
comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions:
TestOptions
.RegularPreview);
2999
comp2 = CreateCompilation(new[] { source3, source2 }, parseOptions:
TestOptions
.RegularPreview);
3003
comp2 = CreateCompilation(source2 + source3, parseOptions:
TestOptions
.RegularPreview);
3043
var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions:
TestOptions
.RegularPreview);
3077
comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions:
TestOptions
.RegularPreview);
3081
comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions:
TestOptions
.RegularPreview);
3085
comp2 = CreateCompilation(new[] { source3, source2 }, parseOptions:
TestOptions
.RegularPreview);
3089
comp2 = CreateCompilation(source2 + source3, parseOptions:
TestOptions
.RegularPreview);
3170
var comp2 = CreateCompilation(new[] { source2, source3, source4 }, parseOptions:
TestOptions
.RegularPreview);
3254
comp2 = CreateCompilation(new[] { source2, source3, source4 }, parseOptions:
TestOptions
.RegularPreview);
3283
comp2 = CreateCompilation(new[] { source2, source3, source4 }, parseOptions:
TestOptions
.RegularPreview);
3300
comp2 = CreateCompilation(new[] { source2, source3, source4 }, parseOptions:
TestOptions
.RegularPreview);
3311
comp2 = CreateCompilation(new[] { source2, source3, source4 }, parseOptions:
TestOptions
.RegularPreview);
3364
references: new[] { compWithReferenceToLib.EmitToImageReference(), newCompImageRef }, assemblyName: "lib", parseOptions:
TestOptions
.RegularPreview);
3369
references: new[] { compWithReferenceToLib.ToMetadataReference(), newCompRef }, assemblyName: "lib", parseOptions:
TestOptions
.RegularPreview);
3373
references: new[] { compWithReferenceToLib.EmitToImageReference(), newCompImageRef }, assemblyName: "lib", parseOptions:
TestOptions
.RegularPreview);
3377
references: new[] { compWithReferenceToLib.ToMetadataReference(), newCompRef }, assemblyName: "lib", parseOptions:
TestOptions
.RegularPreview);
3381
references: new[] { compWithReferenceToLib.EmitToImageReference(), newCompImageRef }, assemblyName: "lib", parseOptions:
TestOptions
.RegularPreview);
3389
references: new[] { compWithReferenceToLib.ToMetadataReference(), newCompRef }, assemblyName: "lib", parseOptions:
TestOptions
.RegularPreview);
3397
references: new[] { compWithReferenceToLib.EmitToImageReference(), newCompImageRef }, assemblyName: "lib", parseOptions:
TestOptions
.RegularPreview);
3405
references: new[] { compWithReferenceToLib.ToMetadataReference(), newCompRef }, assemblyName: "lib", parseOptions:
TestOptions
.RegularPreview);
3413
references: new[] { compWithReferenceToLib.EmitToImageReference(), newCompImageRef }, assemblyName: "lib", parseOptions:
TestOptions
.RegularPreview);
3421
references: new[] { compWithReferenceToLib.ToMetadataReference(), newCompRef }, assemblyName: "lib", parseOptions:
TestOptions
.RegularPreview);
3429
references: new[] { compWithReferenceToLib.EmitToImageReference(), newCompImageRef }, assemblyName: "lib", parseOptions:
TestOptions
.RegularPreview);
3437
references: new[] { compWithReferenceToLib.ToMetadataReference(), newCompRef }, assemblyName: "lib", parseOptions:
TestOptions
.RegularPreview);
3505
var parseOptions =
TestOptions
.RegularPreview.WithNoRefSafetyRulesAttribute();
3701
var parseOptions =
TestOptions
.RegularPreview.WithNoRefSafetyRulesAttribute();
3839
var comp = CreateCompilation(new[] { externAlias + globalUsings1 + globalUsings2 + usings, source }, parseOptions:
TestOptions
.RegularPreview);
3865
comp = CreateCompilation(new[] { externAlias + globalUsings1 + usings, globalUsings2, source }, parseOptions:
TestOptions
.RegularPreview);
3896
comp = CreateCompilation(new[] { externAlias + usings, globalUsings1 + globalUsings2, source }, parseOptions:
TestOptions
.RegularPreview);
3929
comp = CreateCompilation(new[] { externAlias + globalUsings1 + globalUsings2, source }, parseOptions:
TestOptions
.RegularPreview);
3949
comp = CreateCompilation(new[] { externAlias + globalUsings1, globalUsings2, source }, parseOptions:
TestOptions
.RegularPreview);
3974
comp = CreateCompilation(new[] { externAlias, globalUsings1 + globalUsings2, source }, parseOptions:
TestOptions
.RegularPreview);
4001
comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + usings, source }, parseOptions:
TestOptions
.RegularPreview);
4021
comp = CreateCompilation(new[] { globalUsings1 + usings, globalUsings2, source }, parseOptions:
TestOptions
.RegularPreview);
4046
comp = CreateCompilation(new[] { usings, globalUsings1 + globalUsings2, source }, parseOptions:
TestOptions
.RegularPreview);
4073
comp = CreateCompilation(new[] { globalUsings1 + globalUsings2, source }, parseOptions:
TestOptions
.RegularPreview);
4087
comp = CreateCompilation(new[] { globalUsings1, globalUsings2, source }, parseOptions:
TestOptions
.RegularPreview);
4108
comp = CreateCompilation(new[] { externAlias + usings, source }, parseOptions:
TestOptions
.RegularPreview);
4130
comp = CreateCompilation(new[] { externAlias, source }, parseOptions:
TestOptions
.RegularPreview);
4146
comp = CreateCompilation(new[] { usings, source }, parseOptions:
TestOptions
.RegularPreview);
4212
var comp = CreateCompilation(new[] { externAlias1 + globalUsings1 + source }, parseOptions:
TestOptions
.RegularPreview);
4223
comp = CreateCompilation(new[] { externAlias1 + source, globalUsings1 }, parseOptions:
TestOptions
.RegularPreview);
4226
comp = CreateCompilation(new[] { externAlias1 + usings1 + source }, parseOptions:
TestOptions
.RegularPreview);
4240
comp = CreateCompilation(new[] { globalUsings1 + usings1 + source }, parseOptions:
TestOptions
.RegularPreview);
4248
comp = CreateCompilation(new[] { usings1 + source, globalUsings1 }, parseOptions:
TestOptions
.RegularPreview);
4256
comp = CreateCompilation(new[] { externAlias1 + globalUsings1 + usings1 + source }, parseOptions:
TestOptions
.RegularPreview);
4259
comp = CreateCompilation(new[] { externAlias1 + usings1 + source, globalUsings1 }, parseOptions:
TestOptions
.RegularPreview);
4262
comp = CreateCompilation(new[] { externAlias1 + externAlias2 + source }, parseOptions:
TestOptions
.RegularPreview);
4276
comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source }, parseOptions:
TestOptions
.RegularPreview);
4284
comp = CreateCompilation(new[] { globalUsings1 + source, globalUsings2 }, parseOptions:
TestOptions
.RegularPreview);
4292
comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 }, parseOptions:
TestOptions
.RegularPreview);
4300
comp = CreateCompilation(new[] { source, globalUsings1, globalUsings2 }, parseOptions:
TestOptions
.RegularPreview);
4308
comp = CreateCompilation(new[] { usings1 + usings2 + source }, parseOptions:
TestOptions
.RegularPreview);
4366
var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source }, parseOptions:
TestOptions
.RegularPreview);
4377
comp = CreateCompilation(new[] { globalUsings1 + source, globalUsings2 }, parseOptions:
TestOptions
.RegularPreview);
4380
comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 }, parseOptions:
TestOptions
.RegularPreview);
4383
comp = CreateCompilation(new[] { source, globalUsings1, globalUsings2 }, parseOptions:
TestOptions
.RegularPreview);
4386
comp = CreateCompilation(new[] { globalUsings1 + usings2 + source }, parseOptions:
TestOptions
.RegularPreview);
4393
comp = CreateCompilation(new[] { usings1 + source, globalUsings2 }, parseOptions:
TestOptions
.RegularPreview);
4400
comp = CreateCompilation(new[] { usings1 + usings2 + source }, parseOptions:
TestOptions
.RegularPreview);
4462
var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source }, parseOptions:
TestOptions
.RegularPreview);
4473
comp = CreateCompilation(new[] { globalUsings1 + source, globalUsings2 }, parseOptions:
TestOptions
.RegularPreview);
4476
comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 }, parseOptions:
TestOptions
.RegularPreview);
4479
comp = CreateCompilation(new[] { source, globalUsings1, globalUsings2 }, parseOptions:
TestOptions
.RegularPreview);
4482
comp = CreateCompilation(new[] { globalUsings1 + usings2 + source }, parseOptions:
TestOptions
.RegularPreview);
4489
comp = CreateCompilation(new[] { usings1 + source, globalUsings2 }, parseOptions:
TestOptions
.RegularPreview);
4496
comp = CreateCompilation(new[] { usings1 + usings2 + source }, parseOptions:
TestOptions
.RegularPreview);
4562
var comp2 = CreateCompilation(externAlias + globalUsing1 + source2, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe, references: new[] { comp1Ref });
4573
comp2 = CreateCompilation(new[] { externAlias + source2, globalUsing1 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe, references: new[] { comp1Ref });
4576
comp2 = CreateCompilation(globalUsing1 + source2, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe, references: new[] { comp1Ref });
4580
var comp2 = CreateCompilation(externAlias + globalUsing2 + source2, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe, references: new[] { comp1Ref });
4591
comp2 = CreateCompilation(new[] { externAlias + source2, globalUsing2 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe, references: new[] { comp1Ref });
4594
comp2 = CreateCompilation(globalUsing2 + source2, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe, references: new[] { comp1Ref });
4598
var comp2 = CreateCompilation(externAlias + using1 + source2, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe, references: new[] { comp1Ref });
4605
comp2 = CreateCompilation(using1 + source2, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe, references: new[] { comp1Ref });
4609
var comp2 = CreateCompilation(externAlias + using2 + source2, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe, references: new[] { comp1Ref });
4616
comp2 = CreateCompilation(using2 + source2, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe, references: new[] { comp1Ref });
4678
var comp2 = CreateCompilation(globalAlias + globalUsing1 + source2, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
4689
comp2 = CreateCompilation(new[] { globalAlias + source2, globalUsing1 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
4692
comp2 = CreateCompilation(new[] { source2, globalAlias + globalUsing1 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
4695
comp2 = CreateCompilation(new[] { source2, globalAlias, globalUsing1 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
4698
comp2 = CreateCompilation(new[] { source2, globalUsing1, globalAlias }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
4701
comp2 = CreateCompilation(globalUsing1 + regularAlias + source2, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
4704
comp2 = CreateCompilation(new[] { regularAlias + source2, globalUsing1 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
4707
comp2 = CreateCompilation(globalUsing1 + source2, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
4711
var comp2 = CreateCompilation(globalAlias + globalUsing2 + source2, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
4722
comp2 = CreateCompilation(new[] { globalAlias + source2, globalUsing2 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
4725
comp2 = CreateCompilation(new[] { source2, globalAlias + globalUsing2 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
4728
comp2 = CreateCompilation(new[] { source2, globalAlias, globalUsing2 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
4731
comp2 = CreateCompilation(new[] { source2, globalUsing2, globalAlias }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
4734
comp2 = CreateCompilation(globalUsing2 + regularAlias + source2, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
4737
comp2 = CreateCompilation(new[] { regularAlias + source2, globalUsing2 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
4740
comp2 = CreateCompilation(globalUsing2 + source2, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
4744
var comp2 = CreateCompilation(globalAlias + using1 + source2, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
4755
comp2 = CreateCompilation(new[] { globalAlias, using1 + source2 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
4758
comp2 = CreateCompilation(regularAlias + using1 + source2, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
4761
comp2 = CreateCompilation(using1 + source2, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
4765
var comp2 = CreateCompilation(globalAlias + using2 + source2, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
4776
comp2 = CreateCompilation(new[] { globalAlias, using2 + source2 }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
4779
comp2 = CreateCompilation(regularAlias + using2 + source2, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
4782
comp2 = CreateCompilation(using2 + source2, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
4865
CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
4925
CreateCompilation(new[] { globalUsing1 + globalUsing2 + regularUsings + source }, parseOptions:
TestOptions
.RegularPreview).
4928
CreateCompilation(new[] { globalUsing1 + regularUsings + source, globalUsing2 }, parseOptions:
TestOptions
.RegularPreview).
4931
CreateCompilation(new[] { regularUsings + source, globalUsing1, globalUsing2 }, parseOptions:
TestOptions
.RegularPreview).
4944
CreateCompilation(new[] { globalUsing1 + globalUsing2 + source }, parseOptions:
TestOptions
.RegularPreview).
4947
CreateCompilation(new[] { globalUsing1 + source, globalUsing2 }, parseOptions:
TestOptions
.RegularPreview).
4950
CreateCompilation(new[] { regularUsings + source }, parseOptions:
TestOptions
.RegularPreview).
4974
var comp = CreateCompilation(new[] { globalUsings1, source }, parseOptions:
TestOptions
.RegularPreview);
5001
CreateCompilation(new[] { source1, source2 }, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
5006
CreateCompilation(new[] { source1, source2 }, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics();
5022
CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
5044
CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
5063
CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
5082
CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
5101
CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics();
Semantics\ImplicitlyTypedLocalsTests.cs (3)
55
CreateCompilationWithMscorlib461(text, parseOptions:
TestOptions
.Script).VerifyDiagnostics(
152
CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp3)).VerifyDiagnostics();
153
CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp2)).VerifyDiagnostics(
Semantics\ImplicitObjectCreationTests.cs (104)
19
private static readonly CSharpParseOptions ImplicitObjectCreationTestOptions =
TestOptions
.Regular9;
49
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
93
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular8);
171
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
268
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
296
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
319
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
352
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, references: new[] { CSharpRef });
373
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, references: new[] { CSharpRef });
404
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
438
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
598
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe).VerifyDiagnostics();
699
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe).VerifyDiagnostics();
780
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll);
953
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
985
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1010
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1029
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1051
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1074
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1095
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1121
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1141
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1204
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe).VerifyDiagnostics();
1229
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe).VerifyDiagnostics();
1252
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe).VerifyDiagnostics();
1273
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe).VerifyDiagnostics();
1298
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe).VerifyDiagnostics();
1317
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe).VerifyDiagnostics(
1346
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe).VerifyDiagnostics(
1370
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
1405
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe).VerifyDiagnostics();
1423
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe).VerifyDiagnostics(
1457
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe).VerifyDiagnostics(
1491
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
1522
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe).VerifyDiagnostics(
1555
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1585
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe).VerifyDiagnostics(
1614
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe).VerifyDiagnostics(
1646
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe).VerifyDiagnostics(
1695
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe).VerifyDiagnostics(
1735
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe).VerifyDiagnostics(
1762
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1787
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1805
_ = CreateCompilation(source, options:
TestOptions
.DebugExe).VerifyDiagnostics(
1839
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7);
1860
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1890
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1920
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1951
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
1973
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
2030
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
2065
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
2110
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
2163
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
2401
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
2425
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
2444
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
2465
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
2486
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
2509
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
2559
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
2592
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
2650
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
2682
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
2726
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
2746
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
2766
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
2787
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
2807
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
2845
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
2882
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
2911
var comp = CreateCompilationWithIndexAndRange(source, options:
TestOptions
.DebugExe, parseOptions: ImplicitObjectCreationTestOptions);
2952
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
2981
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3011
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe.WithAllowUnsafe(true));
3058
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3095
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3114
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3133
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3203
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3248
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3343
var comp = CreateCompilation(source, references: new[] { CSharpRef }, options:
TestOptions
.DebugExe);
3660
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe);
3682
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
3709
var comp = CreateCompilation(text, options:
TestOptions
.DebugDll);
3764
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3785
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3820
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
3867
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3912
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3952
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
4012
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
4055
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
4074
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
4093
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
4112
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
4133
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
4380
var signedDll =
TestOptions
.ReleaseDll.WithCryptoPublicKey(TestResources.TestKeys.PublicKey_ce65828c82a341f2);
4419
parseOptions:
TestOptions
.Regular9);
4467
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
4500
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
Semantics\IndexAndRangeTests.cs (12)
79
comp = CreateCompilationWithIndexAndRange(src, parseOptions:
TestOptions
.Regular7_3);
241
var comp = CreateCompilationWithIndexAndRangeAndSpan(src,
TestOptions
.ReleaseExe);
999
var compilation = CreateCompilationWithIndex(source, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(expected);
1000
compilation = CreateCompilationWithIndex(source, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics();
1482
CreateCompilationWithIndexAndRange(source, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(expected);
1483
CreateCompilationWithIndexAndRange(source, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics();
1641
}", options:
TestOptions
.ReleaseExe).VerifyDiagnostics();
1661
}", options:
TestOptions
.ReleaseExe).VerifyDiagnostics();
1702
}", options:
TestOptions
.ReleaseExe).VerifyDiagnostics();
1722
}", options:
TestOptions
.ReleaseExe).VerifyDiagnostics();
1774
", options:
TestOptions
.ReleaseDll);
1807
", options:
TestOptions
.ReleaseDll);
Semantics\InheritanceBindingTests.cs (10)
71
CreateCompilation(text, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
163
CreateCompilation(text, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
319
CreateCompilation(text, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
2996
new[] { source1 }, TargetFrameworkUtil.GetReferences(TargetFramework.Standard, null).ToArray(),
TestOptions
.DebugDll.WithPublicSign(true));
2999
new[] { source1 }, TargetFrameworkUtil.GetReferences(TargetFramework.Standard, null).ToArray(),
TestOptions
.DebugDll.WithPublicSign(true));
5208
CreateCompilation(text, parseOptions:
TestOptions
.Regular7_2).VerifyDiagnostics(
8750
CreateCompilation(source, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics();
8752
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
8813
CreateCompilation(source, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics();
8815
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
Semantics\InitOnlyMemberTests.cs (131)
40
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular8);
65
var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
77
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8,
103
var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
114
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8,
136
var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
148
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8,
173
var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
186
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8,
208
var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
216
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8,
227
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9,
252
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular8);
279
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular8);
300
var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular8, assemblyName: "lib");
312
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8, references: new[] { lib.ToMetadataReference() }, assemblyName: "comp");
334
var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
346
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8,
367
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
389
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
453
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
494
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
546
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
575
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
604
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
635
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
688
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
745
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
771
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
870
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
945
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
971
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
1003
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
1045
var libComp = CreateCompilation(new[] { parent, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
1047
parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
1050
libComp = CreateCompilation(new[] { parent, source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
1052
parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
1081
var libComp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
1083
parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
1129
var libComp = CreateCompilation(new[] { parent, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
1131
parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
1134
libComp = CreateCompilation(new[] { parent, source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
1136
parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
1149
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
1212
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
1251
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
1281
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
1308
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
1335
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
1362
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
1389
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
1409
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
1442
parseOptions:
TestOptions
.Regular9,
1443
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
1523
var libComp = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
1619
parseOptions:
TestOptions
.Regular9);
1687
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, options:
TestOptions
.DebugExe);
1715
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, options:
TestOptions
.DebugExe);
1764
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
1788
var libComp = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
1813
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9,
1866
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
1906
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
1949
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
1995
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
2034
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
2065
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
2086
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
2104
var libComp = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
2125
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9,
2157
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
2192
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
2213
var libComp = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
2230
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9,
2284
parseOptions:
TestOptions
.Regular9);
2377
parseOptions:
TestOptions
.Regular9);
2418
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
2448
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
2468
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
2490
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
2514
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
2536
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
2611
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
2680
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
2738
options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
2786
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
2823
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
2876
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
2957
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
3009
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.DebugExe);
3036
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
3058
var libComp = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
3086
parseOptions:
TestOptions
.Regular9);
3181
", IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
3257
var comp = CreateCompilation(source, references: new[] { reference }, parseOptions:
TestOptions
.Regular9);
3348
var comp = CreateCompilation(source, references: new[] { reference }, parseOptions:
TestOptions
.Regular9);
3466
var comp = CreateCompilation(source, references: new[] { reference }, parseOptions:
TestOptions
.Regular9,
3467
options:
TestOptions
.ReleaseDll.WithSpecificDiagnosticOptions(
3565
var comp = CreateCompilation(source, references: new[] { reference }, parseOptions:
TestOptions
.Regular9,
3566
options:
TestOptions
.ReleaseDll.WithSpecificDiagnosticOptions(
3629
var comp = CreateCompilation(source, references: new[] { reference }, parseOptions:
TestOptions
.Regular9);
3688
var comp = CreateCompilation(source, references: new[] { reference }, parseOptions:
TestOptions
.Regular9);
3738
var comp = CreateCompilation(source, references: new[] { reference }, parseOptions:
TestOptions
.Regular9);
3806
var comp = CreateCompilation(source, references: new[] { reference }, parseOptions:
TestOptions
.Regular9);
3884
var comp = CreateCompilation(source, references: new[] { reference }, parseOptions:
TestOptions
.Regular9);
3972
var comp = CreateCompilation(source, references: new[] { reference }, parseOptions:
TestOptions
.Regular9);
4055
var comp = CreateCompilation(source, references: new[] { reference }, parseOptions:
TestOptions
.Regular9);
4102
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
4136
", IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
4194
targetFramework: TargetFramework.Mscorlib40, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
4201
targetFramework: TargetFramework.Mscorlib46, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
4483
var comp = CreateCompilation(new[] { IsExternalInitTypeDefinition, source }, options:
TestOptions
.DebugExe);
4536
var comp = CreateCompilation(new[] { IsExternalInitTypeDefinition, source }, options:
TestOptions
.DebugExe);
4562
var comp = CreateCompilation(new[] { IsExternalInitTypeDefinition, source }, options:
TestOptions
.DebugExe);
4594
var piaCompilation = CreateCompilationWithMscorlib461(new[] { IsExternalInitTypeDefinition, pia }, options:
TestOptions
.DebugDll);
4612
options:
TestOptions
.DebugExe);
4715
options:
TestOptions
.DebugDll.WithTopLevelBinderFlags(BinderFlags.IgnoreCorLibraryDuplicatedTypes));
4736
options:
TestOptions
.DebugDll.WithTopLevelBinderFlags(BinderFlags.IgnoreCorLibraryDuplicatedTypes));
4761
options:
TestOptions
.DebugDll.WithTopLevelBinderFlags(BinderFlags.IgnoreCorLibraryDuplicatedTypes));
Semantics\InteractiveSemanticModelTests.cs (3)
35
parseOptions:
TestOptions
.Script,
36
options:
TestOptions
.ReleaseExe.WithScriptClassName("Goo.Bar.Script")
357
var compilation = CreateCompilation(testSrc, parseOptions:
TestOptions
.Script);
Semantics\InteractiveUsingTests.cs (10)
53
options:
TestOptions
.DebugDll.WithUsings("System", "System.IO.Path"));
66
options:
TestOptions
.DebugDll.WithUsings("System.Text"));
159
var options =
TestOptions
.DebugDll.WithUsings("System");
268
var options =
TestOptions
.DebugDll.WithUsings("System");
292
CreateSubmission("typeof(String)", options:
TestOptions
.DebugDll.WithUsings("System", "System")).VerifyDiagnostics();
298
var options =
TestOptions
.DebugDll.WithUsings("System");
325
var options =
TestOptions
.DebugDll.WithUsings("B");
365
options:
TestOptions
.DebugDll.WithSourceReferenceResolver(resolver));
436
options:
TestOptions
.DebugDll.WithSourceReferenceResolver(resolver),
486
options:
TestOptions
.DebugDll.WithSourceReferenceResolver(resolver).WithUsings("System.IO", "System.IO.Path"));
Semantics\InterceptorsTests.cs (50)
36
private static readonly CSharpParseOptions RegularWithInterceptors =
TestOptions
.Regular.WithFeature("InterceptorsNamespaces", "global");
70
comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions:
TestOptions
.Regular.WithFeature("InterceptorsPreview-experimental"));
73
comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions:
TestOptions
.Regular.WithFeature("InterceptorsPreview", "false"));
76
comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions:
TestOptions
.Regular.WithFeature("interceptorspreview"));
79
comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions:
TestOptions
.Regular.WithFeature("InterceptorsPreview", "Global"));
82
comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions:
TestOptions
.Regular.WithFeature("InterceptorsPreview", "global.a"));
113
var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions:
TestOptions
.Regular.WithFeature("InterceptorsNamespaces", "NS"));
119
comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions:
TestOptions
.Regular.WithFeature("InterceptorsNamespaces", "NS1.NS2"));
125
var verifier = CompileAndVerify(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions:
TestOptions
.Regular.WithFeature("InterceptorsNamespaces", "NS1"), expectedOutput: "1");
128
verifier = CompileAndVerify(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions:
TestOptions
.Regular.WithFeature("InterceptorsNamespaces", "NS1;NS2"), expectedOutput: "1");
135
test(
TestOptions
.Regular.WithFeature("InterceptorsNamespaces", "NS"), expectedOutput: null,
140
test(
TestOptions
.Regular.WithFeature("InterceptorsNamespaces", "NS1.NS2"), expectedOutput: null,
145
test(
TestOptions
.Regular.WithFeature("InterceptorsNamespaces", "NS1"), expectedOutput: "1");
147
test(
TestOptions
.Regular.WithFeature("InterceptorsNamespaces", "NS1;NS2"), expectedOutput: "1");
240
var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions:
TestOptions
.Regular.WithFeature("InterceptorsNamespaces", featureValue));
249
var verifier = CompileAndVerify(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions:
TestOptions
.Regular.WithFeature("InterceptorsNamespaces", featureValue), expectedOutput: "1");
275
var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions:
TestOptions
.Regular.WithFeature("InterceptorsNamespaces", ""));
306
var verifier = CompileAndVerify(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions:
TestOptions
.Regular.WithFeature("InterceptorsNamespaces", "global"), expectedOutput: "1");
309
verifier = CompileAndVerify(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions:
TestOptions
.Regular.WithFeature("InterceptorsNamespaces", "global"), expectedOutput: "1");
337
var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions:
TestOptions
.Regular.WithFeature("InterceptorsNamespaces", "global.A"));
1939
var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors, options:
TestOptions
.UnsafeDebugExe);
2043
var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors, options:
TestOptions
.UnsafeDebugExe);
4881
options:
TestOptions
.DebugExe.WithSourceReferenceResolver(
4914
options:
TestOptions
.DebugExe.WithSourceReferenceResolver(
4945
options:
TestOptions
.DebugExe.WithSourceReferenceResolver(
5012
options:
TestOptions
.DebugDll.WithSourceReferenceResolver(
5046
options:
TestOptions
.DebugExe.WithSourceReferenceResolver(
5078
options:
TestOptions
.DebugExe.WithSourceReferenceResolver(
5117
options:
TestOptions
.DebugExe.WithSourceReferenceResolver(
5516
options:
TestOptions
.DebugExe.WithSourceReferenceResolver(
5554
options:
TestOptions
.DebugExe.WithSourceReferenceResolver(
5611
options:
TestOptions
.DebugExe.WithSourceReferenceResolver(
5621
options:
TestOptions
.DebugExe.WithSourceReferenceResolver(
6305
var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions:
TestOptions
.Regular.WithFeature("InterceptorsNamespaces", "Interceptors"));
6350
var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions:
TestOptions
.Regular.WithFeature("InterceptorsNamespaces", "Interceptors"));
6403
var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions:
TestOptions
.Regular.WithFeature("InterceptorsNamespaces", "Interceptors"));
6452
var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions:
TestOptions
.Regular.WithFeature("InterceptorsNamespaces", "Interceptors"));
6508
var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions:
TestOptions
.Regular.WithFeature("InterceptorsNamespaces", "Interceptors"));
6556
var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions:
TestOptions
.Regular.WithFeature("InterceptorsNamespaces", "Interceptors"));
6602
var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions: featureExists ?
TestOptions
.Regular.WithFeature("InterceptorsNamespaces", "") :
TestOptions
.Regular);
6646
var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions:
TestOptions
.Regular.WithFeature("InterceptorsNamespaces", "Interceptors;Interceptors"));
6674
var comp = CreateCompilation(new[] { source, s_attributesSource }, parseOptions:
TestOptions
.Regular.WithFeature("InterceptorsNamespaces", "Interceptors"));
6693
var comp = CreateCompilation([], parseOptions:
TestOptions
.Regular.WithFeature("InterceptorsNamespaces", "Interceptors"));
6733
var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions:
TestOptions
.Regular.WithFeature("InterceptorsNamespaces", @namespace));
6775
var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions:
TestOptions
.Regular.WithFeature("InterceptorsNamespaces", "Interceptors.Nested"));
7433
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugExe);
7453
options:
TestOptions
.UnsafeDebugExe,
7486
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugExe);
7506
options:
TestOptions
.UnsafeDebugExe,
Semantics\InterpolationTests.cs (56)
989
CreateCompilation(source, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
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();
1261
var parseOptions =
TestOptions
.Regular11;
1421
var parseOptions =
TestOptions
.Regular11;
2222
var comp = CreateCompilation(new[] { source, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: true, useDefaultParameters: false, useBoolReturns: false) }, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.NetCoreApp);
2257
var verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: expectedOutput, targetFramework: TargetFramework.Net50, parseOptions:
TestOptions
.Regular10);
2264
var comp2 = CreateCompilation(source, new[] { reference }, targetFramework: TargetFramework.Net50, parseOptions:
TestOptions
.Regular10);
3660
var comp = CreateCompilation(new[] { source, interpolatedStringBuilder }, options:
TestOptions
.UnsafeReleaseExe, targetFramework: TargetFramework.NetCoreApp);
3742
var comp = CreateCompilation(new[] { source, interpolatedStringBuilder }, parseOptions:
TestOptions
.Regular9);
4889
var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }, parseOptions:
TestOptions
.Regular10);
4926
comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }, parseOptions:
TestOptions
.Regular9);
5221
var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }, parseOptions:
TestOptions
.Regular10);
5559
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net50);
5569
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10, targetFramework: TargetFramework.Net50);
5845
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
5851
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
8050
InterpolatedStringHandlerArgumentAttribute_MismatchedRefTypes(
TestOptions
.Regular11, "ref", "in", expression,
9972
comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, options:
TestOptions
.DebugExe);
10025
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options:
TestOptions
.ReleaseExe);
10128
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options:
TestOptions
.DebugExe);
10274
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options:
TestOptions
.ReleaseExe);
10373
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options:
TestOptions
.ReleaseExe);
10471
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options:
TestOptions
.ReleaseExe);
10525
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options:
TestOptions
.ReleaseExe);
10624
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options:
TestOptions
.ReleaseExe);
10723
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options:
TestOptions
.ReleaseExe);
10821
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options:
TestOptions
.ReleaseExe);
10920
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options:
TestOptions
.ReleaseExe);
11005
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options:
TestOptions
.ReleaseExe);
11117
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options:
TestOptions
.ReleaseExe);
11369
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options:
TestOptions
.ReleaseExe);
11554
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options:
TestOptions
.ReleaseExe);
11654
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options:
TestOptions
.ReleaseExe);
14628
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, parseOptions:
TestOptions
.Regular10, targetFramework: TargetFramework.Net50);
14697
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, parseOptions:
TestOptions
.Regular10, targetFramework: TargetFramework.Net50);
14737
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, parseOptions:
TestOptions
.Regular10, targetFramework: TargetFramework.Net50);
14777
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions:
TestOptions
.Regular10, targetFramework: TargetFramework.Net50);
14835
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions:
TestOptions
.Regular10, targetFramework: TargetFramework.Net50);
14869
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions:
TestOptions
.Regular10, targetFramework: TargetFramework.Net50);
14903
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions:
TestOptions
.Regular10, targetFramework: TargetFramework.Net50);
14940
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50);
14978
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions:
TestOptions
.Regular10, targetFramework: TargetFramework.Net50);
14988
comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions:
TestOptions
.Regular11, targetFramework: TargetFramework.Net50);
15033
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions:
TestOptions
.Regular10, targetFramework: TargetFramework.Net50);
15036
comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions:
TestOptions
.Regular11, 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);
18020
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, parseOptions:
TestOptions
.Regular11);
18785
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, options:
TestOptions
.DebugExe);
18898
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, options:
TestOptions
.DebugExe);
Semantics\IteratorTests.cs (5)
198
CompileAndVerify(source, options:
TestOptions
.ReleaseExe,
442
var comp = CreateCompilationWithMscorlib461(text, parseOptions:
TestOptions
.Script);
474
var comp = CreateCompilationWithMscorlib461(text, parseOptions:
TestOptions
.Script);
511
var comp = CreateCompilation(text, options:
TestOptions
.DebugDll);
551
var comp = CompileAndVerify(source, expectedOutput: "0,1,2,3", options:
TestOptions
.DebugExe);
Semantics\LambdaDiscardParametersTests.cs (14)
44
}", parseOptions:
TestOptions
.Regular8);
85
}", parseOptions:
TestOptions
.Regular9);
101
}", parseOptions:
TestOptions
.Regular9);
138
}", options:
TestOptions
.DebugExe);
267
var comp = CreateCompilation(src, parseOptions:
TestOptions
.Regular7_3);
277
var comp2 = CreateCompilation(src, parseOptions:
TestOptions
.Regular8);
284
var comp3 = CreateCompilation(src, parseOptions:
TestOptions
.Regular9);
305
}", options:
TestOptions
.DebugExe);
325
}", options:
TestOptions
.DebugExe);
368
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
378
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
441
}", options:
TestOptions
.DebugExe);
476
}", options:
TestOptions
.DebugExe);
560
}", options:
TestOptions
.DebugExe);
Semantics\LambdaTests.cs (95)
419
options:
TestOptions
.ReleaseDll);
439
options:
TestOptions
.ReleaseExe);
451
options:
TestOptions
.ReleaseExe);
1169
var tree = SyntaxFactory.ParseSyntaxTree(source, options:
TestOptions
.Regular9);
1441
}", options:
TestOptions
.ReleaseExe);
1885
var compilation = CreateCompilation(source, new[] { CSharpRef }, options:
TestOptions
.ReleaseExe);
1923
var compilation = CreateCompilation(source, new[] { CSharpRef }, options:
TestOptions
.ReleaseExe);
1974
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe);
2788
var comp = CreateCompilationWithMscorlib40AndSystemCore(src, options:
TestOptions
.DebugExe);
2813
var comp = CreateCompilation(src, options:
TestOptions
.DebugDll);
2975
var comp = CreateCompilationWithMscorlib40AndSystemCore(src, options:
TestOptions
.DebugExe);
3078
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
3096
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
3122
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
3160
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
3201
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
3239
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
3254
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
3279
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
3313
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
3355
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
3388
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
3412
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
3436
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
3463
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
3501
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
3540
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
3609
var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.Regular10, options:
TestOptions
.ReleaseExe);
3677
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
3695
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
3731
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
3734
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
3761
var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.RegularPreview);
3778
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
3813
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
3873
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
3929
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
3972
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
4023
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
4058
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
4088
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.ReleaseExe);
4114
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.ReleaseExe);
4149
var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.RegularPreview);
4180
var comp = CreateCompilationWithMscorlib40(source, parseOptions:
TestOptions
.RegularPreview);
4207
parseOptions:
TestOptions
.RegularPreview);
4238
var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition, NotNullAttributeDefinition }, parseOptions:
TestOptions
.RegularPreview);
4725
var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }, parseOptions:
TestOptions
.RegularPreview);
4844
var comp = CreateCompilation(new[] { source, UnmanagedCallersOnlyAttributeDefinition }, parseOptions:
TestOptions
.RegularPreview);
4864
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
4922
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4949
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
4977
parseOptions:
TestOptions
.RegularPreview);
5016
var comp = CreateCompilation(new[] { source, NotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.RegularPreview);
5048
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
5060
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
5081
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
5108
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
5136
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
5162
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
5186
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
5212
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
5246
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
5284
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
5325
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
5361
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
5387
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
5413
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
5432
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
5457
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
5485
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
5509
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
5598
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
5680
CompileAndVerify(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.RegularPreview, expectedOutput:
5711
var comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.RegularPreview);
5745
var comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.RegularPreview);
5963
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
5991
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
6035
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
6038
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
6063
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
6072
CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput:
6097
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
6124
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
6150
CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput: @"System.Int64");
6170
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
7008
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
7134
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
7139
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics();
7158
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
8253
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
8258
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics();
8270
CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
Semantics\LocalFunctionTests.cs (179)
23
internal static readonly CSharpParseOptions DefaultParseOptions =
TestOptions
.Regular;
27
var comp = CreateCompilationWithMscorlib461AndCSharp(source, options:
TestOptions
.ReleaseDll, parseOptions: DefaultParseOptions);
92
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.ReleaseExe);
149
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.ReleaseExe);
297
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.ReleaseExe);
343
var tree = SyntaxFactory.ParseSyntaxTree(text, options:
TestOptions
.Regular9);
438
var tree = SyntaxFactory.ParseSyntaxTree(text, options:
TestOptions
.Regular9);
443
var newTree = SyntaxFactory.ParseSyntaxTree(text + " ", options:
TestOptions
.Regular9);
484
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular9);
532
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular9);
603
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular9);
656
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular9);
710
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular9);
758
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular9);
796
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular9);
843
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
886
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular8);
901
comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular9);
946
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular9);
1016
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular9);
1081
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular9);
1118
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular9);
1202
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
1283
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
1348
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular9);
1379
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular9);
1452
var compWithUnsafe = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
1489
var compWithUnsafe = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
1518
var compWithUnsafe = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
1747
}", parseOptions:
TestOptions
.Regular9);
1822
}", parseOptions:
TestOptions
.Regular9);
1898
}", options:
TestOptions
.Regular9);
1954
}", options:
TestOptions
.Regular9);
2023
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
2063
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
2156
var comp = CreateCompilation(src, parseOptions:
TestOptions
.Regular7_3);
2186
comp = CreateCompilation(src, parseOptions:
TestOptions
.Regular8);
2369
var comp = CreateCompilation(src, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular12.WithFeature("run-nullable-analysis", "never"));
2441
CreateCompilation(src, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular13.WithFeature("run-nullable-analysis", "never")).VerifyDiagnostics(expectedDiagnostics);
2442
CreateCompilation(src, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.RegularPreview.WithFeature("run-nullable-analysis", "never")).VerifyDiagnostics(expectedDiagnostics);
2673
}", parseOptions:
TestOptions
.Regular9);
2696
CreateCompilationWithMscorlib461AndCSharp(source, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
2844
var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.ReleaseExe);
3032
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
3038
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
3056
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
3065
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
3205
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithAllowUnsafe(true));
3733
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
3737
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
3740
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
4011
var option =
TestOptions
.ReleaseExe;
4012
CreateCompilation(source, options: option, parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics(
4265
var comp = CreateCompilationWithMscorlib46(source, parseOptions: DefaultParseOptions, options:
TestOptions
.DebugExe);
4540
}", options:
TestOptions
.UnsafeDebugDll);
4781
var comp = CreateCompilationWithMscorlib46(source, parseOptions: DefaultParseOptions, options:
TestOptions
.DebugExe);
4813
var comp = CreateCompilationWithMscorlib46(source, parseOptions: DefaultParseOptions, options:
TestOptions
.DebugExe);
4846
var comp = CreateCompilationWithMscorlib46(source, parseOptions: DefaultParseOptions, options:
TestOptions
.DebugExe);
4879
var comp = CreateCompilationWithMscorlib46(source, parseOptions: DefaultParseOptions, options:
TestOptions
.DebugExe);
4916
var comp = CreateCompilationWithMscorlib46(source, parseOptions: DefaultParseOptions, options:
TestOptions
.DebugExe);
4952
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9);
5254
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
5257
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
5303
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
5321
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
5347
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
5410
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
5449
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
5493
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
5541
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
5580
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
5620
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
5693
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
5727
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
5755
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
5946
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithPreprocessorSymbols("MyDefine"));
5949
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular);
5987
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
6027
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
6058
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
6094
var comp = CreateCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }, parseOptions:
TestOptions
.Regular9);
6125
var comp = CreateCompilation(new[] { MaybeNullWhenAttributeDefinition, source }, parseOptions:
TestOptions
.Regular9);
6163
var comp = CreateCompilation(new[] { MaybeNullWhenAttributeDefinition, source }, parseOptions:
TestOptions
.Regular9);
6193
var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, source }, parseOptions:
TestOptions
.Regular9);
6222
var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, parseOptions:
TestOptions
.Regular9);
6263
var comp = CreateCompilation(new[] { MaybeNullWhenAttributeDefinition, source }, parseOptions:
TestOptions
.Regular9);
6290
var comp = CreateCompilation(new[] { DoesNotReturnAttributeDefinition, source }, parseOptions:
TestOptions
.Regular9);
6319
var comp = CreateCompilation(new[] { DoesNotReturnIfAttributeDefinition, source }, parseOptions:
TestOptions
.Regular9);
6529
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll);
6891
CompileAndVerify(source, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: m =>
6916
CompileAndVerify(source, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "System.Int32", symbolValidator: m =>
6946
CompileAndVerify(source, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "System.Int32", symbolValidator: m =>
7252
var comp = CreateCompilation(source, parseOptions: useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
7282
var comp = CreateCompilation(source, parseOptions: useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
7310
var comp = CreateCompilation(source, parseOptions: useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
7339
var parseOptions = useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11;
7413
var parseOptions = useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11;
7485
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
7500
var attr = parseAttributeSyntax("[My(nameof(TParameter))]",
TestOptions
.Regular10);
7504
attr = parseAttributeSyntax("[My(TParameter)]",
TestOptions
.Regular10);
7509
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular11);
7525
attr = parseAttributeSyntax("[My(TParameter)]",
TestOptions
.Regular10);
7558
var parseOptions = useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11;
7618
var comp = CreateCompilation(source, parseOptions: useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
8512
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
8516
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular11);
8532
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular10);
8536
comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular11);
8670
var comp = CreateCompilation(source, parseOptions: useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
8728
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular11);
8767
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular11);
8808
var comp = CreateCompilation(source, parseOptions: useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
8850
var comp = CreateCompilation(source, parseOptions: useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
8884
var comp = CreateCompilation(source, parseOptions: useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
8914
var parseOptions = useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11;
8983
var comp = CreateCompilation(source, parseOptions: useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
9004
var comp = CreateCompilation(source, parseOptions: useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
9028
var comp = CreateCompilation(source, parseOptions: useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
9052
var comp = CreateCompilation(source, parseOptions: useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
9076
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
9099
var comp = CreateCompilation(source, parseOptions: useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
9149
var comp = CreateCompilation(source, parseOptions: useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
9166
var comp = CreateCompilation(source, parseOptions: useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
9186
var comp = CreateCompilation(source, parseOptions: useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
9355
var comp = CreateCompilation(source, parseOptions: useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
9383
var comp = CreateCompilation(source, parseOptions: useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
9418
var parseOptions = useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11;
9434
var attr = parseAttributeSyntax("[My(nameof(parameter))]",
TestOptions
.Regular10);
9438
attr = parseAttributeSyntax("[My(parameter)]",
TestOptions
.Regular10);
9462
var comp = CreateCompilation(source, parseOptions: useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
9482
var comp = CreateCompilation(source, parseOptions: useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
9574
var comp = CreateCompilation(source, parseOptions: useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
9591
var comp = CreateCompilation(source, parseOptions: useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
9611
var comp = CreateCompilation(source, parseOptions: useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
9631
var comp = CreateCompilation(source, parseOptions: useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
9654
var comp = CreateCompilation(source, parseOptions: useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
9708
var comp = CreateCompilation(source, parseOptions: useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
9736
var parseOptions = useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11;
9752
var attr = parseAttributeSyntax("[My(nameof(parameter))]",
TestOptions
.Regular10);
9756
attr = parseAttributeSyntax("[My(parameter)]",
TestOptions
.Regular10);
9777
var comp = CreateCompilation(source, parseOptions: useCSharp10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
Semantics\LockTests.cs (1)
775
var strictCompilation = CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithStrictFeature());
Semantics\LookupPositionTests.cs (1)
3115
var parseOptions =
TestOptions
.Regular9.WithDocumentationMode(DocumentationMode.Diagnose);
Semantics\LookupTests.cs (4)
26
var parseOptions =
TestOptions
.Regular;
36
var tree = Parse(testSrc, options: isScript ?
TestOptions
.Script :
TestOptions
.Regular);
37
var compilation = CreateCompilationWithMscorlib461(new[] { tree }, options:
TestOptions
.ReleaseDll.WithUsings(globalUsings));
Semantics\MultiDimensionalArrayTests.cs (15)
298
var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options:
TestOptions
.ReleaseExe);
333
var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options:
TestOptions
.ReleaseExe);
381
var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options:
TestOptions
.ReleaseExe);
421
var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options:
TestOptions
.ReleaseDll);
441
var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options:
TestOptions
.ReleaseDll);
472
var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options:
TestOptions
.ReleaseExe);
532
var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options:
TestOptions
.ReleaseExe);
601
var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options:
TestOptions
.ReleaseExe);
626
var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options:
TestOptions
.ReleaseExe);
680
var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options:
TestOptions
.ReleaseExe);
712
var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options:
TestOptions
.ReleaseExe);
746
var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options:
TestOptions
.ReleaseDll);
1090
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseExe);
1538
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseExe);
1678
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, references: new[] { SystemCoreRef }, options:
TestOptions
.ReleaseExe);
Semantics\NameCollisionTests.cs (6)
834
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
894
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
1099
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
1168
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
1776
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
1839
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
Semantics\NamedAndOptionalTests.cs (6)
174
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1).VerifyDiagnostics(
774
var c = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.FailsPEVerify);
1570
compilationOptions:
TestOptions
.ReleaseExe,
1676
var libComp = CreateCompilation(library, options:
TestOptions
.ReleaseDll, assemblyName: "Library");
1679
var exeComp = CreateCompilation(main, new[] { new CSharpCompilationReference(libComp) }, options:
TestOptions
.ReleaseExe, assemblyName: "Main");
2439
var comp = CreateCompilationWithIL(csharp, il, options:
TestOptions
.DebugExe);
Semantics\NameLengthTests.cs (5)
404
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
407
options:
TestOptions
.NativePdbEmit,
429
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
432
options:
TestOptions
.NativePdbEmit,
555
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll);
Semantics\NameOfTests.cs (94)
240
var option =
TestOptions
.ReleaseExe.WithWarningLevel(0);
420
var option =
TestOptions
.ReleaseExe.WithWarningLevel(0);
520
", parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp5));
593
options:
TestOptions
.DebugExe,
594
parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp5));
617
options:
TestOptions
.DebugExe,
618
parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp6));
636
options:
TestOptions
.DebugExe,
637
parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics(
658
options:
TestOptions
.DebugExe,
659
parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp5)).VerifyDiagnostics(
1442
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe);
1498
var compilation = CreateCompilationWithMscorlib461(source, null,
TestOptions
.UnsafeDebugExe);
1537
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
1580
var compilation = CreateCompilationWithMscorlib461(source, null,
TestOptions
.UnsafeDebugExe);
1612
var compilation = CreateCompilationWithMscorlib461(source, null,
TestOptions
.UnsafeDebugExe);
1692
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe);
1707
var option =
TestOptions
.ReleaseDll;
1724
var option =
TestOptions
.ReleaseDll;
1737
var option =
TestOptions
.ReleaseDll;
1752
var option =
TestOptions
.ReleaseDll;
1766
var option =
TestOptions
.ReleaseDll;
1791
var option =
TestOptions
.ReleaseDll;
1814
CompileAndVerify(source, parseOptions:
TestOptions
.Regular11, expectedOutput: expectedOutput).VerifyDiagnostics();
1815
CompileAndVerify(source, parseOptions:
TestOptions
.Regular12, expectedOutput: expectedOutput).VerifyDiagnostics();
1816
CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput: expectedOutput).VerifyDiagnostics();
1849
CompileAndVerify(source, parseOptions:
TestOptions
.Regular12, expectedOutput: expectedOutput).VerifyDiagnostics();
1850
CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput: expectedOutput).VerifyDiagnostics();
1851
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
1905
CompileAndVerify(source, parseOptions:
TestOptions
.Regular12, expectedOutput: expectedOutput).VerifyDiagnostics();
1906
CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput: expectedOutput).VerifyDiagnostics();
1907
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
1946
CompileAndVerify(source, parseOptions:
TestOptions
.Regular12, expectedOutput: expectedOutput).VerifyDiagnostics();
1947
CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput: expectedOutput).VerifyDiagnostics();
1948
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
1966
CompileAndVerify(source, parseOptions:
TestOptions
.Regular12, expectedOutput: "Length").VerifyDiagnostics();
1967
CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput: "Length").VerifyDiagnostics();
1968
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
1991
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
1992
CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(expectedDiagnostics);
1993
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
2010
CompileAndVerify(source, parseOptions:
TestOptions
.Regular12, expectedOutput: "Length").VerifyDiagnostics();
2011
CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput: "Length").VerifyDiagnostics();
2012
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
2036
CompileAndVerify(source, parseOptions:
TestOptions
.Regular12, expectedOutput: "Length").VerifyDiagnostics();
2037
CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput: "Length").VerifyDiagnostics();
2038
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
2055
CompileAndVerify(source, parseOptions:
TestOptions
.Regular12, expectedOutput: "StaticProp").VerifyDiagnostics();
2056
CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput: "StaticProp").VerifyDiagnostics();
2057
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
2074
CompileAndVerify(source, parseOptions:
TestOptions
.Regular12, expectedOutput: "StaticProp").VerifyDiagnostics();
2075
CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput: "StaticProp").VerifyDiagnostics();
2076
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
2095
CompileAndVerify(source, parseOptions:
TestOptions
.Regular12, expectedOutput: "M").VerifyDiagnostics();
2096
CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput: "M").VerifyDiagnostics();
2097
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
2114
CompileAndVerify(source, parseOptions:
TestOptions
.Regular12, expectedOutput: "StaticMethod").VerifyDiagnostics();
2115
CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput: "StaticMethod").VerifyDiagnostics();
2116
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
2128
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
2142
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
2158
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
2174
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
2194
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
2210
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
2227
CompileAndVerify(source, parseOptions:
TestOptions
.Regular11, expectedOutput: "StaticMethod").VerifyDiagnostics();
2228
CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput: "StaticMethod").VerifyDiagnostics();
2248
CompileAndVerify(source, parseOptions:
TestOptions
.Regular11, expectedOutput: "Length").VerifyDiagnostics();
2249
CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput: "Length").VerifyDiagnostics();
2270
CompileAndVerify(source, parseOptions:
TestOptions
.Regular12, expectedOutput: "StaticMethod").VerifyDiagnostics();
2271
CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput: "StaticMethod").VerifyDiagnostics();
2272
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
2295
CompileAndVerify(source, parseOptions:
TestOptions
.Regular12, expectedOutput: "Prop").VerifyDiagnostics();
2296
CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput: "Prop").VerifyDiagnostics();
2297
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
2320
CompileAndVerify(source, parseOptions:
TestOptions
.Regular12, expectedOutput: "Prop").VerifyDiagnostics();
2321
CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview, expectedOutput: "Prop").VerifyDiagnostics();
2322
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
2344
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
2345
CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(expectedDiagnostics);
2346
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(expectedDiagnostics);
2365
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
2366
CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(expectedDiagnostics);
2367
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(expectedDiagnostics);
2391
""", parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
2406
""", parseOptions:
TestOptions
.RegularNext, expectedOutput: "List").VerifyDiagnostics();
2419
""", parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
2435
""", parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
2451
""", parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
2839
""", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
2870
""", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
2901
""", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
2923
""", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
2948
""", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
Semantics\NativeIntegerTests.cs (330)
70
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
85
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
103
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
175
var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.Regular9.WithNoRefSafetyRulesAttribute());
181
comp = CreateEmptyCompilation(sourceA, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
188
comp = CreateEmptyCompilation(sourceB, references: new[] { ref1 }, parseOptions:
TestOptions
.Regular9.WithNoRefSafetyRulesAttribute());
194
comp = CreateEmptyCompilation(sourceB, references: new[] { ref2 }, parseOptions:
TestOptions
.Regular9.WithNoRefSafetyRulesAttribute());
695
var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.Regular9.WithNoRefSafetyRulesAttribute());
699
comp = CreateEmptyCompilation(sourceA, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
704
comp = CreateEmptyCompilation(sourceB, references: new[] { ref1 }, parseOptions:
TestOptions
.Regular9.WithNoRefSafetyRulesAttribute());
708
comp = CreateEmptyCompilation(sourceB, references: new[] { ref2 }, parseOptions:
TestOptions
.Regular9.WithNoRefSafetyRulesAttribute());
776
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Mscorlib40);
791
comp = CreateCompilation(sourceB, references: new[] { refA }, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Mscorlib461);
856
comp = CreateEmptyCompilation(sourceA, references: new[] { ref1 }, parseOptions:
TestOptions
.Regular9);
895
comp = CreateEmptyCompilation(sourceB, references: new[] { ref2, refA }, parseOptions:
TestOptions
.Regular9);
965
comp = CreateEmptyCompilation(sourceA, references: new[] { ref1 }, parseOptions:
TestOptions
.Regular9);
1012
comp = CreateEmptyCompilation(sourceB, references: new[] { ref2, refA }, parseOptions:
TestOptions
.Regular9);
1064
comp = CreateCompilation(sourceB, references: new[] { refA1 }, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Standard);
1080
comp = CreateCompilation(sourceC, references: new[] { refA2, refB }, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Standard);
1149
comp = CreateEmptyCompilation(sourceA, references: new[] { ref1 }, parseOptions:
TestOptions
.Regular9);
1161
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
1224
comp = CreateEmptyCompilation(sourceA, references: new[] { ref1 }, parseOptions:
TestOptions
.Regular9);
1236
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
1293
var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.Regular9);
1300
var parseOptions =
TestOptions
.Regular9.WithNoRefSafetyRulesAttribute();
1510
comp = CreateEmptyCompilation(sourceA, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
1590
var comp = CreateEmptyCompilation(source0, parseOptions:
TestOptions
.Regular9);
1597
comp = CreateEmptyCompilation("", references: new[] { ref1 }, parseOptions:
TestOptions
.Regular9);
1601
comp = CreateEmptyCompilation("", references: new[] { ref2 }, parseOptions:
TestOptions
.Regular9);
1643
var comp = CreateEmptyCompilation(source0, parseOptions:
TestOptions
.Regular9);
1650
comp = CreateEmptyCompilation("", references: new[] { ref1 }, parseOptions:
TestOptions
.Regular9);
1654
comp = CreateEmptyCompilation("", references: new[] { ref2 }, parseOptions:
TestOptions
.Regular9);
1757
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
1893
var comp = CreateEmptyCompilation(sourceA, options:
TestOptions
.UnsafeReleaseDll);
1930
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.UnsafeReleaseDll);
2056
var comp = CreateEmptyCompilation(sourceA, options:
TestOptions
.UnsafeReleaseDll);
2112
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.UnsafeReleaseDll);
2226
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
2329
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
2461
var compB = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
2545
var comp = CreateEmptyCompilation(source, parseOptions:
TestOptions
.Regular9);
2617
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
2719
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
2871
var comp = CreateEmptyCompilation(sourceB, new[] { refA }, parseOptions:
TestOptions
.Regular9);
2925
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular8);
2934
comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
2972
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular8);
2981
comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
3014
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
3112
var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.Regular9);
3115
comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
3120
comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions:
TestOptions
.Regular9);
3123
comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions:
TestOptions
.Regular9);
3159
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular8);
3164
comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions:
TestOptions
.Regular9);
3167
comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions:
TestOptions
.Regular9);
3194
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
3199
comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions:
TestOptions
.Regular8);
3202
comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions:
TestOptions
.Regular8);
3253
var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.Regular9);
3256
comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
3261
comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions:
TestOptions
.Regular9);
3264
comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions:
TestOptions
.Regular9);
3299
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular8);
3320
comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions:
TestOptions
.Regular9);
3323
comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions:
TestOptions
.Regular9);
3358
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
3379
comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions:
TestOptions
.Regular8);
3382
comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions:
TestOptions
.Regular8);
3402
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
3426
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
3450
var comp = CreateCompilation(source1, parseOptions:
TestOptions
.Regular9);
3459
comp = CreateCompilation(source2, references: new[] { ref1 }, parseOptions:
TestOptions
.Regular8);
3473
comp = CreateCompilation(source3, references: new[] { ref1 }, parseOptions:
TestOptions
.Regular9);
3489
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(5), parseOptions:
TestOptions
.Regular9);
3492
comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(6), parseOptions:
TestOptions
.Regular9);
3527
var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.Regular9);
3530
comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
3535
comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions:
TestOptions
.Regular9);
3538
comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions:
TestOptions
.Regular9);
3563
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular8);
3568
comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions:
TestOptions
.Regular9);
3571
comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions:
TestOptions
.Regular9);
3596
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
3601
comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions:
TestOptions
.Regular8);
3604
comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions:
TestOptions
.Regular8);
3620
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
3627
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
3670
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8, options:
TestOptions
.ReleaseExe);
3673
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
3702
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
3709
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
3736
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
3743
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
3772
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
3786
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
3794
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics();
3815
var comp = CreateCompilation(new[] { source1, source2 }, parseOptions:
TestOptions
.Regular8);
3818
comp = CreateCompilation(new[] { source1, source2 }, parseOptions:
TestOptions
.Regular9);
3821
comp = CreateCompilation(new[] { source1, source2 }, parseOptions:
TestOptions
.RegularPreview);
3833
var comp = CreateCompilation(source1, parseOptions:
TestOptions
.Regular8);
3842
comp = CreateCompilation(source1, parseOptions:
TestOptions
.Regular9);
3851
comp = CreateCompilation(source1, parseOptions:
TestOptions
.RegularPreview);
3879
var comp = CreateCompilation(source1, parseOptions:
TestOptions
.Regular8);
3888
comp = CreateCompilation(source1, parseOptions:
TestOptions
.Regular9);
3897
comp = CreateCompilation(source1, parseOptions:
TestOptions
.RegularPreview);
3933
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
3936
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
3965
var comp = CreateCompilation(new[] { source1, source2 }, parseOptions:
TestOptions
.Regular8);
3968
comp = CreateCompilation(new[] { source1, source2 }, parseOptions:
TestOptions
.Regular9);
4001
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
4004
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
4023
var comp = CreateCompilation(new[] { source1, source2 }, parseOptions:
TestOptions
.Regular8);
4026
comp = CreateCompilation(new[] { source1, source2 }, parseOptions:
TestOptions
.Regular9);
4051
var comp = CreateCompilation(new[] { source1, source2 }, parseOptions:
TestOptions
.Regular8);
4054
comp = CreateCompilation(new[] { source1, source2 }, parseOptions:
TestOptions
.Regular9);
4071
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
4106
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
4110
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
4143
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
4152
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
4170
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular8);
4179
comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
4202
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
4211
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
4231
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
4240
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
4263
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
4266
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
4282
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
4288
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
4309
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
4340
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseExe, parseOptions:
TestOptions
.Regular9);
4373
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
4382
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
4401
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(expectedDiagnostics);
4402
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
4416
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular9);
4452
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
4488
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.StandardAndCSharp);
4544
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
4613
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
4687
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
4758
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
4762
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
4884
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
4887
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
4890
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular8);
4996
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
4999
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
5063
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular8);
5144
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
5147
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
5203
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
5206
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
5226
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
5247
comp = CreateCompilation(sourceB, references: new[] { AsReference(comp, useCompilationReference) }, parseOptions: useLatest ?
TestOptions
.Regular9 :
TestOptions
.Regular8);
5338
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
5357
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
5447
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular8);
5487
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
5503
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
5506
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular8);
5535
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
5550
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
5553
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular8);
5579
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
5606
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
5609
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular8);
5671
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
5684
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
5687
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular8);
5713
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
5734
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
5737
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular8);
5782
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
5823
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
5826
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular8);
5844
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
5868
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
5871
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular8);
5889
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
6001
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
6004
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular8);
6019
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
6033
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
6036
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular8);
6057
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
6105
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
6186
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
6286
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
6360
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
6387
comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
6410
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
6427
comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
6545
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
6592
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
6731
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
6895
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
6916
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
6941
var comp = CreateCompilation(source0, parseOptions:
TestOptions
.Regular9);
6953
comp = CreateCompilation(source1, references: new[] { ref0 }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
6970
var comp = CreateCompilation(source0, parseOptions:
TestOptions
.Regular9);
6984
comp = CreateCompilation(source1, references: new[] { ref0 }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseExe);
7003
var comp = CreateCompilation(source0, parseOptions:
TestOptions
.Regular9);
7022
comp = CreateCompilation(source1, references: new[] { ref0 }, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
7042
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
7082
var comp = CreateCompilation(source0, parseOptions:
TestOptions
.Regular9);
7116
var comp = CreateCompilation(source0, parseOptions:
TestOptions
.Regular9);
7214
var comp = CreateCompilation(new[] { sourceA, sourceB }, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
7217
comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
7221
comp = CreateCompilation(sourceB, references: new[] { ref1 }, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
7224
comp = CreateCompilation(sourceB, references: new[] { ref2 }, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
7227
comp = CreateCompilation(sourceB, references: new[] { ref1 }, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular8);
7230
comp = CreateCompilation(sourceB, references: new[] { ref2 }, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular8);
7287
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
7454
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
9490
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithAllowUnsafe(useUnsafeContext), parseOptions:
TestOptions
.Regular9);
9725
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
10099
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
10326
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
10376
var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.Regular9);
10493
var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.Regular9);
12376
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithAllowUnsafe(useUnsafeContext), parseOptions:
TestOptions
.Regular9);
12437
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
12662
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
12865
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
12940
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
13264
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
13282
comp = CreateCompilation(sourceB, references: new[] { refA }, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
13308
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
13336
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
13366
comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
13383
comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
13401
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
13431
comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
13448
comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
13487
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
13516
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
13540
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9);
13569
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
13605
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
13664
var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions:
TestOptions
.Regular9);
13727
var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions:
TestOptions
.Regular9);
13793
var verifier = CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput:
13872
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseExe, parseOptions:
TestOptions
.Regular9);
14010
var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.Regular9);
14066
CompileAndVerify(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.Regular9, expectedOutput:
14169
var verifier = CompileAndVerify(source, parseOptions:
TestOptions
.Regular9, expectedOutput:
14218
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
14246
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
14301
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
14370
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.UnsafeReleaseDll);
14419
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
14441
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
14474
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
14510
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
14598
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
14627
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
14650
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
14675
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
14704
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
14729
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
15064
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
15312
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
15333
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
15356
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
15384
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
15407
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
15433
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
15832
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseExe);
Semantics\NonTrailingNamedArgumentsTests.cs (24)
40
var verifier = CompileAndVerify(source, expectedOutput: "First 1 2. Second 3 4.", parseOptions:
TestOptions
.Regular7_2);
86
var verifier = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions:
TestOptions
.Regular7_2);
89
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
114
var verifier = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions:
TestOptions
.Regular7_2);
138
var verifier = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions:
TestOptions
.Regular7_2);
161
var verifier = CompileAndVerifyWithMscorlib40(source, expectedOutput: "1 2.", parseOptions:
TestOptions
.Regular7_2, references: new[] { Net40.References.SystemCore });
164
var comp = CreateCompilationWithMscorlib40(source, parseOptions:
TestOptions
.Regular7_1, references: new[] { Net40.References.SystemCore });
194
var verifier = CompileAndVerify(source, expectedOutput: "1 2. 1 2.", parseOptions:
TestOptions
.Regular7_2);
197
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
225
var verifier = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions:
TestOptions
.Regular7_2);
228
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
261
var verifier = CompileAndVerify(source, expectedOutput: "Get 1 2. Set 3 4 5.", parseOptions:
TestOptions
.Regular7_2);
264
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
300
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_2);
334
var lib = CreateCompilation(lib_cs, parseOptions:
TestOptions
.Regular7);
336
var verifier1 = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions:
TestOptions
.Regular7_2, references: new[] { lib.ToMetadataReference() });
339
var verifier2 = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions:
TestOptions
.Regular7_2, references: new[] { lib.EmitToImageReference() });
388
var verifier = CompileAndVerify(source, expectedOutput: "1 hi.", parseOptions:
TestOptions
.Regular7_2);
558
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
673
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
815
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_2);
822
var comp2 = CreateCompilation(source, parseOptions:
TestOptions
.Regular7);
843
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_2);
1009
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
Semantics\NullableContextTests.cs (34)
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);
558
var options =
TestOptions
.ReleaseDll;
1023
var options =
TestOptions
.ReleaseDll.WithNullableContextOptions(NullableContextOptions.Disable);
1051
verify(new[] { source1, source2, source3, source4 },
TestOptions
.ReleaseDll.WithNullableContextOptions(NullableContextOptions.Enable), new[] { ".ctor" },
1735
var options =
TestOptions
.ReleaseExe;
2223
var options =
TestOptions
.ReleaseDll;
Semantics\NullableConversionTests.cs (1)
653
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithWarningLevel(0));
Semantics\NullableReferenceTypesTests.cs (790)
1243
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
1285
var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion), options:
TestOptions
.ReleaseDll);
1378
}", options:
TestOptions
.UnsafeDebugDll);
1609
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
1747
var comp = CreateCompilation(source, options: WithNullableEnable(
TestOptions
.DebugExe));
1781
var comp = CreateCompilation(source, options: WithNullableEnable(
TestOptions
.DebugExe));
1952
var comp = CreateCompilation(source, options: WithNullableEnable(
TestOptions
.DebugExe));
2001
CreateCompilation(source, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
2087
var compilation2 = CreateCompilation(source2, new[] { reference.WithEmbedInteropTypes(true), CSharpRef }, options:
TestOptions
.ReleaseExe);
2219
}",
TestOptions
.UnsafeReleaseDll);
2237
var comp = CreateCompilation(source, options: WithNullableEnable(
TestOptions
.DebugExe));
2259
var comp = CreateCompilation(source, options: WithNullableEnable(
TestOptions
.DebugExe));
2337
var comp = CreateCompilation(source, options: WithNullableEnable(
TestOptions
.DebugExe));
2370
var comp = CreateCompilation(source, options: WithNullableEnable(
TestOptions
.DebugExe));
2455
var comp = CreateCompilation(source, options: WithNullableEnable(
TestOptions
.DebugExe));
2667
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll);
2693
var comp = CreateCompilation(source, options: WithNullable(
TestOptions
.UnsafeReleaseDll, NullableContextOptions.Enable));
2815
var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
3560
CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
4020
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
4138
var c = CreateCompilation(source, parseOptions:
TestOptions
.Regular7);
4148
var c2 = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
4521
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithDocumentationComments, options: WithNullableEnable());
4554
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithDocumentationComments, options: WithNullableEnable());
4586
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithDocumentationComments, options: WithNullableEnable());
4674
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
5189
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
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));
5393
var comp = CreateCompilation(new[] { source0, source1, source2 }, options:
TestOptions
.DebugDll);
5406
comp = CreateCompilation(new[] { source0, source1, source2 }, options:
TestOptions
.DebugDll.WithNullableContextOptions(NullableContextOptions.Disable));
5419
comp = CreateCompilation(new[] { source0, source1, source2 }, options:
TestOptions
.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable));
5556
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable));
5576
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable));
5598
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable));
5616
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable));
5638
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable));
5667
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable));
5701
var comp = CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable));
5736
var comp = CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable));
5814
options:
TestOptions
.DebugDll
6364
var comp2 = CreateCompilation(source, options:
TestOptions
.DebugDll.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress));
6381
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
6398
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
6418
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
6442
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
6465
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
6487
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
6509
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
6532
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
6554
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
6576
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
6643
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
7528
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7);
7620
var c = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
7644
var c = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
7672
var c = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
7724
var c = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular8, options: WithNullableEnable());
7796
var c = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
7811
var c = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
7856
c = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
7866
var c2 = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular7_3, skipUsesIsNullable: true);
8424
var c = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
8427
var c2 = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
8461
var c3 = CreateCompilation(new[] { source }, options: WithNullableDisable(), parseOptions:
TestOptions
.Regular8);
8486
CSharpCompilation c = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
8582
var comp = CreateCompilation("", options: WithNullableDisable(), parseOptions:
TestOptions
.Regular7);
8589
var comp = CreateCompilation("", options: WithNullable(NullableContextOptions.Enable), parseOptions:
TestOptions
.Regular7_3);
8595
comp = CreateCompilation("", options: WithNullable(NullableContextOptions.Warnings), parseOptions:
TestOptions
.Regular7_3);
8601
comp = CreateCompilation("", options: WithNullable(NullableContextOptions.Disable), parseOptions:
TestOptions
.Regular7_3);
8604
comp = CreateCompilation("", options: WithNullable(NullableContextOptions.Enable), parseOptions:
TestOptions
.Regular8);
8607
comp = CreateCompilation("", options: WithNullable(NullableContextOptions.Warnings), parseOptions:
TestOptions
.Regular8);
8610
comp = CreateCompilation("", options: WithNullable(NullableContextOptions.Disable), parseOptions:
TestOptions
.Regular8);
8613
comp = CreateCompilation(new string[] { }, options: WithNullable(NullableContextOptions.Enable), parseOptions:
TestOptions
.Regular7_3);
8616
comp = CreateCompilation(new string[] { }, options: WithNullable(NullableContextOptions.Enable), parseOptions:
TestOptions
.Regular8);
8619
comp = CreateCompilation(new string[] { }, options: WithNullable(NullableContextOptions.Warnings), parseOptions:
TestOptions
.Regular7_3);
8622
comp = CreateCompilation(new string[] { }, options: WithNullable(NullableContextOptions.Warnings), parseOptions:
TestOptions
.Regular8);
8625
comp = CreateCompilation(new string[] { }, options: WithNullable(NullableContextOptions.Disable), parseOptions:
TestOptions
.Regular7_3);
8628
comp = CreateCompilation(new string[] { }, options: WithNullable(NullableContextOptions.Disable), parseOptions:
TestOptions
.Regular8);
8644
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Regular7);
8669
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Regular7);
8705
var comp0 = CreateEmptyCompilation(source0, parseOptions:
TestOptions
.Regular7);
8718
parseOptions:
TestOptions
.Regular8);
8811
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
8818
var comp1 = CreateCompilation(source1, references: compRefs0, parseOptions:
TestOptions
.Regular7);
8821
comp1 = CreateCompilation(source1, references: metadataRefs0, parseOptions:
TestOptions
.Regular7);
8841
comp1 = CreateCompilation(source1, references: compRefs0, parseOptions:
TestOptions
.Regular7);
8844
comp1 = CreateCompilation(source1, references: metadataRefs0, parseOptions:
TestOptions
.Regular7);
8871
comp1 = CreateCompilation(source1, references: compRefs0, parseOptions:
TestOptions
.Regular7);
8874
comp1 = CreateCompilation(source1, references: metadataRefs0, parseOptions:
TestOptions
.Regular7);
8928
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
8975
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
9017
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular7);
9043
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular7);
9081
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
9155
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
9246
var comp1 = CreateCompilation(source1, references: new[] { ref0 }, parseOptions:
TestOptions
.Regular7);
9250
var comp2A = CreateCompilation(source2, references: new[] { ref0, ref1 }, parseOptions:
TestOptions
.Regular7);
9336
var comp1 = CreateCompilation(source1, references: new[] { ref0 }, parseOptions:
TestOptions
.Regular7);
9372
comp1 = CreateCompilation(source1, references: new[] { ref0 }, parseOptions:
TestOptions
.Regular7);
9424
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
9548
var obliviousComp = CreateCompilation(obliviousLib, parseOptions:
TestOptions
.Regular7);
9654
parseOptions:
TestOptions
.Regular8, references: new[] { obliviousComp.EmitToImageReference(), libComp.EmitToImageReference() });
9717
var obliviousComp = CreateCompilation(obliviousLib, parseOptions:
TestOptions
.Regular7);
9805
parseOptions:
TestOptions
.Regular8, references: new[] { obliviousComp.EmitToImageReference(), libComp.EmitToImageReference() });
9854
var obliviousComp = CreateCompilation(obliviousLib, parseOptions:
TestOptions
.Regular7);
9924
parseOptions:
TestOptions
.Regular8, references: new[] { obliviousComp.EmitToImageReference(), libComp.EmitToImageReference() });
9956
var obliviousComp = CreateCompilation(obliviousLib, parseOptions:
TestOptions
.Regular7);
10033
parseOptions:
TestOptions
.Regular8, references: new[] { obliviousComp.EmitToImageReference(), libComp.EmitToImageReference() });
10083
var obliviousComp = CreateCompilation(obliviousLib, parseOptions:
TestOptions
.Regular7);
10162
parseOptions:
TestOptions
.Regular8, references: new[] { obliviousComp.EmitToImageReference(), libComp.EmitToImageReference() });
10203
var obliviousComp = CreateCompilation(obliviousLib, parseOptions:
TestOptions
.Regular7);
10279
parseOptions:
TestOptions
.Regular8, references: new[] { obliviousComp.EmitToImageReference(), libComp.EmitToImageReference() });
10315
var compilation = CreateCompilation("", options:
TestOptions
.ReleaseDll,
10316
parseOptions:
TestOptions
.Regular8, references: new[] { obliviousComp.EmitToImageReference() });
10379
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular7);
10404
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular7);
10407
comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular7, skipUsesIsNullable: true);
10427
var obliviousComp = CreateCompilation(obliviousLib, parseOptions:
TestOptions
.Regular7);
10442
parseOptions:
TestOptions
.Regular8, references: new[] { obliviousComp.EmitToImageReference() });
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());
11245
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular8);
11816
var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
12450
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular8);
13376
var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
13449
var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
13554
var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
13587
var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
13851
parseOptions:
TestOptions
.Regular8);
14435
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
14485
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
16996
var comp = CreateCompilation(source, options: WithNullableEnable(
TestOptions
.DebugExe));
17071
var comp = CreateCompilation(source, options: WithNullableEnable(
TestOptions
.DebugExe));
17405
var comp = CreateCompilation(source, options: WithNullableEnable(
TestOptions
.DebugExe));
17473
var comp = CreateCompilation(source, options: WithNullableEnable(
TestOptions
.DebugExe));
17554
var comp = CreateCompilation(source, options: WithNullableEnable(
TestOptions
.DebugExe));
17638
var comp = CreateCompilation(source, options: WithNullableEnable(
TestOptions
.DebugExe));
17888
compilation = CreateCompilation("", references: new[] { compilation.EmitToImageReference() }, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
17909
var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
17982
var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
18034
var compilation = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular8);
19669
", options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.Regular7);
19805
", options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.Regular7);
19873
", options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.Regular7);
19918
", options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.Regular7);
19989
", options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.Regular7);
20039
", options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.Regular7);
20119
", options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.Regular7);
20187
", options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.Regular7);
20500
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
20862
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
20884
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
20922
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
20964
""", MemberNotNullAttributeDefinition], parseOptions:
TestOptions
.Regular9);
22780
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
22859
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
22924
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
22980
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
23033
", MemberNotNullAttributeDefinition, NotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
23064
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
23114
", references: new[] { libComp.EmitToImageReference() }, parseOptions:
TestOptions
.Regular9);
23235
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
23292
}", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
23348
", new[] { libComp.EmitToImageReference() }, parseOptions:
TestOptions
.Regular9);
23430
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
23478
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
23503
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
23530
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
23554
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
23568
" }, references: new[] { libComp.EmitToImageReference() }, parseOptions:
TestOptions
.Regular8);
23598
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
23659
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
23695
var c = CreateCompilation(new[] { source, MemberNotNullAttributeDefinition, MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular8);
23714
var c2 = CreateCompilation(new[] { source, MemberNotNullAttributeDefinition, MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
23755
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
23806
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
23911
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
23979
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
24034
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
24074
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
24121
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
24168
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
24207
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
24249
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
24285
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
24321
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
24364
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
24453
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
24482
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
24520
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
24559
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
24589
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
24624
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
24669
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
24719
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
24773
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
24815
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
24865
", MemberNotNullWhenAttributeDefinition, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
24896
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
24927
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
24971
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
25052
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
25092
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
25133
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
25193
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
25220
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
25251
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
25302
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
25356
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
25413
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
25453
}", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
25489
", references: new[] { libComp.EmitToImageReference() }, parseOptions:
TestOptions
.Regular9);
25524
}", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
25559
", references: new[] { libComp.EmitToImageReference() }, parseOptions:
TestOptions
.Regular9);
25626
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
25664
}", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
25699
", references: new[] { libComp.EmitToImageReference() }, parseOptions:
TestOptions
.Regular9);
25758
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
25815
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
25866
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
25930
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
26003
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
26067
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
26120
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
26177
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
26223
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
26276
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
26324
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
26365
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
26563
", MemberNotNullAttributeDefinition, MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
26613
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
26648
", MemberNotNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
26676
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
26717
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
26759
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
26797
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
26838
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
26880
", MemberNotNullWhenAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
29759
", MaybeNullAttributeDefinition }, parseOptions:
TestOptions
.Regular8);
32070
options:
TestOptions
.DebugExe.WithNullableContextOptions(NullableContextOptions.Enable));
36678
", parseOptions:
TestOptions
.Regular7);
36734
", parseOptions:
TestOptions
.Regular7);
37041
var comp = CreateNullableCompilation(new[] { source, DoesNotReturnAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
37067
var comp = CreateNullableCompilation(new[] { source, DoesNotReturnAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
41620
var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
41645
var comp = CreateNullableCompilation(source, parseOptions:
TestOptions
.Regular8);
41881
var comp = CreateNullableCompilation(source, parseOptions:
TestOptions
.Regular8);
47056
var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }, parseOptions:
TestOptions
.Regular8);
48800
var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, NotNullAttributeDefinition, source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
55970
", options: WithNullableEnable(
TestOptions
.ReleaseExe));
55989
", options: WithNullableEnable(
TestOptions
.ReleaseExe));
56004
", options: WithNullableEnable(
TestOptions
.ReleaseExe));
56037
", options: WithNullableEnable(
TestOptions
.ReleaseDll));
56662
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
56711
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
56786
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
56850
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
56897
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
56943
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
57304
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
57550
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
57781
var comp = CreateCompilation(source, options: WithNullableEnable(
TestOptions
.ReleaseExe));
57809
var comp = CreateCompilation(source, options: WithNullableEnable(
TestOptions
.ReleaseExe));
57837
var comp = CreateCompilation(source, options: WithNullableEnable(
TestOptions
.ReleaseExe));
57865
var comp = CreateCompilation(source, options: WithNullableEnable(
TestOptions
.ReleaseExe));
57893
var comp = CreateCompilation(source, options: WithNullableEnable(
TestOptions
.ReleaseExe));
57910
var comp = CreateCompilation(source, options: WithNullableEnable(
TestOptions
.ReleaseExe));
57927
var comp = CreateCompilation(source, options: WithNullableEnable(
TestOptions
.ReleaseExe));
57944
var comp = CreateCompilation(source, options: WithNullableEnable(
TestOptions
.ReleaseExe));
57961
var comp = CreateCompilation(source, options: WithNullableEnable(
TestOptions
.ReleaseExe));
57994
var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }, options: WithNullableEnable(
TestOptions
.ReleaseExe));
58433
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
58826
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
58885
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
59009
parseOptions:
TestOptions
.Regular8);
59046
parseOptions:
TestOptions
.Regular7);
59319
parseOptions:
TestOptions
.Regular8);
59351
parseOptions:
TestOptions
.Regular8);
59391
parseOptions:
TestOptions
.Regular8);
59418
parseOptions:
TestOptions
.Regular8);
59764
var c = CreateCompilation(source, parseOptions:
TestOptions
.Regular7);
60341
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
60466
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
60528
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
60583
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
60661
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
60750
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
60855
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
61142
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
61530
var piaCompilation = CreateCompilationWithMscorlib461(pia, options: WithNullableEnable(
TestOptions
.DebugDll));
61588
var piaCompilation = CreateCompilationWithMscorlib461(pia, options: WithNullableEnable(
TestOptions
.DebugDll));
63840
", options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.Regular7);
64176
""", options: WithNullableEnable(
TestOptions
.ReleaseExe));
64603
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
64661
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
64734
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
65462
parseOptions:
TestOptions
.Regular8);
65518
parseOptions:
TestOptions
.Regular8);
65546
parseOptions:
TestOptions
.Regular7);
66875
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
68223
", GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns, includeTrailingOutConstructorParameter: validityParameter) }, parseOptions:
TestOptions
.RegularPreview);
68267
parseOptions:
TestOptions
.RegularPreview);
68296
parseOptions:
TestOptions
.RegularPreview);
68332
parseOptions:
TestOptions
.RegularPreview);
68369
parseOptions:
TestOptions
.RegularPreview);
68420
parseOptions:
TestOptions
.RegularPreview);
71187
" }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
71244
parseOptions:
TestOptions
.Regular8);
71314
parseOptions:
TestOptions
.Regular8);
71355
parseOptions:
TestOptions
.Regular8);
71392
parseOptions:
TestOptions
.Regular8);
71429
parseOptions:
TestOptions
.Regular8);
71462
parseOptions:
TestOptions
.Regular8);
71494
parseOptions:
TestOptions
.Regular8);
71775
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithFeature("run-nullable-analysis", "always"), options: WithNullableEnable());
76905
var piaCompilation = CreateCompilationWithMscorlib461(pia, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.Regular7);
76929
options: WithNullableEnable(
TestOptions
.DebugExe));
77072
" }, options: WithNullableEnable(
TestOptions
.DebugDll));
77103
parseOptions:
TestOptions
.Regular8,
77108
parseOptions:
TestOptions
.Regular8,
77121
" }, options: WithNullableEnable(
TestOptions
.DebugDll));
77144
parseOptions:
TestOptions
.Regular8,
77149
parseOptions:
TestOptions
.Regular8,
77314
parseOptions:
TestOptions
.Regular8,
77345
parseOptions:
TestOptions
.Regular8,
77372
parseOptions:
TestOptions
.Regular8,
77378
parseOptions:
TestOptions
.Regular8,
77479
parseOptions:
TestOptions
.Regular8,
77495
parseOptions:
TestOptions
.Regular8,
77507
parseOptions:
TestOptions
.Regular8,
77513
parseOptions:
TestOptions
.Regular8,
77540
parseOptions:
TestOptions
.Regular8,
77546
parseOptions:
TestOptions
.Regular8,
77647
parseOptions:
TestOptions
.Regular8,
77666
parseOptions:
TestOptions
.Regular8,
77679
parseOptions:
TestOptions
.Regular8,
77685
parseOptions:
TestOptions
.Regular8,
77788
parseOptions:
TestOptions
.Regular8,
77807
parseOptions:
TestOptions
.Regular8,
77820
parseOptions:
TestOptions
.Regular8,
77826
parseOptions:
TestOptions
.Regular8,
77934
parseOptions:
TestOptions
.Regular8,
77965
parseOptions:
TestOptions
.Regular8,
77981
parseOptions:
TestOptions
.Regular8,
77997
parseOptions:
TestOptions
.Regular8,
78027
parseOptions:
TestOptions
.Regular8);
78051
parseOptions:
TestOptions
.Regular8);
78087
parseOptions:
TestOptions
.Regular8);
78123
parseOptions:
TestOptions
.Regular8);
78181
parseOptions:
TestOptions
.Regular8,
78869
var compA = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular7);
78882
options:
TestOptions
.ReleaseExe,
78883
parseOptions:
TestOptions
.Regular8,
78910
parseOptions:
TestOptions
.Regular8);
78946
parseOptions:
TestOptions
.Regular8);
79076
parseOptions:
TestOptions
.Regular8);
79140
parseOptions:
TestOptions
.Regular8);
79196
parseOptions:
TestOptions
.Regular7, skipUsesIsNullable: true);
79222
parseOptions:
TestOptions
.Regular8);
79246
parseOptions:
TestOptions
.Regular8);
79273
parseOptions:
TestOptions
.Regular8);
79300
parseOptions:
TestOptions
.Regular8);
79326
parseOptions:
TestOptions
.Regular8);
79413
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
79437
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
79479
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
79535
parseOptions:
TestOptions
.Regular8);
79833
parseOptions:
TestOptions
.Regular8);
79864
parseOptions:
TestOptions
.Regular8);
79898
parseOptions:
TestOptions
.Regular8);
79932
parseOptions:
TestOptions
.Regular8);
79963
parseOptions:
TestOptions
.Regular8);
79993
parseOptions:
TestOptions
.Regular8,
79994
options: WithNullableEnable(
TestOptions
.ReleaseExe));
80026
parseOptions:
TestOptions
.Regular8);
80146
parseOptions:
TestOptions
.Regular8);
80190
parseOptions:
TestOptions
.Regular8,
80191
options: WithNullableEnable(
TestOptions
.ReleaseExe));
80252
var comp = CreateCompilation(src, options: WithNullableEnable(
TestOptions
.DebugDll));
80281
parseOptions:
TestOptions
.Regular8,
80282
options: WithNullableEnable(
TestOptions
.ReleaseExe));
80326
parseOptions:
TestOptions
.Regular8);
80620
parseOptions:
TestOptions
.Regular8);
80626
parseOptions:
TestOptions
.Regular8);
80632
parseOptions:
TestOptions
.Regular7);
80715
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
80719
comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular8);
80723
comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular7);
80838
parseOptions:
TestOptions
.Regular8);
80861
parseOptions:
TestOptions
.Regular8);
80882
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular9, options: WithNullableEnable());
80913
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular9, options: WithNullableEnable());
80964
parseOptions:
TestOptions
.Regular8, options: WithNullableEnable());
80998
parseOptions:
TestOptions
.Regular8);
81101
parseOptions:
TestOptions
.Regular8);
81125
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular9, options: WithNullableEnable());
81153
parseOptions:
TestOptions
.Regular8.WithFeature("staticNullChecking"));
81164
parseOptions:
TestOptions
.Regular8.WithFeature("staticNullChecking", "0"));
81175
parseOptions:
TestOptions
.Regular8.WithFeature("staticNullChecking", "1"));
81209
parseOptions:
TestOptions
.Regular8);
81218
parseOptions:
TestOptions
.Regular8);
81245
parseOptions:
TestOptions
.Regular8);
81300
parseOptions:
TestOptions
.Script.WithLanguageVersion(LanguageVersion.CSharp8));
81371
var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { source }, parseOptions:
TestOptions
.Script.WithLanguageVersion(LanguageVersion.CSharp8));
81396
parseOptions:
TestOptions
.Regular8);
81415
parseOptions:
TestOptions
.Regular8,
81767
comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular7_3, skipUsesIsNullable: true);
81807
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular7, skipUsesIsNullable: true);
81874
var comp = CreateCompilation(source, references: new[] { libComp.EmitToImageReference() }, parseOptions:
TestOptions
.Regular7_3);
81951
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
82325
parseOptions:
TestOptions
.Regular8);
82343
parseOptions:
TestOptions
.Regular8);
82563
parseOptions:
TestOptions
.Regular8);
82616
parseOptions:
TestOptions
.Regular8);
82637
parseOptions:
TestOptions
.Regular8);
82652
parseOptions:
TestOptions
.Regular8);
83079
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(
TestOptions
.UnsafeReleaseDll));
83260
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
84074
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
84161
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
86874
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithExtendedPropertyPatterns);
87727
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options: WithNullableEnable());
88883
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular7);
88943
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular7);
89043
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular7);
89056
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular7);
89214
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
90862
var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
91227
CreateCompilation(source, options: WithNullableEnable(
TestOptions
.DebugExe)).VerifyDiagnostics(
91696
var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
91723
var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
91752
var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
91790
var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
91822
var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
91851
var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
91881
var comp = CreateCompilation(new[] { source, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
91908
var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
91938
var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
91968
var comp = CreateCompilation(new[] { source, DisallowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
91995
var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
92027
var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
92054
var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
92088
var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
92118
var comp = CreateCompilation(new[] { source, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
92197
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
92224
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
92253
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
92292
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
92325
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
92355
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
92385
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
92412
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
92442
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, AllowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
92472
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, DisallowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
92500
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
92533
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
92561
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
92595
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
92625
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
92649
var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
92674
var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
92737
parseOptions:
TestOptions
.Regular8);
92763
parseOptions:
TestOptions
.Regular8);
92798
parseOptions:
TestOptions
.Regular8);
92820
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
92878
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
92920
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
92991
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
93035
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
93108
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
93152
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
93253
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
93294
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
93341
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
93478
parseOptions:
TestOptions
.Regular8);
93511
parseOptions:
TestOptions
.Regular8);
93536
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
93592
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
93665
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
93738
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(
TestOptions
.UnsafeDebugDll));
93793
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
93831
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
93917
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
94012
parseOptions:
TestOptions
.Regular8);
94083
parseOptions:
TestOptions
.Regular8);
94129
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
94328
parseOptions:
TestOptions
.Regular8);
94352
parseOptions:
TestOptions
.Regular8);
94376
parseOptions:
TestOptions
.Regular8);
94400
parseOptions:
TestOptions
.Regular8);
94423
parseOptions:
TestOptions
.Regular8);
94444
parseOptions:
TestOptions
.Regular8);
94550
parseOptions:
TestOptions
.Regular8);
94569
parseOptions:
TestOptions
.Regular8);
94590
parseOptions:
TestOptions
.Regular8);
94622
parseOptions:
TestOptions
.Regular8);
97355
var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
97590
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
97834
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3, skipUsesIsNullable: true);
97848
comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular7_3, skipUsesIsNullable: true);
97856
comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8, skipUsesIsNullable: true);
97859
comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9, skipUsesIsNullable: true);
97882
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
97915
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
97945
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
97985
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
98047
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
98087
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
98143
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
98177
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
98211
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
98241
var comp = CreateCompilation(new[] { source, NullableAttributeDefinition }, parseOptions:
TestOptions
.Regular9);
98368
parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
98649
var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options: WithNullable(NullableContextOptions.Warnings), parseOptions:
TestOptions
.Regular8);
98707
options: WithNullableEnable(
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)));
98774
options: WithNullableEnable(
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)),
98845
options: WithNullableEnable(
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)),
99131
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
99134
comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular7_3, skipUsesIsNullable: true);
99337
var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options: WithNullable(NullableContextOptions.Warnings), parseOptions:
TestOptions
.Regular8);
99462
var comp6 = CreateCompilation(new[] { source1 }, options: WithNullableDisable(), parseOptions:
TestOptions
.Regular8);
99619
var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
99702
var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
99992
var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
100363
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
100407
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular7_3);
100428
comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular7_3, skipUsesIsNullable: true);
100460
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
100610
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
101861
var compilation = CreateCompilation(new[] { Tuple2NonNullable, TupleRestNonNullable, source }, targetFramework: TargetFramework.Mscorlib46, parseOptions:
TestOptions
.Regular7_3, skipUsesIsNullable: true);
104973
parseOptions:
TestOptions
.Regular8);
105762
var comp1 = CreateCompilation(new[] { source1 }, parseOptions:
TestOptions
.Regular8);
105810
var comp1 = CreateCompilation(new[] { source1 }, parseOptions:
TestOptions
.Regular8);
106109
var comp2 = CreateCompilation(new[] { source2 }, references: new[] { reference }, parseOptions:
TestOptions
.Regular8);
107722
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
110087
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
110164
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
110194
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
110228
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
110287
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
110343
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
110415
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
110441
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
110471
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
110494
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
110632
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
110680
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
110717
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
110781
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
110825
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
110986
var comp = CreateCompilation(source0, parseOptions:
TestOptions
.Regular8);
111108
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular7);
111137
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
111175
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
111207
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
111370
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
111406
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
111439
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
111475
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
111508
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
111594
var comp0 = CreateCompilation(new[] { source0 }, parseOptions:
TestOptions
.Regular8);
111745
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular8);
111799
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular8);
111846
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
111888
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
111908
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
111982
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
112082
var comp = CreateCompilation(new[] { source }, references: new[] { ref0 }, parseOptions:
TestOptions
.Regular8);
112125
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
112210
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
112278
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular7);
112630
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular8);
112650
comp0 = CreateCompilation(new[] { source0 }, options: WithNullableDisable(), parseOptions:
TestOptions
.Regular8);
114861
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular8);
115074
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
116544
CreateCompilation(text, options: WithNullableEnable(
TestOptions
.ReleaseDll)).VerifyEmitDiagnostics();
116545
CreateCompilation(text, options: WithNullableEnable(
TestOptions
.ReleaseDll), parseOptions:
TestOptions
.Regular.WithStrictFeature()).VerifyEmitDiagnostics();
116569
options: WithNullableEnable(
TestOptions
.ReleaseExe),
116616
var compilation1 = CreateEmptyCompilation(source1, options: WithNullableEnable(
TestOptions
.ReleaseDll), references: new[] { MinCorlibRef });
116632
var compilation2 = CreateEmptyCompilation(source2, options: WithNullableEnable(
TestOptions
.ReleaseDll), references: new[] { compilation1.EmitToImageReference(), MinCorlibRef });
116645
var compilation3 = CreateEmptyCompilation(source2, options: WithNullableEnable(
TestOptions
.ReleaseDll), references: new[] { compilation1.ToMetadataReference(), MinCorlibRef });
116656
var compilation4 = CreateEmptyCompilation(source2, options: WithNullableEnable(
TestOptions
.ReleaseDll), references: new[] { compilation1.EmitToImageReference() });
116686
var compilation5 = CreateEmptyCompilation(source2, options: WithNullableEnable(
TestOptions
.ReleaseDll), references: new[] { compilation1.ToMetadataReference() });
116724
var compilation6 = CreateEmptyCompilation(source2, options: WithNullableEnable(
TestOptions
.ReleaseDll), references: new[] { compilation1.EmitToImageReference(), MscorlibRef });
116754
var compilation7 = CreateEmptyCompilation(source2, options: WithNullableEnable(
TestOptions
.ReleaseDll), references: new[] { compilation1.ToMetadataReference(), MscorlibRef });
116795
var comp = CreateCompilation(source2, new[] { ref1.WithEmbedInteropTypes(true), CSharpRef }, options: WithNullableEnable(
TestOptions
.ReleaseExe));
117097
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
117129
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
117157
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
117190
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
117218
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
117251
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
117274
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
117301
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
117328
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
117517
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
117657
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
117794
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
117815
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
117838
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
117861
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
117932
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
117955
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
118187
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
118231
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
119803
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
120421
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
121384
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
122035
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
122056
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
122078
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
122099
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
122120
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
122142
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
122406
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
122428
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
122449
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
122615
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
122780
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
123174
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
123196
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
123242
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
123264
CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
127123
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7, options: WithNullableEnable());
131919
var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
132527
var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
135977
var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
136642
CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular7_3)
136672
CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular7_3)
139819
CreateCompilation(source, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
144959
var spanRef = CreateCompilation(TestSources.Span, options:
TestOptions
.UnsafeReleaseDll)
145310
var comp = CreateCompilation(source, options: WithNullableEnable(
TestOptions
.ReleaseExe));
145346
var comp = CreateCompilation(source, options: WithNullableEnable(
TestOptions
.ReleaseExe));
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);
147621
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
147712
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
147834
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
148013
var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, parseOptions:
TestOptions
.Regular8);
148121
var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }, parseOptions:
TestOptions
.Regular8);
148285
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
148356
var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, parseOptions:
TestOptions
.Regular8);
148440
var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }, parseOptions:
TestOptions
.Regular8);
148535
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
148608
var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, parseOptions:
TestOptions
.Regular8);
149889
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
149911
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
149920
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
149934
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular8);
149940
comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
149950
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular8);
149960
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
149989
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
150070
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
150155
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
150213
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
150230
comp = CreateCompilation(sourceB0, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
150246
comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
150298
comp = CreateCompilation(sourceB2, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
150332
comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
150372
comp = CreateCompilation(sourceB4, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
150449
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
150479
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
150502
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
150545
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
150602
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
150638
comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions:
TestOptions
.Regular);
150686
comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
150766
comp = CreateCompilation(sourceB2, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
150846
comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
150926
comp = CreateCompilation(sourceB4, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
151009
comp = CreateCompilation(sourceB5, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
151089
comp = CreateCompilation(sourceB6, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
151181
comp = CreateCompilation(sourceB7, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
151244
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
151280
comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions:
TestOptions
.Regular8);
151382
comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
151462
comp = CreateCompilation(sourceB2, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
151554
comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
151619
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
151644
comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
151752
comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
151857
comp = CreateCompilation(sourceB5, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
151995
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
152020
comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
152128
comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
152233
comp = CreateCompilation(sourceB5, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
152368
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
152389
comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
152480
comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
152562
comp = CreateCompilation(sourceB5, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
152699
comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
152813
comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
152918
comp = CreateCompilation(sourceB5, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
152965
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
153240
comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
153281
comp = CreateCompilation(sourceB2, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
153394
comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
153423
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
153529
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
153557
var comp = CreateCompilation(source1, parseOptions:
TestOptions
.Regular9);
153581
comp = CreateCompilation(source2, parseOptions:
TestOptions
.Regular9);
153593
comp = CreateCompilation(source3, parseOptions:
TestOptions
.Regular9);
153617
comp = CreateCompilation(source4, parseOptions:
TestOptions
.Regular9);
153655
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
153710
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
153757
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
153794
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
153833
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
153877
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
153942
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
153981
var comp = CreateCompilation(source1, parseOptions:
TestOptions
.Regular9);
154006
comp = CreateCompilation(source2, parseOptions:
TestOptions
.Regular9);
154031
comp = CreateCompilation(source3, parseOptions:
TestOptions
.Regular9);
154056
comp = CreateCompilation(source4, parseOptions:
TestOptions
.Regular9);
154082
comp = CreateCompilation(source5, parseOptions:
TestOptions
.Regular9);
154108
comp = CreateCompilation(source6, parseOptions:
TestOptions
.Regular9);
154135
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
154155
var comp = CreateCompilation(source1, parseOptions:
TestOptions
.Regular9);
154188
comp = CreateCompilation(source3, parseOptions:
TestOptions
.Regular9);
154221
comp = CreateCompilation(source5, parseOptions:
TestOptions
.Regular9);
154245
var comp = CreateCompilation(source1, parseOptions:
TestOptions
.Regular9);
154275
var comp = CreateCompilation(source1, parseOptions:
TestOptions
.Regular9);
154297
comp = CreateCompilation(source2, parseOptions:
TestOptions
.Regular9);
154322
comp = CreateCompilation(source3, parseOptions:
TestOptions
.Regular9);
154345
comp = CreateCompilation(source4, parseOptions:
TestOptions
.Regular9);
154368
comp = CreateCompilation(source5, parseOptions:
TestOptions
.Regular9);
154406
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
154456
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
154503
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
154531
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
154581
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
154685
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
154714
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
154781
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
154849
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
154917
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
154986
comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
155015
comp = CreateCompilation(sourceB2, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
155062
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
155123
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
155193
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
155225
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
155249
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
155286
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular8);
155335
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
155359
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular8);
155379
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersionA));
155571
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
155583
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
155859
options:
TestOptions
.DebugExe);
156058
parseOptions:
TestOptions
.Regular9);
156285
}", parseOptions:
TestOptions
.Regular9, options:
TestOptions
.UnsafeReleaseDll);
156384
", parseOptions:
TestOptions
.Regular8);
156641
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
156674
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
156710
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
156784
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
156806
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
157420
var comp = CreateCompilation(src, options:
TestOptions
.DebugExe);
157446
var comp = CreateCompilation(src, options:
TestOptions
.DebugExe);
157482
var comp = CreateCompilation(src, options:
TestOptions
.DebugExe);
157871
var comp = CreateCompilation(src, options:
TestOptions
.DebugExe.WithNullableContextOptions(NullableContextOptions.Enable));
160343
var piaCompilation = CreateCompilationWithMscorlib461(pia, options: WithNullableEnable(
TestOptions
.DebugDll));
160401
var piaCompilation = CreateCompilationWithMscorlib461(pia, options: WithNullableEnable(
TestOptions
.DebugDll));
160450
var piaCompilation = CreateCompilationWithMscorlib461(pia, options: WithNullableEnable(
TestOptions
.DebugDll));
160685
", options:
TestOptions
.UnsafeDebugDll);
160713
", options:
TestOptions
.UnsafeDebugDll);
160739
", options:
TestOptions
.UnsafeDebugDll);
Semantics\NullableReferenceTypesVsPatterns.cs (6)
1019
var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
2211
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithPatternCombinators);
2497
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
2583
", options: WithNullableEnable(
TestOptions
.ReleaseExe));
2602
", options: WithNullableEnable(
TestOptions
.ReleaseExe));
2617
", options: WithNullableEnable(
TestOptions
.ReleaseExe));
Semantics\NullableTests.cs (7)
66
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
68
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
92
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
209
verifier = CompileAndVerify(source: source3, expectedOutput: "1", parseOptions:
TestOptions
.Regular.WithPEVerifyCompatFeature());
268
CompileAndVerify(source: source4.Replace("TYPE", type), expectedOutput: "0", parseOptions:
TestOptions
.Regular.WithPEVerifyCompatFeature());
1795
options:
TestOptions
.ReleaseDll,
1801
options:
TestOptions
.ReleaseExe,
Semantics\NullCoalesceAssignmentTests.cs (4)
31
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
68
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
111
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
152
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
Semantics\ObjectAndCollectionInitializerTests.cs (2)
4220
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
4274
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
Semantics\OperatorTests.cs (28)
1686
CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
3201
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
4767
", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
5256
var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe);
5590
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
7130
var comp = CreateCompilation(source, new[] { CSharpRef },
TestOptions
.ReleaseExe);
7177
var comp = CreateCompilation(source, new[] { CSharpRef },
TestOptions
.ReleaseExe);
7325
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
7483
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithOverflowChecks(true));
7699
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithOverflowChecks(false));
7716
compilation = compilation.WithOptions(
TestOptions
.ReleaseDll.WithOverflowChecks(true));
7852
var compilation = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib461Extended, options:
TestOptions
.ReleaseDll.WithOverflowChecks(true));
8012
var compilation = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40Extended, options:
TestOptions
.ReleaseDll.WithOverflowChecks(true));
8549
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
8584
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithOverflowChecks(false));
8599
compilation = compilation.WithOptions(
TestOptions
.ReleaseDll.WithOverflowChecks(true));
8628
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithOverflowChecks(false));
8647
compilation = compilation.WithOptions(
TestOptions
.ReleaseDll.WithOverflowChecks(true));
8678
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithOverflowChecks(false));
8697
compilation = compilation.WithOptions(
TestOptions
.ReleaseDll.WithOverflowChecks(true));
8743
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
8808
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
8847
CreateCompilation(source1, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
8849
CreateCompilation(source1, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular.WithStrictFeature()).VerifyDiagnostics(
11219
var compilation = CreateCompilation(source, options:
TestOptions
.DebugDll);
11454
CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics(
11497
var comp = CreateCompilation(code, options:
TestOptions
.UnsafeReleaseExe);
Semantics\OverloadResolutionTestBase.cs (1)
33
var compilation = CreateEmptyCompilation(source, references,
TestOptions
.ReleaseDll);
Semantics\OverloadResolutionTests.cs (75)
387
CompileAndVerify(source2, parseOptions:
TestOptions
.Regular9, expectedOutput: @"2");
608
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.UnsafeDebugDll);
801
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.UnsafeDebugDll);
875
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular9);
1375
var compilation = CreateCompilation(source, options:
TestOptions
.DebugDll);
1467
CreateCompilation(source, parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates).VerifyDiagnostics(
2741
CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"2
4554
var compilation = CreateCompilationWithILAndMscorlib40(source2, source1, options:
TestOptions
.ReleaseExe);
7002
CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
7021
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe);
7722
var compilation = CreateCompilationWithMscorlib461(source1, options:
TestOptions
.ReleaseExe);
7755
var compilation = CreateCompilationWithMscorlib461(source1, options:
TestOptions
.ReleaseExe);
7783
var compilation = CreateCompilationWithMscorlib461(source1, options:
TestOptions
.ReleaseExe);
7874
var compilation = CreateCompilation(source1, options:
TestOptions
.DebugExe);
7912
CreateCompilation(source1, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates).VerifyDiagnostics(
7917
CreateCompilation(source1, options:
TestOptions
.DebugExe).VerifyDiagnostics(
7954
var compilation = CreateCompilation(source1, options:
TestOptions
.DebugExe);
7992
CreateCompilation(source1, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates).VerifyDiagnostics(
7997
CreateCompilation(source1, options:
TestOptions
.DebugExe).VerifyDiagnostics(
8034
CreateCompilation(source1, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates).VerifyDiagnostics(
8039
CreateCompilation(source1, options:
TestOptions
.DebugExe).VerifyDiagnostics(
8076
CreateCompilation(source1, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates).VerifyDiagnostics(
8081
CreateCompilation(source1, options:
TestOptions
.DebugExe).VerifyDiagnostics(
8116
CreateCompilation(source1, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates).VerifyDiagnostics(
8121
CreateCompilation(source1, options:
TestOptions
.DebugExe).VerifyDiagnostics(
8157
var compilation = CreateCompilation(source1, options:
TestOptions
.DebugExe);
8196
var compilation = CreateCompilationWithMscorlib40(source1, new[] { Net40.References.SystemCore }, options:
TestOptions
.DebugExe);
8232
var compilation = CreateCompilationWithMscorlib40(source1, new[] { Net40.References.SystemCore }, options:
TestOptions
.DebugExe);
8265
var compilation = CreateCompilation(source1, options:
TestOptions
.DebugExe);
8407
CreateCompilation(source, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular.WithStrictFeature()).VerifyDiagnostics(
8493
var compilation = CreateCompilation(source1, options:
TestOptions
.DebugExe);
8541
var compilation = CreateCompilation(source1, options:
TestOptions
.DebugExe);
8588
var compilation = CreateCompilation(source1, options:
TestOptions
.DebugExe);
8627
var compilation = CreateCompilation(source1, options:
TestOptions
.DebugExe);
8662
var compilation = CreateCompilation(source1, options:
TestOptions
.DebugExe);
8688
var compilation = CreateCompilation(source1, options:
TestOptions
.DebugExe);
8718
var compilation = CreateCompilation(source1, options:
TestOptions
.DebugExe);
9033
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
9060
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
9468
CreateCompilation(code, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
9480
CompileAndVerify(code, expectedOutput: "5", parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
9522
CreateCompilation(code, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(expectedDiagnostics);
9523
CreateCompilation(code, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
9551
CreateCompilation(code, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(expectedDiagnostics);
9552
CreateCompilation(code, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
9590
CreateCompilation(source2, new[] { comp1Ref }, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
9602
CreateCompilation(source2, new[] { comp1Ref }, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
9622
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
9634
CompileAndVerify(source, expectedOutput: "555", parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
9661
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
9673
CompileAndVerify(source, expectedOutput: "555", parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
9694
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseExe, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
9706
CompileAndVerify(source, expectedOutput: "555", options:
TestOptions
.UnsafeReleaseExe,
9707
parseOptions:
TestOptions
.Regular12, verify: Verification.Fails).VerifyDiagnostics(expectedDiagnostics);
9709
CompileAndVerify(source, expectedOutput: "555", options:
TestOptions
.UnsafeReleaseExe,
9729
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
9741
CompileAndVerify(source, expectedOutput: "555", verify: Verification.FailsILVerify, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
9791
CompileAndVerify(source, expectedOutput: "string5", parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
9792
CompileAndVerify(source, expectedOutput: "string5", parseOptions:
TestOptions
.Regular12).VerifyDiagnostics();
9811
CompileAndVerify(source, expectedOutput: "string5", parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
9812
CompileAndVerify(source, expectedOutput: "string5", parseOptions:
TestOptions
.Regular12).VerifyDiagnostics();
9831
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
9843
CompileAndVerify(source, expectedOutput: "object5", parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
9862
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
9874
CompileAndVerify(source, expectedOutput: "object5", parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
9941
CreateCompilation(code, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
9971
CreateCompilation(code, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
Semantics\QueryTests.cs (9)
2713
var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode, parseOptions:
TestOptions
.Script);
2739
var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode, parseOptions:
TestOptions
.Script);
2805
}, parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates);
3880
var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode, options:
TestOptions
.DebugExe);
3914
CreateCompilationWithMscorlib40AndSystemCore(csSource, parseOptions:
TestOptions
.Regular7_2).VerifyDiagnostics(
3985
CreateCompilationWithMscorlib40AndSystemCore(csSource, parseOptions:
TestOptions
.Regular7_2).VerifyDiagnostics(
4070
CreateCompilationWithMscorlib40AndSystemCore(csSource, parseOptions:
TestOptions
.Regular7_2)
4231
VerifyOperationTreeAndDiagnosticsForTest<QueryExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, parseOptions:
TestOptions
.Regular7_3);
4489
", options:
TestOptions
.ReleaseExe);
Semantics\RawInterpolationTests.cs (7)
1000
CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
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\RawInterpolationTests_Handler.cs (10)
590
var comp = CreateCompilation(new[] { source, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: true, useDefaultParameters: false, useBoolReturns: false) }, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.NetCoreApp);
627
var verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: expectedOutput, targetFramework: TargetFramework.Net50, parseOptions:
TestOptions
.RegularPreview);
634
var comp2 = CreateCompilation(source, new[] { reference }, targetFramework: TargetFramework.Net50, parseOptions:
TestOptions
.RegularPreview);
2023
var comp = CreateCompilation(new[] { source, interpolatedStringBuilder }, options:
TestOptions
.UnsafeReleaseExe, targetFramework: TargetFramework.NetCoreApp);
2118
var comp = CreateCompilation(new[] { source, interpolatedStringBuilder }, parseOptions:
TestOptions
.Regular9);
3434
var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }, parseOptions:
TestOptions
.RegularPreview);
3774
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Net50);
3802
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview, targetFramework: TargetFramework.NetCoreApp);
4077
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
4097
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
Semantics\ReadOnlyStructsTests.cs (12)
513
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeReleaseDll);
1105
var comp = CreateCompilationWithILAndMscorlib40(csharp, ilreadonlyStructWithWriteableFieldIL, options:
TestOptions
.ReleaseExe);
1128
var comp = CreateCompilationWithILAndMscorlib40(csharp, ilreadonlyStructWithWriteableFieldIL, options:
TestOptions
.ReleaseExe);
1611
var moduleMetadata = CreateCompilation(csharp, options:
TestOptions
.DebugModule, targetFramework: TargetFramework.Mscorlib461).EmitToImageReference();
1616
var dllMetadata = CreateCompilation(csharp, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Mscorlib461).EmitToImageReference();
1639
var moduleMetadata = CreateCompilation(csharp, options:
TestOptions
.DebugModule, targetFramework: TargetFramework.Mscorlib461).EmitToImageReference();
1644
var dllMetadata = CreateCompilation(csharp, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Mscorlib461).EmitToImageReference();
1667
var moduleComp = CreateCompilation(csharp, options:
TestOptions
.DebugModule, targetFramework: TargetFramework.Mscorlib461);
1673
var dllComp = CreateCompilation(csharp, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Mscorlib461);
1689
var moduleComp = CreateCompilation(csharp, options:
TestOptions
.DebugModule, targetFramework: TargetFramework.Mscorlib461);
1695
var dllComp = CreateCompilation(csharp, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Mscorlib461);
2339
var comp = CreateCompilation(csharp, parseOptions:
TestOptions
.Regular7_3);
Semantics\RecordStructTests.cs (141)
28
parseOptions:
TestOptions
.RegularPreview);
37
parseOptions:
TestOptions
.RegularPreview,
209
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.ReleaseExe);
251
var comp = CreateCompilation(new[] { src1, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseDll);
264
comp = CreateCompilation(new[] { src2, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseDll);
270
comp = CreateCompilation(new[] { src3, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.ReleaseDll);
276
comp = CreateCompilation(new[] { src1, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular10, options:
TestOptions
.ReleaseDll);
289
comp = CreateCompilation(new[] { src2, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular10, options:
TestOptions
.ReleaseDll);
292
comp = CreateCompilation(new[] { src3, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular10, options:
TestOptions
.ReleaseDll);
323
var comp = CreateCompilation(src1, parseOptions:
TestOptions
.Regular9);
336
comp = CreateCompilation(new[] { src2, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
342
comp = CreateCompilation(new[] { src3, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
348
comp = CreateCompilation(src4, parseOptions:
TestOptions
.Regular9);
571
var comp = CreateCompilation(src, options:
TestOptions
.UnsafeReleaseDll);
659
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.UnsafeDebugDll);
926
var comp = CreateCompilation(src, parseOptions:
TestOptions
.Regular9);
970
var comp = CreateCompilation(src, parseOptions:
TestOptions
.Regular9);
1102
var comp = CreateCompilation(src, parseOptions:
TestOptions
.Regular9);
1136
var comp = CreateCompilation(src, parseOptions:
TestOptions
.Regular9);
1166
var comp = CreateCompilation(src, parseOptions:
TestOptions
.Regular9);
1504
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options:
TestOptions
.UnsafeDebugDll);
1560
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options:
TestOptions
.UnsafeDebugDll);
1613
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options:
TestOptions
.UnsafeDebugDll);
1672
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.UnsafeDebugExe);
1710
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options:
TestOptions
.UnsafeDebugDll);
1892
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular10);
1902
var verifier = CompileAndVerify(src, parseOptions:
TestOptions
.Regular11);
2156
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular10);
2169
var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular11, verify: Verification.Skipped);
2297
var comp = CreateEmptyCompilation(src, parseOptions:
TestOptions
.RegularPreview, references: new[] { corlibRef });
2321
var comp = CreateEmptyCompilation(src, parseOptions:
TestOptions
.RegularPreview, references: new[] { corlibRef });
2397
var comp = CreateEmptyCompilation(src, parseOptions:
TestOptions
.RegularPreview, references: new[] { corlibRef });
2423
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
2857
var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular10);
2867
var verifier = CompileAndVerify(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular11, verify: Verification.Skipped);
3196
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
3235
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
3276
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
3321
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
3369
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
3995
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
4005
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular11);
4053
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.ReleaseExe);
4092
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.ReleaseExe);
4138
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.ReleaseExe);
4511
var comp = CreateEmptyCompilation(src, parseOptions:
TestOptions
.RegularPreview.WithNoRefSafetyRulesAttribute());
4788
var comp = CreateEmptyCompilation(src, parseOptions:
TestOptions
.RegularPreview.WithNoRefSafetyRulesAttribute());
5118
var compDebug = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
5119
var compRelease = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.ReleaseExe);
6898
var comp = CreateCompilation(src, parseOptions:
TestOptions
.Regular9);
6979
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
7040
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
7133
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
7219
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
7480
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
7534
var comp = CreateCompilation(src, parseOptions:
TestOptions
.Regular10);
7541
var verifier = CompileAndVerify(src, parseOptions:
TestOptions
.Regular11);
7702
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.ReleaseExe);
7859
var comp = CreateCompilation(src, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.RegularPreview);
7941
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
7979
var comp = CreateCompilationWithMscorlibAndSpan(new[] { text, UnscopedRefAttributeDefinition }, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
8013
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics();
8258
var comp = CreateCompilation(src, parseOptions:
TestOptions
.Regular9);
8265
comp = CreateCompilation(src, parseOptions:
TestOptions
.Regular10);
8416
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
8441
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview);
8592
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
8616
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview);
8767
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
8787
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview);
8964
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
8984
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview);
9132
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
9153
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview);
9318
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
9339
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview);
9515
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
9533
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview);
9628
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
9646
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview);
9741
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
9793
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview);
9901
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
9919
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview);
10015
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
10040
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview);
10131
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
10149
var comp = CreateCompilation(src, parseOptions:
TestOptions
.Regular9);
10182
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview);
10317
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
10341
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview);
10432
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions:
TestOptions
.RegularPreview);
10444
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview);
10459
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularPreview);
10511
parseOptions:
TestOptions
.RegularPreview,
10514
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
10539
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
10548
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
10595
var comp = CreateCompilation(src, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.RegularPreview);
11195
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
11207
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular11);
11237
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
11244
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
11251
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
11263
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
11270
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
11277
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
11289
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
11296
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
11303
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
11315
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
11322
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
11329
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
11344
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
11351
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
11358
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
11373
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
11380
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
11387
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
11402
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
11409
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
11416
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
11434
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net60);
Semantics\RefEscapingTests.cs (176)
46
}", options:
TestOptions
.Regular7_3);
47
var comp = CreateCompilationWithSpan(tree,
TestOptions
.UnsafeDebugDll);
113
}", options:
TestOptions
.UnsafeDebugDll);
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(
335
var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular10);
351
comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular11);
514
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular10).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(
799
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
835
var comp = CreateCompilationWithMscorlibAndSpan(text, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
885
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
950
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
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));
1726
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1794
var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular10);
1804
comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular11);
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();
2138
var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular10);
2153
comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular11);
2221
var comp = CreateCompilationWithMscorlibAndSpan(text, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular10);
2231
comp = CreateCompilationWithMscorlibAndSpan(text, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular11);
2304
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
2398
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
2470
var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular10);
2486
comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular11);
2569
var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular10);
2585
comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular11);
2631
""", options:
TestOptions
.Regular8);
2633
var comp = CreateCompilationWithSpan(tree,
TestOptions
.UnsafeDebugDll);
2664
""", options:
TestOptions
.Regular8);
2666
var comp = CreateCompilationWithSpan(tree,
TestOptions
.UnsafeDebugDll);
2795
""", options:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
2797
var comp = CreateCompilationWithSpan(tree,
TestOptions
.UnsafeDebugDll);
2916
""", options:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp11));
2918
var comp = CreateCompilationWithSpan(tree,
TestOptions
.UnsafeDebugDll);
2946
""",
TestOptions
.Regular.WithLanguageVersion(languageVersion));
2947
var comp = CreateCompilationWithSpan(tree,
TestOptions
.UnsafeDebugDll);
3039
""",
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp11));
3041
var comp = CreateCompilationWithSpan(tree,
TestOptions
.UnsafeDebugDll);
3194
""",
TestOptions
.Regular.WithLanguageVersion(languageVersion));
3195
var comp = CreateCompilationWithSpan(tree,
TestOptions
.UnsafeDebugDll);
3276
""",
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp11));
3277
var comp = CreateCompilationWithSpan(tree,
TestOptions
.UnsafeDebugDll);
3363
""",
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp13));
3364
var comp = CreateCompilation(tree, targetFramework: TargetFramework.Net90, options:
TestOptions
.UnsafeDebugDll);
3446
""",
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp11));
3447
var comp = CreateCompilationWithSpan(tree,
TestOptions
.UnsafeDebugDll);
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));
3784
var comp = CreateCompilationWithSpan(tree,
TestOptions
.UnsafeDebugDll);
3827
""",
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp11));
3829
var comp = CreateCompilationWithSpan(tree,
TestOptions
.UnsafeDebugDll);
3992
""",
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp11));
3994
var comp = CreateCompilationWithSpan(tree,
TestOptions
.UnsafeDebugDll);
4182
""",
TestOptions
.Regular.WithLanguageVersion(languageVersion));
4184
var comp = CreateCompilationWithSpan(tree,
TestOptions
.UnsafeDebugDll);
4275
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
4313
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics();
4364
var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular10);
4380
comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular11);
4443
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics();
4445
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
4487
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
4564
var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
4657
var comp = CreateCompilationWithMscorlibAndSpan(text, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
4726
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
4780
var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
4838
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
4896
CreateCompilationWithMscorlibAndSpan(new[] { text, UnscopedRefAttributeDefinition }, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
4908
CreateCompilationWithMscorlibAndSpan(new[] { text, UnscopedRefAttributeDefinition }, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
4955
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
4985
var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion), options:
TestOptions
.UnsafeDebugDll);
5009
var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion), options:
TestOptions
.UnsafeDebugDll);
5033
var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion), options:
TestOptions
.UnsafeDebugDll);
5083
var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion), options:
TestOptions
.UnsafeDebugDll);
5133
var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion), options:
TestOptions
.UnsafeDebugDll);
5185
var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion), options:
TestOptions
.UnsafeDebugDll);
5212
var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion), options:
TestOptions
.UnsafeDebugDll);
5279
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
5318
var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
5368
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
5412
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
5442
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
5470
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion), options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
5500
var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
5554
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.NetCoreApp);
5589
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.NetCoreApp);
5633
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
5688
var compilation = CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
5773
var compilation = CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
5888
var compilation = CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
5944
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics();
5975
var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
6014
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
6052
var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
6089
var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
6126
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
6156
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics();
6199
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics();
6225
}", parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion), options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
6251
}", parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion), options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
6338
""", options:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
6340
var comp = CreateCompilationWithSpan(tree,
TestOptions
.UnsafeDebugDll);
6383
}", parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion), options:
TestOptions
.ReleaseDll);
6480
}", parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion), options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
6507
}", parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion), options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
6536
}", parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion), options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
6564
", parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
6585
}", parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
6615
}", parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
6642
}", parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
6671
CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
6698
}", parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
6724
}", parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion), options:
TestOptions
.ReleaseDll).VerifyDiagnostics();
6742
}", parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion), options:
TestOptions
.ReleaseDll).VerifyDiagnostics();
6760
}", parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion), options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
6822
", parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion), options:
TestOptions
.ReleaseDll).VerifyDiagnostics();
8225
var comp = CreateCompilation(new[] { source0, source1 }, parseOptions:
TestOptions
.Regular11);
8228
comp = CreateCompilation(new[] { source0, source1 }, parseOptions:
TestOptions
.Regular10);
8232
var comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular10);
8235
var comp1 = CreateCompilation(source1, references: new[] { comp0.ToMetadataReference() }, parseOptions:
TestOptions
.Regular11);
8238
comp1 = CreateCompilation(source1, references: new[] { comp0.EmitToImageReference() }, parseOptions:
TestOptions
.Regular11);
8242
comp0 = CreateCompilation(source0, parseOptions:
TestOptions
.Regular11);
8245
comp1 = CreateCompilation(source1, references: new[] { comp0.ToMetadataReference() }, parseOptions:
TestOptions
.Regular10);
8248
comp1 = CreateCompilation(source1, references: new[] { comp0.EmitToImageReference() }, parseOptions:
TestOptions
.Regular10);
9754
""",
TestOptions
.Regular.WithLanguageVersion(languageVersion));
9755
var comp = CreateCompilationWithSpan(tree,
TestOptions
.UnsafeDebugDll);
9841
""",
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp11));
9842
var comp = CreateCompilationWithSpan(tree,
TestOptions
.UnsafeDebugDll);
Semantics\RefExtensionMethodsTests.cs (5)
380
}", options:
TestOptions
.ReleaseExe);
550
}", options:
TestOptions
.ReleaseExe);
925
}", options:
TestOptions
.ReleaseExe);
1526
var compilation = CreateCompilationWithMscorlib40AndSystemCore(code, options:
TestOptions
.ReleaseExe);
1582
var compilation = CreateCompilationWithMscorlib40AndSystemCore(code, options:
TestOptions
.ReleaseExe);
Semantics\RefFieldTests.cs (292)
85
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular10, targetFramework: TargetFramework.Net70);
126
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular10, targetFramework: TargetFramework.Net70);
150
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular11, targetFramework: TargetFramework.Net70);
167
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular10, targetFramework: TargetFramework.Net70);
197
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular10, targetFramework: TargetFramework.Net70);
211
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
236
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular10, targetFramework: TargetFramework.Net70);
271
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular10, targetFramework: TargetFramework.Net70);
285
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
564
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, targetFramework: TargetFramework.Net70);
602
var comp = CreateCompilation(sourceB, references: new[] { refA }, options:
TestOptions
.UnsafeReleaseExe, targetFramework: TargetFramework.Net70);
726
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, targetFramework: TargetFramework.Net70);
772
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, targetFramework: TargetFramework.Net70);
821
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, targetFramework: TargetFramework.Net70);
904
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, targetFramework: TargetFramework.Net70);
1002
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, targetFramework: TargetFramework.Net70);
1095
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, targetFramework: TargetFramework.Net70);
1160
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, targetFramework: TargetFramework.Net70);
1236
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, targetFramework: TargetFramework.Net70);
1279
comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, targetFramework: TargetFramework.Net70);
1316
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, targetFramework: TargetFramework.Net70);
1350
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, targetFramework: TargetFramework.Net70);
1395
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, targetFramework: TargetFramework.Net70);
1440
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, targetFramework: TargetFramework.Net70);
1487
var spanReference = CreateCompilation(TestSources.Span, options:
TestOptions
.UnsafeReleaseDll);
1488
var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options:
TestOptions
.UnsafeReleaseDll, targetFramework: TargetFramework.Net70);
1543
var spanReference = CreateCompilation(TestSources.Span, options:
TestOptions
.UnsafeReleaseDll);
1544
var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options:
TestOptions
.UnsafeReleaseDll, targetFramework: TargetFramework.Net70);
1595
var spanReference = CreateCompilation(TestSources.Span, options:
TestOptions
.UnsafeReleaseDll);
1596
var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options:
TestOptions
.UnsafeReleaseDll, targetFramework: TargetFramework.Net70);
1651
var spanReference = CreateCompilation(TestSources.Span, options:
TestOptions
.UnsafeReleaseDll);
1652
var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options:
TestOptions
.UnsafeReleaseDll, targetFramework: TargetFramework.Net70);
1689
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
1727
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options:
TestOptions
.ReleaseExe);
1763
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
1799
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
1842
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
2056
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10, targetFramework: TargetFramework.Net70);
2144
var comp = CreateEmptyCompilation(new[] { sourceA }, parseOptions:
TestOptions
.Regular10);
2147
comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions:
TestOptions
.Regular10);
2164
comp = CreateEmptyCompilation(source, references: new[] { refA }, parseOptions:
TestOptions
.Regular10);
2178
comp = CreateEmptyCompilation(source, references: new[] { refAB }, parseOptions:
TestOptions
.Regular10);
2289
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net70);
2503
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10, targetFramework: TargetFramework.Net70);
2534
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options:
TestOptions
.UnsafeDebugDll);
2585
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10, targetFramework: TargetFramework.Net70);
2640
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
2696
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
2732
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
2782
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
2827
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
2847
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
2895
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
3033
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
3139
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
3400
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
3454
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
3500
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
3618
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
3733
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
3818
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
4004
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
4456
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
4501
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
4934
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
4961
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
4992
var comp = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Regular10);
5037
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
5072
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
5346
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options:
TestOptions
.UnsafeDebugDll);
5484
CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(9), targetFramework: TargetFramework.Net70).VerifyDiagnostics();
5493
CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(10), targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics);
6381
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
6786
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
7188
comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
7313
comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
8328
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview.WithFeature("peverify-compat"), targetFramework: TargetFramework.Net70);
8362
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
8408
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
8565
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
8634
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
8671
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
8708
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
8753
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
8803
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
8872
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
8943
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
9006
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
9080
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
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));
9699
var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
9746
var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
9794
var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
10097
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
10134
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
10157
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular10, options:
TestOptions
.UnsafeReleaseDll);
10175
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
10201
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugExe, targetFramework: TargetFramework.Net70);
10240
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugExe, targetFramework: TargetFramework.Net70);
10280
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugExe, targetFramework: TargetFramework.Net70);
10319
parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion),
10320
options: (useUnsafe ?
TestOptions
.UnsafeReleaseExe : null));
10363
parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion),
10364
options: (useUnsafe ?
TestOptions
.UnsafeReleaseExe : null));
10417
parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion),
10418
options: (useUnsafe ?
TestOptions
.UnsafeReleaseExe : null));
10470
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
10566
options: (useUnsafe ?
TestOptions
.UnsafeReleaseDll : null));
10597
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
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));
10874
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular10);
10949
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
10992
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
11063
var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, parseOptions:
TestOptions
.Regular10);
11142
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
11180
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10, options:
TestOptions
.UnsafeReleaseExe);
11203
comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseExe);
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));
11835
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10, targetFramework: TargetFramework.Net70);
11869
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10, targetFramework: TargetFramework.Net70);
11905
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
12030
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
12109
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
12177
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
12262
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
12479
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
12658
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
12889
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
13122
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
13177
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
13239
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
13289
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
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));
13432
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularDefault.WithFeature("run-nullable-analysis", "never"));
13496
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularDefault.WithFeature("run-nullable-analysis", "never"));
13572
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularDefault.WithFeature("run-nullable-analysis", "never"));
13643
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularDefault.WithFeature("run-nullable-analysis", "never"));
14338
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
14380
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
14575
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
14675
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
14727
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
14965
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
15029
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
15072
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion));
15125
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularDefault.WithFeature("run-nullable-analysis", "never"));
16813
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options:
TestOptions
.UnsafeDebugExe);
16911
var comp = CreateCompilationWithSpan(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
16944
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll);
16976
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll);
17858
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
18074
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseExe);
18245
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.Net70);
18827
var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net70, options:
TestOptions
.UnsafeDebugDll);
18849
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
20009
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
20068
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50);
20129
var comp = CreateCompilation(sourceB, options:
TestOptions
.UnsafeReleaseDll, targetFramework: TargetFramework.Net70);
20160
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
20198
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
20229
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
20251
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
20326
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10, targetFramework: TargetFramework.Net70);
20333
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular11, targetFramework: TargetFramework.Net70);
20354
var lib = CreateCompilation(lib_cs, parseOptions:
TestOptions
.Regular11, targetFramework: TargetFramework.Net70);
20356
var comp = CreateCompilation(source, references: new[] { lib.EmitToImageReference() }, parseOptions:
TestOptions
.Regular10, targetFramework: TargetFramework.Net70);
20369
comp = CreateCompilation(source, references: new[] { lib.EmitToImageReference() }, parseOptions:
TestOptions
.Regular10);
20415
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
21045
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
21159
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
21211
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
21244
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
21334
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.Net70);
21456
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.Net70);
21458
comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
21786
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Net70);
22195
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
22202
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular11);
22216
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
22219
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular11);
22251
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
22264
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular11);
22284
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
22294
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular11);
22311
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
22318
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular11);
24635
var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net50, options:
TestOptions
.ReleaseDll);
24663
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
24700
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersionA));
24706
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersionB));
24736
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
24784
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersionA), options:
TestOptions
.UnsafeReleaseDll);
24790
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersionB));
24826
var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
24883
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersionA));
24896
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersionB));
24934
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersionA));
24955
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersionB));
25040
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersionB));
25061
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersionA));
25082
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersionB));
25120
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular);
25138
comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions:
TestOptions
.Regular10);
25165
comp = CreateCompilation(new[] { sourceB2, UnscopedRefAttributeDefinition }, references: new[] { refA }, parseOptions:
TestOptions
.Regular);
25198
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular);
25216
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersionB));
25269
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersionA));
25385
var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }, parseOptions:
TestOptions
.Regular);
25411
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersionB));
25457
comp = CreateCompilation(sourceB, new[] { refA }, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersionB));
26532
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion), targetFramework: targetFramework);
26591
var comp = CreateCompilation(assemblyIdentity, new[] { source0 }, references: null, parseOptions:
TestOptions
.Regular10);
26599
comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
26608
comp = CreateEmptyCompilation(source2, references: new[] { ref0, ref1 }, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
26648
var comp = CreateCompilation(assemblyIdentityLowerVersion, new[] { source0 }, references: null, parseOptions:
TestOptions
.Regular10);
26652
comp = CreateCompilation(assemblyIdentityHigherVersion, new[] { source0 }, references: null, parseOptions:
TestOptions
.Regular10);
26660
comp = CreateEmptyCompilation(source1, references: new[] { refLowerVersion }, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
26675
comp = CreateEmptyCompilation(source2, references: new[] { refHigherVersion, ref1 }, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
26716
var comp = CreateCompilation(assemblyIdentity, new[] { source0 }, references: null, parseOptions:
TestOptions
.Regular10);
26724
comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions:
TestOptions
.Regular10);
26781
var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, options:
TestOptions
.ReleaseDll);
26833
var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, options:
TestOptions
.ReleaseDll);
26885
var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, options:
TestOptions
.ReleaseDll);
27012
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
27102
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
27186
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
27287
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
27396
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularDefault.WithFeature("run-nullable-analysis", "never"));
27456
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularDefault.WithFeature("run-nullable-analysis", "never"));
27676
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
27724
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
28099
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options:
TestOptions
.UnsafeDebugExe);
28248
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options:
TestOptions
.UnsafeDebugDll);
28317
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options:
TestOptions
.UnsafeReleaseExe);
28550
var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net70, options:
TestOptions
.ReleaseExe);
28618
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options:
TestOptions
.ReleaseExe);
28810
var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options:
TestOptions
.ReleaseExe);
29763
var comp = CreateCompilationWithSpan(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
29819
var comp = CreateCompilationWithSpan(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion), options:
TestOptions
.UnsafeReleaseDll);
29851
var comp = CreateCompilationWithSpan(source, options:
TestOptions
.UnsafeReleaseDll);
30019
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
30089
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
30245
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll);
30296
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll);
30330
options:
TestOptions
.DebugExe.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings),
30384
options:
TestOptions
.DebugExe.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings),
30452
options:
TestOptions
.DebugExe.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings),
30515
options:
TestOptions
.DebugExe.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings),
Semantics\RefLocalsAndReturnsTests.cs (45)
585
var comp = CreateCompilationWithMscorlibAndSpan(new[] { source, UnscopedRefAttributeDefinition }, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
781
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
835
}", options:
TestOptions
.UnsafeDebugDll);
1091
}", options:
TestOptions
.Regular7_1);
1295
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
1307
CreateCompilation(source, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
1336
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
1343
CompileAndVerify(source, parseOptions:
TestOptions
.Regular13, expectedOutput: expectedOutput).VerifyDiagnostics();
1902
var comp = CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll);
2446
var comp = CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll);
2529
var comp = CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll);
2677
var options =
TestOptions
.Regular;
2719
var options =
TestOptions
.Regular;
3191
CreateCompilation(code, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
3199
CreateCompilation(code, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics();
3227
CreateCompilation(code, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
3234
CompileAndVerify(code, expectedOutput: expectedOutput, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
3256
CreateCompilation(code, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
3268
CreateCompilation(code, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
3298
CompileAndVerify(code, expectedOutput: expectedOutput, parseOptions:
TestOptions
.Regular12, targetFramework: TargetFramework.Net70, verify: Verification.FailsPEVerify).VerifyDiagnostics();
3299
CompileAndVerify(code, expectedOutput: expectedOutput, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net70, verify: Verification.FailsPEVerify).VerifyDiagnostics();
3329
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics);
3330
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics);
3352
CreateCompilation(code, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
3360
CreateCompilation(code, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics();
3386
CreateCompilation(code, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
3393
CompileAndVerify(code, expectedOutput: expectedOutput, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics();
3416
CreateCompilation(code, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
3428
CreateCompilation(code, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
3454
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, targetFramework: TargetFramework.Net70).VerifyDiagnostics(
3461
CompileAndVerify(code, expectedOutput: expectedOutput, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net70, verify: Verification.FailsPEVerify).VerifyDiagnostics();
3484
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, targetFramework: TargetFramework.Net70).VerifyDiagnostics(
3496
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics);
4772
}", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
4800
}", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
4828
}", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
4856
}", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
4884
}", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
4915
}", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
4965
var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions:
TestOptions
.RegularDefault.WithLanguageVersion(langVersion));
5018
var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions:
TestOptions
.RegularDefault.WithLanguageVersion(langVersion));
5239
var comp = CreateCompilation(code, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
5278
var comp = CreateCompilation(code, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"), parseOptions:
TestOptions
.Script);
Semantics\ScriptSemanticsTests.cs (43)
99
parseOptions:
TestOptions
.Script,
100
options:
TestOptions
.DebugExe,
116
parseOptions:
TestOptions
.Script,
117
options:
TestOptions
.DebugExe,
141
parseOptions:
TestOptions
.Script.WithNoRefSafetyRulesAttribute(),
142
options:
TestOptions
.DebugExe.WithUsings("Hidden"),
161
parseOptions:
TestOptions
.Script,
162
options:
TestOptions
.DebugExe.WithUsings("Hidden"),
190
parseOptions:
TestOptions
.Script,
191
options:
TestOptions
.DebugExe,
209
parseOptions:
TestOptions
.Script,
210
options:
TestOptions
.DebugExe.WithUsings("Hidden"),
235
var compilation = CreateCompilationWithMscorlib461(test, parseOptions:
TestOptions
.Script);
263
var tree = SyntaxFactory.ParseSyntaxTree(text, options:
TestOptions
.Script);
265
var compilation = CreateCompilationWithMscorlib461(new[] { tree }, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"));
286
var tree = SyntaxFactory.ParseSyntaxTree(text, options:
TestOptions
.Script);
288
var compilation = CreateCompilationWithMscorlib461(new[] { tree }, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"));
298
var submission = CSharpCompilation.CreateScriptCompilation("test", syntaxTree: SyntaxFactory.ParseSyntaxTree("1", options:
TestOptions
.Script), returnType: typeof(int));
365
var tree = SyntaxFactory.ParseSyntaxTree(test, options:
TestOptions
.Script);
369
options:
TestOptions
.ReleaseExe.WithScriptClassName("Goo.Script"),
396
var tree = SyntaxFactory.ParseSyntaxTree(test, options:
TestOptions
.Script);
400
options:
TestOptions
.ReleaseExe.WithScriptClassName("Goo.Script"),
443
var tree = SyntaxFactory.ParseSyntaxTree(test, options:
TestOptions
.Script);
447
options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"));
485
var tree = SyntaxFactory.ParseSyntaxTree(test, options:
TestOptions
.Script.WithLanguageVersion(LanguageVersion.CSharp6));
489
options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"));
519
var tree = Parse(source, options:
TestOptions
.Script);
535
var tree = Parse(source, options:
TestOptions
.Script);
627
var compilation = CreateCompilationWithMscorlib461(new[] { Parse(source, options:
TestOptions
.Script) });
640
var compilation = CreateCompilationWithMscorlib461(new[] { Parse(source, options:
TestOptions
.Script) });
652
var compilation = CreateCompilationWithMscorlib461(new[] { Parse(source, options:
TestOptions
.Script) });
1134
var tree = Parse(source, options:
TestOptions
.Script);
1154
var tree = Parse(source, options:
TestOptions
.Script);
1193
compilation = CreateCompilationWithMscorlib461(new[] { syntaxTree }, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"));
1208
compilation = CreateCompilationWithMscorlib461(new[] { syntaxTree }, options:
TestOptions
.ReleaseExe);
1217
compilation = CreateCompilationWithMscorlib461(new[] { syntaxTree }, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script"));
1226
compilation = CreateCompilationWithMscorlib461(new[] { syntaxTree }, options:
TestOptions
.ReleaseExe.WithScriptClassName(""));
1238
compilation = CreateCompilationWithMscorlib461(new[] { syntaxTree }, options:
TestOptions
.ReleaseExe.WithScriptClassName(null));
1250
compilation = CreateCompilationWithMscorlib461(new[] { syntaxTree }, options:
TestOptions
.ReleaseExe.WithScriptClassName("a\0b"));
1322
compilation = CreateCompilationWithMscorlib461(new[] { syntaxTree }, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script1"));
1352
compilation = CreateCompilationWithMscorlib461(new[] { syntaxTree }, options:
TestOptions
.ReleaseExe.WithScriptClassName("Script1"));
1373
parseOptions:
TestOptions
.Script,
1374
options:
TestOptions
.DebugExe,
Semantics\SemanticAnalyzerTests.cs (1)
82
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
Semantics\SemanticErrorTests.cs (117)
1385
new[] { SyntaxFactory.ParseSyntaxTree(text, options:
TestOptions
.Script) });
2115
var comp = CreateCompilation(text, options:
TestOptions
.ReleaseDll.WithSpecificDiagnosticOptions(new Dictionary<string, ReportDiagnostic>()
2215
CreateCompilation(text, parseOptions:
TestOptions
.Regular7, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics(
2436
}", parseOptions:
TestOptions
.Regular6)
2729
CreateCompilation(test, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
2793
CreateCompilation(test, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
2813
CreateCompilation(test, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
2929
CreateCompilation(source, parseOptions:
TestOptions
.Regular7).VerifyDiagnostics(
2937
CreateCompilation(source, parseOptions:
TestOptions
.Regular).VerifyDiagnostics(
4002
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular7_3);
4293
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular6);
4727
CreateCompilation(text, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
4755
CreateCompilation(text, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
6463
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular10);
6476
var verifier = CompileAndVerify(text, parseOptions:
TestOptions
.Regular11);
6542
CreateCompilation(text, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
6979
CreateCompilation(text, parseOptions:
TestOptions
.Regular10).
6988
var verifier = CompileAndVerify(text, parseOptions:
TestOptions
.Regular11).
7027
CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
7035
CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
7061
CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
7069
CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
7100
CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
7105
var verifier = CompileAndVerify(source, new[] { CSharpRef }, parseOptions:
TestOptions
.Regular11);
7174
CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
7179
var verifier = CompileAndVerify(source, new[] { CSharpRef }, parseOptions:
TestOptions
.Regular11);
7482
var compilation = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
7571
CreateCompilation(text, options:
TestOptions
.ReleaseDll).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(
7892
var comp = CreateCompilation(new[] { Parse(test, options:
TestOptions
.Regular6) }, new MetadataReference[] { });
8144
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
8194
CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
8237
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
8308
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
8333
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
8362
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
8854
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
8890
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
8979
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
9079
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
9103
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
9127
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
9403
CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
10535
CreateCompilation(text, parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates).VerifyDiagnostics(
10565
CreateCompilation(text, parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates).VerifyDiagnostics(
10961
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
11040
CreateCompilation(text, options:
TestOptions
.ReleaseDll.WithSpecificDiagnosticOptions(noWarns)).VerifyDiagnostics(
11702
", parseOptions:
TestOptions
.Script).VerifyDiagnostics(
11880
", parseOptions:
TestOptions
.Script).VerifyDiagnostics(
12149
", parseOptions:
TestOptions
.Script).VerifyDiagnostics(
12189
", parseOptions:
TestOptions
.Script).VerifyDiagnostics(
12224
", parseOptions:
TestOptions
.Script).VerifyDiagnostics(
12256
", parseOptions:
TestOptions
.Script).VerifyDiagnostics(
12278
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
12321
", parseOptions:
TestOptions
.Script).VerifyDiagnostics(
12332
", parseOptions:
TestOptions
.Script).VerifyDiagnostics(
12345
", parseOptions:
TestOptions
.Script).VerifyDiagnostics(
12810
CreateCompilation(text, options:
TestOptions
.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics(
12976
CreateCompilation(text, parseOptions:
TestOptions
.Regular10)
12982
var verifier = CompileAndVerify(text, parseOptions:
TestOptions
.Regular11);
14209
CreateCompilation(text, parseOptions:
TestOptions
.Regular.WithStrictFeature()).VerifyDiagnostics(
15333
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
15361
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(expectedDiagnostics);
15362
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
15466
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
15833
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
16011
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseExe, parseOptions:
TestOptions
.Regular7_2).VerifyDiagnostics(
16051
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(
16098
var c = CompileAndVerify(text, expectedOutput: "7788", verify: Verification.Fails, options:
TestOptions
.UnsafeReleaseExe);
16425
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
16455
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
16484
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
16549
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
16741
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular6);
16952
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
17473
CreateCompilationWithMscorlib40AndSystemCore(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
18393
CreateCompilation(source, options:
TestOptions
.DebugExe.WithWarningLevel(5)).VerifyDiagnostics();
18448
var comp = CreateCompilation(text, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.DebugExe);
18542
var comp = CreateCompilation(text, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.DebugExe);
18568
var comp = CreateCompilation(text, targetFramework: TargetFramework.StandardAndCSharp, options:
TestOptions
.DebugExe);
18782
var comp = CreateCompilationWithMscorlib40AndSystemCore(source, new[] { CSharpRef }, options:
TestOptions
.UnsafeReleaseDll);
18830
var comp = CreateCompilationWithMscorlib40AndSystemCore(text, options:
TestOptions
.UnsafeReleaseDll);
20208
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
21091
this.CompileAndVerify(source: text, expectedOutput: expected, options:
TestOptions
.ReleaseExe.WithWarningLevel(4)).VerifyDiagnostics(compatibleExpected);
21579
var compilation = CreateCompilation(text, targetFramework: TargetFramework.Mscorlib461, options:
TestOptions
.DebugExe);
21583
var result = compilation.Emit(exebits, pdbbits, options:
TestOptions
.NativePdbEmit);
21900
new[] { Parse(text, options:
TestOptions
.RegularWithDocumentationComments) },
21901
options:
TestOptions
.ReleaseDll.WithXmlReferenceResolver(null));
22579
CreateCompilationWithMscorlib40(source, references: new[] { Net40.References.SystemCore }, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
22592
CreateCompilationWithMscorlib40(source, references: new[] { Net40.References.SystemCore }, options:
TestOptions
.ReleaseDll.WithNullableContextOptions(NullableContextOptions.Disable)).VerifyDiagnostics(
22640
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
22663
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
22686
CompileAndVerifyWithMscorlib40(source, expectedOutput: "True", references: new[] { Net40.References.SystemCore }, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
23093
CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithStrictFeature()).VerifyDiagnostics(
23172
CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithStrictFeature()).VerifyDiagnostics(
23620
CreateCompilation(builder.ToString(), null,
TestOptions
.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress)).VerifyEmitDiagnostics(
24132
CreateCompilation(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp5)).VerifyDiagnostics(
24258
CreateCompilationWithMscorlib461(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
24290
CreateCompilationWithMscorlib461(text, new[] { NetFramework.System, NetFramework.SystemCore, NetFramework.MicrosoftCSharp }, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
24492
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugExe);
24555
parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp5)).VerifyDiagnostics(
24589
parseOptions:
TestOptions
.Regular).VerifyDiagnostics(
24612
CreateCompilationWithMscorlib461(text, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
24658
CreateCompilationWithMscorlib461(text, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
24799
CreateCompilationWithMscorlib40AndSystemCore(text, parseOptions:
TestOptions
.RegularWithRecursivePatterns).VerifyDiagnostics(
24831
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
Semantics\SpanStackSafetyTests.cs (43)
529
var comp = CreateCompilationWithMscorlibAndSpan(new[] { text, UnscopedRefAttributeDefinition }, parseOptions:
TestOptions
.Regular10);
728
CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options:
TestOptions
.ReleaseExe);
792
CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options:
TestOptions
.ReleaseExe);
853
CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options:
TestOptions
.ReleaseExe);
911
CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options:
TestOptions
.ReleaseExe);
990
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
1006
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
1054
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
1061
var comp = CreateCompilationWithMscorlibAndSpan(text,
TestOptions
.ReleaseExe,
TestOptions
.Regular13);
1064
comp = CreateCompilationWithMscorlibAndSpan(text,
TestOptions
.ReleaseExe);
1132
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
1147
CreateCompilationWithMscorlibAndSpan(text, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics(expectedDiagnostics);
1201
CreateCompilationWithMscorlibAndSpan(text,
TestOptions
.ReleaseExe,
TestOptions
.Regular12).VerifyDiagnostics(
1208
var comp = CreateCompilationWithMscorlibAndSpan(text,
TestOptions
.ReleaseExe,
TestOptions
.Regular13);
1211
comp = CreateCompilationWithMscorlibAndSpan(text,
TestOptions
.ReleaseExe);
1394
comp = CreateCompilationWithMscorlibAndSpan(text,
TestOptions
.DebugExe);
1755
comp = CreateCompilationWithMscorlibAndSpan(text,
TestOptions
.DebugExe);
1805
comp = CreateCompilationWithMscorlibAndSpan(text,
TestOptions
.DebugExe);
1827
CreateCompilationWithSpan(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
1834
var comp = CreateCompilationWithSpan(source, parseOptions:
TestOptions
.Regular13);
1930
options:
TestOptions
.ReleaseDll);
1947
options:
TestOptions
.ReleaseExe);
1964
options:
TestOptions
.ReleaseDll);
1981
options:
TestOptions
.ReleaseExe);
2008
options:
TestOptions
.UnsafeReleaseDll);
2025
options:
TestOptions
.ReleaseExe);
2049
options:
TestOptions
.UnsafeReleaseDll);
2066
options:
TestOptions
.ReleaseExe);
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);
2279
}", options:
TestOptions
.ReleaseExe), verify: Verification.Fails, expectedOutput: @"
2323
}", options:
TestOptions
.ReleaseExe), verify: Verification.Fails, expectedOutput: @"
2372
}", parseOptions:
TestOptions
.RegularDefault.WithLanguageVersion(languageVersion));
2621
CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options:
TestOptions
.DebugExe);
2646
CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options:
TestOptions
.DebugExe);
2671
CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options:
TestOptions
.DebugExe);
2701
CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options:
TestOptions
.DebugExe);
2724
CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options:
TestOptions
.DebugExe);
Semantics\StackAllocInitializerTests.cs (73)
59
",
TestOptions
.UnsafeReleaseDll);
136
",
TestOptions
.UnsafeReleaseDll);
201
",
TestOptions
.UnsafeReleaseDll);
254
",
TestOptions
.UnsafeReleaseDll);
307
",
TestOptions
.UnsafeReleaseDll);
353
}",
TestOptions
.UnsafeReleaseDll);
426
}",
TestOptions
.UnsafeReleaseDll);
523
}",
TestOptions
.UnsafeReleaseExe);
562
}",
TestOptions
.DebugExe);
579
}",
TestOptions
.ReleaseDll);
597
CreateCompilationWithMscorlibAndSpan(source,
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular7_3)
618
CreateCompilationWithMscorlibAndSpan(source,
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular8)
646
CreateCompilationWithMscorlibAndSpan(source,
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular7_3)
658
CreateCompilationWithMscorlibAndSpan(source,
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular8)
695
CreateCompilationWithMscorlibAndSpan(source,
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular7_3)
707
CreateCompilationWithMscorlibAndSpan(source,
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular8)
732
}",
TestOptions
.UnsafeReleaseDll);
755
}",
TestOptions
.UnsafeReleaseDll);
778
""",
TestOptions
.UnsafeReleaseExe);
793
}",
TestOptions
.UnsafeReleaseDll);
812
}",
TestOptions
.UnsafeReleaseDll);
831
}",
TestOptions
.UnsafeReleaseDll);
852
}",
TestOptions
.UnsafeReleaseDll);
879
}",
TestOptions
.UnsafeReleaseDll);
904
}",
TestOptions
.UnsafeReleaseDll);
927
}",
TestOptions
.UnsafeReleaseDll);
957
}",
TestOptions
.UnsafeReleaseExe);
975
}",
TestOptions
.UnsafeReleaseExe);
1028
}",
TestOptions
.UnsafeReleaseDll);
1130
}",
TestOptions
.UnsafeReleaseDll);
1218
}",
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
1318
}",
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1334
}",
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1350
}",
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
1380
}",
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1397
}",
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
1430
}",
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1445
}",
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
1473
}", options:
TestOptions
.UnsafeReleaseDll, parseOptions: parseOptions).VerifyDiagnostics(
1506
}", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
1535
CreateCompilationWithMscorlibAndSpan(test, options:
TestOptions
.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics(
1564
CreateCompilationWithMscorlibAndSpan(test, options:
TestOptions
.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics(
1593
CreateCompilationWithMscorlibAndSpan(test, options:
TestOptions
.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics(
1620
CreateCompilation(test, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
1648
CreateCompilationWithMscorlibAndSpan(test, options:
TestOptions
.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics(
1685
CreateCompilationWithMscorlibAndSpan(test, options:
TestOptions
.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics(
1716
CreateCompilationWithMscorlibAndSpan(test, options:
TestOptions
.ReleaseDll.WithAllowUnsafe(true), parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
1727
CreateCompilationWithMscorlibAndSpan(test, options:
TestOptions
.ReleaseDll.WithAllowUnsafe(true), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
1749
CreateCompilationWithMscorlibAndSpan(test,
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
1769
CreateCompilationWithMscorlibAndSpan(test,
TestOptions
.ReleaseDll).VerifyDiagnostics(
1793
CreateCompilationWithMscorlibAndSpan(test,
TestOptions
.UnsafeReleaseExe, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
1804
CreateCompilationWithMscorlibAndSpan(test,
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(
1894
CreateCompilationWithMscorlibAndSpan(source, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
1931
CreateCompilationWithMscorlibAndSpan(source, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
1942
CreateCompilationWithMscorlibAndSpan(source, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
1959
CreateCompilationWithMscorlibAndSpan(source, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
2010
}",
TestOptions
.ReleaseDll).VerifyDiagnostics();
2119
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
2283
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
2354
}",
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
2460
}",
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
2547
}",
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
2637
}",
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
Semantics\StackAllocSpanExpressionsTests.cs (41)
43
}",
TestOptions
.UnsafeReleaseDll);
117
}",
TestOptions
.UnsafeReleaseDll);
183
}",
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
243
}",
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
257
}",
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
271
}",
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
289
}",
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
304
}",
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
331
}",
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
345
CreateCompilationWithMscorlibAndSpan(source,
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
353
CreateCompilationWithMscorlibAndSpan(source,
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
373
}", options:
TestOptions
.UnsafeReleaseDll, parseOptions: parseOptions).VerifyDiagnostics(
393
}", options:
TestOptions
.UnsafeReleaseDll, parseOptions: parseOptions).VerifyDiagnostics(
412
}", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
432
CreateCompilationWithMscorlibAndSpan(test, options:
TestOptions
.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics(
453
CreateCompilationWithMscorlibAndSpan(test, options:
TestOptions
.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics(
471
CreateCompilation(test, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
490
CreateCompilationWithMscorlibAndSpan(test, options:
TestOptions
.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics(
512
CreateCompilationWithMscorlibAndSpan(test, options:
TestOptions
.ReleaseDll.WithAllowUnsafe(true), parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
517
CreateCompilationWithMscorlibAndSpan(test, options:
TestOptions
.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics(
540
CreateCompilationWithMscorlibAndSpan(test, options:
TestOptions
.ReleaseDll.WithAllowUnsafe(true), parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
545
CreateCompilationWithMscorlibAndSpan(test, options:
TestOptions
.ReleaseDll.WithAllowUnsafe(true), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
561
CreateCompilationWithMscorlibAndSpan(test, options:
TestOptions
.ReleaseDll.WithAllowUnsafe(true), parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
566
CreateCompilationWithMscorlibAndSpan(test, options:
TestOptions
.ReleaseDll.WithAllowUnsafe(true), parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
588
CreateCompilationWithMscorlibAndSpan(test,
TestOptions
.UnsafeReleaseExe, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
593
CreateCompilationWithMscorlibAndSpan(test,
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(
648
CreateCompilationWithMscorlibAndSpan(source, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
653
CreateCompilationWithMscorlibAndSpan(source, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
671
CreateCompilationWithMscorlibAndSpan(source, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
691
CreateCompilationWithMscorlibAndSpan(source, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
722
}",
TestOptions
.ReleaseDll).VerifyDiagnostics();
781
CreateEmptyCompilation(code, references,
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
810
CreateCompilationWithMscorlibAndSpan(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
836
CreateCompilationWithMscorlibAndSpan(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
Semantics\StructConstructorTests.cs (81)
29
var comp = CreateCompilation(sourceA, parseOptions:
TestOptions
.Regular9);
247
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions:
TestOptions
.Regular9);
850
TestOptions
.Regular.WithLanguageVersion(languageVersion.Value);
1325
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
1470
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
1575
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
1661
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
1721
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
1973
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
1985
var verifier = CompileAndVerify(source, parseOptions:
TestOptions
.Regular11, expectedOutput:
2013
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
2025
var verifier = CompileAndVerify(source, parseOptions:
TestOptions
.Regular11, expectedOutput: "(, )");
2074
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
2086
comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
2168
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
2282
var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, options:
TestOptions
.ReleaseExe, verify: Verification.Skipped, expectedOutput:
2400
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
2464
var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, options:
TestOptions
.ReleaseExe, verify: Verification.Skipped, expectedOutput:
2535
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
2568
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
2580
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular11);
2617
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
2650
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
2662
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular11);
2700
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular10);
2712
comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular11);
2753
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular10);
2765
var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular11, expectedOutput:
2855
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular10);
2876
var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular11, expectedOutput:
2926
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular10);
2947
var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular11, expectedOutput:
3004
CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular10, verify: Verification.Skipped, expectedOutput: expectedOutput);
3035
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular10);
3111
CompileAndVerify(source, options:
TestOptions
.ReleaseExe, verify: Verification.Skipped, expectedOutput:
3179
var verifier = CompileAndVerify(source, options:
TestOptions
.ReleaseExe, expectedOutput:
3235
comp = CreateCompilation(sourceB, references: new[] { refA }, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Mscorlib461);
3276
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
3297
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular11);
3406
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular10);
3418
comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular11);
3770
var comp = CreateCompilationWithSpan(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
3870
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Script, targetFramework: TargetFramework.NetCoreApp);
3889
CreateCompilation(source, parseOptions:
TestOptions
.Regular10)
3895
CreateCompilation(source, options:
TestOptions
.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), parseOptions:
TestOptions
.Regular11)
3901
CreateCompilation(source, options:
TestOptions
.DebugDll.WithSpecificDiagnosticOptions(GetIdForErrorCode(ErrorCode.WRN_UnassignedThisSupportedVersion), ReportDiagnostic.Error), parseOptions:
TestOptions
.Regular11)
3907
var verifier = CompileAndVerify(source, parseOptions:
TestOptions
.Regular11);
3940
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugExe);
3978
CreateCompilation(source, parseOptions:
TestOptions
.Regular10)
3990
CreateCompilation(source, options:
TestOptions
.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), parseOptions:
TestOptions
.Regular11)
4015
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
4021
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), parseOptions:
TestOptions
.Regular11);
4055
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
4064
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), parseOptions:
TestOptions
.Regular11);
4171
var verifier = CompileAndVerify(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
4202
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings));
4241
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings));
4274
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings));
4309
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings));
4349
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings));
4399
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings));
4443
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings));
4486
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings));
4527
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings));
4549
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings));
4591
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings));
4622
verifier = CompileAndVerify(source, options:
TestOptions
.DebugDll);
4699
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular10);
4709
var verifier = CompileAndVerify(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular11);
4739
var verifier = CompileAndVerify(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
4771
var verifier = CompileAndVerify(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
4827
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4870
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
Semantics\StructsTests.cs (8)
30
CreateCompilation(text, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
59
CreateCompilation(text, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
86
CreateCompilation(text, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
117
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe);
379
TestOptions
.ReleaseDll);
384
TestOptions
.ReleaseDll);
638
CreateCompilation(source, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
669
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular9);
Semantics\SuppressAccessibilityChecksTests.cs (2)
44
", new MetadataReference[] { referenceA },
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
164
", new MetadataReference[] { referenceA },
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
Semantics\SwitchTests.cs (69)
79
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
114
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
150
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
192
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
255
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
331
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
365
CreateCompilation(text, parseOptions:
TestOptions
.Regular7_1).VerifyDiagnostics(
396
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
437
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
462
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
492
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
522
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
550
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
593
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
633
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
675
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
725
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
779
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
832
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
887
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics();
920
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
959
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
1001
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
1037
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
1083
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
1202
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics();
1243
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics();
1293
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics();
1336
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics();
1374
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics();
1417
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics();
1461
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
1511
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
1562
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
1615
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
1666
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
1717
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
1768
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
1825
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
1883
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
1943
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
2000
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
2067
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
2106
CompileAndVerify(text, parseOptions:
TestOptions
.Regular6, expectedOutput: "a1");
2142
CompileAndVerify(text, parseOptions:
TestOptions
.Regular6, expectedOutput: "a2");
2179
CompileAndVerify(text, parseOptions:
TestOptions
.Regular6, expectedOutput:
2227
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
2267
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
2304
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
2359
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
2395
CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions:
TestOptions
.Script).VerifyDiagnostics(
2419
syntaxTree: SyntaxFactory.ParseSyntaxTree(source, options:
TestOptions
.Script),
2462
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
2519
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
2579
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
2613
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
2682
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
2714
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
2719
CreateCompilation(text, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
2724
CreateCompilation(text, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics();
2749
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
2753
CreateCompilation(text, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics();
2754
CreateCompilation(text, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics();
2780
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
2821
CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp2)).VerifyDiagnostics();
2822
CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp1)).VerifyDiagnostics(
2912
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
2945
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics();
2946
CreateCompilation(text, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics();
Semantics\SyntaxTreeRootTests.cs (1)
73
options:
TestOptions
.Script);
Semantics\TargetTypedConditionalOperatorTests.cs (35)
183
source, options:
TestOptions
.ReleaseExe,
184
parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion))
208
source, options:
TestOptions
.ReleaseExe,
209
parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion))
230
source, options:
TestOptions
.ReleaseExe,
231
parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion))
266
source, options:
TestOptions
.ReleaseExe,
267
parseOptions:
TestOptions
.Regular.WithLanguageVersion(langVersion))
329
parseOptions ??=
TestOptions
.Regular;
333
var comp = CreateCompilation(tree, options:
TestOptions
.DebugDll.WithAllowUnsafe(true));
412
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8, options:
TestOptions
.DebugExe)
415
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()), options:
TestOptions
.DebugExe)
432
CreateCompilation(source, parseOptions:
TestOptions
.Regular8, options:
TestOptions
.DebugDll.WithAllowUnsafe(true))
434
CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()), options:
TestOptions
.DebugDll.WithAllowUnsafe(true))
451
CreateCompilation(source, parseOptions:
TestOptions
.Regular8, options:
TestOptions
.DebugDll)
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(
707
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
Semantics\TargetTypedDefaultTests.cs (193)
31
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7);
66
var comp = CreateCompilationWithMscorlib46(source, parseOptions:
TestOptions
.Regular7);
117
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
136
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
167
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
189
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
219
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
236
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
273
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.DebugExe);
312
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
353
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
413
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
457
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
487
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
509
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
552
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
595
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8, options:
TestOptions
.DebugExe);
637
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
660
var comp = CreateCompilationWithMscorlib46(source, parseOptions:
TestOptions
.Regular7_1);
692
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
713
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
734
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
778
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
813
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
830
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
859
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
889
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
910
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
928
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
946
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
967
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
994
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
1013
var comp2 = CreateCompilation(source, parseOptions:
TestOptions
.Regular7);
1057
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
1077
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
1107
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
1134
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
1163
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
1192
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
1228
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
1246
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
1362
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
1365
var comp2 = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
1468
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
1471
var comp2 = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
1571
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
1574
var comp2 = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
1593
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
1621
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
1624
var comp2 = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3, options:
TestOptions
.DebugExe);
1714
validateLangVer(modifier, type, value, equal, semanticType,
TestOptions
.Regular7_2, diagnostics);
1715
validateLangVer(modifier, type, value, equal, semanticType,
TestOptions
.Regular, diagnostics);
1721
var comp = CreateCompilation(source, parseOptions: parseOptions, options:
TestOptions
.DebugExe);
1787
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3, options:
TestOptions
.DebugExe);
1858
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular, options:
TestOptions
.DebugExe);
1903
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
1939
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
1968
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
2007
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
2053
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
2079
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
2108
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
2144
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
2177
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
2203
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe.WithAllowUnsafe(true));
2227
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
2250
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
2270
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
2287
var comp = CreateCompilationWithMscorlib40(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe,
2307
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
2326
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
2359
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
2381
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
2407
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
2449
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
2477
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
2503
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
2524
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
2549
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
2575
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
2591
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
2609
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
2628
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
2653
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, references: new[] { CSharpRef }, options:
TestOptions
.DebugExe);
2671
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
2696
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3, options:
TestOptions
.DebugExe);
2722
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular7_1)
2743
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
2768
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions:
TestOptions
.Regular7_1);
2792
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
2810
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions:
TestOptions
.Regular7_1);
2833
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
2855
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugDll);
2880
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular7_1);
2903
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugDll);
2926
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugDll);
2962
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
3012
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
3028
var comp = CreateCompilationWithMscorlib40AndSystemCore(text, parseOptions:
TestOptions
.Regular7_1);
3049
var comp = CreateCompilationWithMscorlib40AndSystemCore(text, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
3078
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
3100
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
3129
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
3161
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
3193
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
3225
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
3254
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
3274
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
3295
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
3330
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
3369
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
3406
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
3428
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
3447
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
3467
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
3487
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
3506
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
3547
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
3568
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
3623
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
3705
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1, options:
TestOptions
.DebugExe);
3743
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1);
Semantics\TopLevelStatementsTests.cs (273)
29
private static CSharpParseOptions DefaultParseOptions =>
TestOptions
.Regular9;
43
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
77
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
105
var comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
113
comp = CreateCompilation(new[] { text1, text2, text3 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
140
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
161
var comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
164
comp = CreateCompilation(new[] { text2, text1 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
177
var comp = CreateCompilation(text1, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
183
comp = CreateCompilation(text1, options:
TestOptions
.DebugExe.WithNullableContextOptions(NullableContextOptions.Enable), parseOptions: DefaultParseOptions);
278
var comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
293
comp = CreateCompilation(new[] { text2, text1 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
308
comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe.WithNullableContextOptions(NullableContextOptions.Enable), parseOptions: DefaultParseOptions);
434
var comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
455
comp = CreateCompilation(new[] { text2, text1 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
524
var comp = CreateCompilation(text1, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
562
var comp = CreateCompilation(text1, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
611
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular8);
690
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
736
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
780
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
812
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
825
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
838
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
859
var comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
909
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
930
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
955
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
970
var comp = CreateCompilation(text1, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1002
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1015
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1028
var comp = CreateCompilation(text1, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1055
var comp = CreateCompilation(text1, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1073
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1101
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1116
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1123
comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular12);
1130
comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular13);
1133
comp = CreateCompilation(text, options:
TestOptions
.DebugExe);
1159
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1186
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1208
var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1251
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1269
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1286
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1302
var comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1316
comp = CreateCompilation(new[] { "System.Console.WriteLine();", text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1346
var comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1360
comp = CreateCompilation(new[] { "System.Console.WriteLine();", text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1395
var comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1413
comp = CreateCompilation(new[] { text2, text1 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1446
var comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1465
comp = CreateCompilation(new[] { text2, text1 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1500
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1541
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1587
var comp = CreateCompilation(new[] { text1, text2, text3 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1649
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1822
var comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1976
var comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1979
comp = CreateCompilation(text1 + text2, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
1983
Parse(text1, filename: "text2",
TestOptions
.Regular6) },
1984
options:
TestOptions
.DebugExe));
1986
comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular7);
2043
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
2207
var comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
2357
var comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
2360
comp = CreateCompilation(text1 + text2, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
2363
comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular7);
2409
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
2554
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
2573
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
2604
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
2629
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
2690
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
2775
var comp = CreateCompilation(text, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
2832
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
2860
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
2894
var comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
3008
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
3070
var comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
3133
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
3200
var comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
3264
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
3326
var comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
3389
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
3456
var comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
3520
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
3582
var comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
3645
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
3712
var comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
3776
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
3844
var comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
3912
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4061
var comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4161
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4186
var comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4207
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4289
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4311
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4363
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4451
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4468
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4492
var comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4531
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4559
var comp = CreateCompilation(text1, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4597
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4611
var comp = CreateCompilation(text1, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4639
var comp = CreateCompilation(text1, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4656
var comp = CreateCompilation(text1, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4672
var comp = CreateCompilation(text1, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4692
var comp = CreateCompilation(text1, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4707
var comp = CreateCompilation(text1, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4725
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4748
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4763
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4777
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4798
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4819
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4840
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4865
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4885
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4917
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4938
var comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
4970
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5003
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5031
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5061
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5093
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5123
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5149
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5185
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5224
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5280
var comp = CreateCompilation(new[] { text1, text4 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5317
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe.WithMainTypeName("Program2"), parseOptions: DefaultParseOptions);
5344
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe.WithMainTypeName(""), parseOptions: DefaultParseOptions);
5368
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5388
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5409
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5430
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5454
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5479
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5506
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5534
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5561
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5589
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5613
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5638
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5665
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5679
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5698
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5719
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5743
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5769
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5790
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5811
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5832
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5853
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5873
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5897
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5915
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5939
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5962
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
5999
var comp = CreateCompilation(text1, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
6078
options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
6149
options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
6223
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
6264
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
6307
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
6357
var comp = CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
6396
var comp = CreateCompilation(text1, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
6407
comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
6501
var comp = CreateCompilation(text1, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
6510
comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
6558
var comp = CreateCompilation(text1, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
6573
comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
6679
var comp = CreateCompilation(text1, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
6690
comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
6766
var comp = CreateCompilation(text1, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
6775
comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
6824
var comp = CreateCompilation(text1, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
6833
comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
6882
var comp = CreateCompilation(text1, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
6891
comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
6950
var comp = CreateCompilation(text1, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
6959
comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7029
var comp = CreateCompilation(text1 + text2, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7037
comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7142
var comp = CreateCompilation(text1 + text2 + text3, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7151
comp = CreateCompilation(new[] { text1, text2, text3 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7236
var comp = CreateCompilation(text1 + text2, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7245
comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7309
var comp = CreateCompilation(text1, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7319
comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7376
var comp = CreateCompilation(text1, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7386
comp = CreateCompilation(new[] { text1, text2 }, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7443
var comp = CreateEmptyCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7465
var comp = CreateCompilation(text, targetFramework: TargetFramework.Minimal, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7488
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7510
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7548
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7574
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7605
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7623
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7670
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7717
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7786
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7851
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7874
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7893
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7912
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7932
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7950
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7972
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
7992
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
8011
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
8029
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
8049
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
8061
var comp = CreateCompilation(text, options:
TestOptions
.DebugDll, parseOptions: DefaultParseOptions);
8074
var comp = CreateCompilation(text, options:
TestOptions
.ReleaseModule, parseOptions: DefaultParseOptions);
8190
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
8208
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
8221
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
8230
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
8244
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
8258
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
8272
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
8299
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
8316
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
8333
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
8350
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
8397
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe.WithOverflowChecks(true), parseOptions: DefaultParseOptions);
8442
var comp = CreateCompilation(text, options:
TestOptions
.UnsafeDebugExe, parseOptions: DefaultParseOptions);
8458
var comp = CreateCompilation(text, options:
TestOptions
.UnsafeDebugExe, parseOptions: DefaultParseOptions);
8485
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
8515
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
8537
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
8556
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
8571
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
8604
var comp = CreateCompilation(text1, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
8624
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
8636
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
8713
", options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
8733
", options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
8766
var oldTree = Parse(text: text1, options:
TestOptions
.RegularDefault);
8789
using var lexer = new Syntax.InternalSyntax.Lexer(newText,
TestOptions
.RegularDefault);
8794
var tree = CSharpSyntaxTree.Create(compilationUnit,
TestOptions
.RegularDefault, path: "", Encoding.UTF8, SourceHashAlgorithms.Default);
8798
var fullParseTree = Parse(text: text2, options:
TestOptions
.RegularDefault);
8827
", options:
TestOptions
.ReleaseExe);
8886
", options:
TestOptions
.ReleaseExe);
8951
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
8968
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
8985
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
8997
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
9010
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
9028
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe, parseOptions: DefaultParseOptions);
9046
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All));
9101
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All));
9495
var comp = CreateCompilation(text, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All));
9534
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
9551
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
9571
var comp = CreateCompilation(src, parseOptions:
TestOptions
.RegularWithDocumentationComments);
9675
var compilation = CreateCompilation(source, options:
TestOptions
.DebugDll);
9766
var comp = CreateCompilation(new[] { src1, src2 }, options:
TestOptions
.ReleaseExe);
9769
comp = CreateCompilation(new[] { src2, src1 }, options:
TestOptions
.ReleaseExe);
9794
var comp = CreateCompilation(new[] { src1, src2 }, options:
TestOptions
.ReleaseExe);
9797
comp = CreateCompilation(new[] { src2, src1 }, options:
TestOptions
.ReleaseExe);
9822
var comp = CreateCompilation(new[] { src1, src2 }, options:
TestOptions
.ReleaseExe);
9825
comp = CreateCompilation(new[] { src2, src1 }, options:
TestOptions
.ReleaseExe);
Semantics\TryCatchTests.cs (1)
157
CompileAndVerify(source, options:
TestOptions
.DebugDll).VerifyDiagnostics(
Semantics\TypeOfTests.cs (5)
53
""", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
67
""", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
83
""", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
99
""", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
118
""", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
Semantics\UninitializedNonNullableFieldTests.cs (42)
87
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7);
107
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7, skipUsesIsNullable: true);
265
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
299
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
328
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
362
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
389
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
812
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
856
var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular10);
874
var verifier = CompileAndVerify(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular11);
983
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular11);
1052
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
1065
var verifier = CompileAndVerify(source, parseOptions:
TestOptions
.Regular11);
1218
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
1258
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
1283
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
1303
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
1323
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
1350
var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
1380
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
1406
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
1436
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
1446
comp = CreateCompilation(new[] { source }, options: WithNullableDisable(), parseOptions:
TestOptions
.Regular8);
1457
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
1487
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
1521
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
1555
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
1589
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
1612
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
1647
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
1694
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
1734
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
1755
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
1782
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
1797
var verifier = CompileAndVerify(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular11);
1846
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
1865
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
1888
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
1903
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
2078
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular8);
2244
var comp = CreateCompilation(new[] { source, MemberNotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions:
TestOptions
.RegularPreview);
2313
var comp = CreateCompilation(new[] { source, MemberNotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions:
TestOptions
.RegularPreview);
Semantics\UnsafeTests.cs (758)
59
options:
TestOptions
.UnsafeDebugDll);
78
options:
TestOptions
.UnsafeDebugDll);
106
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
123
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
144
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
170
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
186
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll.WithAllowUnsafe(false)).VerifyDiagnostics(
190
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
205
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll.WithAllowUnsafe(false)).VerifyDiagnostics(
209
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
239
compilationOptions:
TestOptions
.UnsafeReleaseDll.WithAllowUnsafe(false),
246
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
262
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
278
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
283
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics();
284
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics();
301
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
306
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics();
307
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics();
324
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
329
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics();
330
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics();
348
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
353
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics();
354
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics();
379
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
397
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
398
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
421
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
445
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
446
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
468
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
492
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
493
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
513
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
535
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
559
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
583
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
610
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(
619
CompileAndVerify(code, expectedOutput: expectedOutput, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics();
620
CompileAndVerify(code, expectedOutput: expectedOutput, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics();
639
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
644
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics();
645
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics();
664
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
676
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
677
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
702
var comp = CreateCompilationWithTasksExtensions(code, options:
TestOptions
.UnsafeReleaseExe);
754
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
755
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
811
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
812
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
813
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
853
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics();
873
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
878
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics();
879
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics();
900
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
905
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics();
906
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics();
924
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
936
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(expectedDiagnostics);
937
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
955
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyEmitDiagnostics();
964
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(expectedDiagnostics);
965
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
983
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyEmitDiagnostics();
984
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics();
985
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics();
1006
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyEmitDiagnostics();
1015
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(expectedDiagnostics);
1016
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1034
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyEmitDiagnostics();
1043
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(expectedDiagnostics);
1044
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1066
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyEmitDiagnostics();
1075
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(expectedDiagnostics);
1076
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1098
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyEmitDiagnostics();
1107
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(expectedDiagnostics);
1108
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1126
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
1138
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(expectedDiagnostics);
1139
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1157
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1158
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1159
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1179
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1180
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1181
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1202
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1203
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1204
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1227
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1228
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1229
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1245
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1246
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1247
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1263
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
1268
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1269
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1292
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1293
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1294
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1309
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
1329
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
1348
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1366
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1389
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1390
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1415
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1416
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1437
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1438
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1439
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1462
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1463
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1464
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1485
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1486
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1487
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1510
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1511
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1512
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1528
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1529
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1530
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1546
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
1551
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1552
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1575
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1576
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1577
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1592
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
1611
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1634
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1635
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1657
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1658
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1659
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1683
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1684
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1685
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1707
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1708
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1709
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1736
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1737
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1738
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1755
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1756
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1757
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1774
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
1779
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1780
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1804
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1805
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1806
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1822
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
1848
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1877
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1878
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1905
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1906
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1928
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1929
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1930
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1954
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1955
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1956
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1978
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1979
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
1980
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
2007
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
2008
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
2009
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
2026
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
2027
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
2028
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
2045
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
2050
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
2051
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
2075
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
2076
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
2077
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
2093
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
2119
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
2148
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
2149
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
2176
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
2177
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
2196
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics();
2197
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics();
2198
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics();
2216
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2217
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2218
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2240
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics();
2241
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics();
2242
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics();
2263
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2264
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2265
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2282
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics();
2283
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics();
2284
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics();
2301
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(
2306
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics();
2307
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics();
2328
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2329
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2330
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2343
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(
2363
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics();
2387
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2388
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2401
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics();
2402
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics();
2403
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics();
2423
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2424
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2425
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2441
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics();
2442
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics();
2443
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics();
2463
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2464
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2465
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2488
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2489
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2490
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2516
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2517
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2518
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2541
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2552
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2553
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2576
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2577
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2578
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2595
CreateCompilation(code, parseOptions:
TestOptions
.Regular12, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics();
2596
CreateCompilation(code, parseOptions:
TestOptions
.Regular13, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics();
2597
CreateCompilation(code, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics();
2620
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
2643
var compilation = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
3181
CreateCompilation(withoutUnsafe, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
3193
CreateCompilation(withUnsafeOnType, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
3198
CreateCompilation(withUnsafeOnMembers, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
3213
CreateCompilation(withUnsafeOnMembers, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(expectedDiagnostics);
3214
CreateCompilation(withUnsafeOnMembers, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
3217
CreateCompilation(withUnsafeOnTypeAndMembers, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
3231
CreateCompilation(withUnsafeOnTypeAndMembers, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(expectedDiagnostics);
3232
CreateCompilation(withUnsafeOnTypeAndMembers, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
3249
CreateCompilation(withoutUnsafe, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
3256
CreateCompilation(withUnsafeOnType, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
3259
CreateCompilation(withUnsafeOnMembers, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
3265
CreateCompilation(withUnsafeOnMembers, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics();
3266
CreateCompilation(withUnsafeOnMembers, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics();
3269
CreateCompilation(withUnsafeOnTypeAndMembers, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
3275
CreateCompilation(withUnsafeOnTypeAndMembers, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular13).VerifyEmitDiagnostics();
3276
CreateCompilation(withUnsafeOnTypeAndMembers, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics();
3293
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
3317
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
3360
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
3373
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll.WithAllowUnsafe(false)).VerifyDiagnostics(
3377
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
3395
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
3419
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
4171
CreateCompilation(withoutUnsafe, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedWithoutUnsafe);
4174
CreateCompilation(withUnsafeOnType, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedWithUnsafe);
4177
CreateCompilation(withUnsafeOnMembers, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedWithUnsafe);
4180
CreateCompilation(withUnsafeOnTypeAndMembers, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedWithUnsafe);
5188
var compilation = CreateCompilationWithMscorlib40AndSystemCore(text, options:
TestOptions
.UnsafeReleaseDll);
5312
var compilation = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
5379
var compilation = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
5914
var libComp = CreateCompilation(libSrc, options:
TestOptions
.UnsafeDebugDll);
5934
var comp = CreateCompilation(src, options:
TestOptions
.UnsafeDebugDll, references: new[] { libComp.EmitToImageReference() });
5993
var comp = CreateCompilation(src, options:
TestOptions
.UnsafeDebugDll);
6144
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
6170
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
6194
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
6218
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
6248
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
6264
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
6366
var tree = SyntaxFactory.ParseSyntaxTree(code,
TestOptions
.Regular);
6367
var compilation = CreateCompilation(tree, new[] { metadata },
TestOptions
.UnsafeReleaseDll);
6414
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
6432
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
6474
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
6497
CreateCompilationWithMscorlib40AndSystemCore(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
6543
CreateCompilationWithMscorlib40AndSystemCore(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
6640
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
6791
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
6825
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
6870
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
6927
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
6947
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
6967
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
6986
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
7007
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
7029
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
7052
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
7073
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
7096
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
7120
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
7147
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
7169
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
7187
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
7210
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
7233
CreateCompilationWithMscorlib40AndSystemCore(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
7253
var compilation = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
7290
var compilation = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
7319
var compilation = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
7357
var compilation = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
7395
var compilation = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
7436
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
7451
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
7470
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
7488
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
7507
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
7531
var compilation = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
7568
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
7585
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
7600
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
7618
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
7636
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
7655
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
7673
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
7692
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
7750
CreateCompilationWithMscorlib40AndSystemCore(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
7795
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
7841
var compilation = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
7908
var compilation = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
7967
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
7985
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
8005
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
8025
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
8044
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
8062
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
8086
}", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
8107
}", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
8128
}", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
8154
var compilation = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
8221
var compilation = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
8279
var compilation = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
8339
var compilation = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
8375
var compilation = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
8416
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
8469
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
8519
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
8557
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
8667
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
8744
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
8785
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
8817
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
8851
var compilation = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
8905
var compilation = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
8943
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
8987
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
9056
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
9130
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
9151
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
9167
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
9191
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
9211
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
9249
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
9274
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
9317
var compilation = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
9374
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
9418
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
9513
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
9533
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
9555
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
9581
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
9603
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
9653
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
9687
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
9726
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
9766
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
9801
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
9824
CreateCompilationWithMscorlibAndSpan(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
9828
CreateCompilationWithMscorlibAndSpan(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
9855
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
9900
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
9936
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
9956
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
9986
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
10008
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
10037
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: "42");
10061
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
10091
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
10121
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
10143
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
10173
var compilation = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
10214
var compilation = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
10286
var compilation = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
10353
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
10455
CreateCompilation(text, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
10456
CreateCompilation(text, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(expectedDiagnostics);
10478
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
10509
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
10560
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
10828
CreateCompilation(text, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedDiagnostics);
10829
CreateCompilation(text, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(expectedDiagnostics);
10845
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
10927
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
11024
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
11057
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
11080
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
11113
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
11166
CreateCompilationWithMscorlibAndSpan(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
11176
CreateCompilationWithMscorlibAndSpan(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
11197
CreateCompilationWithMscorlibAndSpan(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
11202
CreateCompilationWithMscorlibAndSpan(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
11220
CreateCompilationWithMscorlibAndSpan(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
11241
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
11250
CreateCompilationWithMscorlibAndSpan(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Script).VerifyDiagnostics(
11264
CreateCompilationWithMscorlibAndSpan(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Script).VerifyDiagnostics(
11277
CreateCompilationWithMscorlibAndSpan(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Script).VerifyDiagnostics(
11301
var compilation = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
11368
CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics();
11381
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
11407
CreateCompilation(text, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(expected);
11408
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(expected);
11420
CreateCompilation(text, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expected);
11421
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expected);
11455
CreateCompilation(text, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(expected);
11457
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(expectedWithUnsafe);
11459
CreateCompilation(text, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expected);
11461
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expectedWithUnsafe);
11465
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(expectedWithUnsafe);
11511
CreateCompilation(text, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(expected);
11512
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(expected);
11539
CreateCompilation(text, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expected);
11540
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expected);
11568
CreateCompilation(text, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
11587
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
11604
CreateCompilation(text, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
11623
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
11674
CreateCompilation(text, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(expected);
11675
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(expected);
11696
CreateCompilation(text, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expected);
11697
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expected);
11721
CreateCompilation(text, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
11734
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
11745
CreateCompilation(text, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
11758
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
11785
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll);
11803
var comp = CreateCompilation(tree, options:
TestOptions
.UnsafeReleaseDll);
11825
var comp = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseExe);
11851
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
11873
var compilation = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
11900
var comp = CreateCompilation(tree, options:
TestOptions
.UnsafeReleaseDll);
11919
var comp = CreateCompilation(text, options:
TestOptions
.ReleaseExe);
11936
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
11959
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
12041
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
12057
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
12080
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
12133
var compilation = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails);
12250
var compilation = CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails);
12329
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails);
12412
var comp1 = CompileAndVerify(s1, options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Passes).Compilation;
12415
options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails,
12466
options:
TestOptions
.UnsafeReleaseDll, verify: Verification.Fails,
12511
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"246");
12555
CompileAndVerify(text, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: @"4812");
12568
}", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
12596
}", options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
12630
}", options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
12656
}", options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
12683
}", options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
12712
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll);
12726
var comp = CreateCompilation(csharp, options:
TestOptions
.DebugDll);
12746
var comp = CreateCompilation(csharp, options:
TestOptions
.DebugDll);
12762
var comp = CreateCompilation(csharp, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.Regular11);
12781
var comp = CreateCompilation(csharp, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.Regular11);
12800
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular11);
12816
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular11);
12832
var comp = CreateCompilation(csharp, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.Regular11);
12851
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular11);
12877
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll);
12900
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll);
12920
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll);
12938
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll);
12962
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll);
12983
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll);
12998
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll);
13011
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll);
13024
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll);
13046
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll);
13065
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll);
13083
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll);
13098
var comp = CreateCompilation(csharp, options:
TestOptions
.DebugDll);
13117
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll);
13136
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll);
13157
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll);
13183
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll);
13203
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll);
13228
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll);
13247
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll);
13265
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll);
13274
comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll);
13300
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll);
13309
comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll);
13329
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular11);
13332
comp = CreateCompilation(csharp, parseOptions:
TestOptions
.Regular11);
13348
comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular12);
13351
comp = CreateCompilation(csharp, parseOptions:
TestOptions
.Regular12);
13381
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular11);
13384
comp = CreateCompilation(csharp, parseOptions:
TestOptions
.Regular11);
13403
comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular12);
13406
comp = CreateCompilation(csharp, parseOptions:
TestOptions
.Regular12);
13423
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular11);
13432
comp = CreateCompilation(csharp, parseOptions:
TestOptions
.Regular11);
13444
comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular12);
13456
comp = CreateCompilation(csharp, parseOptions:
TestOptions
.Regular12);
13485
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular11);
13488
comp = CreateCompilation(csharp, parseOptions:
TestOptions
.Regular11);
13500
comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.RegularPreview);
13503
comp = CreateCompilation(csharp, parseOptions:
TestOptions
.RegularPreview);
13520
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular11);
13526
comp = CreateCompilation(csharp, parseOptions:
TestOptions
.Regular11);
13542
comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.RegularPreview);
13545
comp = CreateCompilation(csharp, parseOptions:
TestOptions
.RegularPreview);
13562
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular11);
13565
comp = CreateCompilation(csharp, parseOptions:
TestOptions
.Regular11);
13571
comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.RegularPreview);
13577
comp = CreateCompilation(csharp, parseOptions:
TestOptions
.RegularPreview);
13593
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.RegularPreview);
13599
comp = CreateCompilation(csharp, parseOptions:
TestOptions
.RegularPreview);
13627
var comp = CreateCompilation(csharp, parseOptions:
TestOptions
.Regular11);
13660
comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular11);
13718
comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular12);
13721
comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.RegularPreview);
13745
var comp = CreateCompilation(csharp, parseOptions:
TestOptions
.Regular11);
13787
comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular11);
13863
comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular12);
13866
comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.RegularPreview);
13888
var comp = CreateCompilation(csharp, parseOptions:
TestOptions
.Regular11);
13900
comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular11);
13906
comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular12);
13909
comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.RegularPreview);
13932
var comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular11);
13939
comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular12);
13942
comp = CreateCompilation(csharp, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.RegularPreview);
Semantics\UserDefinedConversionTests.cs (4)
1151
var comp = CreateCompilation(source1 + source2 + source3 + source4 + source5, options:
TestOptions
.UnsafeReleaseDll);
1159
var verifier = CompileAndVerify(source: source1 + source3 + source5, options:
TestOptions
.UnsafeReleaseExe, expectedOutput: "");
1865
var comp = CreateCompilation(code, options:
TestOptions
.UnsafeReleaseExe);
1910
var comp = CreateCompilation(code, options:
TestOptions
.UnsafeReleaseExe);
Semantics\UseSiteErrorTests.cs (29)
1033
options:
TestOptions
.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default));
1047
TestOptions
.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default));
1061
TestOptions
.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default));
2260
CSharpCompilationOptions options =
TestOptions
.UnsafeReleaseDll;
2305
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
2306
var compilation1 = CreateEmptyCompilation(source1, parseOptions: parseOptions, options:
TestOptions
.ReleaseDll, references: new[] { MinCorlibRef });
2322
var compilation2 = CreateEmptyCompilation(source2, parseOptions: parseOptions, options:
TestOptions
.ReleaseDll, references: new[] { compilation1.EmitToImageReference(), MinCorlibRef });
2333
var compilation3 = CreateEmptyCompilation(source2, parseOptions: parseOptions, options:
TestOptions
.ReleaseDll, references: new[] { compilation1.ToMetadataReference(), MinCorlibRef });
2344
var compilation4 = CreateEmptyCompilation(source2, parseOptions: parseOptions, options:
TestOptions
.ReleaseDll, references: new[] { compilation1.EmitToImageReference() });
2374
var compilation5 = CreateEmptyCompilation(source2, parseOptions: parseOptions, options:
TestOptions
.ReleaseDll, references: new[] { compilation1.ToMetadataReference() });
2389
var compilation6 = CreateEmptyCompilation(source2, parseOptions: parseOptions, options:
TestOptions
.ReleaseDll, references: new[] { compilation1.EmitToImageReference(), MscorlibRef });
2419
var compilation7 = CreateEmptyCompilation(source2, parseOptions: parseOptions, options:
TestOptions
.ReleaseDll, references: new[] { compilation1.ToMetadataReference(), MscorlibRef });
2484
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 });
2494
comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 });
2511
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 });
2520
comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 });
2536
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 });
2545
comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 });
2563
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 });
2590
comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 });
2610
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 });
2632
comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 });
2652
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 });
2667
comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 });
2692
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 });
2707
comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 });
2738
comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 });
2752
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 });
2769
comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 });
Semantics\UsingDeclarationTests.cs (9)
385
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe).VerifyDiagnostics();
409
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe).VerifyDiagnostics();
435
var compilation = CreateCompilation(source, options:
TestOptions
.DebugExe).VerifyDiagnostics();
824
var compilation = CreateCompilationWithTasksExtensions(source, options:
TestOptions
.DebugExe).VerifyDiagnostics();
849
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(expected);
851
CreateCompilation(source, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics();
878
CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(expected);
880
CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics();
956
CreateCompilation(source, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
Semantics\UsingStatementTests.cs (7)
1079
var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.ReleaseExe);
1138
var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options:
TestOptions
.ReleaseExe);
1163
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
1169
CreateCompilation(source, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics();
1192
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
1198
CreateCompilation(source, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
1848
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithFeature("run-nullable-analysis", "never"));
Semantics\Utf8StringsLiteralsTests.cs (138)
54
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
83
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
111
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
142
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
175
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
199
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
226
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
255
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
283
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
314
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
338
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
362
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
384
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
416
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
453
comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular11);
461
comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular10);
487
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
518
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
561
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
821
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
873
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
924
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
981
var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
1037
var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
1095
var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
1151
var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
1205
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
1257
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
1308
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
1366
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
1396
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
1420
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
1453
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
1475
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
1515
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
1536
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
1540
comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular10);
1575
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
1602
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
1605
comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular10);
1623
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
1649
var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
1666
comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular11);
1672
comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular10);
1702
var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
1719
comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular11);
1725
comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular10);
1755
var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
1772
comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular11);
1778
comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular10);
1817
var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
1834
comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular11);
1840
comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular10);
1877
var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
1916
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
1943
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.DebugExe);
1972
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
2002
var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
2037
var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
2074
var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
2102
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
2122
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
2143
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
2169
var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
2198
var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
2235
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
2276
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
2325
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
2362
var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
2399
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
2433
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
2457
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
2461
comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular10);
2482
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
2513
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
2540
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
2573
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
2606
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
2639
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
2687
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
2732
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
2780
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
2810
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
2852
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
2890
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
2916
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
2942
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
2967
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
2995
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
3023
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
3051
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
3079
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
3107
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
3135
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
3163
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
3191
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
3219
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
3247
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
3275
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
3303
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
3332
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseDll);
3384
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.ReleaseDll);
3446
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
3494
var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
3536
var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
3585
var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
3634
var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
3684
var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
3731
var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
3772
var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
3794
var comp = CreateCompilation(new[] { source + HelpersSource, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugDll);
3827
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
3853
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
3899
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3945
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
3989
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
4032
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
4061
var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
4132
var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
4155
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
4186
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
4225
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
4250
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
4275
var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options:
TestOptions
.DebugExe);
Semantics\WarningVersionTests.cs (74)
48
CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics();
49
CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(3)).VerifyDiagnostics();
50
CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(4)).VerifyDiagnostics();
51
CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics(whenWave5);
52
CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(6)).VerifyDiagnostics(whenWave5);
78
CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics();
79
CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(4)).VerifyDiagnostics();
80
CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics(whenWave5);
117
CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics();
118
CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(4)).VerifyDiagnostics();
119
CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics(whenWave5);
131
var comp1 = CreateCompilation(source, options:
TestOptions
.DebugModule);
157
options:
TestOptions
.DebugDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel),
158
parseOptions:
TestOptions
.Regular10,
166
options:
TestOptions
.DebugDll.WithWarningLevel(5),
167
parseOptions:
TestOptions
.Regular10,
179
options:
TestOptions
.DebugDll.WithWarningLevel(5),
180
parseOptions:
TestOptions
.Regular11,
188
options:
TestOptions
.DebugDll
191
parseOptions:
TestOptions
.Regular11,
209
var comp1 = CreateCompilation(source, options:
TestOptions
.DebugModule);
235
options:
TestOptions
.DebugDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel),
236
parseOptions:
TestOptions
.Regular10,
244
options:
TestOptions
.DebugDll.WithWarningLevel(5),
245
parseOptions:
TestOptions
.Regular10,
257
options:
TestOptions
.DebugDll
259
parseOptions:
TestOptions
.Regular11,
267
options:
TestOptions
.DebugDll
270
parseOptions:
TestOptions
.Regular11,
288
var comp1 = CreateCompilation(source, options:
TestOptions
.DebugModule);
321
options:
TestOptions
.DebugDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel),
322
parseOptions:
TestOptions
.Regular10,
330
options:
TestOptions
.DebugDll.WithWarningLevel(5),
331
parseOptions:
TestOptions
.Regular10,
346
options:
TestOptions
.DebugDll.WithWarningLevel(5),
347
parseOptions:
TestOptions
.Regular11,
358
options:
TestOptions
.DebugDll
361
parseOptions:
TestOptions
.Regular11,
382
var comp1 = CreateCompilation(source, options:
TestOptions
.DebugModule);
392
CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options:
TestOptions
.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics(
394
CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options:
TestOptions
.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics(
410
var comp1 = CreateCompilation(source, options:
TestOptions
.DebugModule);
445
options:
TestOptions
.DebugDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel),
446
parseOptions:
TestOptions
.Regular10,
454
options:
TestOptions
.DebugDll.WithWarningLevel(5),
455
parseOptions:
TestOptions
.Regular10,
467
options:
TestOptions
.DebugDll.WithWarningLevel(5),
468
parseOptions:
TestOptions
.Regular11,
476
options:
TestOptions
.DebugDll
479
parseOptions:
TestOptions
.Regular11,
497
var comp1 = CreateCompilation(source, options:
TestOptions
.DebugModule);
532
options:
TestOptions
.DebugDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel),
533
parseOptions:
TestOptions
.Regular10,
541
options:
TestOptions
.DebugDll.WithWarningLevel(5),
542
parseOptions:
TestOptions
.Regular10,
554
options:
TestOptions
.DebugDll.WithWarningLevel(5),
555
parseOptions:
TestOptions
.Regular11,
563
options:
TestOptions
.DebugDll
566
parseOptions:
TestOptions
.Regular11,
584
var comp1 = CreateCompilation(source, options:
TestOptions
.DebugModule);
619
options:
TestOptions
.DebugDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel),
620
parseOptions:
TestOptions
.Regular10,
628
options:
TestOptions
.DebugDll.WithWarningLevel(5),
629
parseOptions:
TestOptions
.Regular10,
641
options:
TestOptions
.DebugDll.WithWarningLevel(5),
642
parseOptions:
TestOptions
.Regular11,
650
options:
TestOptions
.DebugDll
653
parseOptions:
TestOptions
.Regular11,
671
var comp1 = CreateCompilation(source, options:
TestOptions
.DebugModule);
683
CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options:
TestOptions
.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics(
685
CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options:
TestOptions
.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics(
701
var comp1 = CreateCompilation(source, options:
TestOptions
.DebugModule);
713
CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options:
TestOptions
.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics(
715
CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options:
TestOptions
.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics(
SourceGeneration\GeneratorDriverTests.cs (204)
34
var parseOptions =
TestOptions
.Regular;
35
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
54
var parseOptions =
TestOptions
.Regular;
55
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
76
var parseOptions =
TestOptions
.Regular;
77
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
97
var parseOptions =
TestOptions
.Regular;
98
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
126
var parseOptions =
TestOptions
.Regular;
127
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
155
var parseOptions =
TestOptions
.Regular;
158
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
216
var parseOptions =
TestOptions
.Regular;
217
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
248
var parseOptions =
TestOptions
.Regular;
249
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
273
var parseOptions =
TestOptions
.Regular;
274
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
296
var parseOptions =
TestOptions
.Regular;
297
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
317
var parseOptions =
TestOptions
.Regular;
318
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
340
var parseOptions =
TestOptions
.Regular;
341
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
370
var parseOptions =
TestOptions
.Regular;
371
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
401
var parseOptions =
TestOptions
.Regular;
402
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
427
var parseOptions =
TestOptions
.Regular;
428
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
453
var parseOptions =
TestOptions
.Regular;
454
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
482
var parseOptions =
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.Preview);
483
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
521
var parseOptions =
TestOptions
.Regular;
522
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
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;
582
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
611
var parseOptions =
TestOptions
.Regular;
612
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
656
var parseOptions =
TestOptions
.Regular;
657
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
703
var parseOptions =
TestOptions
.Regular;
704
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
738
var parseOptions =
TestOptions
.Regular;
739
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
775
var parseOptions =
TestOptions
.Regular;
776
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
797
var parseOptions =
TestOptions
.Regular;
798
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
822
var parseOptions =
TestOptions
.Regular;
823
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
850
var parseOptions =
TestOptions
.Regular;
851
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
881
var parseOptions =
TestOptions
.Regular;
882
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
907
var parseOptions =
TestOptions
.Regular;
908
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
934
var parseOptions =
TestOptions
.Regular;
935
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
962
var parseOptions =
TestOptions
.Regular;
963
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
994
var parseOptions =
TestOptions
.Regular;
995
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1023
var parseOptions =
TestOptions
.Regular;
1024
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1058
var parseOptions =
TestOptions
.Regular;
1059
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1085
var parseOptions =
TestOptions
.Regular;
1086
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1130
var parseOptions =
TestOptions
.Regular;
1131
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1157
var parseOptions =
TestOptions
.Regular;
1158
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1255
var parseOptions =
TestOptions
.Regular;
1257
Compilation compilation = CreateCompilation(source, sourceFileName: "sourcefile.cs", options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1346
var parseOptions =
TestOptions
.RegularPreview;
1384
var parseOptions =
TestOptions
.Regular;
1385
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1419
var parseOptions =
TestOptions
.Regular;
1420
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1441
var parseOptions =
TestOptions
.RegularPreview;
1442
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1466
var parseOptions =
TestOptions
.RegularPreview;
1467
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1492
var parseOptions =
TestOptions
.RegularPreview;
1493
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1534
var parseOptions =
TestOptions
.RegularPreview;
1535
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1563
var parseOptions =
TestOptions
.RegularPreview;
1564
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1596
var parseOptions =
TestOptions
.RegularPreview;
1597
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1617
var parseOptions =
TestOptions
.RegularPreview;
1618
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1679
var parseOptions =
TestOptions
.RegularPreview;
1680
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1691
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1723
var parseOptions =
TestOptions
.RegularPreview;
1724
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1740
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, additionalTexts: new[] { text1 }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1942
var parseOptions =
TestOptions
.RegularPreview;
1943
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1978
var parseOptions =
TestOptions
.RegularPreview;
1979
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
2000
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, additionalTexts: texts, driverOptions:
TestOptions
.GeneratorDriverOptions);
2134
var parseOptions =
TestOptions
.RegularPreview;
2135
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugExeThrowing, parseOptions: parseOptions);
2193
var parseOptions =
TestOptions
.RegularPreview;
2194
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugExeThrowing, parseOptions: parseOptions);
2240
var parseOptions =
TestOptions
.RegularPreview;
2241
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
2302
var parseOptions =
TestOptions
.RegularPreview;
2303
Compilation compilation = CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.DebugExeThrowing, parseOptions: parseOptions);
2305
GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
2383
var parseOptions =
TestOptions
.RegularPreview;
2384
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
2399
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
2455
var parseOptions =
TestOptions
.RegularPreview;
2456
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
2483
var parseOptions =
TestOptions
.RegularPreview;
2484
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
2498
driverOptions:
TestOptions
.GeneratorDriverOptions);
2546
var parseOptions =
TestOptions
.RegularPreview;
2547
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
2577
Compilation newCompilation = CreateCompilation(newSource, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
2612
var parseOptions =
TestOptions
.RegularPreview;
2613
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
2633
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, optionsProvider: optionsProvider, driverOptions:
TestOptions
.GeneratorDriverOptions);
2696
var parseOptions =
TestOptions
.RegularPreview;
2697
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
2711
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, additionalTexts: new[] { additionalText1, additionalText2, additionalText3 }, driverOptions:
TestOptions
.GeneratorDriverOptions);
2883
var parseOptions =
TestOptions
.RegularPreview;
2884
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
2901
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, additionalTexts: new[] { additionalText }, driverOptions:
TestOptions
.GeneratorDriverOptions);
3078
var parseOptions =
TestOptions
.RegularPreview;
3079
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
3144
var parseOptions =
TestOptions
.RegularPreview;
3145
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
3159
GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { generator.AsSourceGenerator() }, parseOptions: parseOptions, additionalTexts: new[] { new InMemoryAdditionalText("text.txt", "") }, driverOptions:
TestOptions
.GeneratorDriverOptions);
3190
var parseOptions =
TestOptions
.RegularPreview;
3191
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
3206
GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { generator1.AsSourceGenerator(), generator2.AsSourceGenerator() }, parseOptions: parseOptions, additionalTexts: new[] { additionalText }, driverOptions:
TestOptions
.GeneratorDriverOptions);
3220
var parseOptions =
TestOptions
.RegularPreview;
3227
Compilation compilation = CreateEmptyCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions, references: metadataRefs);
3278
var parseOptions =
TestOptions
.RegularPreview;
3279
Compilation compilation = CreateCompilation(builder.ToString(), options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
3293
GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { generator.AsSourceGenerator() }, parseOptions: parseOptions, additionalTexts: new[] { new InMemoryAdditionalText("text.txt", "") }, driverOptions:
TestOptions
.GeneratorDriverOptions);
3304
var parseOptions =
TestOptions
.RegularPreview;
3305
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
3322
driverOptions:
TestOptions
.GeneratorDriverOptions);
3337
var parseOptions =
TestOptions
.RegularPreview;
3338
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
3361
driverOptions:
TestOptions
.GeneratorDriverOptions);
3383
var parseOptions =
TestOptions
.RegularPreview;
3384
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
3395
GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
3411
var parseOptions =
TestOptions
.RegularPreview;
3412
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
3424
GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
3442
var parseOptions =
TestOptions
.RegularPreview;
3443
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
3464
GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { generator, generator2 }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
3490
var parseOptions =
TestOptions
.RegularPreview;
3491
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
3503
GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
3534
var parseOptions =
TestOptions
.RegularPreview;
3535
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
3546
GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
3565
var parseOptions =
TestOptions
.RegularPreview;
3566
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
3574
GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
3581
compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
3597
compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
3609
var parseOptions =
TestOptions
.RegularPreview;
3610
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
3641
var parseOptions =
TestOptions
.RegularPreview;
3642
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
3675
var parseOptions =
TestOptions
.RegularPreview;
3676
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
3704
var parseOptions =
TestOptions
.RegularPreview;
3705
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
3735
var parseOptions =
TestOptions
.RegularPreview;
3736
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions, sourceFileName: "/original");
3767
var parseOptions =
TestOptions
.RegularPreview;
3768
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions, sourceFileName: "/original");
3800
var parseOptions =
TestOptions
.RegularPreview;
3801
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions, sourceFileName: "/original");
3829
var parseOptions =
TestOptions
.RegularPreview;
3830
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions, sourceFileName: "/original");
3859
var parseOptions =
TestOptions
.RegularPreview;
3860
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
3891
var parseOptions =
TestOptions
.RegularPreview;
3892
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
3925
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing);
3971
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing);
4005
var parseOptions =
TestOptions
.RegularPreview;
4006
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
4067
var parseOptions =
TestOptions
.RegularPreview;
4076
Compilation compilation = CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
4149
var parseOptions =
TestOptions
.RegularPreview.WithFeature("InterceptorsNamespaces", "global");
4170
Compilation compilation = CreateCompilation([source1], options:
TestOptions
.DebugExe, parseOptions: parseOptions);
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.cs (137)
67
var parseOptions =
TestOptions
.RegularPreview;
68
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
78
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
109
var parseOptions =
TestOptions
.RegularPreview;
110
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
120
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
146
var parseOptions =
TestOptions
.RegularPreview;
147
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
157
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
176
var parseOptions =
TestOptions
.RegularPreview;
177
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
187
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
206
var parseOptions =
TestOptions
.RegularPreview;
207
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
217
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
235
var parseOptions =
TestOptions
.RegularPreview;
236
Compilation compilation = CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
244
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
262
var parseOptions =
TestOptions
.RegularPreview;
263
Compilation compilation = CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
271
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
290
var parseOptions =
TestOptions
.RegularPreview;
291
Compilation compilation = CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
299
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
319
var parseOptions =
TestOptions
.RegularPreview;
320
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
330
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
355
var parseOptions =
TestOptions
.RegularPreview;
356
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
366
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
394
var parseOptions =
TestOptions
.RegularPreview;
395
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
405
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
423
var parseOptions =
TestOptions
.RegularPreview;
424
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
434
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
456
var parseOptions =
TestOptions
.RegularPreview;
457
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
467
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
489
var parseOptions =
TestOptions
.RegularPreview;
490
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
500
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
521
var parseOptions =
TestOptions
.RegularPreview;
522
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
532
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
553
var parseOptions =
TestOptions
.RegularPreview;
554
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
564
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
584
var parseOptions =
TestOptions
.RegularPreview;
585
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
595
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
615
var parseOptions =
TestOptions
.RegularPreview;
616
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
626
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
648
var parseOptions =
TestOptions
.RegularPreview;
649
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
659
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
679
var parseOptions =
TestOptions
.RegularPreview;
680
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
690
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
708
var parseOptions =
TestOptions
.RegularPreview;
709
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
719
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
742
var parseOptions =
TestOptions
.RegularPreview;
743
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
753
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
771
var parseOptions =
TestOptions
.RegularPreview;
772
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
782
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
808
var parseOptions =
TestOptions
.RegularPreview;
809
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
819
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
845
var parseOptions =
TestOptions
.RegularPreview;
846
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
856
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
882
var parseOptions =
TestOptions
.RegularPreview;
883
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
893
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
919
var parseOptions =
TestOptions
.RegularPreview;
920
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
930
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
956
var parseOptions =
TestOptions
.RegularPreview;
957
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
967
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
992
var parseOptions =
TestOptions
.RegularPreview;
993
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1003
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1019
var parseOptions =
TestOptions
.RegularPreview;
1020
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1038
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1056
var parseOptions =
TestOptions
.RegularPreview;
1057
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1075
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1094
var parseOptions =
TestOptions
.RegularPreview;
1095
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1113
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1132
var parseOptions =
TestOptions
.RegularPreview;
1133
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1151
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1170
var parseOptions =
TestOptions
.RegularPreview;
1171
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1189
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1208
var parseOptions =
TestOptions
.RegularPreview;
1209
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1227
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1250
var parseOptions =
TestOptions
.RegularPreview;
1263
Compilation compilation = CreateCompilation(new[] { source1, source2 }, new[] { comp0 }, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1329
var parseOptions =
TestOptions
.RegularPreview;
1330
var compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1340
var driver = CSharpGeneratorDriver.Create([generator], parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1375
var parseOptions =
TestOptions
.RegularPreview;
1376
var compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1386
var driver = CSharpGeneratorDriver.Create([generator], parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1413
var parseOptions =
TestOptions
.RegularPreview;
1414
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1424
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1460
var parseOptions =
TestOptions
.RegularPreview;
1461
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1471
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1507
var parseOptions =
TestOptions
.RegularPreview;
1508
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1518
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1550
var parseOptions =
TestOptions
.RegularPreview;
1551
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1561
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1598
var parseOptions =
TestOptions
.RegularPreview;
1599
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1609
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1653
var parseOptions =
TestOptions
.RegularPreview;
1654
Compilation compilation = CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1662
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1710
var parseOptions =
TestOptions
.RegularPreview;
1711
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1721
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1764
var parseOptions =
TestOptions
.RegularPreview;
1765
Compilation compilation = CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1773
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
SourceGeneration\GeneratorDriverTests_Attributes_SimpleName.cs (138)
38
var parseOptions =
TestOptions
.RegularPreview;
39
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
49
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
70
var parseOptions =
TestOptions
.RegularPreview;
71
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
81
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
96
var parseOptions =
TestOptions
.RegularPreview;
97
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
107
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
121
var parseOptions =
TestOptions
.RegularPreview;
122
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
132
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
146
var parseOptions =
TestOptions
.RegularPreview;
147
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
157
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
174
var parseOptions =
TestOptions
.RegularPreview;
175
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
185
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
206
var parseOptions =
TestOptions
.RegularPreview;
207
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
217
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
238
var parseOptions =
TestOptions
.RegularPreview;
239
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
249
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
272
var parseOptions =
TestOptions
.RegularPreview;
273
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
283
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
305
var parseOptions =
TestOptions
.RegularPreview;
306
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
316
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
331
var parseOptions =
TestOptions
.RegularPreview;
332
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
342
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
357
var parseOptions =
TestOptions
.RegularPreview;
358
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
368
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
383
var parseOptions =
TestOptions
.RegularPreview;
384
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
394
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
416
var parseOptions =
TestOptions
.RegularPreview;
417
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
427
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
444
var parseOptions =
TestOptions
.RegularPreview;
445
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
455
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
472
var parseOptions =
TestOptions
.RegularPreview;
473
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
483
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
499
var parseOptions =
TestOptions
.RegularPreview;
500
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
510
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
530
var parseOptions =
TestOptions
.RegularPreview;
531
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
541
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
563
var parseOptions =
TestOptions
.RegularPreview;
564
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
574
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
595
var parseOptions =
TestOptions
.RegularPreview;
596
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
606
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
627
var parseOptions =
TestOptions
.RegularPreview;
628
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
638
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
655
var parseOptions =
TestOptions
.RegularPreview;
656
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
666
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
683
var parseOptions =
TestOptions
.RegularPreview;
684
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
694
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
711
var parseOptions =
TestOptions
.RegularPreview;
712
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
722
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
740
var parseOptions =
TestOptions
.RegularPreview;
741
Compilation compilation = CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
749
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
767
var parseOptions =
TestOptions
.RegularPreview;
768
Compilation compilation = CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
776
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
794
var parseOptions =
TestOptions
.RegularPreview;
795
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
805
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
825
var parseOptions =
TestOptions
.RegularPreview;
826
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
836
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
857
var parseOptions =
TestOptions
.RegularPreview;
858
Compilation compilation = CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
866
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
886
var parseOptions =
TestOptions
.RegularPreview;
887
Compilation compilation = CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
895
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
914
var parseOptions =
TestOptions
.RegularPreview;
915
Compilation compilation = CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
923
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
942
var parseOptions =
TestOptions
.RegularPreview;
943
Compilation compilation = CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
951
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
971
var parseOptions =
TestOptions
.RegularPreview;
972
Compilation compilation = CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
980
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1001
var parseOptions =
TestOptions
.RegularPreview;
1002
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1012
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1041
var parseOptions =
TestOptions
.RegularPreview;
1042
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1052
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1089
var parseOptions =
TestOptions
.RegularPreview;
1090
Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1098
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1142
var parseOptions =
TestOptions
.RegularPreview;
1143
Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1151
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1193
var parseOptions =
TestOptions
.RegularPreview;
1194
Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1202
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1248
var parseOptions =
TestOptions
.RegularPreview;
1249
Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1257
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1301
var parseOptions =
TestOptions
.RegularPreview;
1302
Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1310
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1359
var parseOptions =
TestOptions
.RegularPreview;
1360
Compilation compilation = CreateCompilation(new[] { source0, source1, source2, source3 }, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1368
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1407
var parseOptions =
TestOptions
.RegularPreview;
1408
Compilation compilation = CreateCompilation(new[] { source2, source3 }, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1416
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1452
var parseOptions =
TestOptions
.RegularPreview;
1453
Compilation compilation = CreateCompilation(new[] { source3 }, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1461
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1503
var parseOptions =
TestOptions
.RegularPreview;
1504
Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1512
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1554
var parseOptions =
TestOptions
.RegularPreview;
1555
Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1563
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1615
var parseOptions =
TestOptions
.RegularPreview;
1616
Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options:
TestOptions
.DebugDllThrowing, parseOptions: parseOptions);
1624
GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
SourceGeneration\SyntaxAwareGeneratorTests.cs (91)
32
var parseOptions =
TestOptions
.Regular;
33
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
58
var parseOptions =
TestOptions
.Regular;
59
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
83
var parseOptions =
TestOptions
.Regular;
84
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
109
var parseOptions =
TestOptions
.Regular;
110
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
134
var parseOptions =
TestOptions
.Regular;
135
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
161
var parseOptions =
TestOptions
.Regular;
162
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
233
var parseOptions =
TestOptions
.Regular;
234
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
272
var parseOptions =
TestOptions
.Regular;
273
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
313
var parseOptions =
TestOptions
.Regular;
314
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
369
var parseOptions =
TestOptions
.Regular;
370
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
411
var parseOptions =
TestOptions
.Regular;
412
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
453
var parseOptions =
TestOptions
.Regular;
454
Compilation compilation = CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
495
var parseOptions =
TestOptions
.Regular;
496
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
549
var parseOptions =
TestOptions
.Regular;
550
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
579
var parseOptions =
TestOptions
.Regular;
580
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
617
var parseOptions =
TestOptions
.Regular;
618
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
671
var parseOptions =
TestOptions
.Regular;
672
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
728
var parseOptions =
TestOptions
.Regular;
729
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
771
var parseOptions =
TestOptions
.Regular;
772
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
816
var parseOptions =
TestOptions
.Regular;
817
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
851
var parseOptions =
TestOptions
.RegularPreview;
852
Compilation compilation = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
891
var parseOptions =
TestOptions
.RegularPreview;
892
Compilation compilation = CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
933
var parseOptions =
TestOptions
.RegularPreview;
934
Compilation compilation = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
1010
var parseOptions =
TestOptions
.RegularPreview;
1011
Compilation compilation = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
1023
GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { new IncrementalGeneratorWrapper(testGenerator) }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1085
var parseOptions =
TestOptions
.RegularPreview;
1086
Compilation compilation = CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
1098
GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { new IncrementalGeneratorWrapper(testGenerator) }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1166
var parseOptions =
TestOptions
.RegularPreview;
1167
Compilation compilation = CreateCompilation(new[] { source1, source2 }, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
1216
var parseOptions =
TestOptions
.RegularPreview;
1217
Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
1231
GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { new IncrementalGeneratorWrapper(testGenerator) }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1299
var parseOptions =
TestOptions
.RegularPreview;
1300
Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
1376
var parseOptions =
TestOptions
.RegularPreview;
1377
Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
1405
driverOptions:
TestOptions
.GeneratorDriverOptions);
1509
var parseOptions =
TestOptions
.RegularPreview;
1510
Compilation compilation = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
1525
driverOptions:
TestOptions
.GeneratorDriverOptions);
1564
var parseOptions =
TestOptions
.RegularPreview;
1565
Compilation compilation = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
1613
var parseOptions =
TestOptions
.RegularPreview;
1614
Compilation compilation = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
1674
var parseOptions =
TestOptions
.RegularPreview;
1675
Compilation compilation = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
1694
GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { new IncrementalGeneratorWrapper(testGenerator) }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1733
var parseOptions =
TestOptions
.RegularPreview;
1734
Compilation compilation = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
1753
GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { new IncrementalGeneratorWrapper(testGenerator) }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1786
var parseOptions =
TestOptions
.RegularPreview;
1787
Compilation compilation = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
1807
GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { new IncrementalGeneratorWrapper(testGenerator) }, parseOptions: parseOptions, driverOptions:
TestOptions
.GeneratorDriverOptions);
1849
var parseOptions =
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.Preview);
1850
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
1890
var parseOptions =
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.Preview);
1891
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
1931
var parseOptions =
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.Preview);
1932
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
1980
var parseOptions =
TestOptions
.RegularPreview;
1981
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
2006
var parseOptions =
TestOptions
.RegularPreview;
2007
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
2044
var parseOptions =
TestOptions
.Regular;
2045
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll, parseOptions: parseOptions);
2079
Compilation compilation = CreateCompilation(source, options:
TestOptions
.DebugDll);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5399)
BadSymbolReference.cs (18)
840
}", options:
TestOptions
.ReleaseDll, assemblyName: "MissingTypeInTypeArgumentsOfImplementedInterface1");
850
}", new[] { lib1Ref },
TestOptions
.ReleaseDll, assemblyName: "MissingTypeInTypeArgumentsOfImplementedInterface2");
865
}", new[] { lib1Ref, lib2Ref },
TestOptions
.ReleaseDll, assemblyName: "MissingTypeInTypeArgumentsOfImplementedInterface3");
935
var lib4 = CreateCompilation(lib4Def, new[] { lib1Ref, lib3Ref },
TestOptions
.ReleaseDll);
1006
lib4 = CreateCompilation(lib4Def, new[] { lib1Ref, lib2Ref, lib3Ref },
TestOptions
.ReleaseDll);
1010
lib4 = CreateCompilation(lib4Def, new[] { lib1.EmitToImageReference(), lib3.EmitToImageReference() },
TestOptions
.ReleaseDll);
1029
", options:
TestOptions
.ReleaseDll, assemblyName: "MissingImplementedInterface1");
1051
", new[] { lib1Ref },
TestOptions
.ReleaseDll, assemblyName: "MissingImplementedInterface2");
1077
", new[] { lib1Ref, lib2Ref },
TestOptions
.ReleaseDll, assemblyName: "MissingImplementedInterface3");
1155
var lib4 = CreateCompilation(lib4Def, new[] { lib1Ref, lib3Ref },
TestOptions
.ReleaseDll);
1238
lib4 = CreateCompilation(lib4Def, new[] { lib1Ref, lib2Ref, lib3Ref },
TestOptions
.ReleaseDll);
1249
lib4 = CreateCompilation(lib4Def, new[] { lib1.EmitToImageReference(), lib3.EmitToImageReference() },
TestOptions
.ReleaseDll);
1314
}", options:
TestOptions
.ReleaseDll, assemblyName: "MissingBaseClass1");
1323
}", new[] { lib1Ref },
TestOptions
.ReleaseDll, assemblyName: "MissingBaseClass2");
1332
}", new[] { lib1Ref, lib2Ref },
TestOptions
.ReleaseDll, assemblyName: "MissingBaseClass3");
1377
var lib4 = CreateCompilation(lib4Def, new[] { lib1Ref, lib3Ref },
TestOptions
.ReleaseDll);
1424
lib4 = CreateCompilation(lib4Def, new[] { lib1Ref, lib2Ref, lib3Ref },
TestOptions
.ReleaseDll);
1428
lib4 = CreateCompilation(lib4Def, new[] { lib1.EmitToImageReference(), lib3.EmitToImageReference() },
TestOptions
.ReleaseDll);
Compilation\CompilationAPITests.cs (119)
40
=>
TestOptions
.DebugDll.WithSyntaxTreeOptionsProvider(new TestSyntaxTreeOptionsProvider(tree, options));
71
var options =
TestOptions
.DebugDll
167
var options =
TestOptions
.DebugDll.WithSyntaxTreeOptionsProvider(
194
var options =
TestOptions
.DebugDll.WithSyntaxTreeOptionsProvider(
204
options =
TestOptions
.DebugDll.WithSyntaxTreeOptionsProvider(
230
CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(0)).VerifyDiagnostics(
239
var options =
TestOptions
.DebugDll
254
CreateCompilation("", options:
TestOptions
.ReleaseDll.WithPublicSign(true).WithCryptoKeyFile("")).VerifyDiagnostics(
263
CreateCompilation("", options:
TestOptions
.ReleaseDll.WithPublicSign(true).WithCryptoKeyFile("\"\"")).VerifyDiagnostics(
288
var compilationOptions =
TestOptions
.DebugDll.WithWarningLevel(0);
358
var ops =
TestOptions
.ReleaseExe;
371
var ops1 =
TestOptions
.DebugExe;
444
var comp = CSharpCompilation.Create("Compilation", options:
TestOptions
.ReleaseDll);
487
var opt =
TestOptions
.DebugExe;
489
var comp = CSharpCompilation.Create("Compilation", options:
TestOptions
.DebugExe);
562
", filename: "1.csx", options:
TestOptions
.Script);
570
", options:
TestOptions
.Script);
577
", filename: "1.csx", options:
TestOptions
.Script);
584
", filename: "4.csx", options:
TestOptions
.Script);
589
var c = CreateCompilationWithMscorlib461(new[] { t1, t2 }, options:
TestOptions
.ReleaseDll.WithMetadataReferenceResolver(
613
options:
TestOptions
.ReleaseDll,
621
options:
TestOptions
.ReleaseDll,
632
options:
TestOptions
.ReleaseDll,
645
options:
TestOptions
.ReleaseExe,
648
options:
TestOptions
.Regular9) },
681
options:
TestOptions
.ReleaseDll,
682
syntaxTrees: new SyntaxTree[] { SyntaxFactory.ParseSyntaxTree("public class C {}", options:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp6)) },
689
options:
TestOptions
.ReleaseDll,
692
options:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp6)) },
700
options:
TestOptions
.ReleaseDll,
703
options:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp6)) },
713
options:
TestOptions
.ReleaseExe,
716
options:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp6)) },
791
var comp = CSharpCompilation.Create("Compilation", syntaxTrees: new[] { SyntaxFactory.ParseSyntaxTree(s1) }, options:
TestOptions
.ReleaseDll);
938
CSharpCompilation comp = CSharpCompilation.Create(options:
TestOptions
.ReleaseDll, assemblyName: "Compilation", references: null, syntaxTrees: null);
964
CSharpCompilation comp1 = CSharpCompilation.Create(assemblyName: "Compilation", syntaxTrees: null, options:
TestOptions
.ReleaseDll, references: null);
981
options:
TestOptions
.ReleaseModule,
987
options:
TestOptions
.ReleaseModule,
1001
options:
TestOptions
.ReleaseExe,
1016
options:
TestOptions
.ReleaseExe,
1037
options:
TestOptions
.ReleaseModule,
1043
options:
TestOptions
.ReleaseModule,
1057
options:
TestOptions
.ReleaseModule,
1071
options:
TestOptions
.ReleaseExe,
1092
options:
TestOptions
.ReleaseModule,
1107
options:
TestOptions
.ReleaseExe,
1126
options:
TestOptions
.ReleaseModule,
1132
options:
TestOptions
.ReleaseModule,
1146
options:
TestOptions
.ReleaseExe,
1377
var opt =
TestOptions
.ReleaseDll;
1636
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
1657
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
1673
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseModule);
1690
var compilation = CSharpCompilation.Create(assemblyName: null, options:
TestOptions
.ReleaseModule, syntaxTrees: new[] { Parse(source) }, references: new[] { MscorlibRef });
1698
compilation = CSharpCompilation.Create(assemblyName: null, options:
TestOptions
.ReleaseDll, syntaxTrees: new[] { Parse(source) }, references: new[] { MscorlibRef });
1706
compilation = CSharpCompilation.Create(assemblyName: "ModuleAssemblyName", options:
TestOptions
.ReleaseModule, syntaxTrees: new[] { Parse(source) }, references: new[] { MscorlibRef });
1742
syntaxTree: Parse("true", options:
TestOptions
.Script)
1750
syntaxTree: Parse("false", options:
TestOptions
.Script))
1768
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe, parseOptions:
TestOptions
.Script);
1789
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script);
1812
syntaxTree: Parse(source, options:
TestOptions
.Script));
1836
syntaxTree: Parse(source, options:
TestOptions
.Script));
1869
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithMainTypeName("B"));
1967
var c1 = CSharpCompilation.Create("c", options:
TestOptions
.ReleaseDll);
1969
var c2 = c1.WithOptions(
TestOptions
.ReleaseExe);
1972
c2 = c1.WithOptions(
TestOptions
.ReleaseDll.WithOutputKind(OutputKind.WindowsApplication));
1975
c2 = c1.WithOptions(
TestOptions
.ReleaseDll);
1978
c2 = c1.WithOptions(
TestOptions
.ReleaseDll.WithOutputKind(OutputKind.NetModule));
1981
c1 = CSharpCompilation.Create("c", options:
TestOptions
.ReleaseModule);
1983
c2 = c1.WithOptions(
TestOptions
.ReleaseExe);
1986
c2 = c1.WithOptions(
TestOptions
.ReleaseDll);
1989
c2 = c1.WithOptions(
TestOptions
.CreateTestOptions(OutputKind.WindowsApplication, OptimizationLevel.Debug));
1992
c2 = c1.WithOptions(
TestOptions
.DebugModule.WithAllowUnsafe(true));
1999
var c1 = CSharpCompilation.Create("c", options:
TestOptions
.ReleaseDll);
2001
var c2 = c1.WithOptions(
TestOptions
.ReleaseDll.WithMetadataReferenceResolver(new TestMetadataReferenceResolver()));
2005
var c3 = c1.WithOptions(
TestOptions
.ReleaseDll.WithMetadataReferenceResolver(c1.Options.MetadataReferenceResolver));
2012
var c1 = CSharpCompilation.Create("c", options:
TestOptions
.ReleaseDll);
2014
var c2 = c1.WithOptions(
TestOptions
.ReleaseDll.WithXmlReferenceResolver(new XmlFileResolver(null)));
2017
var c3 = c1.WithOptions(
TestOptions
.ReleaseDll.WithXmlReferenceResolver(c1.Options.XmlReferenceResolver));
2066
var ta = Parse("class C { }", options:
TestOptions
.Regular10);
2069
class C { }", options:
TestOptions
.Script.WithLanguageVersion(LanguageVersion.CSharp10));
2073
class D { }", options:
TestOptions
.Regular10);
2077
class C { }", options:
TestOptions
.Script.WithLanguageVersion(LanguageVersion.CSharp10));
2081
class C { }", options:
TestOptions
.Script.WithLanguageVersion(LanguageVersion.CSharp10));
2209
var c4 = c3.WithOptions(
TestOptions
.DebugModule);
2237
var c = CSharpCompilation.Create("Goo", references: new[] { MscorlibRef, mdModule.GetReference(display: "ModuleCS00") }, options:
TestOptions
.ReleaseDll);
2258
options:
TestOptions
.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default));
2279
options:
TestOptions
.ReleaseDll.WithAssemblyIdentityComparer(comparer));
2294
options:
TestOptions
.ReleaseDll);
2315
options:
TestOptions
.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default));
2340
options:
TestOptions
.ReleaseDll.WithAssemblyIdentityComparer(comparer));
2384
var compilationOptions =
TestOptions
.DebugDll;
2416
Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options:
TestOptions
.ReleaseExe));
2417
Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options:
TestOptions
.ReleaseDll.WithOutputKind(OutputKind.NetModule)));
2418
Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options:
TestOptions
.ReleaseDll.WithOutputKind(OutputKind.WindowsRuntimeMetadata)));
2419
Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options:
TestOptions
.ReleaseDll.WithOutputKind(OutputKind.WindowsRuntimeApplication)));
2420
Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options:
TestOptions
.ReleaseDll.WithOutputKind(OutputKind.WindowsApplication)));
2421
Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options:
TestOptions
.ReleaseDll.WithCryptoKeyContainer("goo")));
2422
Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options:
TestOptions
.ReleaseDll.WithCryptoKeyFile("goo.snk")));
2423
Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options:
TestOptions
.ReleaseDll.WithDelaySign(true)));
2424
Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options:
TestOptions
.ReleaseDll.WithDelaySign(false)));
2431
Assert.True(CreateSubmission("1", parseOptions:
TestOptions
.Script).HasSubmissionResult());
2432
Assert.False(CreateSubmission("1;", parseOptions:
TestOptions
.Script).HasSubmissionResult());
2433
Assert.False(CreateSubmission("void goo() { }", parseOptions:
TestOptions
.Script).HasSubmissionResult());
2434
Assert.False(CreateSubmission("using System;", parseOptions:
TestOptions
.Script).HasSubmissionResult());
2435
Assert.False(CreateSubmission("int i;", parseOptions:
TestOptions
.Script).HasSubmissionResult());
2436
Assert.False(CreateSubmission("System.Console.WriteLine();", parseOptions:
TestOptions
.Script).HasSubmissionResult());
2437
Assert.False(CreateSubmission("System.Console.WriteLine()", parseOptions:
TestOptions
.Script).HasSubmissionResult());
2438
Assert.True(CreateSubmission("null", parseOptions:
TestOptions
.Script).HasSubmissionResult());
2439
Assert.True(CreateSubmission("System.Console.WriteLine", parseOptions:
TestOptions
.Script).HasSubmissionResult());
2903
}", options:
TestOptions
.ReleaseDll.WithOverflowChecks(true));
3094
var module = CreateCompilation(string.Empty, options:
TestOptions
.ReleaseDll.WithOutputKind(OutputKind.NetModule));
3134
var module = CreateCompilation(string.Empty, options:
TestOptions
.ReleaseDll.WithOutputKind(OutputKind.NetModule));
3363
42", returnType: typeof(int), options:
TestOptions
.DebugDll.WithSourceReferenceResolver(resolver));
3393
42", parseOptions:
TestOptions
.Script);
3602
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
3637
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
3662
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
Compilation\CSharpCompilationOptionsTests.cs (7)
252
Assert.Null(
TestOptions
.ReleaseDll.WithModuleName(null).ModuleName);
253
TestOptions
.ReleaseDll.WithModuleName("").VerifyErrors(
258
TestOptions
.ReleaseDll.WithModuleName("a\0a").VerifyErrors(
263
TestOptions
.ReleaseDll.WithModuleName("a\uD800b").VerifyErrors(
268
TestOptions
.ReleaseDll.WithModuleName("a\\b").VerifyErrors(
273
TestOptions
.ReleaseDll.WithModuleName("a/b").VerifyErrors(
278
TestOptions
.ReleaseDll.WithModuleName("a:b").VerifyErrors(
Compilation\GetSemanticInfoTests.cs (1)
1129
var tree = Parse(text, options:
TestOptions
.Script);
Compilation\GetUnusedImportDirectivesTests.cs (8)
223
options:
TestOptions
.ReleaseDll.WithStrongNameProvider(new DesktopStrongNameProvider()),
244
options:
TestOptions
.ReleaseDll.WithStrongNameProvider(new DesktopStrongNameProvider()),
291
comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(3));
317
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(0));
379
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Error));
389
var tree = Parse("using System;", options:
TestOptions
.Script);
398
var tree = Parse("using System;", options:
TestOptions
.Script);
487
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithDocumentationMode(documentationMode));
Compilation\LoadDirectiveTests.cs (19)
21
var options =
TestOptions
.DebugDll.WithSourceReferenceResolver(TestSourceReferenceResolver.Default);
22
var compilation = CreateCompilationWithMscorlib461(code, options: options, parseOptions:
TestOptions
.Script);
34
var options =
TestOptions
.DebugDll.WithSourceReferenceResolver(TestSourceReferenceResolver.Default);
35
var compilation = CreateCompilationWithMscorlib461(code, options: options, parseOptions:
TestOptions
.Script);
53
var options =
TestOptions
.DebugDll.WithSourceReferenceResolver(resolver);
54
var compilation = CreateCompilationWithMscorlib461(code, options: options, parseOptions:
TestOptions
.Script);
78
var options =
TestOptions
.DebugDll.WithSourceReferenceResolver(resolver);
79
var compilation = CreateCompilationWithMscorlib461(code, sourceFileName: "external1.csx", options: options, parseOptions:
TestOptions
.Script);
81
var external2 = Parse(code, "external2.csx",
TestOptions
.Script);
92
#load ""a.csx""", filename: "external3.csx", options:
TestOptions
.Script);
104
var external4 = Parse("#load \"a.csx\"", "external4.csx",
TestOptions
.Script);
129
var compilation = CreateCompilationWithMscorlib461(code, parseOptions:
TestOptions
.Script);
145
var compilation = CreateCompilationWithMscorlib461(code, parseOptions:
TestOptions
.Script);
156
var options =
TestOptions
.DebugDll.WithSourceReferenceResolver(resolver);
157
var compilation = CreateCompilationWithMscorlib461(code, options: options, parseOptions:
TestOptions
.Script);
162
var newTree = Parse(code, "a.csx",
TestOptions
.Script);
176
options =
TestOptions
.DebugDll.WithSourceReferenceResolver(resolver);
177
compilation = CreateCompilationWithMscorlib461(code, options: options, parseOptions:
TestOptions
.Script);
182
newTree = Parse(code, "a.csx",
TestOptions
.Script);
Compilation\ReferenceManagerTests.cs (63)
27
TestOptions
.ReleaseDll.WithCryptoPublicKey(TestResources.TestKeys.PublicKey_ce65828c82a341f2);
36
}", options:
TestOptions
.DebugWinMD, assemblyName: "ITest");
52
options:
TestOptions
.DebugExe);
690
options:
TestOptions
.ReleaseDll);
708
options:
TestOptions
.ReleaseExe);
745
var compilation = CreateEmptyCompilation(tree, new[] { MscorlibRef, r1, r2_SysCore },
TestOptions
.DebugExe, assemblyName: "Test");
864
t1 = Parse($"#r \"{p2}\"", options:
TestOptions
.Script),
865
t2 = Parse($"#r \"{p3}\"", options:
TestOptions
.Script),
866
t3 = Parse("#r \"Lib\"", options:
TestOptions
.Script),
869
options:
TestOptions
.ReleaseDll.WithMetadataReferenceResolver(
930
var compilation = CSharpCompilation.Create("goo", options:
TestOptions
.ReleaseDll,
1019
new[] { SyntaxFactory.ParseSyntaxTree(text, options:
TestOptions
.Regular) },
1021
TestOptions
.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default));
1035
var peImage = CreateCompilation(libSource, options:
TestOptions
.ReleaseDll, assemblyName: "CS1704").EmitToArray();
1277
Parse("#r \"1\"", options:
TestOptions
.Script),
1278
Parse("#r \"2.dll\"", options:
TestOptions
.Script),
1280
options:
TestOptions
.ReleaseDll.WithMetadataReferenceResolver(resolver));
1319
var options =
TestOptions
.ReleaseDll.WithMetadataReferenceResolver(new ErroneousReferenceResolver());
1323
Parse("#r \"throw\"", options:
TestOptions
.Script),
1351
", filename: @"C:\A\a.csx", options:
TestOptions
.Script);
1357
", filename: @"C:\B\b.csx", options:
TestOptions
.Script);
1361
var c = CreateCompilationWithMscorlib461(new[] { t1, t2 }, options:
TestOptions
.ReleaseDll.WithMetadataReferenceResolver(
1448
var withCircularReference2 = withCircularReference1.WithOptions(
TestOptions
.ReleaseDll);
1706
var b = CreateCompilation(srcB, references: new[] { aRef }, options:
TestOptions
.ReleaseModule.WithModuleName("mod.netmodule"), assemblyName: "B");
1764
var moduleRef = CreateCompilation("public class TypeFromModule : TypeDependedOnByModule { }", new[] { assemblyRef }, options:
TestOptions
.ReleaseModule, assemblyName: "lib2").EmitToImageReference();
1815
var moduleRef = CreateCompilation("public class C { }", options:
TestOptions
.ReleaseModule, assemblyName: "lib").EmitToImageReference();
1836
var cPublic = CreateCompilation("class C { }", options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Public));
1837
var cInternal = CreateCompilation("class D { }", options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
1838
var cAll = CreateCompilation("class E { }", options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
1840
var cPublic2 = CreateCompilation("class C { }", options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Public));
1841
var cInternal2 = CreateCompilation("class D { }", options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
1842
var cAll2 = CreateCompilation("class E { }", options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
1864
var module = CreateCompilation(moduleSource, options:
TestOptions
.ReleaseModule);
1868
var mainAll = CreateCompilation(mainSource, new[] { moduleRef }, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
1873
var mainInternal = CreateCompilation(mainSource, new[] { moduleRef }, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
1878
var mainPublic = CreateCompilation(mainSource, new[] { moduleRef }, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Public));
1894
var main = CreateEmptyCompilation(mainSource, new MetadataReference[] { r1, MscorlibFacadeRef }, options:
TestOptions
.ReleaseDll);
2168
options:
TestOptions
.ReleaseDll.WithCryptoPublicKey(TestResources.TestKeys.PublicKey_b03f5f7f11d50a3a),
2175
options:
TestOptions
.ReleaseDll.WithCryptoPublicKey(TestResources.TestKeys.PublicKey_b03f5f7f11d50a3a),
2185
options:
TestOptions
.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default));
2195
options:
TestOptions
.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default));
2327
TestOptions
.ReleaseDll.WithMetadataReferenceResolver(
2356
TestOptions
.ReleaseDll.WithMetadataReferenceResolver(
2399
},
TestOptions
.ReleaseDll);
2435
},
TestOptions
.ReleaseDll);
2473
},
TestOptions
.ReleaseDll);
2512
},
TestOptions
.ReleaseDll);
2535
var c = CreateCompilationWithMscorlib46("public class C : A { }", new[] { aRef },
TestOptions
.ReleaseDll.WithMetadataReferenceResolver(resolver));
2564
", new[] { aRef },
TestOptions
.ReleaseDll.WithMetadataReferenceResolver(resolver));
2602
TestOptions
.ReleaseDll.WithMetadataReferenceResolver(resolver));
2646
TestOptions
.ReleaseDll.WithMetadataReferenceResolver(resolver));
2682
TestOptions
.ReleaseDll.WithMetadataReferenceResolver(resolver));
2709
TestOptions
.ReleaseDll.WithMetadataReferenceResolver(resolver));
2725
TestOptions
.ReleaseDll.WithMetadataReferenceResolver(resolver));
2753
TestOptions
.ReleaseDll.WithMetadataReferenceResolver(resolver));
2778
TestOptions
.ReleaseDll.WithMetadataReferenceResolver(resolver));
2798
var mRef = CreateCompilationWithMscorlib46("public interface M : B { }", new[] { bRef }, options:
TestOptions
.ReleaseModule.WithModuleName("M.netmodule")).EmitToImageReference();
2799
var nRef = CreateCompilationWithMscorlib46("public interface N : D { }", new[] { dRef }, options:
TestOptions
.ReleaseModule.WithModuleName("N.netmodule")).EmitToImageReference();
2810
TestOptions
.ReleaseDll.WithMetadataReferenceResolver(resolver));
3017
TestOptions
.ReleaseDll.WithMetadataReferenceResolver(resolverC));
3129
TestOptions
.ReleaseDll.WithMetadataReferenceResolver(resolverC));
3171
var options =
TestOptions
.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default);
3214
var options =
TestOptions
.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default);
Compilation\SemanticModelAPITests.cs (18)
87
var comp1 = CreateCompilation(src, parseOptions:
TestOptions
.Regular8);
89
var comp2 = CreateCompilation(src2, parseOptions:
TestOptions
.Regular8,
94
comp2 = CreateCompilation(src2, parseOptions:
TestOptions
.Regular7_3,
2016
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular);
3901
var comp = (Compilation)CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4103
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4140
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4183
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4207
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4235
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4273
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4325
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
4365
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_2);
4421
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3);
4469
var options = WithNullable(
TestOptions
.DebugExe, nullableContextOption);
4470
var comp = CreateCompilation(source, options: options, parseOptions:
TestOptions
.Regular9);
4524
var options = WithNullable(
TestOptions
.DebugExe, nullableContextOption);
4525
var comp = CreateCompilation(source, options: options, parseOptions:
TestOptions
.Regular9);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (5)
2754
options:
TestOptions
.DebugExe.WithScriptClassName("Script"),
3681
var parseOptions =
TestOptions
.Script;
3784
", parseOptions:
TestOptions
.Script
3803
var compilation = CreateCompilation(code, parseOptions:
TestOptions
.Script);
3844
var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode, parseOptions:
TestOptions
.Script);
Compilation\SemanticModelGetSemanticInfoTests.cs (12)
5634
var semanticInfo = GetSemanticInfoForTest<ExpressionSyntax>(text, parseOptions:
TestOptions
.Regular9);
8018
parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates);
8071
parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates);
8642
var semanticInfo = GetSemanticInfoForTest<ParenthesizedLambdaExpressionSyntax>(sourceCode, parseOptions:
TestOptions
.Regular6);
8682
var semanticInfo = GetSemanticInfoForTest<IdentifierNameSyntax>(sourceCode, parseOptions:
TestOptions
.Regular6);
8723
var semanticInfo = GetSemanticInfoForTest<LiteralExpressionSyntax>(sourceCode, parseOptions:
TestOptions
.Regular6);
11039
var semanticInfo = GetSemanticInfoForTest<LiteralExpressionSyntax>(sourceCode, parseOptions:
TestOptions
.Regular6);
11105
var semanticInfo = GetSemanticInfoForTest<LiteralExpressionSyntax>(sourceCode, parseOptions:
TestOptions
.Regular6);
12607
var semanticInfo = GetSemanticInfoForTest<IdentifierNameSyntax>(sourceCode, parseOptions:
TestOptions
.Regular6);
12641
var semanticInfo = GetSemanticInfoForTest<IdentifierNameSyntax>(sourceCode, parseOptions:
TestOptions
.Regular6);
14965
", options:
TestOptions
.ReleaseDll);
15303
", parseOptions:
TestOptions
.Regular);
Compilation\UsedAssembliesTests.cs (61)
35
var comp1 = CreateEmptyCompilation(source, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
56
var comp1 = CreateEmptyCompilation(source, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
294
options ??=
TestOptions
.ReleaseDll;
300
parseOptions:
TestOptions
.Regular.WithDocumentationMode(DocumentationMode.Diagnose));
378
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
419
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
589
var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }, options:
TestOptions
.DebugModule);
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));
2339
AssertUsedAssemblyReferences(CreateCompilation(Parse(source, options:
TestOptions
.Script), references: new[] { reference }, options:
TestOptions
.DebugDll.WithUsings(@using)),
3692
Compilation comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular11, references: references);
3834
Compilation comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview, references: references, options:
TestOptions
.UnsafeDebugDll);
3841
AssertUsedAssemblyReferences(source, references, references, parseOptions:
TestOptions
.RegularPreview, options:
TestOptions
.UnsafeDebugDll);
4012
parseOptions:
TestOptions
.Script.WithDocumentationMode(DocumentationMode.None),
4013
options:
TestOptions
.DebugDll.WithUsings("C0")),
4016
parseOptions:
TestOptions
.Script.WithDocumentationMode(DocumentationMode.Parse),
4017
options:
TestOptions
.DebugDll.WithUsings("C0")),
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)),
4607
parseOptions:
TestOptions
.Script.WithDocumentationMode(DocumentationMode.None),
4608
options:
TestOptions
.DebugDll.WithUsings("N1.N2")),
4611
parseOptions:
TestOptions
.Script.WithDocumentationMode(DocumentationMode.Parse),
4612
options:
TestOptions
.DebugDll.WithUsings("N1.N2")),
4615
parseOptions:
TestOptions
.Script.WithDocumentationMode(DocumentationMode.None),
4616
options:
TestOptions
.DebugDll.WithUsings("N1")),
4619
parseOptions:
TestOptions
.Script.WithDocumentationMode(DocumentationMode.Parse),
4620
options:
TestOptions
.DebugDll.WithUsings("N1")),
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)),
4798
parseOptions:
TestOptions
.Script.WithDocumentationMode(DocumentationMode.None),
4799
options:
TestOptions
.DebugDll.WithUsings("N1.N2.E0")),
4802
parseOptions:
TestOptions
.Script.WithDocumentationMode(DocumentationMode.Parse),
4803
options:
TestOptions
.DebugDll.WithUsings("N1.N2.E0")),
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();
5617
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe);
5650
CompileWithUsedAssemblyReferences(source2, options:
TestOptions
.DebugModule, comp1Ref);
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)),
DeclarationTests.cs (7)
61
var decl1 = DeclarationTreeBuilder.ForTree(tree1,
TestOptions
.DebugExe.ScriptClassName, isSubmission: false);
62
var decl2 = DeclarationTreeBuilder.ForTree(tree2,
TestOptions
.DebugExe.ScriptClassName, isSubmission: false);
230
var decl1 = Lazy(DeclarationTreeBuilder.ForTree(tree1,
TestOptions
.DebugExe.ScriptClassName, isSubmission: false));
231
var decl2 = Lazy(DeclarationTreeBuilder.ForTree(tree2,
TestOptions
.DebugExe.ScriptClassName, isSubmission: false));
263
options:
TestOptions
.ReleaseDll);
290
var compilation = CreateCompilation(new SyntaxTree[] { underlyingTree, countedTree }, skipUsesIsNullable: true, options:
TestOptions
.ReleaseDll);
337
var compilation = CreateCompilation(new SyntaxTree[] { underlyingTree, countedTree }, skipUsesIsNullable: true, options:
TestOptions
.ReleaseDll);
DocumentationComments\CrefTests.cs (31)
247
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithDocumentationComments);
277
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithDocumentationComments);
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));
4968
var compilation = (Compilation)CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions:
TestOptions
.RegularWithDocumentationComments);
5122
var tree = Parse(source, options:
TestOptions
.RegularWithDocumentationComments);
5228
SyntaxTree tree = Parse(source, options:
TestOptions
.RegularWithDocumentationComments);
5873
new[] { Parse(source, options:
TestOptions
.RegularWithDocumentationComments) },
5875
TestOptions
.ReleaseDll.WithXmlReferenceResolver(XmlFileResolver.Default));
6700
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithDocumentationComments).VerifyDiagnostics();
6731
verify(CreateCompilation(source, parseOptions:
TestOptions
.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(
6739
verify(CreateCompilation(source, parseOptions:
TestOptions
.Regular12.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics());
6740
verify(CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics());
6775
verify(CreateCompilation(source, parseOptions:
TestOptions
.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(
6796
verify(CreateCompilation(source, parseOptions:
TestOptions
.Regular12.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics));
6797
verify(CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics));
6838
verify(CreateCompilation(source, parseOptions:
TestOptions
.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics));
6839
verify(CreateCompilation(source, parseOptions:
TestOptions
.Regular12.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics));
6840
verify(CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics));
6868
verify(CreateCompilation(source, parseOptions:
TestOptions
.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(
6889
verify(CreateCompilation(source, parseOptions:
TestOptions
.Regular12.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics));
6890
verify(CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics));
6917
var parseOptions =
TestOptions
.RegularWithDocumentationComments;
6918
var options =
TestOptions
.ReleaseDll.WithXmlReferenceResolver(XmlFileResolver.Default);
6941
var parseOptions =
TestOptions
.RegularWithDocumentationComments;
6942
var options =
TestOptions
.ReleaseDll.WithXmlReferenceResolver(XmlFileResolver.Default);
6968
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithDocumentationComments, targetFramework: TargetFramework.NetCoreApp);
6993
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp10), targetFramework: TargetFramework.NetCoreApp);
7017
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithDocumentationComments, targetFramework: TargetFramework.NetCoreApp);
7038
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp10), targetFramework: TargetFramework.NetCoreApp);
7057
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithDocumentationComments, targetFramework: TargetFramework.NetCoreApp);
DocumentationComments\DocumentationCommentCompilerTests.cs (67)
36
options: (options ??
TestOptions
.ReleaseDll).WithXmlReferenceResolver(XmlFileResolver.Default),
37
parseOptions:
TestOptions
.RegularWithDocumentationComments,
759
var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.RegularWithDocumentationComments);
760
var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options:
TestOptions
.RegularWithDocumentationComments);
887
var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.RegularWithDocumentationComments);
888
var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options:
TestOptions
.RegularWithDocumentationComments);
926
var tree = SyntaxFactory.ParseSyntaxTree(source, options:
TestOptions
.RegularWithDocumentationComments);
968
var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.RegularWithDocumentationComments);
969
var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options:
TestOptions
.RegularWithDocumentationComments);
1017
var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.RegularWithDocumentationComments);
1018
var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options:
TestOptions
.RegularWithDocumentationComments);
1068
var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.RegularWithDocumentationComments);
1069
var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options:
TestOptions
.RegularWithDocumentationComments);
1118
var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.RegularWithDocumentationComments);
1119
var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options:
TestOptions
.RegularWithDocumentationComments);
1173
var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.RegularWithDocumentationComments);
1174
var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options:
TestOptions
.RegularWithDocumentationComments);
1221
var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.RegularWithDocumentationComments);
1222
var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options:
TestOptions
.RegularWithDocumentationComments);
1276
var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.RegularWithDocumentationComments);
1277
var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options:
TestOptions
.RegularWithDocumentationComments);
1333
var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.RegularWithDocumentationComments);
1334
var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options:
TestOptions
.RegularWithDocumentationComments);
1396
var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.RegularWithDocumentationComments);
1397
var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options:
TestOptions
.RegularWithDocumentationComments);
1459
var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.RegularWithDocumentationComments);
1460
var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options:
TestOptions
.RegularWithDocumentationComments);
1512
var tree = SyntaxFactory.ParseSyntaxTree(source, options:
TestOptions
.RegularWithDocumentationComments);
1555
var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.RegularPreviewWithDocumentationComments);
1556
var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options:
TestOptions
.RegularPreviewWithDocumentationComments);
1606
var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.RegularPreviewWithDocumentationComments);
1607
var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options:
TestOptions
.RegularPreviewWithDocumentationComments);
1650
var tree = SyntaxFactory.ParseSyntaxTree(source, options:
TestOptions
.RegularWithDocumentationComments);
1693
var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.RegularPreviewWithDocumentationComments);
1694
var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options:
TestOptions
.RegularPreviewWithDocumentationComments);
1745
var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.RegularPreviewWithDocumentationComments);
1746
var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options:
TestOptions
.RegularPreviewWithDocumentationComments);
1796
var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.RegularPreviewWithDocumentationComments);
1797
var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options:
TestOptions
.RegularPreviewWithDocumentationComments);
1852
var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.RegularPreviewWithDocumentationComments);
1853
var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options:
TestOptions
.RegularPreviewWithDocumentationComments);
1901
var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.RegularPreviewWithDocumentationComments);
1902
var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options:
TestOptions
.RegularPreviewWithDocumentationComments);
1957
var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.RegularPreviewWithDocumentationComments);
1958
var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options:
TestOptions
.RegularPreviewWithDocumentationComments);
2015
var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.RegularPreviewWithDocumentationComments);
2016
var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options:
TestOptions
.RegularPreviewWithDocumentationComments);
2079
var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.RegularPreviewWithDocumentationComments);
2080
var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options:
TestOptions
.RegularPreviewWithDocumentationComments);
2143
var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.RegularPreviewWithDocumentationComments);
2144
var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options:
TestOptions
.RegularPreviewWithDocumentationComments);
3162
var tree1 = Parse(source1, options:
TestOptions
.RegularWithDocumentationComments);
3163
var tree2 = Parse(source2, options:
TestOptions
.RegularWithDocumentationComments);
3658
var tree = Parse(source, options:
TestOptions
.RegularWithDocumentationComments);
3660
var comp = CSharpCompilation.Create("Test", new[] { tree }, new[] { MscorlibRef },
TestOptions
.ReleaseDll.WithXmlReferenceResolver(resolver));
4520
var tree = Parse(source, options:
TestOptions
.Regular.WithDocumentationMode(DocumentationMode.Parse));
5318
var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.RegularWithDocumentationComments);
5319
var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options:
TestOptions
.RegularWithDocumentationComments);
5758
var tree = Parse(source, options:
TestOptions
.RegularWithDocumentationComments);
5760
var comp = CreateCompilation(tree, options:
TestOptions
.ReleaseDll.WithSpecificDiagnosticOptions(warnDict), assemblyName: "Test");
6010
SyntaxTree tree = Parse(source, options:
TestOptions
.RegularWithDocumentationComments);
6959
var comp = CreateCompilationUtil(source, options:
TestOptions
.ReleaseModule);
7115
var tree = Parse(source, options:
TestOptions
.RegularWithDocumentationComments);
7116
var compOptions =
TestOptions
.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Error);
7356
Parse(source, options:
TestOptions
.RegularWithDocumentationComments, filename: sourcePath),
7357
options:
TestOptions
.ReleaseDll.WithSourceReferenceResolver(SourceFileResolver.Default).WithXmlReferenceResolver(XmlFileResolver.Default),
7579
var comp = CreateCompilationUtil(source, options:
TestOptions
.ReleaseExe);
DocumentationComments\DocumentationCommentIDTests.cs (3)
270
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
415
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll.WithNullableContextOptions(nullableContextOptions));
435
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll.WithNullableContextOptions(nullableContextOptions));
DocumentationComments\DocumentationModeTests.cs (2)
385
options:
TestOptions
.ReleaseDll.WithXmlReferenceResolver(XmlFileResolver.Default),
397
return
TestOptions
.Regular.WithDocumentationMode(mode);
DocumentationComments\MethodDocumentationCommentTests.cs (6)
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));
DocumentationComments\PartialTypeDocumentationCommentTests.cs (2)
35
}", options:
TestOptions
.RegularWithDocumentationComments);
47
}", options:
TestOptions
.RegularWithDocumentationComments);
SymbolDisplay\SymbolDisplayTests.cs (20)
2851
var tree = SyntaxFactory.ParseSyntaxTree(text,
TestOptions
.Script);
4706
var comp = CreateEmptyCompilation(source, WinRtRefs,
TestOptions
.ReleaseWinMD);
5180
TestOptions
.Regular,
5208
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular);
5244
TestOptions
.Regular,
5274
TestOptions
.Regular,
5312
TestOptions
.Regular,
5363
TestOptions
.Regular,
5921
var comp = (Compilation)CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular8, options: WithNullableEnable());
5993
var comp = (Compilation)CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
6062
var comp = (Compilation)CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
6181
var comp = (Compilation)CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
6220
var comp = (Compilation)CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
7485
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithFileScopedNamespaces).VerifyDiagnostics();
7956
var comp = CreateCompilation(new[] { source }, parseOptions:
TestOptions
.Regular9);
8043
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp9),
8064
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp9),
8085
TestOptions
.Regular10,
8108
TestOptions
.Regular10,
8632
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll);
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (1)
827
options:
TestOptions
.ReleaseDll);
Symbols\AnonymousTypesSemanticsTests.cs (6)
1899
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugExe);
1917
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
1934
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
1955
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
2085
options:
TestOptions
.ReleaseDll,
2086
parseOptions:
TestOptions
.Regular);
Symbols\AnonymousTypesSymbolTests.cs (3)
583
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe);
1452
var compilation = CreateCompilationWithMscorlib40(new string[] { source1, source2, source3 }, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), parseOptions:
TestOptions
.Regular);
Symbols\AssemblyAndNamespaceTests.cs (21)
117
var comp1 = CSharpCompilation.Create(assemblyName: "Test", options:
TestOptions
.DebugExe,
121
var comp = CSharpCompilation.Create(assemblyName: "Test1", options:
TestOptions
.DebugExe,
164
var comp = CSharpCompilation.Create(assemblyName: "Test1", options:
TestOptions
.DebugExe,
251
var comp1 = CSharpCompilation.Create(assemblyName: "Test1", options:
TestOptions
.DebugExe, syntaxTrees: new SyntaxTree[] { SyntaxFactory.ParseSyntaxTree(text1) }, references: new MetadataReference[] { });
252
var comp2 = CSharpCompilation.Create(assemblyName: "Test2", options:
TestOptions
.DebugExe, syntaxTrees: new SyntaxTree[] { SyntaxFactory.ParseSyntaxTree(text2) }, references: new MetadataReference[] { });
257
var comp = CSharpCompilation.Create(assemblyName: "Test3", options:
TestOptions
.DebugExe,
458
CreateCompilationWithMscorlib461(test, parseOptions:
TestOptions
.RegularWithFileScopedNamespaces).VerifyDiagnostics(
481
CreateCompilationWithMscorlib461(test, parseOptions:
TestOptions
.RegularWithFileScopedNamespaces).VerifyDiagnostics();
490
CreateCompilationWithMscorlib461(test, parseOptions:
TestOptions
.RegularWithFileScopedNamespaces).VerifyDiagnostics();
500
CreateCompilationWithMscorlib461(test, parseOptions:
TestOptions
.RegularWithFileScopedNamespaces).VerifyDiagnostics(
515
CreateCompilationWithMscorlib461(test, parseOptions:
TestOptions
.RegularWithFileScopedNamespaces).VerifyDiagnostics(
530
CreateCompilationWithMscorlib461(test, parseOptions:
TestOptions
.RegularWithFileScopedNamespaces).VerifyDiagnostics(
545
CreateCompilationWithMscorlib461(test, parseOptions:
TestOptions
.RegularWithFileScopedNamespaces).VerifyDiagnostics(
558
CreateCompilationWithMscorlib461(test, parseOptions:
TestOptions
.RegularWithFileScopedNamespaces).VerifyDiagnostics(
571
CreateCompilationWithMscorlib461(test, parseOptions:
TestOptions
.RegularWithFileScopedNamespaces).VerifyDiagnostics(
584
CreateCompilationWithMscorlib461(test, parseOptions:
TestOptions
.RegularWithFileScopedNamespaces).VerifyDiagnostics(
597
CreateCompilationWithMscorlib461(test, parseOptions:
TestOptions
.RegularWithFileScopedNamespaces).VerifyDiagnostics();
608
CreateCompilationWithMscorlib461(test, parseOptions:
TestOptions
.RegularWithFileScopedNamespaces).VerifyDiagnostics(
622
CreateCompilationWithMscorlib461(test, parseOptions:
TestOptions
.RegularWithFileScopedNamespaces).VerifyDiagnostics(
663
CreateCompilationWithMscorlib461(new[] { source1, source2 }, parseOptions:
TestOptions
.RegularWithFileScopedNamespaces).VerifyDiagnostics();
674
CreateCompilationWithMscorlib461(test, parseOptions:
TestOptions
.RegularWithFileScopedNamespaces).VerifyDiagnostics(
Symbols\CheckedUserDefinedOperatorsTests.cs (374)
34
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
37
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.Regular10);
45
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.Regular11);
78
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
112
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
142
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
187
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
208
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
227
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
249
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
311
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
347
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
372
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
398
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
427
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
445
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
472
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
511
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
519
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular10.WithDocumentationMode(DocumentationMode.Diagnose));
537
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular11.WithDocumentationMode(DocumentationMode.Diagnose));
570
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
601
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
633
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
640
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular10.WithDocumentationMode(DocumentationMode.Diagnose));
657
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular11.WithDocumentationMode(DocumentationMode.Diagnose));
683
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
691
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular10.WithDocumentationMode(DocumentationMode.Diagnose));
709
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular11.WithDocumentationMode(DocumentationMode.Diagnose));
742
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
774
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
806
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
814
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular10.WithDocumentationMode(DocumentationMode.Diagnose));
822
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular11.WithDocumentationMode(DocumentationMode.Diagnose));
855
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
863
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular10.WithDocumentationMode(DocumentationMode.Diagnose));
871
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular11.WithDocumentationMode(DocumentationMode.Diagnose));
893
foreach (var options in new[] {
TestOptions
.RegularPreview,
TestOptions
.Regular10,
TestOptions
.Regular11 })
895
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions: options);
924
foreach (var options in new[] {
TestOptions
.RegularPreview,
TestOptions
.Regular10,
TestOptions
.Regular11 })
926
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions: options);
969
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
1005
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
1054
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
1061
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular10.WithDocumentationMode(DocumentationMode.Diagnose));
1075
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular11.WithDocumentationMode(DocumentationMode.Diagnose));
1104
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
1111
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular10.WithDocumentationMode(DocumentationMode.Diagnose));
1125
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular11.WithDocumentationMode(DocumentationMode.Diagnose));
1157
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
1164
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular10.WithDocumentationMode(DocumentationMode.Diagnose));
1178
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular11.WithDocumentationMode(DocumentationMode.Diagnose));
1207
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
1214
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular10.WithDocumentationMode(DocumentationMode.Diagnose));
1227
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular11.WithDocumentationMode(DocumentationMode.Diagnose));
1251
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
1254
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.Regular10);
1262
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.Regular11);
1296
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
1331
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
1362
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
1395
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
1418
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
1481
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
1517
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
1544
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
1571
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
1605
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
1623
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
1650
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
1691
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
1699
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular10.WithDocumentationMode(DocumentationMode.Diagnose));
1718
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular11.WithDocumentationMode(DocumentationMode.Diagnose));
1752
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
1784
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
1807
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
1822
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular10.WithDocumentationMode(DocumentationMode.Diagnose));
1840
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular11.WithDocumentationMode(DocumentationMode.Diagnose));
1880
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
1888
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular10.WithDocumentationMode(DocumentationMode.Diagnose));
1896
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular11.WithDocumentationMode(DocumentationMode.Diagnose));
1924
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
1932
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular10.WithDocumentationMode(DocumentationMode.Diagnose));
1950
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular11.WithDocumentationMode(DocumentationMode.Diagnose));
1984
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
2017
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
2049
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
2057
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular10.WithDocumentationMode(DocumentationMode.Diagnose));
2075
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular11.WithDocumentationMode(DocumentationMode.Diagnose));
2108
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
2116
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular10.WithDocumentationMode(DocumentationMode.Diagnose));
2124
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular11.WithDocumentationMode(DocumentationMode.Diagnose));
2156
foreach (var options in new[] {
TestOptions
.RegularPreview,
TestOptions
.Regular10,
TestOptions
.Regular11 })
2158
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions: options);
2160
if (op == ">>>" && options ==
TestOptions
.Regular10)
2214
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
2272
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
2280
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular10.WithDocumentationMode(DocumentationMode.Diagnose));
2316
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular11.WithDocumentationMode(DocumentationMode.Diagnose));
2366
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
2374
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular10.WithDocumentationMode(DocumentationMode.Diagnose));
2410
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular11.WithDocumentationMode(DocumentationMode.Diagnose));
2429
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
2456
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
2485
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
2488
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.Regular10);
2496
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.Regular11);
2532
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
2572
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
2605
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
2637
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
2656
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
2715
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
2749
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
2772
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
2795
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
2821
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
2850
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
2858
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular10.WithDocumentationMode(DocumentationMode.Diagnose));
2876
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular11.WithDocumentationMode(DocumentationMode.Diagnose));
2906
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
2935
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
2964
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
2993
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
3016
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
3024
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular10.WithDocumentationMode(DocumentationMode.Diagnose));
3042
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular11.WithDocumentationMode(DocumentationMode.Diagnose));
3072
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
3101
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
3130
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
3159
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
3177
foreach (var options in new[] {
TestOptions
.RegularPreview,
TestOptions
.Regular10,
TestOptions
.Regular11 })
3179
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions: options);
3208
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
3251
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
3258
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular10.WithDocumentationMode(DocumentationMode.Diagnose));
3272
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular11.WithDocumentationMode(DocumentationMode.Diagnose));
3301
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
3308
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular10.WithDocumentationMode(DocumentationMode.Diagnose));
3322
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular11.WithDocumentationMode(DocumentationMode.Diagnose));
3422
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
3432
compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular11);
3442
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
3443
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular10, references: new[] { compilation2.ToMetadataReference() });
3614
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
3694
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
3771
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
3821
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
3828
compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular11);
3835
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
3836
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular10, references: new[] { compilation2.ToMetadataReference() });
3880
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
3931
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
4035
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
4197
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
4207
compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular11);
4217
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
4218
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular10, references: new[] { compilation2.ToMetadataReference() });
4396
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
4478
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
4557
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
4658
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
4668
compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular11);
4678
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
4679
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular10, references: new[] { compilation2.ToMetadataReference() });
4728
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
4779
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
4788
compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular11);
4797
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
4798
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular10, references: new[] { compilation2.ToMetadataReference() });
4840
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
4891
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
5001
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
5110
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
5204
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
5216
compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular11);
5228
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
5229
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular10, references: new[] { compilation2.ToMetadataReference() });
5290
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
5328
var compilation2 = CreateCompilation(source1 + source3, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
5485
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
5574
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
5620
var compilation2 = CreateCompilationWithIL(source2, ilSource, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
5682
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
5689
compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular11);
5696
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
5697
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular10, references: new[] { compilation2.ToMetadataReference() });
5769
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
6037
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
6153
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
6306
var compilation1 = CreateCompilationWithCSharp(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
6316
compilation1 = CreateCompilationWithCSharp(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular11);
6326
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
6327
var compilation3 = CreateCompilationWithCSharp(source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular10, references: new[] { compilation2.ToMetadataReference() });
6411
var compilation1 = CreateCompilationWithCSharp(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
6421
compilation1 = CreateCompilationWithCSharp(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular11);
6431
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
6432
var compilation3 = CreateCompilationWithCSharp(source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular10, references: new[] { compilation2.ToMetadataReference() });
6526
var compilation1 = CreateCompilationWithCSharp(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
6538
compilation1 = CreateCompilationWithCSharp(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular11);
6550
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
6551
var compilation3 = CreateCompilationWithCSharp(source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular10, references: new[] { compilation2.ToMetadataReference() });
6604
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
6607
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
6608
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview, references: new[] { compilation2.EmitToImageReference() });
6709
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
6754
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
6757
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
6758
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview, references: new[] { compilation2.EmitToImageReference() });
6803
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
6806
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
6807
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview, references: new[] { compilation2.EmitToImageReference() });
6852
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
6855
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
6856
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview, references: new[] { compilation2.EmitToImageReference() });
6962
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
7003
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
7006
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
7007
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview, references: new[] { compilation2.EmitToImageReference() });
7048
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
7051
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview);
7052
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview, references: new[] { compilation2.EmitToImageReference() });
7155
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
7201
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
7273
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
7344
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
7417
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
7481
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
Symbols\CompilationCreationTests.cs (17)
2688
", options:
TestOptions
.Script),
2692
", options:
TestOptions
.Script),
2698
", options:
TestOptions
.Script)
2703
options:
TestOptions
.ReleaseDll.WithMetadataReferenceResolver(new Resolver(data, core, system)));
2731
", options:
TestOptions
.Script),
2734
",
TestOptions
.Regular)
2739
options:
TestOptions
.ReleaseDll.WithMetadataReferenceResolver(new Resolver(data, core, system)));
2783
new[] { Parse(source, options:
TestOptions
.Script) },
2784
options:
TestOptions
.ReleaseDll.WithMetadataReferenceResolver(new DummyReferenceResolver(csClasses01)));
2793
new[] { SyntaxFactory.ParseSyntaxTree(@"#r ""bar""",
TestOptions
.Script, "a.csx", Encoding.UTF8) },
2794
options:
TestOptions
.ReleaseDll.WithMetadataReferenceResolver(null));
2810
", options:
TestOptions
.Script),
2816
",
TestOptions
.Regular)
2821
options:
TestOptions
.ReleaseDll.WithUsings(ImmutableArray.Create("System.Console", "System")));
2838
", options:
TestOptions
.Script)
2843
options:
TestOptions
.ReleaseDll.WithUsings("System.Console!", "Blah"));
2972
var lib1 = CreateCompilation(source1, assemblyName: "Lib1", options:
TestOptions
.ReleaseModule);
Symbols\ConversionTests.cs (5)
1382
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
2020
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.ReleaseExe);
2230
CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates).VerifyDiagnostics(
2336
CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
2372
options:
TestOptions
.ReleaseExe);
Symbols\CorLibrary\Choosing.cs (4)
39
", options:
TestOptions
.ReleaseDll);
50
", new[] { new CSharpCompilationReference(corLib) }, options:
TestOptions
.ReleaseDll);
65
", options:
TestOptions
.ReleaseDll);
71
", new[] { new CSharpCompilationReference(corLib) }, options:
TestOptions
.ReleaseDll);
Symbols\CorLibrary\CorTypes.cs (21)
288
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
301
comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
353
parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
390
var comp = CreateCompilation(source2, references: [corLib_v2_Comp.ToMetadataReference(), typeLib_v2_Comp.ToMetadataReference(), comp1Ref], options:
TestOptions
.DebugExe);
395
parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
425
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
432
comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
534
parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
575
var comp = CreateCompilation(source2, references: [corLib_v2_Comp.ToMetadataReference(), typeLib_v2_Comp.ToMetadataReference(), comp1Ref], options:
TestOptions
.DebugExe);
580
parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
617
var comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40AndSystemCore, options:
TestOptions
.DebugExe);
627
comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40AndSystemCore, options:
TestOptions
.DebugExe);
635
comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40AndSystemCore, options:
TestOptions
.DebugExe);
663
var comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
673
comp = CreateCompilation(source, options:
TestOptions
.DebugExe);
807
parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
856
var comp = CreateCompilation(source2, references: [corLib_v2_Comp.ToMetadataReference(), typeLib_v2_Comp.ToMetadataReference(), comp1Ref], options:
TestOptions
.DebugExe);
864
parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
1002
parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
1050
var comp = CreateCompilation(source2, references: [corLib_v2_Comp.ToMetadataReference(), typeLib_v2_Comp.ToMetadataReference(), comp1Ref], options:
TestOptions
.DebugExe);
1058
parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
Symbols\CovariantReturnTests.cs (51)
403
parseOptions ??=
TestOptions
.WithCovariantReturns;
408
parseOptions: parseOptions ??
TestOptions
.Regular9,
422
parseOptions ??=
TestOptions
.WithoutCovariantReturns;
427
parseOptions: parseOptions ??
TestOptions
.Regular8,
515
options:
TestOptions
.ReleaseDll.WithSpecificDiagnosticOptions("CS1701", ReportDiagnostic.Suppress),
542
parseOptions:
TestOptions
.WithCovariantReturns,
639
CreateCompilationWithCovariantReturns(source, parseOptions:
TestOptions
.WithoutCovariantReturns)
701
var comp = CreateCompilationWithCovariantReturns(source, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
716
comp = CreateCompilationWithoutCovariantReturns(source, parseOptions:
TestOptions
.WithCovariantReturns).VerifyDiagnostics(
775
var comp = CreateCompilationWithCovariantReturns(source, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
834
var comp = CreateCompilationWithCovariantReturns(source, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
896
var comp = CreateCompilationWithCovariantReturns(source, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
956
var comp = CreateCompilationWithCovariantReturns(source, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
964
comp = CreateCompilationWithoutCovariantReturns(source, parseOptions:
TestOptions
.WithCovariantReturns).VerifyDiagnostics(
1025
var comp = CreateCompilationWithCovariantReturns(source, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
1089
var comp = CreateCompilationWithCovariantReturns(source, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
1151
var comp = CreateCompilationWithCovariantReturns(source, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
1213
var comp = CreateCompilationWithCovariantReturns(source, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
1280
var comp = CreateCompilationWithCovariantReturns(source, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
1430
var comp = CreateCompilationWithCovariantReturns(source, references: new[] { baseMetadata }, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
1493
var comp = CreateCompilationWithCovariantReturns(source, references: references, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
1557
var comp = CreateCompilationWithCovariantReturns(source, references: references, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
1622
var comp = CreateCompilationWithCovariantReturns(source, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
1819
var comp = CreateCompilationWithCovariantReturns(source, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
1896
var comp = CreateCompilationWithCovariantReturns(source, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
2088
var comp = CreateCompilationWithCovariantReturns(source, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
2222
var comp = CreateCompilationWithCovariantReturns(source, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
2287
var comp = CreateCompilationWithCovariantReturns(source, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
2342
var comp = CreateCompilationWithCovariantReturns(source, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
2396
var comp = CreateCompilationWithCovariantReturns(source, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
2514
var comp = CreateCompilationWithCovariantReturns(source, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
2864
var comp = CreateCompilationWithCovariantReturns(s2, references, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
2930
var comp = CreateCompilationWithCovariantReturns(s2, references, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
2997
var comp = CreateCompilationWithCovariantReturns(s2, references, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
3097
var comp = CreateCompilationWithCovariantReturns(source, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
3139
var comp = CreateCompilationWithCovariantReturns(source, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
3181
var comp = CreateCompilationWithCovariantReturns(source, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
3569
var comp = CreateCompilationWithCovariantReturns(source, parseOptions:
TestOptions
.WithoutCovariantReturns).VerifyDiagnostics(
3748
var comp = CreateCompilationWithCovariantReturns(cSharpSource, references, parseOptions:
TestOptions
.WithoutCovariantReturns);
3823
var parseOptions = withCovariantReturnFeatureEnabled ?
TestOptions
.WithCovariantReturns :
TestOptions
.WithoutCovariantReturns;
3942
var parseOptions = withCovariantReturnFeatureEnabled ?
TestOptions
.WithCovariantReturns :
TestOptions
.WithoutCovariantReturns;
4066
var parseOptions = withCovariantReturnFeatureEnabled ?
TestOptions
.WithCovariantReturns :
TestOptions
.WithoutCovariantReturns;
4181
var parseOptions = withCovariantReturnFeatureEnabled ?
TestOptions
.WithCovariantReturns :
TestOptions
.WithoutCovariantReturns;
4302
var parseOptions = withCovariantReturnFeatureEnabled ?
TestOptions
.WithCovariantReturns :
TestOptions
.WithoutCovariantReturns;
4408
var parseOptions = withCovariantReturnFeatureEnabled ?
TestOptions
.WithCovariantReturns :
TestOptions
.WithoutCovariantReturns;
Symbols\CustomModifiersTests.cs (40)
63
var compilation = (Compilation)CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseExe);
133
var compilation = (Compilation)CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseExe);
218
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseExe);
288
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseExe);
373
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseExe);
446
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseExe);
519
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseExe);
593
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseExe);
698
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseExe);
808
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseExe);
918
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseExe);
1028
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseExe);
1122
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseExe);
1229
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseExe);
1304
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseExe);
1371
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseExe);
1457
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseExe);
1514
var compilation1 = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseDll);
1564
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseDll);
1603
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseDll);
1642
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseDll);
1674
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseDll);
1713
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseDll);
1755
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseDll);
1830
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Mscorlib40, references: new[] { SystemCoreRef });
1975
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseExe);
2039
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseExe);
2110
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseExe);
2181
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseExe);
2254
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseExe);
2284
options:
TestOptions
.ReleaseExe);
2330
options:
TestOptions
.ReleaseExe);
2387
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseExe);
2425
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseExe);
2473
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options:
TestOptions
.ReleaseExe);
2594
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, references: new[] { CSharpRef }, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Standard);
2708
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, references: new[] { CSharpRef }, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Standard);
2802
var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, references: new[] { CSharpRef }, options:
TestOptions
.ReleaseExe, targetFramework: TargetFramework.Standard);
2905
var compilation = CreateCompilationWithIL(source, ilSource, options:
TestOptions
.ReleaseExe);
2997
var compilation = CreateCompilationWithIL(source, ilSource, options:
TestOptions
.ReleaseExe);
Symbols\DefaultInterfaceImplementationTests.cs (2099)
117
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.Net60,
118
parseOptions:
TestOptions
.RegularPreview);
168
var compilation2 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugExe,
169
parseOptions:
TestOptions
.RegularPreview,
287
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
288
parseOptions:
TestOptions
.RegularPreview,
345
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
361
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugExe,
427
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
428
parseOptions:
TestOptions
.RegularPreview,
485
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
501
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugExe,
578
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
579
parseOptions:
TestOptions
.RegularPreview,
676
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
677
parseOptions:
TestOptions
.RegularPreview,
778
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
779
parseOptions:
TestOptions
.RegularPreview,
880
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
881
parseOptions:
TestOptions
.RegularPreview,
967
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
968
parseOptions:
TestOptions
.RegularPreview,
1042
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
1043
parseOptions:
TestOptions
.RegularPreview,
1121
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
1122
parseOptions:
TestOptions
.RegularPreview,
1200
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
1201
parseOptions:
TestOptions
.RegularPreview,
1279
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
1280
parseOptions:
TestOptions
.RegularPreview,
1363
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
1364
parseOptions:
TestOptions
.RegularPreview,
1451
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
1452
parseOptions:
TestOptions
.RegularPreview,
1539
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
1540
parseOptions:
TestOptions
.RegularPreview,
1585
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended,
1586
parseOptions:
TestOptions
.RegularPreview);
1623
options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended,
1624
parseOptions: isStatic ?
TestOptions
.Regular11 :
TestOptions
.Regular8);
1666
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net60,
1667
parseOptions:
TestOptions
.RegularPreview);
1679
options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended,
1680
parseOptions: isStatic ?
TestOptions
.Regular11 :
TestOptions
.Regular8);
1723
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1724
parseOptions:
TestOptions
.Regular11,
1744
var compilation3 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugDll,
1746
parseOptions:
TestOptions
.Regular7_3);
1776
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended,
1777
parseOptions: isStatic ?
TestOptions
.Regular10 :
TestOptions
.Regular7_3, skipUsesIsNullable: true);
1820
options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended,
1821
parseOptions: isStatic ?
TestOptions
.Regular10 :
TestOptions
.Regular7_3);
1871
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1872
parseOptions: isStatic ?
TestOptions
.Regular10 :
TestOptions
.Regular7_3,
1910
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugDll,
1911
parseOptions:
TestOptions
.Regular11,
1928
var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugDll,
1929
parseOptions: isStatic ?
TestOptions
.Regular10 :
TestOptions
.Regular7_3,
1971
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended,
1972
parseOptions:
TestOptions
.Regular11);
2015
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
2016
parseOptions:
TestOptions
.Regular7_3,
2038
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
2039
parseOptions:
TestOptions
.Regular,
2102
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
2103
parseOptions:
TestOptions
.Regular11,
2181
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
2182
parseOptions:
TestOptions
.Regular11,
2203
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugExe,
2204
parseOptions:
TestOptions
.Regular11,
2260
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
2261
parseOptions:
TestOptions
.Regular,
2267
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
2268
parseOptions:
TestOptions
.Regular,
2329
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
2330
parseOptions:
TestOptions
.Regular,
2336
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
2337
parseOptions:
TestOptions
.Regular,
2402
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
2403
parseOptions:
TestOptions
.Regular,
2409
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
2410
parseOptions:
TestOptions
.Regular,
2475
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
2476
parseOptions:
TestOptions
.Regular,
2482
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
2483
parseOptions:
TestOptions
.Regular,
2579
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
2580
parseOptions:
TestOptions
.RegularPreview,
2633
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
2634
parseOptions:
TestOptions
.RegularPreview,
2650
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugExe,
2651
parseOptions:
TestOptions
.RegularPreview,
2970
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
2971
parseOptions:
TestOptions
.Regular,
3006
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
3007
parseOptions:
TestOptions
.RegularPreview,
3042
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
3043
parseOptions:
TestOptions
.Regular11,
3083
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
3084
parseOptions:
TestOptions
.Regular,
3108
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
3109
parseOptions:
TestOptions
.RegularPreview,
3133
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
3134
parseOptions:
TestOptions
.RegularPreview,
3163
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
3164
parseOptions:
TestOptions
.Regular,
3197
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
3198
parseOptions:
TestOptions
.RegularPreview,
3231
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
3232
parseOptions:
TestOptions
.RegularPreview,
3270
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
3271
parseOptions:
TestOptions
.Regular,
3295
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
3296
parseOptions:
TestOptions
.RegularPreview,
3320
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
3321
parseOptions:
TestOptions
.RegularPreview,
3359
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
3360
parseOptions: useCSharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview,
3448
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
3449
parseOptions: useCSharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview,
3514
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
3515
parseOptions: useCSharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview,
3599
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
3600
parseOptions: useCSharp13 ?
TestOptions
.Regular13 :
TestOptions
.RegularPreview,
3722
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
3723
parseOptions:
TestOptions
.RegularPreview,
3864
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
3865
parseOptions:
TestOptions
.RegularPreview,
3982
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
3983
parseOptions:
TestOptions
.RegularPreview,
4134
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
4135
parseOptions:
TestOptions
.RegularPreview,
4225
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended,
4226
parseOptions:
TestOptions
.RegularPreview, skipUsesIsNullable: true);
4278
options:
TestOptions
.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended,
4279
parseOptions:
TestOptions
.RegularPreview);
4393
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
4394
parseOptions:
TestOptions
.RegularPreview,
4406
options:
TestOptions
.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended,
4407
parseOptions:
TestOptions
.RegularPreview);
4470
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
4471
parseOptions:
TestOptions
.RegularPreview,
4490
targetFramework: TargetFramework.Mscorlib461Extended, options:
TestOptions
.DebugDll,
4491
parseOptions:
TestOptions
.Regular);
4534
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended,
4535
parseOptions:
TestOptions
.Regular7_3, skipUsesIsNullable: true);
4580
options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended,
4581
parseOptions:
TestOptions
.Regular7_3);
4634
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net50,
4635
parseOptions:
TestOptions
.Regular10, skipUsesIsNullable: true);
4676
options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net50,
4677
parseOptions:
TestOptions
.Regular10);
4735
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
4736
parseOptions: isStatic ?
TestOptions
.Regular10 :
TestOptions
.Regular7_3,
4786
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugDll,
4787
parseOptions:
TestOptions
.RegularPreview,
4802
var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugDll,
4803
parseOptions: isStatic ?
TestOptions
.Regular10 :
TestOptions
.Regular7_3,
4867
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
4868
parseOptions:
TestOptions
.Regular7_3,
5103
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5104
parseOptions:
TestOptions
.Regular,
5140
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5141
parseOptions:
TestOptions
.Regular,
5168
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5169
parseOptions:
TestOptions
.Regular,
5205
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5206
parseOptions:
TestOptions
.Regular,
5244
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5245
parseOptions:
TestOptions
.Regular,
5297
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5298
parseOptions:
TestOptions
.Regular,
5383
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
5384
parseOptions:
TestOptions
.Regular,
5500
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
5501
parseOptions:
TestOptions
.Regular,
5591
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
5592
parseOptions:
TestOptions
.Regular,
5736
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
5737
parseOptions:
TestOptions
.Regular,
5826
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended,
5827
parseOptions:
TestOptions
.Regular, skipUsesIsNullable: true);
5856
options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended,
5857
parseOptions:
TestOptions
.Regular);
5953
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5954
parseOptions:
TestOptions
.Regular,
5966
options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended,
5967
parseOptions:
TestOptions
.Regular);
6011
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
6012
parseOptions:
TestOptions
.Regular,
6030
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugDll,
6032
parseOptions:
TestOptions
.Regular);
6081
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended,
6082
parseOptions:
TestOptions
.Regular7_3, skipUsesIsNullable: true);
6127
options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended,
6128
parseOptions:
TestOptions
.Regular7_3);
6189
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
6190
parseOptions:
TestOptions
.Regular7_3,
6220
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugDll,
6221
parseOptions:
TestOptions
.Regular,
6236
var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugDll,
6237
parseOptions:
TestOptions
.Regular7_3,
6283
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
6284
parseOptions:
TestOptions
.Regular7_3,
6354
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
6355
parseOptions:
TestOptions
.RegularPreview,
6368
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugDll,
6369
parseOptions:
TestOptions
.RegularPreview,
6541
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
6542
parseOptions:
TestOptions
.RegularPreview,
6598
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
6599
parseOptions:
TestOptions
.RegularPreview,
6619
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugExe,
6620
parseOptions:
TestOptions
.RegularPreview,
6943
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
6944
parseOptions:
TestOptions
.RegularPreview,
7046
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
7047
parseOptions:
TestOptions
.RegularPreview,
7137
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
7138
parseOptions:
TestOptions
.RegularPreview,
7244
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
7245
parseOptions:
TestOptions
.RegularPreview,
7309
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended,
7310
parseOptions:
TestOptions
.RegularPreview, skipUsesIsNullable: true);
7344
options:
TestOptions
.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended,
7345
parseOptions:
TestOptions
.RegularPreview);
7417
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
7418
parseOptions:
TestOptions
.RegularPreview,
7430
targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, options:
TestOptions
.DebugDll,
7431
parseOptions:
TestOptions
.RegularPreview);
7477
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
7478
parseOptions:
TestOptions
.RegularPreview,
7496
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugDll,
7498
parseOptions:
TestOptions
.RegularPreview);
7532
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended,
7533
parseOptions:
TestOptions
.Regular7_3, skipUsesIsNullable: true);
7560
options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended,
7561
parseOptions:
TestOptions
.Regular7_3);
7597
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net50,
7598
parseOptions:
TestOptions
.Regular10, skipUsesIsNullable: true);
7621
options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net50,
7622
parseOptions:
TestOptions
.Regular10);
7663
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
7664
parseOptions: isStatic ?
TestOptions
.Regular10 :
TestOptions
.Regular7_3,
7696
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugDll,
7697
parseOptions:
TestOptions
.RegularPreview,
7712
var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugDll,
7713
parseOptions: isStatic ?
TestOptions
.Regular10 :
TestOptions
.Regular7_3,
7760
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
7761
parseOptions:
TestOptions
.Regular7_3,
7812
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
7813
parseOptions:
TestOptions
.Regular,
7969
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
7970
parseOptions:
TestOptions
.Regular,
8085
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
8086
parseOptions:
TestOptions
.Regular,
8245
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
8246
parseOptions:
TestOptions
.Regular,
8363
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
8364
parseOptions:
TestOptions
.Regular,
8399
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
8400
parseOptions:
TestOptions
.Regular,
8612
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
8613
parseOptions:
TestOptions
.Regular7_3,
8678
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
8679
parseOptions:
TestOptions
.Regular,
8770
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
8771
parseOptions:
TestOptions
.Regular);
8812
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
8813
parseOptions:
TestOptions
.Regular7_3);
8871
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
8872
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
8937
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
8938
parseOptions:
TestOptions
.Regular9,
9041
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
9042
parseOptions:
TestOptions
.Regular,
9092
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
9093
parseOptions:
TestOptions
.Regular,
9230
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
9231
parseOptions:
TestOptions
.Regular9,
9257
compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
9258
parseOptions: isStatic ?
TestOptions
.Regular11 :
TestOptions
.Regular10,
9265
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
9266
parseOptions:
TestOptions
.RegularPreview,
9282
var compilation3 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugExe,
9283
parseOptions:
TestOptions
.Regular9,
9295
compilation3 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugExe,
9296
parseOptions:
TestOptions
.Regular10,
9308
var compilation5 = CreateCompilation(source3, new[] { reference }, options:
TestOptions
.DebugDll,
9309
parseOptions:
TestOptions
.Regular,
9447
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe,
9448
parseOptions:
TestOptions
.Regular9,
9455
compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe,
9456
parseOptions:
TestOptions
.RegularPreview,
9462
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
9463
parseOptions:
TestOptions
.RegularPreview,
9472
var compilation3 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugExe,
9473
parseOptions:
TestOptions
.Regular9,
9481
compilation3 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugExe,
9482
parseOptions:
TestOptions
.RegularPreview,
9529
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
9530
parseOptions:
TestOptions
.Regular);
9536
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
9537
parseOptions:
TestOptions
.Regular);
9543
var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options:
TestOptions
.DebugExe,
9544
parseOptions:
TestOptions
.Regular);
9554
var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options:
TestOptions
.DebugExe,
9555
parseOptions:
TestOptions
.Regular);
9828
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
9829
parseOptions:
TestOptions
.Regular);
9835
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
9836
parseOptions:
TestOptions
.Regular);
9842
var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options:
TestOptions
.DebugExe,
9843
parseOptions:
TestOptions
.Regular);
9849
var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options:
TestOptions
.DebugExe,
9850
parseOptions:
TestOptions
.Regular);
9887
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
9888
parseOptions:
TestOptions
.Regular,
9899
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
9900
parseOptions:
TestOptions
.Regular,
9907
var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options:
TestOptions
.DebugExe,
9908
parseOptions:
TestOptions
.Regular,
9919
var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options:
TestOptions
.DebugExe,
9920
parseOptions:
TestOptions
.Regular,
9964
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
9965
parseOptions:
TestOptions
.Regular9,
9976
compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
9977
parseOptions:
TestOptions
.Regular,
9984
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
9985
parseOptions:
TestOptions
.Regular,
9994
foreach (var parseOptions in new[] {
TestOptions
.Regular9,
TestOptions
.Regular })
9996
var compilation3 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugExe,
10043
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
10044
parseOptions:
TestOptions
.Regular,
10050
var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options:
TestOptions
.DebugExe,
10051
parseOptions:
TestOptions
.Regular9,
10058
compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options:
TestOptions
.DebugExe,
10059
parseOptions:
TestOptions
.Regular,
10081
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
10082
parseOptions:
TestOptions
.Regular);
10133
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
10134
parseOptions:
TestOptions
.Regular,
10192
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
10193
parseOptions:
TestOptions
.Regular,
10303
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
10304
parseOptions:
TestOptions
.Regular,
10371
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
10372
parseOptions:
TestOptions
.Regular,
10456
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
10457
parseOptions:
TestOptions
.Regular7_3,
10507
var compilation3 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended,
10508
parseOptions:
TestOptions
.Regular, skipUsesIsNullable: true);
10574
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
10575
parseOptions:
TestOptions
.Regular,
10676
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
10677
parseOptions:
TestOptions
.Regular9,
10827
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
10828
parseOptions:
TestOptions
.Regular,
10881
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
10882
parseOptions:
TestOptions
.Regular,
10915
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
10916
parseOptions:
TestOptions
.Regular,
10927
var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options:
TestOptions
.DebugExe,
10928
parseOptions:
TestOptions
.Regular,
10938
var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options:
TestOptions
.DebugExe,
10939
parseOptions:
TestOptions
.Regular,
10977
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
10978
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
11000
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
11001
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
11054
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
11055
parseOptions:
TestOptions
.Regular,
11160
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
11161
parseOptions:
TestOptions
.Regular,
11233
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
11234
parseOptions:
TestOptions
.Regular7_3);
11256
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
11257
parseOptions:
TestOptions
.Regular7_3,
11298
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
11299
parseOptions:
TestOptions
.RegularWithExtendedPartialMethods,
11353
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
11354
parseOptions:
TestOptions
.RegularWithExtendedPartialMethods,
11455
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
11456
parseOptions:
TestOptions
.RegularWithExtendedPartialMethods,
11522
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
11523
parseOptions:
TestOptions
.Regular,
11552
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
11553
parseOptions:
TestOptions
.Regular,
11579
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
11580
parseOptions:
TestOptions
.Regular,
11606
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
11607
parseOptions:
TestOptions
.Regular,
11633
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
11634
parseOptions:
TestOptions
.Regular,
11646
var compilation2 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugDll,
11647
parseOptions:
TestOptions
.Regular,
11692
var compilation1 = CreateCompilation(source0 + source1, options:
TestOptions
.DebugExe,
11693
parseOptions:
TestOptions
.Regular,
11716
var compilation2 = CreateCompilation(source0 + source2, options:
TestOptions
.DebugExe,
11717
parseOptions:
TestOptions
.Regular,
11724
var compilation3 = CreateCompilation(source0, options:
TestOptions
.DebugDll,
11725
parseOptions:
TestOptions
.Regular,
11757
var compilation4 = CreateCompilation(source3, options:
TestOptions
.DebugExe,
11759
parseOptions:
TestOptions
.Regular,
11767
var compilation5 = CreateCompilation(source4, options:
TestOptions
.DebugExe,
11769
parseOptions:
TestOptions
.Regular,
11784
var compilation6 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
11786
parseOptions:
TestOptions
.Regular,
11847
var compilation1 = CreateCompilation(source21 + source1, options:
TestOptions
.DebugExe,
11848
parseOptions:
TestOptions
.Regular9,
11881
compilation1 = CreateCompilation(source22 + source1, options:
TestOptions
.DebugExe,
11882
parseOptions:
TestOptions
.Regular,
11890
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
11891
parseOptions:
TestOptions
.Regular,
11907
var compilation3 = CreateCompilation(source21, new[] { reference }, options:
TestOptions
.DebugExe,
11908
parseOptions:
TestOptions
.Regular9,
11915
compilation3 = CreateCompilation(source22, new[] { reference }, options:
TestOptions
.DebugExe,
11916
parseOptions:
TestOptions
.Regular,
11923
var compilation5 = CreateCompilation(source3, new[] { reference }, options:
TestOptions
.DebugDll,
11924
parseOptions:
TestOptions
.Regular,
11983
var compilation1 = CreateCompilation(source21 + source1, options:
TestOptions
.DebugExe,
11984
parseOptions:
TestOptions
.Regular9,
11996
compilation1 = CreateCompilation(source21 + source1, options:
TestOptions
.DebugExe,
11997
parseOptions:
TestOptions
.Regular,
12005
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
12006
parseOptions:
TestOptions
.Regular,
12022
var compilation3 = CreateCompilation(source21, new[] { reference }, options:
TestOptions
.DebugExe,
12023
parseOptions:
TestOptions
.Regular9,
12037
compilation3 = CreateCompilation(source22, new[] { reference }, options:
TestOptions
.DebugExe,
12038
parseOptions:
TestOptions
.Regular,
12044
var compilation5 = CreateCompilation(source3, new[] { reference }, options:
TestOptions
.DebugDll,
12045
parseOptions:
TestOptions
.Regular,
12103
var compilation1 = CreateCompilation(source21 + source1, options:
TestOptions
.DebugExe,
12104
parseOptions:
TestOptions
.Regular9,
12119
compilation1 = CreateCompilation(source22 + source1, options:
TestOptions
.DebugExe,
12120
parseOptions:
TestOptions
.Regular,
12128
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
12129
parseOptions:
TestOptions
.Regular,
12145
var compilation3 = CreateCompilation(source21, new[] { reference }, options:
TestOptions
.DebugExe,
12146
parseOptions:
TestOptions
.Regular9,
12160
compilation3 = CreateCompilation(source22, new[] { reference }, options:
TestOptions
.DebugExe,
12161
parseOptions:
TestOptions
.Regular,
12173
var compilation5 = CreateCompilation(source3, new[] { reference }, options:
TestOptions
.DebugDll,
12174
parseOptions:
TestOptions
.Regular,
12216
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
12217
parseOptions:
TestOptions
.Regular,
12226
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
12227
parseOptions:
TestOptions
.Regular,
12237
var compilation3 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugExe,
12238
parseOptions:
TestOptions
.Regular,
12278
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
12279
parseOptions:
TestOptions
.Regular,
12288
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
12289
parseOptions:
TestOptions
.Regular,
12299
var compilation3 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugExe,
12300
parseOptions:
TestOptions
.Regular,
12340
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
12341
parseOptions:
TestOptions
.Regular,
12350
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
12351
parseOptions:
TestOptions
.Regular,
12360
var compilation3 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugExe,
12361
parseOptions:
TestOptions
.Regular,
12612
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
12613
parseOptions:
TestOptions
.Regular,
12623
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
12624
parseOptions:
TestOptions
.Regular,
12637
var compilation3 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugExe,
12638
parseOptions:
TestOptions
.Regular,
12700
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
12701
parseOptions:
TestOptions
.Regular,
12711
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
12712
parseOptions:
TestOptions
.Regular,
12725
var compilation3 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugExe,
12726
parseOptions:
TestOptions
.Regular,
12788
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
12789
parseOptions:
TestOptions
.Regular,
12799
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
12800
parseOptions:
TestOptions
.Regular,
12813
var compilation3 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugExe,
12814
parseOptions:
TestOptions
.Regular,
12892
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
12893
parseOptions:
TestOptions
.Regular,
12947
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
12948
parseOptions:
TestOptions
.Regular,
13020
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
13021
parseOptions:
TestOptions
.Regular,
13077
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
13078
parseOptions:
TestOptions
.Regular,
13567
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
13568
parseOptions:
TestOptions
.Regular7_3,
13657
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
13658
parseOptions:
TestOptions
.Regular,
13897
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
13898
parseOptions:
TestOptions
.Regular,
13991
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
13992
parseOptions:
TestOptions
.Regular);
14065
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
14066
parseOptions:
TestOptions
.Regular7_3);
14212
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
14213
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
14230
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
14231
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.Mscorlib461Extended);
14359
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
14360
parseOptions:
TestOptions
.Regular9,
14606
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
14607
parseOptions:
TestOptions
.Regular,
14705
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
14706
parseOptions:
TestOptions
.Regular,
14912
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe,
14913
parseOptions:
TestOptions
.Regular9,
14920
compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe,
14921
parseOptions:
TestOptions
.Regular,
14932
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
14933
parseOptions:
TestOptions
.Regular,
14958
var compilation3 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugExe,
14959
parseOptions:
TestOptions
.Regular9,
14966
compilation3 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugExe,
14967
parseOptions:
TestOptions
.Regular,
14985
var compilation5 = CreateCompilation(source3, new[] { reference }, options:
TestOptions
.DebugDll,
14986
parseOptions:
TestOptions
.Regular,
15110
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe,
15111
parseOptions:
TestOptions
.Regular9,
15118
compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe,
15119
parseOptions:
TestOptions
.Regular,
15129
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
15130
parseOptions:
TestOptions
.Regular,
15137
var compilation3 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugExe,
15138
parseOptions:
TestOptions
.Regular9,
15145
compilation3 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugExe,
15146
parseOptions:
TestOptions
.Regular,
15245
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe,
15247
parseOptions:
TestOptions
.Regular);
15255
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
15257
parseOptions:
TestOptions
.Regular);
15263
var compilation3 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugExe,
15265
parseOptions:
TestOptions
.Regular);
15660
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe,
15661
parseOptions:
TestOptions
.Regular);
15669
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
15670
parseOptions:
TestOptions
.Regular);
15674
var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options:
TestOptions
.DebugExe,
15675
parseOptions:
TestOptions
.Regular);
15683
var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options:
TestOptions
.DebugExe,
15684
parseOptions:
TestOptions
.Regular);
15743
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe,
15744
parseOptions:
TestOptions
.Regular);
15750
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
15751
parseOptions:
TestOptions
.Regular);
15755
var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options:
TestOptions
.DebugExe,
15756
parseOptions:
TestOptions
.Regular);
15762
var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options:
TestOptions
.DebugExe,
15763
parseOptions:
TestOptions
.Regular);
15837
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
15838
parseOptions:
TestOptions
.Regular9,
15845
compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe,
15846
parseOptions:
TestOptions
.Regular,
15856
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
15857
parseOptions:
TestOptions
.Regular,
15864
var compilation3 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugDll,
15865
parseOptions:
TestOptions
.Regular9,
15872
compilation3 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugExe,
15873
parseOptions:
TestOptions
.Regular,
15955
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
15956
parseOptions:
TestOptions
.Regular9,
15962
compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
15963
parseOptions:
TestOptions
.Regular,
15969
var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options:
TestOptions
.DebugExe,
15970
parseOptions:
TestOptions
.Regular,
16002
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
16003
parseOptions:
TestOptions
.Regular);
16175
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
16176
parseOptions:
TestOptions
.Regular,
16307
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
16308
parseOptions:
TestOptions
.Regular,
16579
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
16580
parseOptions:
TestOptions
.Regular,
16767
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
16768
parseOptions:
TestOptions
.Regular,
16917
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
16918
parseOptions:
TestOptions
.Regular7_3,
16925
var compilation3 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended,
16926
parseOptions:
TestOptions
.Regular, skipUsesIsNullable: true);
17015
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
17016
parseOptions:
TestOptions
.Regular,
17265
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
17266
parseOptions:
TestOptions
.Regular9,
17456
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
17457
parseOptions:
TestOptions
.Regular,
17510
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
17511
parseOptions:
TestOptions
.Regular,
17527
var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options:
TestOptions
.DebugExe,
17528
parseOptions:
TestOptions
.Regular,
17541
var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options:
TestOptions
.DebugExe,
17542
parseOptions:
TestOptions
.Regular,
17588
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
17589
parseOptions:
TestOptions
.Regular,
17620
options:
TestOptions
.DebugDll,
17621
parseOptions:
TestOptions
.Regular,
17726
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
17727
parseOptions:
TestOptions
.Regular,
18282
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe.WithMetadataImportOptions(metadataImportOptions),
18283
parseOptions:
TestOptions
.Regular,
18315
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll.WithMetadataImportOptions(metadataImportOptions),
18316
parseOptions:
TestOptions
.Regular,
18329
options:
TestOptions
.DebugExe.WithMetadataImportOptions(metadataImportOptions),
18330
parseOptions:
TestOptions
.Regular,
18457
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
18458
parseOptions:
TestOptions
.Regular9,
18465
compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
18466
parseOptions:
TestOptions
.Regular,
18484
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
18485
parseOptions:
TestOptions
.Regular,
18495
options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
18496
parseOptions:
TestOptions
.Regular9,
18504
options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
18505
parseOptions:
TestOptions
.Regular,
19837
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
19838
parseOptions:
TestOptions
.Regular,
19891
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
19892
parseOptions:
TestOptions
.Regular,
19908
var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options:
TestOptions
.DebugExe,
19909
parseOptions:
TestOptions
.Regular,
19922
var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options:
TestOptions
.DebugExe,
19923
parseOptions:
TestOptions
.Regular,
19969
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
19970
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
20000
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
20001
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
20038
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
20039
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
20170
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
20171
parseOptions:
TestOptions
.Regular,
20315
options:
TestOptions
.DebugExe,
20317
parseOptions:
TestOptions
.Regular);
20353
var compilation2 = CreateCompilation(source0 + source2, options:
TestOptions
.DebugExe,
20354
parseOptions:
TestOptions
.Regular,
20367
var compilation3 = CreateCompilation(source0, options:
TestOptions
.DebugDll,
20368
parseOptions:
TestOptions
.Regular,
20426
var compilation4 = CreateCompilation(source3, options:
TestOptions
.DebugExe,
20428
parseOptions:
TestOptions
.Regular,
20444
var compilation5 = CreateCompilation(source4, options:
TestOptions
.DebugExe,
20446
parseOptions:
TestOptions
.Regular,
20456
var compilation6 = CreateCompilation(source5, options:
TestOptions
.DebugExe,
20458
parseOptions:
TestOptions
.Regular,
20491
var compilation7 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
20493
parseOptions:
TestOptions
.Regular,
21552
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
21553
parseOptions:
TestOptions
.Regular,
22041
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
22042
parseOptions:
TestOptions
.Regular7_3,
22131
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
22132
parseOptions:
TestOptions
.Regular,
22370
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
22371
parseOptions:
TestOptions
.Regular,
22447
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
22448
parseOptions:
TestOptions
.Regular7_3);
22625
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
22626
parseOptions:
TestOptions
.Regular,
23381
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
23382
parseOptions:
TestOptions
.Regular);
23688
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
23689
parseOptions:
TestOptions
.Regular,
23754
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
23755
parseOptions:
TestOptions
.Regular,
23871
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
23872
parseOptions:
TestOptions
.Regular,
23937
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
23938
parseOptions:
TestOptions
.Regular,
24507
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
24508
parseOptions:
TestOptions
.Regular,
24539
options:
TestOptions
.DebugDll,
24540
parseOptions:
TestOptions
.Regular,
26531
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
26532
parseOptions:
TestOptions
.Regular,
26568
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
26569
parseOptions:
TestOptions
.Regular,
26607
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
26608
parseOptions:
TestOptions
.Regular,
26743
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
26744
parseOptions:
TestOptions
.Regular,
26799
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
26800
parseOptions:
TestOptions
.Regular,
27133
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
27134
parseOptions:
TestOptions
.Regular7_3,
27223
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
27224
parseOptions:
TestOptions
.Regular,
27619
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
27620
parseOptions:
TestOptions
.Regular);
27693
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
27694
parseOptions:
TestOptions
.Regular7_3);
27789
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
27790
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
27863
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
27864
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
27883
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
27884
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.Mscorlib461Extended);
27940
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
27941
parseOptions:
TestOptions
.Regular9,
28117
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
28118
parseOptions:
TestOptions
.Regular,
28195
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
28196
parseOptions:
TestOptions
.Regular,
28418
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe,
28419
parseOptions:
TestOptions
.Regular9,
28426
compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe,
28427
parseOptions:
TestOptions
.Regular,
28478
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
28479
parseOptions:
TestOptions
.Regular,
28501
var compilation3 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugExe,
28502
parseOptions:
TestOptions
.Regular9,
28509
compilation3 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugExe,
28510
parseOptions:
TestOptions
.Regular,
28528
var compilation5 = CreateCompilation(source3, new[] { reference }, options:
TestOptions
.DebugDll,
28529
parseOptions:
TestOptions
.Regular,
28615
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe,
28616
parseOptions:
TestOptions
.Regular9,
28623
compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe,
28624
parseOptions:
TestOptions
.Regular,
28634
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
28635
parseOptions:
TestOptions
.Regular,
28642
var compilation3 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugExe,
28643
parseOptions:
TestOptions
.Regular9,
28650
compilation3 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugExe,
28651
parseOptions:
TestOptions
.Regular,
28751
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe, targetFramework: targetFramework,
28752
parseOptions:
TestOptions
.Regular);
28760
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: targetFramework,
28761
parseOptions:
TestOptions
.Regular);
28767
var compilation3 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugExe,
28768
parseOptions:
TestOptions
.Regular, targetFramework: targetFramework);
29169
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe,
29170
parseOptions:
TestOptions
.Regular);
29178
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
29179
parseOptions:
TestOptions
.Regular);
29183
var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options:
TestOptions
.DebugExe,
29184
parseOptions:
TestOptions
.Regular);
29192
var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options:
TestOptions
.DebugExe,
29193
parseOptions:
TestOptions
.Regular);
29255
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe,
29256
parseOptions:
TestOptions
.Regular);
29262
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
29263
parseOptions:
TestOptions
.Regular);
29267
var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options:
TestOptions
.DebugExe,
29268
parseOptions:
TestOptions
.Regular);
29274
var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options:
TestOptions
.DebugExe,
29275
parseOptions:
TestOptions
.Regular);
29349
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
29350
parseOptions:
TestOptions
.Regular9,
29357
compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe,
29358
parseOptions:
TestOptions
.Regular,
29368
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
29369
parseOptions:
TestOptions
.Regular,
29376
var compilation3 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugDll,
29377
parseOptions:
TestOptions
.Regular9,
29384
compilation3 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugExe,
29385
parseOptions:
TestOptions
.Regular,
29460
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
29461
parseOptions:
TestOptions
.Regular9,
29467
compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
29468
parseOptions:
TestOptions
.Regular,
29474
var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options:
TestOptions
.DebugExe,
29475
parseOptions:
TestOptions
.Regular,
29500
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
29501
parseOptions:
TestOptions
.Regular);
29578
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
29579
parseOptions:
TestOptions
.Regular,
29696
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
29697
parseOptions:
TestOptions
.Regular,
29992
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
29993
parseOptions:
TestOptions
.Regular,
30103
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
30104
parseOptions:
TestOptions
.Regular,
30265
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
30266
parseOptions:
TestOptions
.Regular7_3,
30319
var compilation3 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended,
30320
parseOptions:
TestOptions
.Regular, skipUsesIsNullable: true);
30438
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
30439
parseOptions:
TestOptions
.Regular,
30659
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
30660
parseOptions:
TestOptions
.Regular9,
30861
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
30862
parseOptions:
TestOptions
.Regular,
30915
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
30916
parseOptions:
TestOptions
.Regular,
30930
var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options:
TestOptions
.DebugExe,
30931
parseOptions:
TestOptions
.Regular,
30944
var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options:
TestOptions
.DebugExe,
30945
parseOptions:
TestOptions
.Regular,
30990
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
30991
parseOptions:
TestOptions
.Regular,
31021
options:
TestOptions
.DebugDll,
31022
parseOptions:
TestOptions
.Regular,
31095
options:
TestOptions
.DebugExe,
31096
parseOptions:
TestOptions
.Regular,
31121
var compilation2 = CreateCompilation(source0 + source2, options:
TestOptions
.DebugExe,
31122
parseOptions:
TestOptions
.Regular,
31130
var compilation3 = CreateCompilation(source0, options:
TestOptions
.DebugDll,
31131
parseOptions:
TestOptions
.Regular,
31168
var compilation4 = CreateCompilation(source3, options:
TestOptions
.DebugExe,
31170
parseOptions:
TestOptions
.Regular,
31180
var compilation5 = CreateCompilation(source4, options:
TestOptions
.DebugExe,
31182
parseOptions:
TestOptions
.Regular,
31206
var compilation6 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
31208
parseOptions:
TestOptions
.Regular,
31750
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
31751
parseOptions:
TestOptions
.Regular,
31809
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
31810
parseOptions:
TestOptions
.Regular7_3);
31932
var compilation1 = CreateCompilation(source0 + source1, options:
TestOptions
.DebugExe,
31933
parseOptions:
TestOptions
.Regular,
31983
var compilation2 = CreateCompilation(source2 + source0, options:
TestOptions
.DebugExe,
31984
parseOptions:
TestOptions
.Regular,
32016
var compilation3 = CreateCompilation(source0, options:
TestOptions
.DebugDll,
32017
parseOptions:
TestOptions
.Regular,
32024
var compilation4 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
32026
parseOptions:
TestOptions
.Regular,
32038
var compilation5 = CreateCompilation(source2, options:
TestOptions
.DebugExe,
32040
parseOptions:
TestOptions
.Regular,
32123
var compilation1 = CreateCompilation(source0 + source1, options:
TestOptions
.DebugExe,
32124
parseOptions:
TestOptions
.Regular,
32150
var compilation3 = CreateCompilation(source0, options:
TestOptions
.DebugDll,
32151
parseOptions:
TestOptions
.Regular,
32158
var compilation4 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
32160
parseOptions:
TestOptions
.Regular,
32172
var compilation5 = CreateCompilation(source2, options:
TestOptions
.DebugExe,
32174
parseOptions:
TestOptions
.Regular,
32254
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32255
parseOptions:
TestOptions
.Regular);
32257
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe);
32287
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugExe);
32381
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32382
parseOptions:
TestOptions
.Regular);
32481
var compilation1 = CreateCompilation(source0 + source1, options:
TestOptions
.DebugExe,
32482
parseOptions:
TestOptions
.Regular,
32508
var compilation2 = CreateCompilation(source2 + source0, options:
TestOptions
.DebugExe,
32509
parseOptions:
TestOptions
.Regular,
32541
var compilation3 = CreateCompilation(source0, options:
TestOptions
.DebugDll,
32542
parseOptions:
TestOptions
.Regular,
32549
var compilation4 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
32551
parseOptions:
TestOptions
.Regular,
32556
var compilation5 = CreateCompilation(source2, options:
TestOptions
.DebugExe,
32558
parseOptions:
TestOptions
.Regular,
32687
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32688
parseOptions:
TestOptions
.Regular,
32764
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32765
parseOptions:
TestOptions
.Regular);
32801
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32828
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32870
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32959
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
32960
parseOptions:
TestOptions
.RegularPreview,
32975
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
32976
parseOptions:
TestOptions
.RegularPreview,
32991
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugExe,
32992
parseOptions:
TestOptions
.RegularPreview,
33117
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
33118
parseOptions:
TestOptions
.Regular7_3,
33141
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugDll,
33142
parseOptions:
TestOptions
.Regular7_3,
33193
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
33194
parseOptions:
TestOptions
.Regular10,
33214
CreateCompilation(source1, options:
TestOptions
.DebugDll,
33215
parseOptions:
TestOptions
.RegularPreview,
33227
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugDll,
33228
parseOptions:
TestOptions
.Regular10,
33243
CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugDll,
33244
parseOptions:
TestOptions
.RegularPreview,
33283
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended,
33284
parseOptions:
TestOptions
.Regular, skipUsesIsNullable: true);
33308
options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended,
33309
parseOptions:
TestOptions
.Regular);
33357
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net50,
33358
parseOptions:
TestOptions
.RegularPreview, skipUsesIsNullable: true);
33387
options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net50,
33388
parseOptions:
TestOptions
.RegularPreview);
33433
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
33434
parseOptions:
TestOptions
.RegularPreview,
33481
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
33482
parseOptions:
TestOptions
.RegularPreview,
33530
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
33531
parseOptions:
TestOptions
.RegularPreview,
33588
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
33589
parseOptions:
TestOptions
.RegularPreview,
33650
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
33651
parseOptions:
TestOptions
.RegularPreview,
33714
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
33715
parseOptions:
TestOptions
.RegularPreview,
33760
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
33761
parseOptions:
TestOptions
.RegularPreview,
33799
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
33800
parseOptions: isStatic ?
TestOptions
.Regular10 :
TestOptions
.Regular7_3,
33832
var compilation3 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended,
33833
parseOptions:
TestOptions
.RegularPreview, skipUsesIsNullable: true);
33884
var compilation4 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
33885
parseOptions:
TestOptions
.RegularPreview,
33980
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
33981
parseOptions:
TestOptions
.RegularPreview,
34141
var compilation1 = CreateCompilation(source1 + source2 + source3, options:
TestOptions
.DebugExe,
34142
parseOptions:
TestOptions
.RegularPreview,
34157
var compilation2 = CreateCompilation(source3, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
34158
parseOptions:
TestOptions
.RegularPreview,
34173
var compilation3 = CreateCompilation(source3, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugExe,
34174
parseOptions:
TestOptions
.RegularPreview,
34188
var compilation4 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
34189
parseOptions:
TestOptions
.RegularPreview,
34194
var compilation5 = CreateCompilation(source2 + source3, new[] { compilation4.ToMetadataReference() }, options:
TestOptions
.DebugDll,
34195
parseOptions:
TestOptions
.RegularPreview,
34210
var compilation6 = CreateCompilation(source2 + source3, new[] { compilation4.EmitToImageReference() }, options:
TestOptions
.DebugDll,
34211
parseOptions:
TestOptions
.RegularPreview,
34282
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
34283
parseOptions:
TestOptions
.RegularPreview,
34463
var compilation2 = CreateCompilation(source2, new[] { ref1 }, options:
TestOptions
.DebugDll,
34464
parseOptions:
TestOptions
.RegularPreview,
34489
compilation2 = CreateCompilation(source2, new[] { ref1 }, options:
TestOptions
.DebugDll,
34490
parseOptions:
TestOptions
.Regular7_3,
34501
var compilation4 = CreateCompilation(source4, new[] { ref1 }, options:
TestOptions
.DebugExe,
34502
parseOptions:
TestOptions
.RegularPreview,
34540
var compilation3 = CreateCompilation(source3, new[] { ref1, ref2 }, options:
TestOptions
.DebugDll,
34541
parseOptions:
TestOptions
.RegularPreview,
34585
var compilation5 = CreateCompilation(source5, new[] { ref1, ref2 }, options:
TestOptions
.DebugExe,
34586
parseOptions:
TestOptions
.RegularPreview,
34683
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
34684
parseOptions:
TestOptions
.RegularPreview,
34689
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugDll,
34690
parseOptions:
TestOptions
.RegularPreview,
34703
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugDll,
34704
parseOptions:
TestOptions
.RegularPreview,
34797
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
34798
parseOptions:
TestOptions
.RegularPreview,
34894
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
34895
parseOptions:
TestOptions
.RegularPreview,
34912
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugExe,
34913
parseOptions:
TestOptions
.RegularPreview,
34968
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
34969
parseOptions:
TestOptions
.RegularPreview,
34973
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugDll,
34974
parseOptions:
TestOptions
.RegularPreview,
34997
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugDll,
34998
parseOptions:
TestOptions
.RegularPreview,
35059
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
35060
parseOptions:
TestOptions
.RegularPreview,
35064
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugDll,
35065
parseOptions:
TestOptions
.RegularPreview,
35092
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugDll,
35093
parseOptions:
TestOptions
.RegularPreview,
35160
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
35161
parseOptions:
TestOptions
.RegularPreview,
35165
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugDll,
35166
parseOptions:
TestOptions
.RegularPreview,
35190
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugDll,
35191
parseOptions:
TestOptions
.RegularPreview,
35256
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
35257
parseOptions:
TestOptions
.RegularPreview,
35261
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugDll,
35262
parseOptions:
TestOptions
.RegularPreview,
35285
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugDll,
35286
parseOptions:
TestOptions
.RegularPreview,
35351
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
35352
parseOptions:
TestOptions
.RegularPreview,
35366
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugDll,
35367
parseOptions:
TestOptions
.RegularPreview,
35462
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
35463
parseOptions:
TestOptions
.RegularPreview,
35469
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
35470
parseOptions:
TestOptions
.RegularPreview,
35571
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
35572
parseOptions:
TestOptions
.RegularPreview,
35578
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
35579
parseOptions:
TestOptions
.RegularPreview,
35684
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
35685
parseOptions:
TestOptions
.RegularPreview,
35691
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
35692
parseOptions:
TestOptions
.RegularPreview,
35797
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
35798
parseOptions:
TestOptions
.RegularPreview,
35804
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
35805
parseOptions:
TestOptions
.RegularPreview,
35899
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
35900
parseOptions:
TestOptions
.RegularPreview,
35910
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
35911
parseOptions:
TestOptions
.RegularPreview,
36008
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
36009
parseOptions:
TestOptions
.RegularPreview,
36015
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
36016
parseOptions:
TestOptions
.RegularPreview,
36102
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
36103
parseOptions:
TestOptions
.RegularPreview,
36113
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
36114
parseOptions:
TestOptions
.RegularPreview,
36220
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
36221
parseOptions:
TestOptions
.RegularPreview,
36227
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
36228
parseOptions:
TestOptions
.RegularPreview,
36386
var compilation1 = CreateCompilation(source1 + source2 + source3, options:
TestOptions
.DebugExe,
36387
parseOptions:
TestOptions
.RegularPreview,
36404
var compilation2 = CreateCompilation(source3, new[] { reference }, options:
TestOptions
.DebugExe,
36405
parseOptions:
TestOptions
.RegularPreview,
36421
var compilation4 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
36422
parseOptions:
TestOptions
.RegularPreview,
36429
var compilation5 = CreateCompilation(source2 + source3, new[] { reference }, options:
TestOptions
.DebugExe,
36430
parseOptions:
TestOptions
.RegularPreview,
36574
var compilation1 = CreateCompilation(source1 + source2 + source3, options:
TestOptions
.DebugExe,
36575
parseOptions:
TestOptions
.RegularPreview,
36592
var compilation2 = CreateCompilation(source3, new[] { reference }, options:
TestOptions
.DebugExe,
36593
parseOptions:
TestOptions
.RegularPreview,
36609
var compilation4 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
36610
parseOptions:
TestOptions
.RegularPreview,
36617
var compilation5 = CreateCompilation(source2 + source3, new[] { reference }, options:
TestOptions
.DebugExe,
36618
parseOptions:
TestOptions
.RegularPreview,
36762
var compilation1 = CreateCompilation(source1 + source2 + source3, options:
TestOptions
.DebugExe,
36763
parseOptions:
TestOptions
.RegularPreview,
36780
var compilation2 = CreateCompilation(source3, new[] { reference }, options:
TestOptions
.DebugExe,
36781
parseOptions:
TestOptions
.RegularPreview,
36797
var compilation4 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
36798
parseOptions:
TestOptions
.RegularPreview,
36805
var compilation5 = CreateCompilation(source2 + source3, new[] { reference }, options:
TestOptions
.DebugDll,
36806
parseOptions:
TestOptions
.RegularPreview,
36859
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
36860
parseOptions:
TestOptions
.RegularPreview,
36887
var comp = CreateCompilation(source1, options:
TestOptions
.DebugDll,
36888
parseOptions:
TestOptions
.Regular,
36984
foreach (var options in new[] {
TestOptions
.DebugExe,
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All) })
36987
parseOptions:
TestOptions
.RegularPreview,
37003
parseOptions:
TestOptions
.RegularPreview,
37019
parseOptions:
TestOptions
.RegularPreview,
37274
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
37275
parseOptions: isStatic ?
TestOptions
.Regular10 :
TestOptions
.Regular7_3,
37291
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugDll,
37292
parseOptions: isStatic ?
TestOptions
.Regular10 :
TestOptions
.Regular7_3,
37375
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended,
37376
parseOptions:
TestOptions
.RegularPreview, skipUsesIsNullable: true);
37392
options:
TestOptions
.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended,
37393
parseOptions:
TestOptions
.RegularPreview);
37522
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
37523
parseOptions:
TestOptions
.RegularPreview,
37605
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
37606
parseOptions:
TestOptions
.RegularPreview,
37649
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
37650
parseOptions:
TestOptions
.RegularPreview,
37715
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
37716
parseOptions:
TestOptions
.RegularPreview,
37952
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
37953
parseOptions:
TestOptions
.RegularPreview,
37987
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
37988
parseOptions: isStatic ?
TestOptions
.Regular10 :
TestOptions
.Regular7_3,
37995
var compilation3 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended,
37996
parseOptions:
TestOptions
.RegularPreview, skipUsesIsNullable: true);
38002
var compilation4 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
38003
parseOptions:
TestOptions
.RegularPreview,
38401
var compilation1 = CreateCompilation(source1 + source2 + source3, options:
TestOptions
.DebugExe,
38402
parseOptions:
TestOptions
.RegularPreview,
38420
var compilation2 = CreateCompilation(source3, new[] { reference }, options:
TestOptions
.DebugExe,
38421
parseOptions:
TestOptions
.RegularPreview,
38438
var compilation4 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
38439
parseOptions:
TestOptions
.RegularPreview,
38446
var compilation5 = CreateCompilation(source2 + source3, new[] { reference }, options:
TestOptions
.DebugExe,
38447
parseOptions:
TestOptions
.RegularPreview,
38741
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
38742
parseOptions:
TestOptions
.RegularPreview,
38800
var compilation2 = CreateCompilation(source2, new[] { ref1 }, options:
TestOptions
.DebugDll,
38801
parseOptions:
TestOptions
.RegularPreview,
38826
compilation2 = CreateCompilation(source2, new[] { ref1 }, options:
TestOptions
.DebugDll,
38827
parseOptions: isStatic ?
TestOptions
.Regular10 :
TestOptions
.Regular7_3,
38838
var compilation4 = CreateCompilation(source4, new[] { ref1 }, options:
TestOptions
.DebugExe,
38839
parseOptions:
TestOptions
.RegularPreview,
38880
var compilation3 = CreateCompilation(source3, new[] { ref1, ref2 }, options:
TestOptions
.DebugDll.WithConcurrentBuild(false),
38881
parseOptions:
TestOptions
.RegularPreview,
38909
var compilation5 = CreateCompilation(source5, new[] { ref1, ref2 }, options:
TestOptions
.DebugExe,
38910
parseOptions:
TestOptions
.RegularPreview,
39002
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
39003
parseOptions:
TestOptions
.RegularPreview,
39008
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugDll,
39009
parseOptions:
TestOptions
.RegularPreview,
39015
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugDll,
39016
parseOptions:
TestOptions
.RegularPreview,
39106
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
39107
parseOptions:
TestOptions
.RegularPreview,
39175
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
39176
parseOptions:
TestOptions
.RegularPreview,
39193
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugExe,
39194
parseOptions:
TestOptions
.RegularPreview,
39492
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
39493
parseOptions:
TestOptions
.RegularPreview,
39510
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugDll,
39511
parseOptions:
TestOptions
.RegularPreview,
40014
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
40015
parseOptions:
TestOptions
.RegularPreview,
40032
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
40033
parseOptions:
TestOptions
.RegularPreview,
40050
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugExe,
40051
parseOptions:
TestOptions
.RegularPreview,
40212
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
40213
parseOptions:
TestOptions
.Regular7_3,
40242
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugDll,
40243
parseOptions:
TestOptions
.Regular7_3,
40303
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
40304
parseOptions:
TestOptions
.Regular10,
40333
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugDll,
40334
parseOptions:
TestOptions
.Regular10,
40393
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended,
40394
parseOptions:
TestOptions
.Regular, skipUsesIsNullable: true);
40424
options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended,
40425
parseOptions:
TestOptions
.Regular);
40482
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net50,
40483
parseOptions:
TestOptions
.RegularPreview, skipUsesIsNullable: true);
40512
options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net50,
40513
parseOptions:
TestOptions
.RegularPreview);
40572
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
40573
parseOptions:
TestOptions
.RegularPreview,
40615
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
40616
parseOptions:
TestOptions
.RegularPreview,
40663
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
40664
parseOptions:
TestOptions
.RegularPreview,
40723
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
40724
parseOptions:
TestOptions
.RegularPreview,
40787
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
40788
parseOptions:
TestOptions
.RegularPreview,
40853
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
40854
parseOptions:
TestOptions
.RegularPreview,
40927
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
40928
parseOptions:
TestOptions
.RegularPreview,
41069
var compilation1 = CreateCompilation(source1 + source2 + source3, options:
TestOptions
.DebugExe,
41070
parseOptions:
TestOptions
.RegularPreview,
41087
var compilation2 = CreateCompilation(source3, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
41088
parseOptions:
TestOptions
.RegularPreview,
41105
var compilation3 = CreateCompilation(source3, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugExe,
41106
parseOptions:
TestOptions
.RegularPreview,
41122
var compilation4 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
41123
parseOptions:
TestOptions
.RegularPreview,
41128
var compilation5 = CreateCompilation(source2 + source3, new[] { compilation4.ToMetadataReference() }, options:
TestOptions
.DebugDll,
41129
parseOptions:
TestOptions
.RegularPreview,
41141
var compilation6 = CreateCompilation(source2 + source3, new[] { compilation4.EmitToImageReference() }, options:
TestOptions
.DebugDll,
41142
parseOptions:
TestOptions
.RegularPreview,
41238
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
41239
parseOptions:
TestOptions
.RegularPreview,
41462
var compilation2 = CreateCompilation(source2, new[] { ref1 }, options:
TestOptions
.DebugDll,
41463
parseOptions:
TestOptions
.RegularPreview,
41488
compilation2 = CreateCompilation(source2, new[] { ref1 }, options:
TestOptions
.DebugDll,
41489
parseOptions: isStatic ?
TestOptions
.Regular10 :
TestOptions
.Regular7_3,
41500
var compilation4 = CreateCompilation(source4, new[] { ref1 }, options:
TestOptions
.DebugExe,
41501
parseOptions:
TestOptions
.RegularPreview,
41542
var compilation3 = CreateCompilation(source3, new[] { ref1, ref2 }, options:
TestOptions
.DebugDll.WithConcurrentBuild(false),
41543
parseOptions:
TestOptions
.RegularPreview,
41587
var compilation5 = CreateCompilation(source5, new[] { ref1, ref2 }, options:
TestOptions
.DebugExe,
41588
parseOptions:
TestOptions
.RegularPreview,
41668
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
41669
parseOptions:
TestOptions
.RegularPreview,
41674
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugDll,
41675
parseOptions:
TestOptions
.RegularPreview,
41688
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugDll,
41689
parseOptions:
TestOptions
.RegularPreview,
41782
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
41783
parseOptions:
TestOptions
.RegularPreview,
41851
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
41852
parseOptions:
TestOptions
.RegularPreview,
41869
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugExe,
41870
parseOptions:
TestOptions
.RegularPreview,
42019
var compilation1 = CreateCompilation(source1 + source2 + source3, options:
TestOptions
.DebugExe,
42020
parseOptions:
TestOptions
.RegularPreview,
42039
var compilation2 = CreateCompilation(source3, new[] { reference }, options:
TestOptions
.DebugExe,
42040
parseOptions:
TestOptions
.RegularPreview,
42058
var compilation4 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
42059
parseOptions:
TestOptions
.RegularPreview,
42066
var compilation5 = CreateCompilation(source2 + source3, new[] { reference }, options:
TestOptions
.DebugExe,
42067
parseOptions:
TestOptions
.RegularPreview,
42223
var compilation1 = CreateCompilation(source1 + source2 + source3, options:
TestOptions
.DebugExe,
42224
parseOptions:
TestOptions
.RegularPreview,
42243
var compilation2 = CreateCompilation(source3, new[] { reference }, options:
TestOptions
.DebugExe,
42244
parseOptions:
TestOptions
.RegularPreview,
42262
var compilation4 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
42263
parseOptions:
TestOptions
.RegularPreview,
42270
var compilation5 = CreateCompilation(source2 + source3, new[] { reference }, options:
TestOptions
.DebugExe,
42271
parseOptions:
TestOptions
.RegularPreview,
42427
var compilation1 = CreateCompilation(source1 + source2 + source3, options:
TestOptions
.DebugExe,
42428
parseOptions:
TestOptions
.RegularPreview,
42447
var compilation2 = CreateCompilation(source3, new[] { reference }, options:
TestOptions
.DebugExe,
42448
parseOptions:
TestOptions
.RegularPreview,
42466
var compilation4 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
42467
parseOptions:
TestOptions
.RegularPreview,
42474
var compilation5 = CreateCompilation(source2 + source3, new[] { reference }, options:
TestOptions
.DebugDll,
42475
parseOptions:
TestOptions
.RegularPreview,
43590
parseOptions:
TestOptions
.RegularPreview,
43627
parseOptions:
TestOptions
.RegularPreview,
43670
parseOptions:
TestOptions
.RegularPreview,
43696
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
43697
parseOptions:
TestOptions
.Regular,
43720
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
43721
parseOptions:
TestOptions
.Regular,
43789
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
43790
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
43834
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
43835
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
43839
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugExe,
43840
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
43844
var compilation4 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
43845
parseOptions:
TestOptions
.Regular7_3,
43868
var compilation5 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
43869
parseOptions:
TestOptions
.Regular,
43919
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
43920
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
43971
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
43972
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
43976
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugExe,
43977
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
43981
var compilation4 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
43982
parseOptions:
TestOptions
.Regular7_3, targetFramework: TargetFramework.NetCoreApp);
44004
var compilation5 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
44005
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.Mscorlib461Extended);
44054
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
44055
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
44101
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
44102
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
44106
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugExe,
44107
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
44111
var compilation4 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
44112
parseOptions:
TestOptions
.Regular7_3, targetFramework: TargetFramework.NetCoreApp);
44134
var compilation5 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
44135
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.Mscorlib461Extended);
44192
var compilation1 = CreateCompilation(source0 + source1, options:
TestOptions
.DebugExe,
44193
parseOptions:
TestOptions
.Regular,
44222
var compilation2 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugExe,
44223
parseOptions:
TestOptions
.Regular,
44242
var compilation3 = CreateCompilation(source0 + source3, options:
TestOptions
.DebugExe,
44243
parseOptions:
TestOptions
.Regular,
44268
var compilation2 = CreateCompilation(source3 + source4, new[] { reference }, options:
TestOptions
.DebugExe,
44269
parseOptions:
TestOptions
.Regular,
44288
var compilation4 = CreateCompilation(source0 + source1, options:
TestOptions
.DebugExe,
44289
parseOptions:
TestOptions
.Regular7_3,
44343
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
44344
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
44389
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
44390
parseOptions:
TestOptions
.Regular7_3,
44420
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
44421
parseOptions:
TestOptions
.Regular,
44544
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
44545
parseOptions:
TestOptions
.Regular,
44642
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
44643
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
44689
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
44690
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
44723
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
44724
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
44747
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
44748
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
44797
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
44798
parseOptions:
TestOptions
.Regular);
44838
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
44839
parseOptions:
TestOptions
.Regular,
44883
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
44884
parseOptions:
TestOptions
.Regular,
44919
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
44920
parseOptions:
TestOptions
.Regular,
44964
var compilation1 = CreateCompilation(source0 + source1, options:
TestOptions
.DebugExe,
44965
parseOptions:
TestOptions
.Regular,
44982
var compilation2 = CreateCompilation(source0 + source2, options:
TestOptions
.DebugExe,
44983
parseOptions:
TestOptions
.Regular,
45002
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
45003
parseOptions:
TestOptions
.Regular,
45056
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
45057
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
45101
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
45102
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
45106
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugExe,
45107
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
45111
var compilation4 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
45112
parseOptions:
TestOptions
.Regular7_3,
45144
var compilation5 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
45145
parseOptions:
TestOptions
.Regular,
45207
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
45208
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
45254
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
45255
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
45259
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugExe,
45260
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
45264
var compilation4 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
45265
parseOptions:
TestOptions
.Regular7_3,
45297
var compilation5 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
45298
parseOptions:
TestOptions
.Regular,
45350
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
45351
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
45393
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
45394
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
45398
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugExe,
45399
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
45403
var compilation4 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
45404
parseOptions:
TestOptions
.Regular7_3,
45439
var compilation5 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
45440
parseOptions:
TestOptions
.Regular,
45478
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
45479
parseOptions:
TestOptions
.Regular);
45540
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
45541
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
45585
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
45586
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
45590
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugExe,
45591
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
45595
var compilation4 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
45596
parseOptions:
TestOptions
.Regular7_3, targetFramework: TargetFramework.NetCoreApp);
45627
var compilation5 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
45628
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.Mscorlib461Extended);
45680
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
45681
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
45722
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugExe,
45723
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
45727
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugExe,
45728
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
45732
var compilation4 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
45733
parseOptions:
TestOptions
.Regular7_3, targetFramework: TargetFramework.NetCoreApp);
45764
var compilation5 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
45765
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.Mscorlib461Extended);
45838
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll,
45839
parseOptions:
TestOptions
.Regular,
45844
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
45845
parseOptions:
TestOptions
.Regular,
45902
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugExe,
45903
parseOptions:
TestOptions
.Regular,
45920
var compilation3 = CreateCompilation(source3, options:
TestOptions
.DebugExe,
45921
parseOptions:
TestOptions
.Regular,
45936
var compilation4 = CreateCompilation(source4, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.Mscorlib461Extended,
45937
parseOptions:
TestOptions
.Regular);
46001
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll,
46002
parseOptions:
TestOptions
.Regular,
46034
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugExe,
46037
parseOptions:
TestOptions
.Regular);
46112
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
46113
parseOptions:
TestOptions
.Regular,
46160
var compilation3 = CreateCompilation(source3, options:
TestOptions
.DebugExe,
46163
parseOptions:
TestOptions
.Regular);
46198
var compilation4 = CreateCompilation(source4, options:
TestOptions
.DebugExe,
46201
parseOptions:
TestOptions
.Regular);
46256
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
46257
parseOptions:
TestOptions
.Regular,
46303
var compilation3 = CreateCompilation(source3, options:
TestOptions
.DebugExe,
46306
parseOptions:
TestOptions
.Regular);
46317
var compilation4 = CreateCompilation(source4, options:
TestOptions
.DebugDll,
46320
parseOptions:
TestOptions
.Regular);
46346
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
46347
parseOptions:
TestOptions
.Regular,
46372
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe.WithMainTypeName("I2"),
46373
parseOptions:
TestOptions
.Regular,
46588
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
46590
parseOptions:
TestOptions
.RegularPreview);
46598
var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options:
TestOptions
.DebugExe,
46600
parseOptions:
TestOptions
.RegularPreview);
46605
var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options:
TestOptions
.DebugExe,
46606
parseOptions:
TestOptions
.RegularPreview);
46611
var compilation6 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugDll,
46613
parseOptions:
TestOptions
.Regular7_3);
46690
var compilation61 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugDll,
46692
parseOptions:
TestOptions
.RegularPreview);
46766
var compilation7 = CreateCompilation(source2, new[] { compilationReference }, options:
TestOptions
.DebugExe,
46768
parseOptions:
TestOptions
.Regular7_3);
46844
var compilation8 = CreateCompilation(source2, new[] { metadataReference }, options:
TestOptions
.DebugExe,
46846
parseOptions:
TestOptions
.Regular7_3);
46864
var compilation9 = CreateCompilation(source3, new[] { compilationReference }, options:
TestOptions
.DebugExe,
46866
parseOptions:
TestOptions
.Regular7_3);
46879
var compilation10 = CreateCompilation(source3, new[] { metadataReference }, options:
TestOptions
.DebugExe,
46880
parseOptions:
TestOptions
.Regular7_3);
46949
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.NetCoreApp);
46952
var compilation2 = CreateCompilation(source1 + source3, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.NetCoreApp,
46953
parseOptions:
TestOptions
.Regular);
46995
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.NetCoreApp,
46996
parseOptions:
TestOptions
.Regular9);
47012
CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.NetCoreApp,
47013
parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
47024
var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options:
TestOptions
.DebugExe,
47025
parseOptions:
TestOptions
.RegularPreview, targetFramework: TargetFramework.NetCoreApp);
47028
CreateCompilation(source2, new[] { compilationReference }, options:
TestOptions
.DebugExe,
47029
parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics(
47082
var compilation3 = CreateCompilationWithIL(source2, ilSource, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
47088
CreateCompilationWithIL(source2, ilSource, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
47111
var compilation4 = CreateCompilationWithIL(source3, ilSource, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview);
47120
CreateCompilationWithIL(source3, ilSource, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
47156
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.NetCoreApp,
47157
parseOptions:
TestOptions
.Regular);
47222
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.NetCoreApp,
47223
parseOptions:
TestOptions
.Regular);
47231
var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options:
TestOptions
.DebugExe,
47232
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47237
var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options:
TestOptions
.DebugExe,
47238
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47256
var compilation9 = CreateCompilation(source3, new[] { compilationReference }, options:
TestOptions
.DebugExe,
47257
parseOptions:
TestOptions
.Regular7_3, targetFramework: TargetFramework.NetCoreApp);
47267
var compilation10 = CreateCompilation(source3, new[] { metadataReference }, options:
TestOptions
.DebugExe,
47268
parseOptions:
TestOptions
.Regular7_3, targetFramework: TargetFramework.NetCoreApp);
47314
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
47315
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47323
var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options:
TestOptions
.DebugExe,
47324
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47329
var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options:
TestOptions
.DebugExe,
47330
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47390
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
47391
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47399
var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options:
TestOptions
.DebugExe,
47400
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47405
var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options:
TestOptions
.DebugExe,
47406
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47463
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe,
47464
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47470
var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options:
TestOptions
.DebugExe,
47471
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47520
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
47521
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47529
var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options:
TestOptions
.DebugExe,
47530
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47535
var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options:
TestOptions
.DebugExe,
47536
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47601
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
47602
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47610
var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options:
TestOptions
.DebugExe,
47611
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47616
var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options:
TestOptions
.DebugExe,
47617
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47676
var compilation0 = CreateCompilation(source0 + source1 + source2, options:
TestOptions
.DebugDll,
47677
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47684
var compilation1 = CreateCompilation(source3, new[] { compilationReference0 }, options:
TestOptions
.DebugExe,
47685
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47689
var compilation2 = CreateCompilation(source3, new[] { metadataReference0 }, options:
TestOptions
.DebugExe,
47690
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47708
var compilation3 = CreateCompilation(source4 + source1 + source2, options:
TestOptions
.DebugDll,
47709
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47716
var compilation4 = CreateCompilation(source3, new[] { compilationReference3 }, options:
TestOptions
.DebugExe,
47717
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47721
var compilation5 = CreateCompilation(source3, new[] { metadataReference3 }, options:
TestOptions
.DebugExe,
47722
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47737
var compilation6 = CreateCompilation(source4 + source1 + source5, options:
TestOptions
.DebugDll,
47738
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47745
var compilation7 = CreateCompilation(source3, new[] { compilationReference6 }, options:
TestOptions
.DebugExe,
47746
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47750
var compilation8 = CreateCompilation(source3, new[] { metadataReference6 }, options:
TestOptions
.DebugExe,
47751
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47809
var compilation0 = CreateCompilation(source0 + source1 + source2, options:
TestOptions
.DebugDll,
47810
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47817
var compilation1 = CreateCompilation(source3, new[] { compilationReference0 }, options:
TestOptions
.DebugExe,
47818
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47822
var compilation2 = CreateCompilation(source3, new[] { metadataReference0 }, options:
TestOptions
.DebugExe,
47823
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47841
var compilation3 = CreateCompilation(source4 + source1 + source2, options:
TestOptions
.DebugDll,
47842
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47849
var compilation4 = CreateCompilation(source3, new[] { compilationReference3 }, options:
TestOptions
.DebugExe,
47850
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47854
var compilation5 = CreateCompilation(source3, new[] { metadataReference3 }, options:
TestOptions
.DebugExe,
47855
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47870
var compilation6 = CreateCompilation(source4 + source1 + source5, options:
TestOptions
.DebugDll,
47871
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47878
var compilation7 = CreateCompilation(source3, new[] { compilationReference6 }, options:
TestOptions
.DebugExe,
47879
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47883
var compilation8 = CreateCompilation(source3, new[] { metadataReference6 }, options:
TestOptions
.DebugExe,
47884
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47937
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
47938
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47945
var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options:
TestOptions
.DebugExe,
47946
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
47950
var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options:
TestOptions
.DebugExe,
47951
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48004
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
48005
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48012
var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options:
TestOptions
.DebugExe,
48013
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48017
var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options:
TestOptions
.DebugExe,
48018
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48079
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
48080
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48088
var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options:
TestOptions
.DebugExe,
48089
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48094
var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options:
TestOptions
.DebugExe,
48095
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48136
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
48137
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48145
var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options:
TestOptions
.DebugExe,
48146
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48151
var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options:
TestOptions
.DebugExe,
48152
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48203
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
48204
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48212
var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options:
TestOptions
.DebugExe,
48213
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48218
var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options:
TestOptions
.DebugExe,
48219
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48238
var compilation9 = CreateCompilation(source3, new[] { compilationReference }, options:
TestOptions
.DebugExe,
48239
parseOptions:
TestOptions
.Regular7_3, targetFramework: TargetFramework.NetCoreApp);
48252
var compilation10 = CreateCompilation(source3, new[] { metadataReference }, options:
TestOptions
.DebugExe,
48253
parseOptions:
TestOptions
.Regular7_3, targetFramework: TargetFramework.NetCoreApp);
48300
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
48301
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48309
var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options:
TestOptions
.DebugExe,
48310
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48315
var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options:
TestOptions
.DebugExe,
48316
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48370
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
48371
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48379
var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options:
TestOptions
.DebugExe,
48380
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48385
var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options:
TestOptions
.DebugExe,
48386
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48434
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
48435
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48443
var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options:
TestOptions
.DebugExe,
48444
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48449
var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options:
TestOptions
.DebugExe,
48450
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48513
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
48514
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48522
var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options:
TestOptions
.DebugExe,
48523
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48528
var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options:
TestOptions
.DebugExe,
48529
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48585
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
48586
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48594
var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options:
TestOptions
.DebugExe,
48595
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48600
var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options:
TestOptions
.DebugExe,
48601
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48658
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
48659
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48666
var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options:
TestOptions
.DebugExe,
48667
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48671
var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options:
TestOptions
.DebugExe,
48672
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48728
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
48729
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48736
var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options:
TestOptions
.DebugExe,
48737
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48741
var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options:
TestOptions
.DebugExe,
48742
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48798
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe,
48799
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48805
var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options:
TestOptions
.DebugExe,
48806
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48890
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
48891
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48899
var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options:
TestOptions
.DebugExe,
48900
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48905
var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options:
TestOptions
.DebugExe,
48906
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48956
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
48957
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48965
var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options:
TestOptions
.DebugExe,
48966
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
48971
var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options:
TestOptions
.DebugExe,
48972
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
49063
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
49064
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
49072
var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options:
TestOptions
.DebugExe,
49073
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
49078
var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options:
TestOptions
.DebugExe,
49079
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
49118
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
49119
parseOptions:
TestOptions
.RegularPreview, targetFramework: TargetFramework.NetCoreApp);
49222
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
49223
parseOptions:
TestOptions
.RegularPreview, targetFramework: TargetFramework.NetCoreApp);
49295
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
49296
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
49304
var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options:
TestOptions
.DebugExe,
49305
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
49310
var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options:
TestOptions
.DebugExe,
49311
parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
49528
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugExe,
49530
parseOptions:
TestOptions
.RegularPreview);
49544
var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options:
TestOptions
.DebugExe,
49546
parseOptions:
TestOptions
.RegularPreview);
49550
var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options:
TestOptions
.DebugExe,
49551
parseOptions:
TestOptions
.RegularPreview);
49576
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
49578
parseOptions:
TestOptions
.Regular);
49606
var compilation1 = CreateCompilation("", options:
TestOptions
.DebugDll,
49617
var compilation1 = CreateCompilation("", options:
TestOptions
.DebugDll,
49651
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
49652
var compilation1 = CreateCompilation(source, parseOptions: parseOptions, options:
TestOptions
.DebugDll,
49660
var compilation2 = CreateCompilation("", parseOptions: parseOptions, options:
TestOptions
.DebugDll,
49767
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
49768
var compilation1 = CreateCompilation(source, parseOptions: parseOptions, options:
TestOptions
.DebugDll,
49776
var compilation2 = CreateCompilation("", parseOptions: parseOptions, options:
TestOptions
.DebugDll,
49917
var compilation1 = CreateCompilation(source, options:
TestOptions
.DebugDll,
49955
var compilation0 = CreateCompilation(source0 + source1, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.NetCoreApp);
49981
var compilation1 = CreateCompilation(source0 + source2, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.NetCoreApp);
50010
var compilation2 = CreateCompilation(source0 + source3, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.NetCoreApp);
50044
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.NetCoreApp);
50083
var compilation0 = CreateCompilation(source0 + source1, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.NetCoreApp);
50109
var compilation1 = CreateCompilation(source0 + source2, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.NetCoreApp);
50129
var compilation2 = CreateCompilation(source0 + source3, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.NetCoreApp);
50164
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.NetCoreApp);
50202
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.NetCoreApp);
50246
var compilation0 = CreateCompilation(source0 + source1, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.NetCoreApp);
50262
var compilation2 = CreateCompilation(source0 + source3, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.NetCoreApp);
50306
var compilation0 = CreateCompilation(source0 + source1, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.NetCoreApp);
50361
var piaCompilation = CreateCompilation(pia, options:
TestOptions
.ReleaseDll, targetFramework: TargetFramework.Net50);
50369
var compilation1 = CreateCompilation(consumer, options:
TestOptions
.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50);
50397
var piaCompilation = CreateCompilation(pia, options:
TestOptions
.ReleaseDll, targetFramework: TargetFramework.Net50);
50409
var compilation1 = CreateCompilation(consumer, options:
TestOptions
.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50);
50438
var piaCompilation = CreateCompilation(pia, options:
TestOptions
.ReleaseDll, targetFramework: TargetFramework.Net50);
50450
var compilation1 = CreateCompilation(consumer, options:
TestOptions
.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50);
50478
var piaCompilation = CreateCompilation(pia, options:
TestOptions
.ReleaseDll, targetFramework: TargetFramework.Net50);
50490
var compilation1 = CreateCompilation(consumer, options:
TestOptions
.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50);
50518
var piaCompilation = CreateCompilation(pia, options:
TestOptions
.ReleaseDll, targetFramework: TargetFramework.Net50);
50530
var compilation1 = CreateCompilation(consumer, options:
TestOptions
.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50);
50562
var piaCompilation = CreateCompilation(pia, options:
TestOptions
.ReleaseDll, targetFramework: TargetFramework.Net50);
50577
var compilation1 = CreateCompilation(consumer, options:
TestOptions
.ReleaseDll, references: new[] { reference }, targetFramework: TargetFramework.Net50);
50606
var piaCompilation = CreateCompilation(pia, options:
TestOptions
.ReleaseDll, targetFramework: TargetFramework.Net50);
50622
var compilation1 = CreateCompilation(consumer, options:
TestOptions
.ReleaseDll, references: new[] { reference }, targetFramework: TargetFramework.Net50);
50658
var piaCompilation = CreateCompilation(pia, options:
TestOptions
.ReleaseDll, targetFramework: TargetFramework.Net50);
50670
var compilation1 = CreateCompilation(consumer, options:
TestOptions
.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50);
50683
var attributes = CreateCompilation(NoPiaAttributes, options:
TestOptions
.ReleaseDll, references: baseReferences, targetFramework: TargetFramework.Empty);
50711
var piaCompilation = CreateCompilation(pia, options:
TestOptions
.ReleaseDll, references: baseReferences, targetFramework: TargetFramework.Empty);
50749
var pia2Compilation = CreateCompilation(pia2, baseReferences, options:
TestOptions
.ReleaseDll, targetFramework: TargetFramework.Empty);
50753
var compilation1 = CreateCompilation(consumer1, options:
TestOptions
.ReleaseDll, references: baseReferences.Concat(new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }), targetFramework: TargetFramework.Empty);
50757
var compilation2 = CreateCompilation(consumer2, options:
TestOptions
.ReleaseExe, references: baseReferences.Concat(new[] { reference2, pia2Reference }), targetFramework: TargetFramework.Empty);
50791
var piaCompilation = CreateCompilation(pia, options:
TestOptions
.ReleaseDll, targetFramework: TargetFramework.Net50);
50807
var compilation1 = CreateCompilation(consumer, options:
TestOptions
.ReleaseDll, references: new[] { reference }, targetFramework: TargetFramework.Net50);
50843
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.Net50);
50896
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.Net50);
50949
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.Net50);
50994
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.NetCoreApp);
51042
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
51043
parseOptions:
TestOptions
.RegularPreview,
51063
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
51064
parseOptions:
TestOptions
.RegularPreview,
51070
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugDll, references: new[] { reference },
51071
parseOptions:
TestOptions
.RegularPreview,
51220
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe,
51221
parseOptions:
TestOptions
.RegularPreview,
51230
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
51231
parseOptions:
TestOptions
.RegularPreview,
51237
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugExe, references: new[] { reference },
51238
parseOptions:
TestOptions
.RegularPreview,
51360
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
51361
parseOptions:
TestOptions
.RegularPreview,
51374
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
51375
parseOptions:
TestOptions
.RegularPreview,
51381
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugDll, references: new[] { reference },
51382
parseOptions:
TestOptions
.RegularPreview,
51501
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe,
51502
parseOptions:
TestOptions
.RegularPreview,
51511
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
51512
parseOptions:
TestOptions
.RegularPreview,
51518
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugExe, references: new[] { reference },
51519
parseOptions:
TestOptions
.RegularPreview,
51644
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
51645
parseOptions:
TestOptions
.RegularPreview,
51658
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
51659
parseOptions:
TestOptions
.RegularPreview,
51665
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugDll, references: new[] { reference },
51666
parseOptions:
TestOptions
.RegularPreview,
51784
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
51785
parseOptions:
TestOptions
.RegularPreview,
51798
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
51799
parseOptions:
TestOptions
.RegularPreview,
51805
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugDll, references: new[] { reference },
51806
parseOptions:
TestOptions
.RegularPreview,
51894
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe,
51895
parseOptions:
TestOptions
.RegularPreview,
51904
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
51905
parseOptions:
TestOptions
.RegularPreview,
51911
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugExe, references: new[] { reference },
51912
parseOptions:
TestOptions
.RegularPreview,
51959
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
51960
parseOptions:
TestOptions
.RegularPreview,
52014
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
52015
parseOptions:
TestOptions
.RegularPreview,
52079
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
52080
parseOptions:
TestOptions
.RegularPreview,
52137
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
52138
parseOptions:
TestOptions
.RegularPreview,
52202
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
52203
parseOptions:
TestOptions
.RegularPreview,
52257
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
52258
parseOptions:
TestOptions
.RegularPreview,
52338
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
52339
parseOptions:
TestOptions
.RegularPreview,
52408
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
52409
parseOptions: isStatic ?
TestOptions
.Regular10 :
TestOptions
.Regular7_3,
52432
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
52433
parseOptions:
TestOptions
.RegularPreview,
52497
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
52498
parseOptions:
TestOptions
.RegularPreview,
52503
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
52504
parseOptions:
TestOptions
.RegularPreview,
52510
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugDll, references: new[] { reference },
52511
parseOptions:
TestOptions
.RegularPreview,
52689
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe,
52690
parseOptions:
TestOptions
.RegularPreview,
52699
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
52700
parseOptions:
TestOptions
.RegularPreview,
52706
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugExe, references: new[] { reference },
52707
parseOptions:
TestOptions
.RegularPreview,
52854
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
52855
parseOptions:
TestOptions
.RegularPreview,
52860
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
52861
parseOptions:
TestOptions
.RegularPreview,
52867
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugDll, references: new[] { reference },
52868
parseOptions:
TestOptions
.RegularPreview,
53017
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe,
53018
parseOptions:
TestOptions
.RegularPreview,
53027
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
53028
parseOptions:
TestOptions
.RegularPreview,
53034
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugExe, references: new[] { reference },
53035
parseOptions:
TestOptions
.RegularPreview,
53192
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
53193
parseOptions:
TestOptions
.RegularPreview,
53198
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
53199
parseOptions:
TestOptions
.RegularPreview,
53206
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugDll, references: new[] { reference },
53207
parseOptions:
TestOptions
.RegularPreview,
53354
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
53355
parseOptions:
TestOptions
.RegularPreview,
53360
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
53361
parseOptions:
TestOptions
.RegularPreview,
53368
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugDll, references: new[] { reference },
53369
parseOptions:
TestOptions
.RegularPreview,
53486
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe,
53487
parseOptions:
TestOptions
.RegularPreview,
53496
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
53497
parseOptions:
TestOptions
.RegularPreview,
53503
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugExe, references: new[] { reference },
53504
parseOptions:
TestOptions
.RegularPreview,
53593
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
53594
parseOptions:
TestOptions
.RegularPreview,
53725
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
53726
parseOptions:
TestOptions
.RegularPreview,
53871
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
53872
parseOptions:
TestOptions
.RegularPreview,
54193
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
54194
parseOptions:
TestOptions
.RegularPreview,
54200
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
54201
parseOptions:
TestOptions
.RegularPreview,
54376
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net60);
54449
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net60);
54549
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net60);
54620
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net60);
54688
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net60);
54782
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net60);
54876
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net60);
54964
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net60);
57029
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
57030
parseOptions:
TestOptions
.RegularPreview,
57219
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
57220
parseOptions:
TestOptions
.Regular7_3,
57231
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
57232
parseOptions:
TestOptions
.Regular,
57260
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
57261
parseOptions:
TestOptions
.Regular10,
57272
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
57273
parseOptions:
TestOptions
.RegularPreview,
57304
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
57305
parseOptions:
TestOptions
.Regular7_3,
57313
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
57314
parseOptions:
TestOptions
.Regular,
57339
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
57340
parseOptions:
TestOptions
.Regular10,
57351
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
57352
parseOptions:
TestOptions
.RegularPreview,
57380
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
57381
parseOptions:
TestOptions
.Regular7_3,
57389
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
57390
parseOptions:
TestOptions
.Regular,
57415
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
57416
parseOptions:
TestOptions
.Regular10,
57427
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
57428
parseOptions:
TestOptions
.RegularPreview,
57475
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
57476
parseOptions:
TestOptions
.RegularPreview,
57481
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
57482
parseOptions:
TestOptions
.RegularPreview,
57488
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugDll, references: new[] { reference },
57489
parseOptions:
TestOptions
.RegularPreview,
57647
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe,
57648
parseOptions:
TestOptions
.RegularPreview,
57657
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
57658
parseOptions:
TestOptions
.RegularPreview,
57664
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugExe, references: new[] { reference },
57665
parseOptions:
TestOptions
.RegularPreview,
57805
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
57806
parseOptions:
TestOptions
.RegularPreview,
57811
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
57812
parseOptions:
TestOptions
.RegularPreview,
57818
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugDll, references: new[] { reference },
57819
parseOptions:
TestOptions
.RegularPreview,
57956
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe,
57957
parseOptions:
TestOptions
.RegularPreview,
57966
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
57967
parseOptions:
TestOptions
.RegularPreview,
57973
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugExe, references: new[] { reference },
57974
parseOptions:
TestOptions
.RegularPreview,
58119
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
58120
parseOptions:
TestOptions
.RegularPreview,
58125
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
58126
parseOptions:
TestOptions
.RegularPreview,
58132
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugDll, references: new[] { reference },
58133
parseOptions:
TestOptions
.RegularPreview,
58268
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
58269
parseOptions:
TestOptions
.RegularPreview,
58274
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
58275
parseOptions:
TestOptions
.RegularPreview,
58281
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugDll, references: new[] { reference },
58282
parseOptions:
TestOptions
.RegularPreview,
58388
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugExe,
58389
parseOptions:
TestOptions
.RegularPreview,
58398
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
58399
parseOptions:
TestOptions
.RegularPreview,
58405
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugExe, references: new[] { reference },
58406
parseOptions:
TestOptions
.RegularPreview,
58481
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
58482
parseOptions:
TestOptions
.RegularPreview,
58673
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
58674
parseOptions:
TestOptions
.RegularPreview,
59245
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
59246
parseOptions:
TestOptions
.RegularPreview,
59252
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
59253
parseOptions:
TestOptions
.RegularPreview,
59313
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
59314
parseOptions:
TestOptions
.RegularPreview,
59413
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
59414
parseOptions:
TestOptions
.Regular7_3,
59422
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
59423
parseOptions:
TestOptions
.Regular,
59448
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
59449
parseOptions:
TestOptions
.Regular10,
59460
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
59461
parseOptions:
TestOptions
.RegularPreview,
62197
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
62198
parseOptions:
TestOptions
.Regular7_3,
62209
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
62210
parseOptions:
TestOptions
.Regular,
62238
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
62239
parseOptions:
TestOptions
.Regular7_3,
62247
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
62248
parseOptions:
TestOptions
.Regular,
62273
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
62274
parseOptions:
TestOptions
.Regular7_3,
62282
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
62283
parseOptions:
TestOptions
.Regular,
62375
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.NetCoreApp);
62468
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.NetCoreApp);
62513
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.NetCoreApp);
62528
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular, targetFramework: TargetFramework.NetCoreApp);
62555
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
62556
parseOptions:
TestOptions
.Regular9,
62567
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
62568
parseOptions:
TestOptions
.Regular,
62705
foreach (var options in new[] {
TestOptions
.DebugDll,
TestOptions
.DebugWinMD })
62780
var comp = CreateCompilation(source, options:
TestOptions
.DebugWinMD, targetFramework: TargetFramework.NetCoreApp, references: new[] { CompilationExtensions.CreateWindowsRuntimeMetadataReference() });
62833
var comp = CreateCompilation(source, options:
TestOptions
.DebugWinMD, targetFramework: TargetFramework.NetCoreApp, references: new[] { CompilationExtensions.CreateWindowsRuntimeMetadataReference() });
63101
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net60);
63325
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net60);
63491
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net60);
63667
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net60);
63858
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.Net60);
64039
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net60);
64200
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net60);
64316
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net60);
64437
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net60);
64527
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net60);
64607
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.Net60);
64678
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net60);
64757
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.Net60);
64787
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
64788
parseOptions:
TestOptions
.Regular,
64813
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
64814
parseOptions:
TestOptions
.Regular,
64843
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
64844
parseOptions:
TestOptions
.Regular,
64873
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
64874
parseOptions:
TestOptions
.Regular,
64903
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
64904
parseOptions:
TestOptions
.Regular,
64922
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
64923
parseOptions:
TestOptions
.Regular,
64941
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
64942
parseOptions:
TestOptions
.Regular,
64967
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
64968
parseOptions:
TestOptions
.Regular,
64989
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
64990
parseOptions:
TestOptions
.Regular,
65019
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
65020
parseOptions:
TestOptions
.Regular,
65051
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
65052
parseOptions:
TestOptions
.Regular,
65077
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
65078
parseOptions:
TestOptions
.Regular,
65111
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
65112
parseOptions:
TestOptions
.Regular,
65158
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
65159
parseOptions:
TestOptions
.Regular,
65202
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
65203
parseOptions:
TestOptions
.Regular,
65246
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
65247
parseOptions:
TestOptions
.Regular,
65299
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
65300
parseOptions:
TestOptions
.Regular);
65351
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
65352
parseOptions:
TestOptions
.Regular);
65380
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
65381
parseOptions:
TestOptions
.Regular,
65425
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
65426
parseOptions:
TestOptions
.Regular,
65475
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
65476
parseOptions:
TestOptions
.Regular);
65520
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
65521
parseOptions:
TestOptions
.Regular);
65560
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
65561
parseOptions:
TestOptions
.Regular);
65606
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
65607
parseOptions:
TestOptions
.Regular);
65644
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
65645
parseOptions:
TestOptions
.Regular);
65689
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
65690
parseOptions:
TestOptions
.Regular);
65727
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
65728
parseOptions:
TestOptions
.Regular);
65772
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
65773
parseOptions:
TestOptions
.Regular);
65805
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
65806
parseOptions:
TestOptions
.Regular,
65846
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
65847
parseOptions:
TestOptions
.Regular,
65881
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
65882
parseOptions:
TestOptions
.Regular,
65923
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
65924
parseOptions:
TestOptions
.Regular,
65958
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
65959
parseOptions:
TestOptions
.Regular,
66000
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
66001
parseOptions:
TestOptions
.Regular,
66040
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
66041
parseOptions:
TestOptions
.Regular);
66079
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
66080
parseOptions:
TestOptions
.Regular);
66131
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
66132
parseOptions:
TestOptions
.Regular);
66175
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
66176
parseOptions:
TestOptions
.Regular,
66220
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
66221
parseOptions:
TestOptions
.Regular,
66256
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
66257
parseOptions:
TestOptions
.Regular,
66299
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
66300
parseOptions:
TestOptions
.Regular,
66331
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
66332
parseOptions:
TestOptions
.Regular,
66379
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
66380
parseOptions:
TestOptions
.Regular,
66410
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
66411
parseOptions:
TestOptions
.Regular,
66452
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
66453
parseOptions:
TestOptions
.Regular,
66523
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
66524
parseOptions:
TestOptions
.Regular,
66634
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
66635
parseOptions:
TestOptions
.Regular,
66745
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
66746
parseOptions:
TestOptions
.Regular,
66751
var compilation2 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugExe,
66752
parseOptions:
TestOptions
.Regular,
66804
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
66805
parseOptions:
TestOptions
.Regular,
66839
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
66840
parseOptions:
TestOptions
.Regular,
66870
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
66871
parseOptions:
TestOptions
.Regular,
66925
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
66926
parseOptions:
TestOptions
.Regular,
66931
var compilation2 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugExe,
66932
parseOptions:
TestOptions
.Regular,
66954
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
66955
parseOptions:
TestOptions
.Regular,
66991
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
66992
parseOptions:
TestOptions
.Regular8,
67003
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
67004
parseOptions:
TestOptions
.Regular9,
67032
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
67033
parseOptions:
TestOptions
.Regular8,
67044
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
67045
parseOptions:
TestOptions
.Regular9,
67096
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
67097
parseOptions:
TestOptions
.Regular8,
67108
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
67109
parseOptions:
TestOptions
.Regular9,
67129
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
67130
parseOptions:
TestOptions
.Regular,
67163
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
67164
parseOptions:
TestOptions
.Regular,
67199
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
67200
parseOptions:
TestOptions
.Regular,
67233
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
67234
parseOptions:
TestOptions
.Regular,
67274
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
67275
parseOptions:
TestOptions
.Regular,
67311
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
67312
parseOptions:
TestOptions
.Regular,
67347
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
67348
parseOptions:
TestOptions
.Regular,
67383
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
67384
parseOptions:
TestOptions
.Regular,
67420
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
67421
parseOptions:
TestOptions
.Regular,
67461
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
67462
parseOptions:
TestOptions
.Regular,
67499
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
67500
parseOptions:
TestOptions
.Regular,
67537
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
67538
parseOptions:
TestOptions
.Regular,
67574
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
67575
parseOptions:
TestOptions
.Regular,
67613
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
67614
parseOptions:
TestOptions
.Regular,
67655
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
67656
parseOptions:
TestOptions
.Regular,
67692
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
67693
parseOptions:
TestOptions
.Regular,
67710
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
67711
parseOptions:
TestOptions
.Regular,
67750
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
67751
parseOptions:
TestOptions
.Regular,
67792
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
67793
parseOptions:
TestOptions
.Regular,
67825
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
67826
parseOptions:
TestOptions
.Regular,
67864
var compilation1 = CreateEmptyCompilation(source1, options:
TestOptions
.DebugDll,
67865
parseOptions:
TestOptions
.Regular);
67895
var compilation1 = CreateEmptyCompilation(source1, options:
TestOptions
.DebugDll,
67896
parseOptions:
TestOptions
.Regular);
67930
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
67931
parseOptions:
TestOptions
.Regular,
67994
foreach (var parseOptions in new[] {
TestOptions
.Regular8,
TestOptions
.Regular9,
TestOptions
.Regular })
67996
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
68061
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
68062
parseOptions:
TestOptions
.Regular,
68159
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe, targetFramework: TargetFramework.Net60,
68160
parseOptions:
TestOptions
.RegularPreview);
68191
var compilation2 = CreateCompilation(source2, new[] { reference }, options:
TestOptions
.DebugExe,
68192
parseOptions:
TestOptions
.RegularPreview,
68485
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
68486
parseOptions:
TestOptions
.Regular10,
68529
var compilation3 = CreateCompilation(source3, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugDll,
68530
parseOptions:
TestOptions
.Regular10,
68548
var compilation4 = CreateCompilation(source4, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugDll,
68549
parseOptions:
TestOptions
.Regular10,
68554
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net50,
68555
parseOptions:
TestOptions
.RegularPreview, skipUsesIsNullable: true);
68593
options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net50,
68594
parseOptions:
TestOptions
.RegularPreview);
68606
options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net50,
68607
parseOptions:
TestOptions
.RegularPreview);
68682
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
68683
parseOptions:
TestOptions
.RegularPreview,
68688
var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options:
TestOptions
.DebugDll,
68689
parseOptions:
TestOptions
.RegularPreview,
68699
var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options:
TestOptions
.DebugDll,
68700
parseOptions:
TestOptions
.RegularPreview,
68843
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
68844
parseOptions:
TestOptions
.RegularPreview,
68859
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
68860
parseOptions:
TestOptions
.RegularPreview,
68866
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugDll, references: new[] { reference },
68867
parseOptions:
TestOptions
.RegularPreview,
68925
var compilation1 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
68926
parseOptions:
TestOptions
.RegularPreview,
68944
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
68945
parseOptions:
TestOptions
.RegularPreview,
68951
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugDll, references: new[] { reference },
68952
parseOptions:
TestOptions
.RegularPreview,
69045
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.Net60);
69321
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
69323
parseOptions:
TestOptions
.RegularPreview);
69389
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
69391
parseOptions:
TestOptions
.RegularPreview);
Symbols\EnumTests.cs (2)
388
comp = CreateCompilation(sourceC, references: new[] { refB }, options:
TestOptions
.ReleaseExe);
395
comp = CreateCompilation(sourceC, references: new[] { refB }, options:
TestOptions
.DebugExe);
Symbols\ExtendedPartialMethodsTests.cs (171)
29
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular8);
39
comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
52
var comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
71
var comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
87
var comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
115
var verifier = CompileAndVerify(new[] { text1, text2 }, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods, expectedOutput: "42");
128
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular8);
138
comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
151
var comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
170
var comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
186
var comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
215
var verifier = CompileAndVerify(new[] { text1, text2 }, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods, expectedOutput: "42");
241
var verifier = CompileAndVerify(new[] { text1, text2 }, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods, expectedOutput: "42");
265
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular8);
275
comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
288
var comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
305
var comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
322
var comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
339
var comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
355
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
367
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
380
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.Regular8);
390
comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
403
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
422
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
439
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
456
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
491
CompileAndVerify(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods, expectedOutput: "12").VerifyDiagnostics();
512
var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
538
var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
564
var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
586
var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
608
var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
629
var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
642
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.Regular8);
654
comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
669
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
692
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
713
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
742
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
765
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
791
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
812
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
839
var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
867
var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
894
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
911
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.Regular8);
920
comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
937
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
964
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
985
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
1006
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
1023
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
1040
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.Regular8);
1049
comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
1066
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
1092
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
1138
parseOptions:
TestOptions
.RegularWithExtendedPartialMethods,
1146
parseOptions:
TestOptions
.RegularWithExtendedPartialMethods,
1212
parseOptions:
TestOptions
.RegularWithExtendedPartialMethods,
1222
parseOptions:
TestOptions
.RegularWithExtendedPartialMethods,
1282
var comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
1314
var verifier = CompileAndVerify(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods, expectedOutput: "1");
1338
var comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
1364
var comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
1387
var comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
1416
var comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
1440
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.Regular8);
1449
comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
1466
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
1488
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
1513
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
1535
var comp = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
1576
parseOptions:
TestOptions
.RegularWithExtendedPartialMethods,
1577
options:
TestOptions
.DebugExe,
1612
parseOptions:
TestOptions
.RegularWithExtendedPartialMethods,
1613
options:
TestOptions
.DebugExe,
1644
var comp = CreateCompilation(new[] { text, AllowNullAttributeDefinition }, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
1678
var comp = CreateCompilation(new[] { text, AllowNullAttributeDefinition }, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
1714
var comp = CreateCompilation(new[] { text, AllowNullAttributeDefinition }, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
1735
var comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods, targetFramework: TargetFramework.NetCoreApp);
1755
var comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods, targetFramework: TargetFramework.NetCoreApp);
1782
var comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods, targetFramework: TargetFramework.NetCoreApp);
1812
var comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods, targetFramework: TargetFramework.NetCoreApp);
1856
var comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods, targetFramework: TargetFramework.NetCoreApp);
1913
var comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
1939
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular8);
1948
comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
1970
var comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
2005
var comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
2027
var comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
2057
parseOptions:
TestOptions
.RegularWithExtendedPartialMethods,
2084
parseOptions:
TestOptions
.RegularWithExtendedPartialMethods,
2088
var comp1 = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
2097
parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
2125
var comp = CreateCompilation(new[] { text1, text2 }, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
2154
parseOptions:
TestOptions
.RegularWithExtendedPartialMethods,
2179
var comp = CreateCompilation(new[] { text1, text2 }, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
2208
parseOptions:
TestOptions
.RegularWithExtendedPartialMethods,
2233
var comp1 = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
2243
parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
2273
parseOptions:
TestOptions
.RegularWithExtendedPartialMethods,
2277
var comp1 = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
2286
parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
2316
parseOptions:
TestOptions
.RegularWithExtendedPartialMethods,
2320
var comp1 = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
2329
parseOptions:
TestOptions
.RegularWithExtendedPartialMethods,
2357
parseOptions:
TestOptions
.RegularWithExtendedPartialMethods,
2361
var comp1 = CreateCompilation(text1, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
2370
parseOptions:
TestOptions
.RegularWithExtendedPartialMethods,
2388
parseOptions:
TestOptions
.RegularWithExtendedPartialMethods,
2389
options:
TestOptions
.DebugExe);
2415
parseOptions:
TestOptions
.RegularWithExtendedPartialMethods,
2416
options:
TestOptions
.DebugExe,
2436
parseOptions:
TestOptions
.RegularWithExtendedPartialMethods,
2437
options:
TestOptions
.DebugExe);
2464
parseOptions:
TestOptions
.RegularWithExtendedPartialMethods,
2465
options:
TestOptions
.DebugExe,
2496
var verifier = CompileAndVerify(source2, references: new[] { reference }, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
2556
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
2557
parseOptions:
TestOptions
.RegularWithExtendedPartialMethods,
2579
var comp = CreateCompilation(csharp, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
2632
var comp = CreateCompilationWithIL(source, il, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
2696
var comp = CreateCompilationWithIL(source, il, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
2726
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(5), parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
2732
comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(6), parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
2748
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
2770
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(5), parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
2773
comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(6), parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
2798
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(5), parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
2807
comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(6), parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
2834
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
2861
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
2891
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
2937
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
3001
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
3029
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
3054
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
3067
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
3083
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
3102
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(5), parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
3105
comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(6), parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
3129
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(5), parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
3132
comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(6), parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
3154
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
3210
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(5), parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
3234
comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(6), parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
3274
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
3293
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
3317
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(5));
3320
comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(6));
3355
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(5));
3373
comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(6));
3416
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(5));
3419
comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(6));
3457
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(5));
3460
comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(6));
3490
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods);
Symbols\ExtensionMethodTests.cs (17)
57
CompileAndVerify(source, validator: validator, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
1009
parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates).VerifyDiagnostics(
1138
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
1440
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
2258
var compilation = CompileAndVerify(source, parseOptions:
TestOptions
.Regular10, expectedOutput: "orange, apple");
2423
var tree = SyntaxFactory.ParseSyntaxTree(test, options:
TestOptions
.Script.WithLanguageVersion(LanguageVersion.CSharp6));
2427
options:
TestOptions
.DebugExe.WithScriptClassName("Script"),
2476
options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
2522
var compilation = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
2591
", options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All));
2842
var compilation2 = CreateCompilation(source2, references: new[] { new CSharpCompilationReference(compilation1) }, parseOptions:
TestOptions
.Regular8);
2861
compilation2 = CreateCompilation(source2, references: new[] { new CSharpCompilationReference(compilation1) }, parseOptions:
TestOptions
.Regular7);
3447
var compilation = CreateEmptyCompilation(source, new[] { MscorlibRef_v20 },
TestOptions
.ReleaseDll);
3800
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script);
3807
var parseOptions =
TestOptions
.Script;
4044
CompileAndVerify(source, validator: validator, options:
TestOptions
.ReleaseDll);
4074
CompileAndVerify(source, validator: validator, options:
TestOptions
.ReleaseDll);
Symbols\FunctionPointerTypeSymbolTests.cs (9)
23
return CreateCompilation(source, parseOptions:
TestOptions
.Regular9, options:
TestOptions
.UnsafeReleaseDll, targetFramework: targetFramework);
1053
var comp = CreateCompilationWithIL("", ilSource, parseOptions:
TestOptions
.Regular9);
1387
var comp = CreateCompilationWithIL(source, ilSource, options:
TestOptions
.UnsafeReleaseExe, parseOptions:
TestOptions
.Regular9);
1956
", options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular9);
2082
", options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular9);
Symbols\GenericConstraintTests.cs (30)
340
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
681
CreateCompilation(source, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods).VerifyDiagnostics(
1012
CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
1099
CreateCompilationWithMscorlib40(text, references: new[] { Net40.References.SystemCore }, parseOptions:
TestOptions
.WithoutImprovedOverloadCandidates).VerifyDiagnostics(
5633
CreateCompilation(source, options:
TestOptions
.ReleaseDll).VerifyDiagnostics();
5657
CreateCompilation(source, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
5689
compilationOptions:
TestOptions
.DebugDll);
5809
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
5833
CreateCompilation(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
5841
CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics();
6475
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
6477
CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
6498
CreateCompilation(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
6500
CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
6525
CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics();
6540
CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics();
6863
options:
TestOptions
.ReleaseExe);
6933
CompileAndVerify(source, options:
TestOptions
.DebugDll).VerifyDiagnostics(
6967
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.Regular11);
6974
compilation = CreateCompilation(source, parseOptions:
TestOptions
.Regular12);
7005
var compilation = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular12);
7011
compilation = CreateCompilation(source, parseOptions:
TestOptions
.Regular12);
7329
TestOptions
.ReleaseDll.WithPublicSign(true));
7335
TestOptions
.ReleaseDll.WithPublicSign(true));
Symbols\ImplicitClassTests.cs (2)
58
", parseOptions:
TestOptions
.Script);
84
", parseOptions:
TestOptions
.Script);
Symbols\IndexedPropertyTests.cs (4)
2505
var comp = CreateCompilationWithILAndMscorlib40(source, il, parseOptions:
TestOptions
.Regular10);
2585
var compilation = CreateCompilationWithILAndMscorlib40(source, il, options:
TestOptions
.ReleaseExe);
2706
var compilation2 = CreateCompilationWithMscorlib40AndSystemCore(source2, new[] { reference1, CSharpRef },
TestOptions
.ReleaseExe);
2765
var compilation2 = CreateCompilationWithMscorlib40AndSystemCore(source2, new[] { reference1, CSharpRef },
TestOptions
.ReleaseExe);
Symbols\IndexerTests.cs (4)
70
options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
846
CreateCompilation(source, parseOptions:
TestOptions
.Regular7_1).VerifyDiagnostics(
1788
CreateCompilation(source, parseOptions:
TestOptions
.Regular7, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics(
1903
CreateCompilation(source, parseOptions:
TestOptions
.Regular7, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics(
Symbols\InterfaceImplementationTests.cs (7)
969
options:
TestOptions
.ReleaseDll);
975
options:
TestOptions
.ReleaseDll);
1892
var comp1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll, assemblyName: "asm1");
1896
var comp2 = CreateCompilation(source2, new[] { ref1 }, options:
TestOptions
.ReleaseDll, assemblyName: "asm2");
2205
var comp = CreateCompilationWithILAndMscorlib40(source, il, options:
TestOptions
.ReleaseExe);
2449
var comp = CreateCompilationWithILAndMscorlib40(source, il, options:
TestOptions
.DebugExe);
2703
comp = CreateCompilation(new[] { source2, source3 }, references: new[] { ref0, ref1 }, options:
TestOptions
.ReleaseExe);
Symbols\Metadata\MetadataMemberTests.cs (11)
619
var comp1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll);
659
var comp1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll);
691
var options =
TestOptions
.DebugDll;
733
options =
TestOptions
.DebugDll;
773
var options =
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.Internal);
776
options =
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All);
779
options =
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.Public);
782
options =
TestOptions
.DebugDll.WithMetadataImportOptions((MetadataImportOptions)byte.MaxValue);
796
var compilation = CreateCompilation("", options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.Internal), references: new[] { compilation0.EmitToImageReference() });
803
compilation = compilation.WithOptions(
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
810
compilation = compilation.WithOptions(
TestOptions
.DebugDll.WithMetadataImportOptions((MetadataImportOptions)byte.MaxValue));
Symbols\Metadata\MetadataTypeTests.cs (3)
117
var compilation = CreateEmptyCompilation(text, new[] { MscorlibRef }, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
217
options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
284
options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
Symbols\Metadata\PE\BaseTypeResolution.cs (3)
337
var compilation1 = CreateCompilation(compilationDef1, new MetadataReference[] { crossRefLib },
TestOptions
.ReleaseDll);
357
var compilation2 = CreateCompilation(compilationDef2, new MetadataReference[] { crossRefModule1, crossRefModule2 },
TestOptions
.ReleaseDll);
369
var compilation3 = CreateCompilation(compilationDef2, new MetadataReference[] { crossRefModule2 },
TestOptions
.ReleaseDll);
Symbols\Metadata\PE\DynamicTransformsTests.cs (1)
554
var compilation = CreateCompilationWithILAndMscorlib40(source, il, options:
TestOptions
.ReleaseExe);
Symbols\Metadata\PE\LoadingEvents.cs (3)
468
var comp = CreateCompilation("", new[] { reference },
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
521
var comp = CreateCompilation("", new[] { ilRef },
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
581
var comp = CreateCompilation("", new[] { ilRef },
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
Symbols\Metadata\PE\LoadingFields.cs (2)
29
options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
140
var compilation = CreateCompilationWithILAndMscorlib40(text, il, options:
TestOptions
.DebugExe);
Symbols\Metadata\PE\LoadingMetadataTokens.cs (1)
40
parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute());
Symbols\Metadata\PE\LoadingMethods.cs (1)
36
options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
Symbols\Metadata\PE\NoPia.cs (6)
1382
var compilationPIA = CreateCompilation(sourcePIA, options:
TestOptions
.DebugDll);
1388
var compilationBase = CreateCompilation(sourceBase, new[] { referencePIASource },
TestOptions
.DebugDll);
1403
var compilationDerived1 = CreateCompilation(sourceDerived, new[] { referencePIASource, referenceBaseSource },
TestOptions
.DebugDll);
1406
var compilationDerived2 = CreateCompilation(sourceDerived, new[] { referencePIAImage, referenceBaseSource },
TestOptions
.DebugDll);
1409
var compilationDerived3 = CreateCompilation(sourceDerived, new[] { referencePIASource, referenceBaseImage },
TestOptions
.DebugDll);
1412
var compilationDerived4 = CreateCompilation(sourceDerived, new[] { referencePIAImage, referenceBaseImage },
TestOptions
.DebugDll);
Symbols\Metadata\PE\TypeForwarders.cs (24)
1462
var comp1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll, assemblyName: "Asm1");
1466
var comp2 = CreateCompilation(source2, new[] { ref1 }, options:
TestOptions
.ReleaseDll, assemblyName: "Asm2");
1537
var bitsA = CreateCompilation(moduleA, options:
TestOptions
.ReleaseDll, assemblyName: "asm2").EmitToArray();
1541
var bitsB = CreateCompilation(moduleB, new[] { refA },
TestOptions
.ReleaseExe, assemblyName: "test").EmitToArray();
1544
var bits0 = CreateCompilation(module0, options:
TestOptions
.ReleaseModule, assemblyName: "asm0").EmitToArray();
1548
var bits1 = CreateCompilation(module1, new[] { ref0 }, options:
TestOptions
.ReleaseDll, assemblyName: "asm1").EmitToArray();
1552
var bits2 = CreateCompilation(module2, new[] { ref1 }, options:
TestOptions
.ReleaseDll, assemblyName: "asm2").EmitToArray();
1611
var forwardedTypesCompilation = CreateCompilation(forwardedTypes, options:
TestOptions
.ReleaseDll, assemblyName: "ForwarderTargetAssembly");
1618
var modCompilation = CreateCompilation(mod, references: new[] { new CSharpCompilationReference(forwardedTypesCompilation) }, options:
TestOptions
.ReleaseModule);
1628
var appCompilation = CreateCompilation(app, references: new[] { modRef1, new CSharpCompilationReference(forwardedTypesCompilation) }, options:
TestOptions
.ReleaseDll);
1684
appCompilation = CreateCompilation(app, references: new MetadataReference[] { modRef2, new CSharpCompilationReference(forwardedTypesCompilation) }, options:
TestOptions
.ReleaseDll);
1706
appCompilation = CreateCompilation(app, references: new[] { modRef1, new CSharpCompilationReference(forwardedTypesCompilation) }, options:
TestOptions
.ReleaseModule);
1715
appCompilation = CreateCompilation(app, references: new[] { modRef1 }, options:
TestOptions
.ReleaseDll);
1727
var comp0 = CreateCompilation(source0, options:
TestOptions
.ReleaseModule, assemblyName: "asm0");
1731
var comp1 = CreateCompilation(source1, new[] { ref0 }, options:
TestOptions
.ReleaseDll, assemblyName: "asm1");
1738
var comp2 = CreateCompilation(source2, new[] { ref1 }, options:
TestOptions
.ReleaseDll, assemblyName: "asm2");
1827
", options:
TestOptions
.ReleaseDll, assemblyName: "A");
1833
", new[] { new CSharpCompilationReference(cA_v1) }, options:
TestOptions
.ReleaseDll, assemblyName: "B");
1841
", options:
TestOptions
.ReleaseDll, assemblyName: "C");
1847
", new[] { new CSharpCompilationReference(cC_v1) }, options:
TestOptions
.ReleaseDll, assemblyName: "A");
1853
", new[] { new CSharpCompilationReference(cC_v1) }, options:
TestOptions
.ReleaseModule, assemblyName: "D");
1857
var cA_v3 = CreateCompilation(@"", new[] { cD_ImageRef, new CSharpCompilationReference(cC_v1) }, options:
TestOptions
.ReleaseDll, assemblyName: "A");
1863
", options:
TestOptions
.ReleaseDll, assemblyName: "C");
1891
var context = CreateCompilation("", new[] { r1, r2, r3 }, options:
TestOptions
.ReleaseDll);
Symbols\MissingSpecialMember.cs (8)
37
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
69
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
101
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll);
124
var comp = CreateEmptyCompilation(source, new[] { Net40.References.mscorlib }, options:
TestOptions
.ReleaseDll);
485
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
508
var parseOptions =
TestOptions
.Regular.WithNoRefSafetyRulesAttribute();
1134
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.DebugExe);
2386
var compilation = CreateCompilationWithMscorlib461(source, options:
TestOptions
.ReleaseExe);
Symbols\ModuleInitializers\AccessibilityTests.cs (1)
17
private static readonly CSharpParseOptions s_parseOptions =
TestOptions
.Regular9;
Symbols\ModuleInitializers\GenericsTests.cs (1)
16
private static readonly CSharpParseOptions s_parseOptions =
TestOptions
.Regular9;
Symbols\ModuleInitializers\IgnoredTests.cs (11)
36
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
62
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
88
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
113
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
138
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
163
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
188
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
213
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
234
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
255
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
288
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
Symbols\ModuleInitializers\ModuleInitializersTests.cs (15)
23
private static readonly CSharpParseOptions s_parseOptions =
TestOptions
.Regular9;
39
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.Regular8);
62
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
90
options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
125
options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
219
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
502
options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
552
options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
598
options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
651
options:
TestOptions
.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All),
778
options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
815
var moduleOptions =
TestOptions
.ReleaseModule.WithMetadataImportOptions(MetadataImportOptions.All);
852
var exeOptions =
TestOptions
.ReleaseExe
1066
var exeOptions =
TestOptions
.ReleaseExe
1154
options:
TestOptions
.ReleaseExe,
Symbols\ModuleInitializers\SignatureTests.cs (1)
17
private static readonly CSharpParseOptions s_parseOptions =
TestOptions
.Regular9;
Symbols\ModuleInitializers\TargetsTests.cs (1)
16
private static readonly CSharpParseOptions s_parseOptions =
TestOptions
.Regular9;
Symbols\OverriddenOrHiddenMembersTests.cs (15)
1186
options:
TestOptions
.ReleaseDll);
1227
options:
TestOptions
.ReleaseDll);
1255
CreateCompilation(text1, references: refs, options:
TestOptions
.ReleaseDll).VerifyDiagnostics();
1269
CreateCompilation(text1, references: refs, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
1317
CreateCompilation(text1, references: refs, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
1416
CreateCompilation(text1, references: refs, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
1551
CreateCompilation(text1, references: refs, options:
TestOptions
.ReleaseDll).VerifyDiagnostics();
1565
CreateCompilation(text1, references: refs, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
1615
CreateCompilation(text1, references: refs, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
2828
var comp = CreateCompilation(csharp, new[] { ref1 }, options:
TestOptions
.ReleaseExe);
3681
var compilation = CreateCompilation(text, options:
TestOptions
.ReleaseExe);
3753
var compilation = CreateCompilation(text, options:
TestOptions
.ReleaseExe);
3813
var compilation = CreateCompilation(text, options:
TestOptions
.ReleaseExe);
3879
var compilation = CreateCompilation(text, options:
TestOptions
.ReleaseExe);
3937
var compilation = CreateCompilation(text, options:
TestOptions
.ReleaseExe);
Symbols\PartialPropertiesTests.cs (10)
832
CompileAndVerify(source, parseOptions:
TestOptions
.RegularPreview.WithNoRefSafetyRulesAttribute(), assemblyValidator: (assembly) =>
1143
var comp1 = CreateCompilation([], options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), references: [reference]);
1190
var comp1 = CreateCompilation([], options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), references: [reference]);
1624
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable));
1639
comp = CreateCompilation(source, options:
TestOptions
.DebugDll.WithNullableContextOptions(NullableContextOptions.Annotations));
2004
var verifier = CompileAndVerify(source, options:
TestOptions
.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: "1");
2036
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll);
2075
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll);
4852
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular13);
4855
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular12);
Symbols\PEParameterSymbolTests.cs (2)
92
var compilation = CreateCompilationWithMscorlib461(source, new[] { vbComp }, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular);
Symbols\RelaxedShiftOperatorTests.cs (20)
47
var compilation1 = CreateCompilation(source0 + source1, options:
TestOptions
.DebugExe,
48
parseOptions:
TestOptions
.RegularPreview);
51
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll,
52
parseOptions:
TestOptions
.RegularPreview);
54
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugExe, references: new[] { compilation0.ToMetadataReference() },
55
parseOptions:
TestOptions
.RegularPreview);
59
var compilation3 = CreateCompilation(source1, options:
TestOptions
.DebugExe, references: new[] { compilation0.EmitToImageReference() },
60
parseOptions:
TestOptions
.RegularPreview);
92
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
93
parseOptions:
TestOptions
.RegularPreview);
136
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.NetCoreApp,
137
parseOptions:
TestOptions
.RegularPreview);
180
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.NetCoreApp,
181
parseOptions:
TestOptions
.RegularPreview);
224
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.NetCoreApp,
225
parseOptions:
TestOptions
.RegularPreview);
268
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.NetCoreApp,
269
parseOptions:
TestOptions
.RegularPreview);
312
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: TargetFramework.NetCoreApp,
313
parseOptions:
TestOptions
.RegularPreview);
Symbols\RequiredMembersTests.cs (9)
203
", options:
TestOptions
.UnsafeReleaseDll);
235
var comp = CreateCompilationWithRequiredMembers(code, parseOptions:
TestOptions
.Regular10);
246
comp = CreateCompilationWithRequiredMembers(code, parseOptions:
TestOptions
.Regular11);
315
var comp = CreateCompilationWithRequiredMembers(code, parseOptions: use10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
376
comp = CreateCompilationWithRequiredMembers(code, parseOptions: use10 ?
TestOptions
.Regular10 :
TestOptions
.Regular11);
6280
""", new[] { reference }, parseOptions:
TestOptions
.Script.WithLanguageVersion(LanguageVersion.Preview));
6299
""", new[] { reference }, parseOptions:
TestOptions
.Script.WithLanguageVersion(LanguageVersion.Preview));
Symbols\Retargeting\NoPia.cs (74)
283
var LocalTypes1 = CreateEmptyCompilation(s_sourceLocalTypes1_IL, new[] { MscorlibRef }, options:
TestOptions
.ReleaseDll, assemblyName: "LocalTypes1");
286
var LocalTypes2 = CreateEmptyCompilation(s_sourceLocalTypes2_IL, new[] { MscorlibRef }, options:
TestOptions
.ReleaseDll, assemblyName: "LocalTypes2");
352
var LocalTypes1 = CreateCompilationWithMscorlib40(s_sourceLocalTypes1_IL, options:
TestOptions
.ReleaseDll, assemblyName: "LocalTypes1");
355
var LocalTypes2 = CreateCompilationWithMscorlib40(s_sourceLocalTypes2_IL, options:
TestOptions
.ReleaseDll, assemblyName: "LocalTypes2");
649
var LocalTypes1 = CreateCompilation(s_sourceLocalTypes1, options:
TestOptions
.ReleaseDll, assemblyName: "LocalTypes1",
654
var LocalTypes2 = CreateCompilation(s_sourceLocalTypes2, options:
TestOptions
.ReleaseDll, assemblyName: "LocalTypes2",
950
var Pia1 = CreateCompilation(s_sourcePia1, options:
TestOptions
.ReleaseDll, assemblyName: "Pia1", targetFramework: TargetFramework.Standard);
953
var LocalTypes1 = CreateCompilation(s_sourceLocalTypes1, options:
TestOptions
.ReleaseDll, assemblyName: "LocalTypes1",
958
var LocalTypes2 = CreateCompilation(s_sourceLocalTypes2, options:
TestOptions
.ReleaseDll, assemblyName: "LocalTypes2",
1258
var LocalTypes1 = CreateCompilation(s_sourceLocalTypes1_IL, options:
TestOptions
.ReleaseDll, assemblyName: "LocalTypes1");
1283
var LocalTypes1 = CreateCompilation(s_sourceLocalTypes1, options:
TestOptions
.ReleaseDll, assemblyName: "LocalTypes1",
1308
var Pia1 = CreateCompilation(s_sourcePia1, options:
TestOptions
.ReleaseDll, assemblyName: "Pia1");
1313
var LocalTypes1 = CreateCompilation(s_sourceLocalTypes1, options:
TestOptions
.ReleaseDll, assemblyName: "LocalTypes1",
1335
var LocalTypes3 = CreateCompilation(s_sourceLocalTypes3_IL, options:
TestOptions
.ReleaseDll, assemblyName: "LocalTypes3");
1405
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.ReleaseDll, assemblyName: "comp");
1451
var comp = CreateCompilationWithMscorlib46(source, options:
TestOptions
.ReleaseDll, assemblyName: "comp");
1490
var pia = CreateCompilationWithMscorlib46(piaSource, options:
TestOptions
.ReleaseDll, assemblyName: "pia");
1532
var comp1 = CreateCompilationWithMscorlib46(source, options:
TestOptions
.ReleaseDll,
1536
var comp2 = CreateCompilationWithMscorlib46(source, options:
TestOptions
.ReleaseDll,
1571
var pia = CreateCompilation(piaSource, options:
TestOptions
.ReleaseDll, assemblyName: "pia");
1586
var comp1 = CreateCompilation(source, options:
TestOptions
.ReleaseDll,
1590
var comp2 = CreateCompilation(source, options:
TestOptions
.ReleaseDll,
1624
var pia = CreateCompilation(piaSource, options:
TestOptions
.ReleaseDll, assemblyName: "pia");
1639
var comp1 = CreateCompilation(source, options:
TestOptions
.ReleaseDll,
1643
var comp2 = CreateCompilation(source, options:
TestOptions
.ReleaseDll,
1668
var pia = CreateCompilation(piaSource, options:
TestOptions
.ReleaseDll, assemblyName: "pia");
1681
var comp1 = CreateCompilation(source, options:
TestOptions
.ReleaseDll,
1685
var comp2 = CreateCompilation(source, options:
TestOptions
.ReleaseDll,
1718
var pia = CreateCompilation(piaSource, options:
TestOptions
.ReleaseDll, assemblyName: "pia");
1736
var comp1 = CreateCompilation(source, options:
TestOptions
.ReleaseDll,
1740
var comp2 = CreateCompilation(source, options:
TestOptions
.ReleaseDll,
1773
var pia = CreateCompilationWithMscorlib46(piaSource, options:
TestOptions
.ReleaseDll, assemblyName: "pia");
1776
var lib = CreateCompilationWithMscorlib46(libSource, options:
TestOptions
.ReleaseDll, references: new[] { pia.ToMetadataReference() });
1804
var comp1 = CreateCompilationWithMscorlib46(source, options:
TestOptions
.ReleaseDll,
1808
var comp2 = CreateCompilationWithMscorlib46(source, options:
TestOptions
.ReleaseDll,
1826
var pia = CreateCompilationWithMscorlib46(piaSource, options:
TestOptions
.ReleaseDll, assemblyName: "pia");
1849
var comp1 = CreateCompilationWithMscorlib46(source, options:
TestOptions
.ReleaseDll,
1866
var comp2 = CreateCompilationWithMscorlib46(source, options:
TestOptions
.ReleaseDll,
1887
var LocalTypes3 = CreateCompilation(s_sourceLocalTypes3, options:
TestOptions
.ReleaseDll, assemblyName: "LocalTypes3",
1934
var Pia1 = CreateCompilation(s_sourcePia1, options:
TestOptions
.ReleaseDll, assemblyName: "Pia1");
1937
var LocalTypes3 = CreateCompilation(s_sourceLocalTypes3, options:
TestOptions
.ReleaseDll, assemblyName: "LocalTypes3",
2015
var localTypes2 = CreateCompilation(source, options:
TestOptions
.ReleaseDll, assemblyName: "LocalTypes2");
2041
var pia = CreateCompilation(piaSource, options:
TestOptions
.ReleaseDll, assemblyName: "Pia");
2046
var compilation = CreateCompilation("", options:
TestOptions
.ReleaseDll,
2061
compilation = CreateCompilation("", options:
TestOptions
.ReleaseDll,
2076
compilation = CreateCompilation("", options:
TestOptions
.ReleaseDll,
2091
compilation = CreateCompilation("", options:
TestOptions
.ReleaseDll,
2140
var localTypes2 = CreateCompilation(source, options:
TestOptions
.ReleaseDll, assemblyName: "LocalTypes2");
2166
var pia = CreateCompilation(piaSource, options:
TestOptions
.ReleaseDll, assemblyName: "Pia");
2171
var compilation = CreateCompilation("", options:
TestOptions
.ReleaseDll,
2186
compilation = CreateCompilation("", options:
TestOptions
.ReleaseDll,
2201
compilation = CreateCompilation("", options:
TestOptions
.ReleaseDll,
2216
compilation = CreateCompilation("", options:
TestOptions
.ReleaseDll,
2265
var localTypes2 = CreateCompilation(source, options:
TestOptions
.ReleaseDll, assemblyName: "LocalTypes2");
2291
var pia = CreateCompilation(piaSource, options:
TestOptions
.ReleaseDll, assemblyName: "Pia");
2296
var compilation = CreateCompilation("", options:
TestOptions
.ReleaseDll,
2311
compilation = CreateCompilation("", options:
TestOptions
.ReleaseDll,
2326
compilation = CreateCompilation("", options:
TestOptions
.ReleaseDll,
2341
compilation = CreateCompilation("", options:
TestOptions
.ReleaseDll,
2381
var pia = CreateCompilation(piaSource, options:
TestOptions
.ReleaseDll, assemblyName: "Pia");
2403
var localTypes2 = CreateCompilation(source, options:
TestOptions
.ReleaseDll, assemblyName: "LocalTypes2",
2408
var compilation = CreateCompilation("", options:
TestOptions
.ReleaseDll,
2423
compilation = CreateCompilation("", options:
TestOptions
.ReleaseDll,
2473
var localTypes2 = CreateCompilation(source, options:
TestOptions
.ReleaseDll, assemblyName: "LocalTypes2");
2499
var pia = CreateCompilation(piaSource, options:
TestOptions
.ReleaseDll, assemblyName: "Pia");
2504
var compilation = CreateCompilation("", options:
TestOptions
.ReleaseDll,
2519
compilation = CreateCompilation("", options:
TestOptions
.ReleaseDll,
2534
compilation = CreateCompilation("", options:
TestOptions
.ReleaseDll,
2549
compilation = CreateCompilation("", options:
TestOptions
.ReleaseDll,
2586
var pia1 = CreateCompilation(piaSource, options:
TestOptions
.ReleaseDll, assemblyName: "Pia1");
2599
var module1 = CreateCompilation(moduleSource, options:
TestOptions
.ReleaseModule, assemblyName: "Module1",
2602
var multiModule = CreateCompilation("", options:
TestOptions
.ReleaseDll,
2617
var consumer = CreateCompilation(consumerSource, options:
TestOptions
.ReleaseDll,
2641
var piaCompilation = CreateEmptyCompilation(pia, references: [Net40.References.mscorlib], options:
TestOptions
.DebugDll, assemblyName: "Pia");
Symbols\Retargeting\RetargetCustomAttributes.cs (8)
69
var compilation1 = CSharpCompilation.Create("C1", new[] { Parse(source) }, new[] { OldMsCorLib },
TestOptions
.ReleaseDll);
338
var comp1 = CreateCompilation(source1, options:
TestOptions
.DebugDll);
346
var comp2 = CreateCompilation(source2, references: new[] { comp1.ToMetadataReference() }, options:
TestOptions
.DebugDll);
347
var comp3 = CreateCompilation("", references: new[] { comp2.ToMetadataReference() }, options:
TestOptions
.DebugDll);
368
var comp1_1 = CreateCompilation(source1_1, options:
TestOptions
.DebugDll, assemblyName: "Lib65048");
376
var comp2 = CreateCompilation(source2, references: new[] { comp1_1.ToMetadataReference() }, options:
TestOptions
.DebugDll);
387
var comp1_2 = CreateCompilation(source1_2, options:
TestOptions
.DebugDll, assemblyName: "Lib65048");
389
var comp3 = CreateCompilation("", references: new[] { comp2.ToMetadataReference(), comp1_2.ToMetadataReference() }, options:
TestOptions
.DebugDll);
Symbols\Retargeting\RetargetingTests.cs (8)
730
var comp1 = CreateEmptyCompilation(source, new[] { MscorlibRef_v20 },
TestOptions
.ReleaseDll);
735
var comp2 = CreateEmptyCompilation("", new[] { MscorlibRef_v4_0_30316_17626, new CSharpCompilationReference(comp1) },
TestOptions
.ReleaseDll);
975
}}", new[] { retargeted1Ref, consistentRef, ilRef }, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular9, targetFramework: TargetFramework.Standard);
980
options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular9,
1065
var finalComp = CreateEmptyCompilation(@"C.M(1);", options:
TestOptions
.ReleaseExe, references: new[] { afterRetargeting.ToMetadataReference(), unmanagedCallersOnlyAssembly.ToMetadataReference() });
1142
var finalComp = CreateEmptyCompilation(@"C.M(1);", options:
TestOptions
.ReleaseExe, references: new[] { afterRetargeting.ToMetadataReference(), unmanagedCallersOnlyAssembly.ToMetadataReference() });
Symbols\Source\BaseClassTests.cs (4)
2281
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular11);
2318
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular12);
2339
comp = CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular12);
Symbols\Source\ClsComplianceTests.cs (54)
397
CreateCompilation(source, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
405
CreateCompilation(source, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
442
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
495
var lib1 = CreateCompilation(libSource1, assemblyName: "lib1", parseOptions:
TestOptions
.Regular11).EmitToImageReference();
496
var lib2 = CreateCompilation(libSource2, assemblyName: "lib2", parseOptions:
TestOptions
.Regular11).EmitToImageReference();
497
var lib3 = CreateCompilation(libSource3, assemblyName: "lib3", parseOptions:
TestOptions
.Regular11).EmitToImageReference();
499
CreateCompilation(source, new[] { lib1, lib2, lib3 },
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
561
var lib1 = CreateCompilation(libSource1, assemblyName: "lib1", options:
TestOptions
.UnsafeDebugDll).EmitToImageReference();
562
var lib2 = CreateCompilation(libSource2, assemblyName: "lib2", options:
TestOptions
.UnsafeDebugDll).EmitToImageReference();
563
var lib3 = CreateCompilation(libSource3, assemblyName: "lib3", options:
TestOptions
.UnsafeDebugDll).EmitToImageReference();
565
CreateCompilation(source, new[] { lib1, lib2, lib3 },
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
586
CreateCompilation(source, new[] { lib1, lib2, lib3 },
TestOptions
.ReleaseDll).VerifyDiagnostics(
644
var compCompliant = CreateCompilationWithMscorlib46(source, new[] { libCompliant },
TestOptions
.ReleaseDll);
652
var compNotCompliant = CreateCompilationWithMscorlib46(source, new[] { libNotCompliant },
TestOptions
.ReleaseDll);
689
CreateCompilation(source, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
736
CreateCompilation(source, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
762
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
810
CreateCompilation(source, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
840
CreateCompilation(source, options:
TestOptions
.ReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
849
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics();
1181
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
1228
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
1271
CreateCompilation(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
1364
CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithNullableContextOptions(nullableContextOptions)).VerifyDiagnostics(
2366
var trueModuleRef = CreateCompilation("[assembly:System.CLSCompliant(true)][module:System.CLSCompliant(true)]", options:
TestOptions
.ReleaseModule, assemblyName: "true").EmitToImageReference();
2367
var falseModuleRef = CreateCompilation("[assembly:System.CLSCompliant(false)][module:System.CLSCompliant(false)]", options:
TestOptions
.ReleaseModule, assemblyName: "false").EmitToImageReference();
2368
var noneModuleRef = CreateCompilation("", options:
TestOptions
.ReleaseModule, assemblyName: "none").EmitToImageReference();
2401
var trueModuleRef = CreateCompilation("[assembly:System.CLSCompliant(true)]", options:
TestOptions
.ReleaseModule, assemblyName: "true").EmitToImageReference();
2402
var falseModuleRef = CreateCompilation("[assembly:System.CLSCompliant(false)]", options:
TestOptions
.ReleaseModule, assemblyName: "false").EmitToImageReference();
2403
var noneModuleRef = CreateCompilation("", options:
TestOptions
.ReleaseModule, assemblyName: "none").EmitToImageReference();
2434
var trueModuleRef = CreateCompilation("[assembly:System.CLSCompliant(true)][module:System.CLSCompliant(true)]", options:
TestOptions
.ReleaseModule, assemblyName: "true").EmitToImageReference();
2435
var falseModuleRef = CreateCompilation("[assembly:System.CLSCompliant(false)][module:System.CLSCompliant(false)]", options:
TestOptions
.ReleaseModule, assemblyName: "false").EmitToImageReference();
2935
CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
2996
CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
3017
CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
3038
CreateCompilation(source, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
3314
var comp = CreateEmptyCompilation(source, WinRtRefs, options:
TestOptions
.ReleaseWinMD);
3496
var parseOptions =
TestOptions
.Regular7;
3866
var comp1 = CreateCompilation(source1, options:
TestOptions
.ReleaseModule);
3879
var comp2 = CreateCompilation(source2, new[] { comp1.EmitToImageReference() },
TestOptions
.ReleaseDll.WithConcurrentBuild(false));
3885
comp2.WithOptions(
TestOptions
.ReleaseDll.WithConcurrentBuild(true)).VerifyDiagnostics(
3890
var comp3 = comp2.WithOptions(
TestOptions
.ReleaseModule.WithConcurrentBuild(false));
3896
comp3.WithOptions(
TestOptions
.ReleaseModule.WithConcurrentBuild(true)).VerifyDiagnostics(
Symbols\Source\CustomModifierCopyTests.cs (1)
881
options:
TestOptions
.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All),
Symbols\Source\DelegateTests.cs (2)
321
CreateCompilation(text, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
822
var tree = SyntaxFactory.ParseSyntaxTree(source, options:
TestOptions
.Regular);
Symbols\Source\EventTests.cs (2)
1348
CreateCompilation(text, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1356
CreateCompilation(text, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
Symbols\Source\ExpressionBodiedMethodTests.cs (3)
91
}", parseOptions:
TestOptions
.Regular7, targetFramework: TargetFramework.NetCoreApp);
340
}", options:
TestOptions
.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.Internal));
369
}", options:
TestOptions
.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.Internal));
Symbols\Source\ExpressionBodiedPropertyTests.cs (3)
52
}", parseOptions:
TestOptions
.Regular7, targetFramework: TargetFramework.NetCoreApp);
444
}", options:
TestOptions
.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.Internal));
463
}", options:
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
Symbols\Source\ExternAliasTests.cs (8)
37
var comp = CreateCompilation(src, assemblyName: "Goo1", options:
TestOptions
.ReleaseDll);
62
var comp = CreateCompilation(src, assemblyName: "Goo2", options:
TestOptions
.ReleaseDll);
100
var comp = CreateCompilationWithMscorlib461(src, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Script);
112
syntaxTree: SyntaxFactory.ParseSyntaxTree(src, options:
TestOptions
.Script),
214
var comp = CreateCompilation(src, assemblyName: "Baz.dll", options:
TestOptions
.ReleaseDll);
229
comp = CreateCompilation(src, assemblyName: "Bar.dll", options:
TestOptions
.ReleaseDll);
316
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseDll);
Symbols\Source\FieldTests.cs (4)
28
CreateCompilation(text, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
44
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular9);
276
CreateCompilationWithMscorlib46(source, parseOptions:
TestOptions
.Regular).VerifyDiagnostics(
341
CreateCompilationWithMscorlib46(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics(
Symbols\Source\FileModifierTests.cs (33)
35
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
55
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
81
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
114
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular10);
730
var verifier = CompileAndVerify(SyntaxFactory.ParseSyntaxTree(source, options:
TestOptions
.RegularPreview, path: "path/to/MyFile.cs", encoding: Encoding.Default), expectedOutput: "1", symbolValidator: symbolValidator);
773
var verifier = CompileAndVerify(SyntaxFactory.ParseSyntaxTree(source, options:
TestOptions
.RegularPreview, path: "path/to/My<>File.cs", encoding: Encoding.Default), expectedOutput: "1", symbolValidator: symbolValidator);
804
var verifier = CompileAndVerify(SyntaxFactory.ParseSyntaxTree(source, options:
TestOptions
.RegularPreview, path: "path/to/MyGeneratedFile.g.cs", encoding: Encoding.Default), expectedOutput: "1", symbolValidator: symbolValidator);
834
var options =
TestOptions
.DebugDll.WithDeterministic(true);
874
""", options:
TestOptions
.RegularPreview, path: path, encoding: Encoding.Default);
875
var source2 = SyntaxFactory.ParseSyntaxTree("", options:
TestOptions
.RegularPreview, path: path, encoding: Encoding.Default);
909
""", options:
TestOptions
.RegularPreview, path: path, encoding: Encoding.Default);
919
""", options:
TestOptions
.RegularPreview, path: path, encoding: Encoding.Default);
956
""", options:
TestOptions
.RegularPreview, path: path, encoding: Encoding.Default);
957
var source2 = SyntaxFactory.ParseSyntaxTree("", options:
TestOptions
.RegularPreview, path: path, encoding: Encoding.Default);
990
""", options:
TestOptions
.RegularPreview, path: "path/to/file.cs", encoding: Encoding.Default);
991
var source2 = SyntaxFactory.ParseSyntaxTree("", options:
TestOptions
.RegularPreview, path: "path/to/File.cs", encoding: Encoding.Default);
1086
var comp = CreateCompilation(SyntaxFactory.ParseSyntaxTree(source, options:
TestOptions
.RegularPreview, path: $"path/to/My{badChar}File.cs", encoding: Encoding.Default));
1113
var comp = CreateCompilation(SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.RegularPreview, path: "\uD800.cs"));
1148
var verifier = CompileAndVerify(SyntaxFactory.ParseSyntaxTree(source, options:
TestOptions
.RegularPreview, path: "path/to/My+File.cs", encoding: Encoding.Default), expectedOutput: "1", symbolValidator: validateSymbols);
1857
var comp = CreateCompilation(new[] { (source1 + main, "file1.cs"), (source2, "file2.cs") }, options:
TestOptions
.DebugExe);
1865
comp = CreateCompilation(new[] { (source1, "file1.cs"), (source2 + main, "file2.cs") }, options:
TestOptions
.DebugExe);
2896
var comp = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
3325
var compilation = CreateCompilation(new[] { (source, "file1.cs"), (IsExternalInitTypeDefinition, "file2.cs") }, options:
TestOptions
.DebugExe.WithUsings("NS"));
3853
var compilation = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
3880
var compilation = CreateCompilation(new[] { (source, "file1.cs"), (main, "file2.cs") }, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
4061
SyntaxFactory.ParseSyntaxTree(source1,
TestOptions
.RegularPreview),
4062
SyntaxFactory.ParseSyntaxTree(source2,
TestOptions
.RegularPreview, path: "path/to/FileB.cs")
4089
var comp = CreateSubmission(source1, parseOptions:
TestOptions
.Script.WithLanguageVersion(LanguageVersion.Preview));
4330
var comp = CreateCompilation(SyntaxFactory.ParseSyntaxTree(source1, options:
TestOptions
.RegularPreview, path: "path/to/SomeFile.cs"));
4502
var comp0 = CreateCompilation((fileTypeSource, filePath), options:
TestOptions
.SigningReleaseDll);
4526
options:
TestOptions
.SigningReleaseDll);
4544
var comp0 = CreateCompilation((fileTypeSource, filePath), options:
TestOptions
.SigningReleaseDll);
4565
options:
TestOptions
.SigningReleaseDll);
Symbols\Source\MethodTests.cs (2)
51
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular9);
2247
var parseOptions =
TestOptions
.Regular;
Symbols\Source\ModifierTests.cs (1)
111
var comp = CreateCompilationWithMscorlib461(text, parseOptions:
TestOptions
.Script);
Symbols\Source\NullablePublicAPITests.cs (15)
441
var comp3 = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3, skipUsesIsNullable: true);
473
var comp6 = CreateCompilation("", references: new[] { comp1Emit }, parseOptions:
TestOptions
.Regular7_3);
1043
var comp3 = CreateCompilation(source, parseOptions:
TestOptions
.Regular7_3, skipUsesIsNullable: true);
1059
var comp6 = CreateCompilation("", references: new[] { comp1Emit }, parseOptions:
TestOptions
.Regular7_3);
1373
var newCoalesce = (AssignmentExpressionSyntax)SyntaxFactory.ParseExpression(@"s3 ??= s1", options:
TestOptions
.Regular8);
1737
var featureFlagOff =
TestOptions
.Regular8.WithFeature("run-nullable-analysis", "never");
1817
var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular7_3, skipUsesIsNullable: true);
2623
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular8.WithFeature("run-nullable-analysis", flagState));
4031
var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions:
TestOptions
.Regular9);
4763
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular9);
4930
var comp = CreateCompilation(code, options:
TestOptions
.ReleaseExe.WithNullableContextOptions(NullableContextOptions.Enable));
5062
var comp = CreateCompilation(@"string s = """" switch { _ => string.Empty };", options: WithNullableEnable(
TestOptions
.ReleaseExe));
5184
var comp = CreateCompilation(source, parseOptions: runNullableAnalysisAlways ?
TestOptions
.RegularPreview.WithFeature("run-nullable-analysis", "always") :
TestOptions
.RegularPreview);
5222
var comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview.WithFeature("run-nullable-analysis", "never"));
Symbols\Source\PropertyTests.cs (24)
122
", parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
155
CreateCompilation(text, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
208
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular9);
233
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular9);
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);
789
var compilation = CompileWithCustomPropertiesAssembly(source,
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
1870
TestOptions
.ReleaseExe);
2581
return CreateCompilation(source, new[] { s_propertiesDll }, options ??
TestOptions
.ReleaseDll);
2605
options:
TestOptions
.DebugDll,
2697
options:
TestOptions
.DebugDll,
2780
options: winmd ?
TestOptions
.ReleaseWinMD :
TestOptions
.ReleaseDll);
2822
var comp = CreateCompilation(libSrc, options:
TestOptions
.ReleaseDll);
2828
comp = CreateCompilation(libSrc, options:
TestOptions
.ReleaseWinMD);
2854
CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp3)).VerifyDiagnostics();
2855
CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp2)).VerifyDiagnostics(
2896
CreateCompilationWithMscorlibAndSpan(text, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
2960
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular5);
2967
comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular6);
2991
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular5);
2997
comp = CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview);
Symbols\Source\RecordTests.cs (6)
17
=> CSharpTestBase.CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions:
TestOptions
.Regular9);
22
parseOptions:
TestOptions
.Regular9,
1214
var comp = CreateCompilation(src, options:
TestOptions
.ReleaseDll);
1353
parseOptions:
TestOptions
.Regular9,
1469
parseOptions:
TestOptions
.Regular9,
1470
options:
TestOptions
.ReleaseExe);
Symbols\Source\UsingAliasTests.cs (11)
773
CreateCompilation(text, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
778
CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
803
CreateCompilation(text, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
830
CreateCompilation(text, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
844
CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
875
CreateCompilation(text, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
890
CreateCompilation(text, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(expected);
915
CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics();
936
""", options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
1003
""", options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
1022
""", options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
Symbols\StaticAbstractMembersInInterfacesTests.cs (1276)
68
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
69
parseOptions:
TestOptions
.Regular10,
309
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
310
parseOptions:
TestOptions
.Regular10,
420
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
421
parseOptions:
TestOptions
.RegularPreview,
507
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
508
parseOptions:
TestOptions
.RegularPreview,
588
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
589
parseOptions:
TestOptions
.Regular7_3,
708
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
709
parseOptions:
TestOptions
.Regular7_3,
814
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
815
parseOptions:
TestOptions
.RegularPreview,
899
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
900
parseOptions:
TestOptions
.RegularPreview,
972
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
973
parseOptions:
TestOptions
.RegularPreview,
1012
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1013
parseOptions:
TestOptions
.RegularPreview,
1049
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1050
parseOptions:
TestOptions
.RegularPreview,
1105
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1106
parseOptions:
TestOptions
.RegularPreview,
1126
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1127
parseOptions:
TestOptions
.RegularPreview,
1143
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1144
parseOptions:
TestOptions
.RegularPreview,
1180
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1181
parseOptions:
TestOptions
.RegularPreview,
1217
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1218
parseOptions:
TestOptions
.RegularPreview,
1258
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1259
parseOptions:
TestOptions
.RegularPreview,
1319
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1320
parseOptions:
TestOptions
.RegularPreview,
1370
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1371
parseOptions:
TestOptions
.RegularPreview,
1425
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1426
parseOptions:
TestOptions
.RegularPreview,
1483
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1484
parseOptions:
TestOptions
.RegularPreview,
1538
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1539
parseOptions:
TestOptions
.RegularPreview,
1610
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1611
parseOptions:
TestOptions
.RegularPreview,
1668
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1669
parseOptions:
TestOptions
.Regular10,
1995
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1996
parseOptions:
TestOptions
.Regular10,
2106
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
2107
parseOptions:
TestOptions
.RegularPreview,
2175
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
2176
parseOptions:
TestOptions
.RegularPreview,
2256
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
2257
parseOptions:
TestOptions
.Regular7_3,
2358
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
2359
parseOptions:
TestOptions
.Regular7_3,
2474
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
2475
parseOptions:
TestOptions
.Regular10,
2809
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
2810
parseOptions:
TestOptions
.Regular10,
2922
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
2923
parseOptions:
TestOptions
.RegularPreview,
2992
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
2993
parseOptions:
TestOptions
.RegularPreview,
3075
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
3076
parseOptions:
TestOptions
.Regular7_3,
3178
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
3179
parseOptions:
TestOptions
.Regular7_3,
3292
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
3293
parseOptions:
TestOptions
.Regular10,
3530
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
3531
parseOptions:
TestOptions
.Regular10,
3635
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
3636
parseOptions:
TestOptions
.RegularPreview,
3722
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
3723
parseOptions:
TestOptions
.RegularPreview,
3800
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
3801
parseOptions:
TestOptions
.Regular7_3,
3917
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
3918
parseOptions:
TestOptions
.Regular7_3,
4013
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
4014
parseOptions:
TestOptions
.Regular7_3,
4058
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
4059
parseOptions:
TestOptions
.Regular10,
4103
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
4104
parseOptions:
TestOptions
.RegularPreview,
4205
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
4206
parseOptions:
TestOptions
.Regular7_3,
4268
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
4269
parseOptions:
TestOptions
.Regular10,
4331
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
4332
parseOptions:
TestOptions
.RegularPreview,
4451
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
4452
parseOptions:
TestOptions
.Regular7_3,
4496
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
4497
parseOptions:
TestOptions
.Regular10,
4541
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
4542
parseOptions:
TestOptions
.RegularPreview,
4637
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
4638
parseOptions:
TestOptions
.Regular7_3,
4700
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
4701
parseOptions:
TestOptions
.Regular10,
4763
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
4764
parseOptions:
TestOptions
.RegularPreview,
4865
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
4866
parseOptions:
TestOptions
.RegularPreview,
4907
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
4908
parseOptions:
TestOptions
.RegularPreview,
4940
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
4941
parseOptions:
TestOptions
.RegularPreview,
4973
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
4974
parseOptions:
TestOptions
.RegularPreview,
5009
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5010
parseOptions:
TestOptions
.RegularPreview,
5047
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5048
parseOptions:
TestOptions
.RegularPreview,
5067
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5068
parseOptions:
TestOptions
.RegularPreview,
5109
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5110
parseOptions:
TestOptions
.RegularPreview,
5151
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5152
parseOptions:
TestOptions
.RegularPreview,
5184
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5185
parseOptions:
TestOptions
.RegularPreview,
5226
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5227
parseOptions:
TestOptions
.RegularPreview,
5268
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5269
parseOptions:
TestOptions
.RegularPreview,
5298
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5299
parseOptions:
TestOptions
.RegularPreview,
5334
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5335
parseOptions:
TestOptions
.RegularPreview,
5370
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5371
parseOptions:
TestOptions
.RegularPreview,
5385
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5386
parseOptions:
TestOptions
.RegularPreview,
5411
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5412
parseOptions:
TestOptions
.RegularPreview,
5426
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5427
parseOptions:
TestOptions
.RegularPreview,
5488
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5489
parseOptions:
TestOptions
.RegularPreview,
5556
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5557
parseOptions:
TestOptions
.RegularPreview,
5595
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5596
parseOptions:
TestOptions
.RegularPreview,
5639
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5640
parseOptions:
TestOptions
.RegularPreview,
5700
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5701
parseOptions:
TestOptions
.RegularPreview,
5747
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5748
parseOptions:
TestOptions
.RegularPreview,
5777
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5778
parseOptions:
TestOptions
.RegularPreview,
5826
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5827
parseOptions:
TestOptions
.RegularPreview,
5870
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5871
parseOptions:
TestOptions
.RegularPreview,
5909
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5910
parseOptions:
TestOptions
.RegularPreview,
5951
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5952
parseOptions:
TestOptions
.RegularPreview,
5978
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
5979
parseOptions:
TestOptions
.RegularPreview,
6023
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
6024
parseOptions:
TestOptions
.RegularPreview,
6068
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
6069
parseOptions:
TestOptions
.RegularPreview,
6092
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
6093
parseOptions:
TestOptions
.RegularPreview,
6116
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
6117
parseOptions:
TestOptions
.RegularPreview,
6162
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
6163
parseOptions:
TestOptions
.RegularPreview,
6207
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
6208
parseOptions:
TestOptions
.RegularPreview,
6228
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
6229
parseOptions:
TestOptions
.RegularPreview,
6260
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
6261
parseOptions:
TestOptions
.RegularPreview,
6335
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
6336
parseOptions:
TestOptions
.RegularPreview,
6384
compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
6385
parseOptions:
TestOptions
.RegularPreview,
6415
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
6416
parseOptions:
TestOptions
.RegularPreview,
6467
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
6468
parseOptions:
TestOptions
.RegularPreview,
6485
compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
6486
parseOptions:
TestOptions
.RegularPreview,
6523
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
6524
parseOptions:
TestOptions
.RegularPreview,
6598
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
6599
parseOptions:
TestOptions
.RegularPreview,
6614
compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
6615
parseOptions:
TestOptions
.RegularPreview,
6641
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
6642
parseOptions:
TestOptions
.RegularPreview,
6716
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
6717
parseOptions:
TestOptions
.RegularPreview,
6750
compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
6751
parseOptions:
TestOptions
.RegularPreview,
6782
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
6783
parseOptions:
TestOptions
.RegularPreview,
6857
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
6858
parseOptions:
TestOptions
.RegularPreview,
6879
compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
6880
parseOptions:
TestOptions
.RegularPreview,
6911
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
6912
parseOptions:
TestOptions
.RegularPreview,
6986
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
6987
parseOptions:
TestOptions
.RegularPreview,
7008
compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
7009
parseOptions:
TestOptions
.RegularPreview,
7040
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
7041
parseOptions:
TestOptions
.RegularPreview,
7068
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
7069
parseOptions:
TestOptions
.RegularPreview,
7098
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
7099
parseOptions:
TestOptions
.RegularPreview,
7128
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
7129
parseOptions:
TestOptions
.RegularPreview,
7160
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
7161
parseOptions:
TestOptions
.RegularPreview,
7239
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
7240
parseOptions:
TestOptions
.RegularPreview,
7333
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
7334
parseOptions:
TestOptions
.RegularPreview,
7438
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
7439
parseOptions:
TestOptions
.RegularPreview,
7544
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
7545
parseOptions:
TestOptions
.RegularPreview,
7638
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
7639
parseOptions:
TestOptions
.RegularPreview,
7737
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
7738
parseOptions:
TestOptions
.RegularPreview,
7854
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
7855
parseOptions:
TestOptions
.RegularPreview,
7974
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
7975
parseOptions:
TestOptions
.RegularPreview,
8071
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
8072
parseOptions:
TestOptions
.RegularPreview,
8168
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
8169
parseOptions:
TestOptions
.RegularPreview,
8249
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
8250
parseOptions:
TestOptions
.RegularPreview,
8338
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
8339
parseOptions:
TestOptions
.RegularPreview,
8390
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
8391
parseOptions:
TestOptions
.RegularPreview,
8424
compilation1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll,
8425
parseOptions:
TestOptions
.RegularPreview,
8502
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
8503
parseOptions:
TestOptions
.RegularPreview,
8506
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
8507
parseOptions:
TestOptions
.RegularPreview,
8517
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
8518
parseOptions:
TestOptions
.RegularPreview,
8550
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
8551
parseOptions:
TestOptions
.RegularPreview,
8587
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
8588
parseOptions:
TestOptions
.RegularPreview,
8591
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
8592
parseOptions:
TestOptions
.Regular10,
8602
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
8603
parseOptions:
TestOptions
.Regular10,
8672
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
8673
parseOptions:
TestOptions
.RegularPreview,
8767
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
8768
parseOptions:
TestOptions
.RegularPreview,
8773
compilation1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll,
8774
parseOptions:
TestOptions
.RegularPreview,
8906
compilation1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll,
8907
parseOptions:
TestOptions
.RegularPreview,
9112
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
9113
parseOptions:
TestOptions
.RegularPreview,
9116
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
9117
parseOptions:
TestOptions
.RegularPreview,
9127
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
9128
parseOptions:
TestOptions
.RegularPreview,
9180
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
9181
parseOptions:
TestOptions
.RegularPreview,
9184
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
9185
parseOptions:
TestOptions
.Regular10,
9209
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
9210
parseOptions:
TestOptions
.Regular10,
9272
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
9273
parseOptions:
TestOptions
.RegularPreview,
9314
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
9315
parseOptions:
TestOptions
.RegularPreview,
9335
compilation1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll,
9336
parseOptions:
TestOptions
.RegularPreview,
9397
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
9398
parseOptions:
TestOptions
.RegularPreview,
9401
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
9402
parseOptions:
TestOptions
.RegularPreview,
9412
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
9413
parseOptions:
TestOptions
.RegularPreview,
9450
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
9451
parseOptions:
TestOptions
.RegularPreview,
9454
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
9455
parseOptions:
TestOptions
.Regular10,
9465
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
9466
parseOptions:
TestOptions
.Regular10,
9525
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
9526
parseOptions:
TestOptions
.RegularPreview,
9605
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
9606
parseOptions:
TestOptions
.RegularPreview,
9680
compilation1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll,
9681
parseOptions:
TestOptions
.RegularPreview,
9802
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
9803
parseOptions:
TestOptions
.RegularPreview,
9806
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
9807
parseOptions:
TestOptions
.RegularPreview,
9817
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
9818
parseOptions:
TestOptions
.RegularPreview,
9864
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
9865
parseOptions:
TestOptions
.RegularPreview,
9868
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
9869
parseOptions:
TestOptions
.Regular10,
9879
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
9880
parseOptions:
TestOptions
.Regular10,
9948
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
9949
parseOptions:
TestOptions
.RegularPreview,
10077
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
10078
parseOptions:
TestOptions
.RegularPreview,
10291
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
10292
parseOptions:
TestOptions
.RegularPreview,
10411
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
10412
parseOptions:
TestOptions
.RegularPreview,
10534
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
10535
parseOptions:
TestOptions
.RegularPreview,
10540
compilation1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll,
10541
parseOptions:
TestOptions
.RegularPreview,
10645
compilation1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll,
10646
parseOptions:
TestOptions
.RegularPreview,
10817
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
10818
parseOptions:
TestOptions
.RegularPreview,
10882
compilation1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll,
10883
parseOptions:
TestOptions
.RegularPreview,
10989
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
10990
parseOptions:
TestOptions
.RegularPreview,
11063
compilation1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll,
11064
parseOptions:
TestOptions
.RegularPreview,
11202
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
11203
parseOptions:
TestOptions
.RegularPreview,
11267
compilation1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll,
11268
parseOptions:
TestOptions
.RegularPreview,
11367
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
11368
parseOptions:
TestOptions
.RegularPreview,
11478
compilation1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll,
11479
parseOptions:
TestOptions
.RegularPreview,
11704
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
11705
parseOptions:
TestOptions
.RegularPreview,
11710
compilation1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll,
11711
parseOptions:
TestOptions
.RegularPreview,
11834
compilation1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll,
11835
parseOptions:
TestOptions
.RegularPreview,
11997
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
11998
parseOptions:
TestOptions
.RegularPreview,
12068
compilation1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll,
12069
parseOptions:
TestOptions
.RegularPreview,
12181
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
12182
parseOptions:
TestOptions
.RegularPreview,
12185
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
12186
parseOptions:
TestOptions
.RegularPreview,
12196
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
12197
parseOptions:
TestOptions
.RegularPreview,
12244
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
12245
parseOptions:
TestOptions
.RegularPreview,
12248
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
12249
parseOptions:
TestOptions
.RegularPreview,
12266
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
12267
parseOptions:
TestOptions
.RegularPreview,
12331
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
12332
parseOptions:
TestOptions
.RegularPreview,
12335
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
12336
parseOptions:
TestOptions
.RegularPreview,
12346
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
12347
parseOptions:
TestOptions
.RegularPreview,
12381
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
12382
parseOptions:
TestOptions
.RegularPreview,
12385
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
12386
parseOptions:
TestOptions
.RegularPreview,
12396
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
12397
parseOptions:
TestOptions
.RegularPreview,
12438
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
12439
parseOptions:
TestOptions
.RegularPreview,
12442
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
12443
parseOptions:
TestOptions
.Regular10,
12478
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
12479
parseOptions:
TestOptions
.Regular10,
12551
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
12552
parseOptions:
TestOptions
.RegularPreview,
12555
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
12556
parseOptions:
TestOptions
.Regular10,
12573
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
12574
parseOptions:
TestOptions
.Regular10,
12638
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
12639
parseOptions:
TestOptions
.RegularPreview,
12642
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
12643
parseOptions:
TestOptions
.Regular10,
12678
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
12679
parseOptions:
TestOptions
.Regular10,
12738
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
12739
parseOptions:
TestOptions
.RegularPreview,
12742
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
12743
parseOptions:
TestOptions
.Regular10,
12753
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
12754
parseOptions:
TestOptions
.Regular10,
12817
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
12818
parseOptions:
TestOptions
.RegularPreview,
12908
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
12909
parseOptions:
TestOptions
.RegularPreview,
13002
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
13003
parseOptions:
TestOptions
.RegularPreview,
13100
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
13101
parseOptions:
TestOptions
.RegularPreview,
13141
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
13142
parseOptions:
TestOptions
.RegularPreview,
13160
compilation1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll,
13161
parseOptions:
TestOptions
.RegularPreview,
13226
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
13227
parseOptions:
TestOptions
.RegularPreview,
13246
compilation1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll,
13247
parseOptions:
TestOptions
.RegularPreview,
13317
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
13318
parseOptions:
TestOptions
.RegularPreview,
13355
compilation1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll,
13356
parseOptions:
TestOptions
.RegularPreview,
13436
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
13437
parseOptions:
TestOptions
.RegularPreview,
13440
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
13441
parseOptions:
TestOptions
.RegularPreview,
13451
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
13452
parseOptions:
TestOptions
.RegularPreview,
13488
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
13489
parseOptions:
TestOptions
.RegularPreview,
13492
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
13493
parseOptions:
TestOptions
.RegularPreview,
13503
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
13504
parseOptions:
TestOptions
.RegularPreview,
13540
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
13541
parseOptions:
TestOptions
.RegularPreview,
13544
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
13545
parseOptions:
TestOptions
.RegularPreview,
13558
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
13559
parseOptions:
TestOptions
.RegularPreview,
13595
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
13596
parseOptions:
TestOptions
.RegularPreview,
13599
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
13600
parseOptions:
TestOptions
.Regular10,
13610
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
13611
parseOptions:
TestOptions
.Regular10,
13647
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
13648
parseOptions:
TestOptions
.RegularPreview,
13651
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
13652
parseOptions:
TestOptions
.Regular10,
13662
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
13663
parseOptions:
TestOptions
.Regular10,
13699
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
13700
parseOptions:
TestOptions
.RegularPreview,
13703
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
13704
parseOptions:
TestOptions
.Regular10,
13714
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
13715
parseOptions:
TestOptions
.Regular10,
13778
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
13779
parseOptions:
TestOptions
.RegularPreview,
13875
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
13876
parseOptions:
TestOptions
.RegularPreview,
13970
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
13971
parseOptions:
TestOptions
.RegularPreview,
14017
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
14018
parseOptions:
TestOptions
.RegularPreview,
14056
compilation1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll,
14057
parseOptions:
TestOptions
.RegularPreview,
14146
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
14147
parseOptions:
TestOptions
.RegularPreview,
14150
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
14151
parseOptions:
TestOptions
.RegularPreview,
14161
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
14162
parseOptions:
TestOptions
.RegularPreview,
14195
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
14196
parseOptions:
TestOptions
.RegularPreview,
14199
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
14200
parseOptions:
TestOptions
.RegularPreview,
14210
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
14211
parseOptions:
TestOptions
.RegularPreview,
14244
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
14245
parseOptions:
TestOptions
.RegularPreview,
14248
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
14249
parseOptions:
TestOptions
.Regular10,
14259
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
14260
parseOptions:
TestOptions
.Regular10,
14296
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
14297
parseOptions:
TestOptions
.RegularPreview,
14300
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
14301
parseOptions:
TestOptions
.Regular10,
14311
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
14312
parseOptions:
TestOptions
.Regular10,
14401
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
14402
parseOptions:
TestOptions
.RegularPreview,
14429
var compilation2 = CreateCompilationWithIL(source2, ilSource, options:
TestOptions
.DebugDll,
14430
parseOptions:
TestOptions
.RegularPreview,
14496
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
14497
parseOptions:
TestOptions
.RegularPreview,
14519
var compilation2 = CreateCompilationWithIL(source2, ilSource, options:
TestOptions
.DebugDll,
14520
parseOptions:
TestOptions
.RegularPreview,
14595
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
14596
parseOptions:
TestOptions
.RegularPreview,
14657
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
14658
parseOptions:
TestOptions
.RegularPreview,
14687
compilation1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll,
14688
parseOptions:
TestOptions
.RegularPreview,
14748
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
14749
parseOptions:
TestOptions
.RegularPreview,
14752
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
14753
parseOptions:
TestOptions
.RegularPreview,
14763
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
14764
parseOptions:
TestOptions
.RegularPreview,
14797
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
14798
parseOptions:
TestOptions
.RegularPreview,
14801
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
14802
parseOptions:
TestOptions
.Regular10,
14812
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
14813
parseOptions:
TestOptions
.Regular10,
14887
var compilation1 = CreateCompilation(source1, options:
TestOptions
.ReleaseExe,
14888
parseOptions:
TestOptions
.RegularPreview,
14953
var compilation1 = CreateCompilation(source1, options:
TestOptions
.ReleaseExe,
14954
parseOptions:
TestOptions
.RegularPreview,
15013
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
15014
parseOptions:
TestOptions
.RegularPreview,
15075
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
15076
parseOptions:
TestOptions
.RegularPreview,
15099
compilation1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll,
15100
parseOptions:
TestOptions
.RegularPreview,
15154
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
15155
parseOptions:
TestOptions
.RegularPreview,
15158
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
15159
parseOptions:
TestOptions
.RegularPreview,
15169
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
15170
parseOptions:
TestOptions
.RegularPreview,
15203
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
15204
parseOptions:
TestOptions
.RegularPreview,
15207
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
15208
parseOptions:
TestOptions
.Regular10,
15218
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
15219
parseOptions:
TestOptions
.Regular10,
15282
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll.WithAllowUnsafe(true),
15283
parseOptions:
TestOptions
.RegularPreview,
15347
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll.WithAllowUnsafe(true),
15348
parseOptions:
TestOptions
.RegularPreview,
15369
compilation1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll.WithAllowUnsafe(true),
15370
parseOptions:
TestOptions
.RegularPreview,
15422
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
15423
parseOptions:
TestOptions
.RegularPreview,
15426
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll.WithAllowUnsafe(true),
15427
parseOptions:
TestOptions
.RegularPreview,
15437
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll.WithAllowUnsafe(true),
15438
parseOptions:
TestOptions
.RegularPreview,
15471
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
15472
parseOptions:
TestOptions
.RegularPreview,
15475
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll.WithAllowUnsafe(true),
15476
parseOptions:
TestOptions
.Regular10,
15486
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll.WithAllowUnsafe(true),
15487
parseOptions:
TestOptions
.Regular10,
15548
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
15549
parseOptions:
TestOptions
.RegularPreview,
15628
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
15629
parseOptions:
TestOptions
.RegularPreview,
15690
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
15691
parseOptions:
TestOptions
.RegularPreview,
15766
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
15767
parseOptions:
TestOptions
.RegularPreview,
15843
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
15844
parseOptions:
TestOptions
.RegularPreview,
15904
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
15905
parseOptions:
TestOptions
.RegularPreview,
15908
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
15909
parseOptions:
TestOptions
.Regular10,
15922
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
15923
parseOptions:
TestOptions
.Regular10,
15960
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
15961
parseOptions:
TestOptions
.RegularPreview,
15964
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
15965
parseOptions:
TestOptions
.RegularPreview,
15975
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
15976
parseOptions:
TestOptions
.RegularPreview,
16007
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
16008
parseOptions:
TestOptions
.RegularPreview,
16011
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
16012
parseOptions:
TestOptions
.RegularPreview,
16022
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
16023
parseOptions:
TestOptions
.RegularPreview,
16059
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
16060
parseOptions:
TestOptions
.RegularPreview,
16121
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
16122
parseOptions:
TestOptions
.RegularPreview,
16177
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
16178
parseOptions:
TestOptions
.RegularPreview,
16192
foreach (var parseOptions in new[] {
TestOptions
.Regular10,
TestOptions
.RegularPreview })
16194
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
16293
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
16294
parseOptions:
TestOptions
.RegularPreview,
16320
compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
16321
parseOptions:
TestOptions
.Regular10,
16354
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
16355
parseOptions:
TestOptions
.RegularPreview,
16367
compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
16368
parseOptions:
TestOptions
.Regular10,
16385
var compilation2 = CreateCompilationWithIL(source2, ilSource, options:
TestOptions
.DebugDll,
16386
parseOptions:
TestOptions
.RegularPreview,
16431
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
16432
parseOptions:
TestOptions
.RegularPreview,
16472
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
16473
parseOptions:
TestOptions
.RegularPreview,
16557
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
16558
parseOptions:
TestOptions
.RegularPreview,
16658
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
16659
parseOptions:
TestOptions
.RegularPreview,
16673
foreach (var parseOptions in new[] {
TestOptions
.RegularPreview,
TestOptions
.Regular10 })
16675
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
16746
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
16747
parseOptions:
TestOptions
.RegularPreview,
16761
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
16762
parseOptions:
TestOptions
.RegularPreview,
16836
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
16837
parseOptions:
TestOptions
.RegularPreview,
16853
foreach (var parseOptions in new[] {
TestOptions
.Regular10,
TestOptions
.RegularPreview })
16855
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
16918
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
16919
parseOptions:
TestOptions
.RegularPreview,
16935
foreach (var parseOptions in new[] {
TestOptions
.Regular10,
TestOptions
.RegularPreview })
16937
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
17000
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
17001
parseOptions:
TestOptions
.RegularPreview,
17017
foreach (var parseOptions in new[] {
TestOptions
.Regular10,
TestOptions
.RegularPreview })
17019
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
17070
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
17071
parseOptions:
TestOptions
.RegularPreview,
17088
foreach (var parseOptions in new[] {
TestOptions
.Regular10,
TestOptions
.RegularPreview })
17090
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
17145
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
17146
parseOptions:
TestOptions
.RegularPreview,
17162
foreach (var parseOptions in new[] {
TestOptions
.Regular10,
TestOptions
.RegularPreview })
17164
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
17232
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
17233
parseOptions:
TestOptions
.RegularPreview,
17249
foreach (var parseOptions in new[] {
TestOptions
.Regular10,
TestOptions
.RegularPreview })
17251
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
17322
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
17323
parseOptions:
TestOptions
.RegularPreview,
17348
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugExe,
17349
parseOptions:
TestOptions
.RegularPreview,
17428
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
17429
parseOptions:
TestOptions
.RegularPreview,
17454
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugExe,
17455
parseOptions:
TestOptions
.RegularPreview,
17606
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
17607
parseOptions:
TestOptions
.RegularPreview,
17749
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
17750
parseOptions:
TestOptions
.RegularPreview,
17885
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
17886
parseOptions:
TestOptions
.RegularPreview,
18028
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
18029
parseOptions:
TestOptions
.RegularPreview,
18137
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
18138
parseOptions:
TestOptions
.RegularPreview,
18284
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
18285
parseOptions:
TestOptions
.RegularPreview,
18437
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
18438
parseOptions:
TestOptions
.RegularPreview,
18623
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
18624
parseOptions:
TestOptions
.RegularPreview,
18771
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
18772
parseOptions:
TestOptions
.RegularPreview,
18775
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
18776
parseOptions:
TestOptions
.Regular10,
18813
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
18814
parseOptions:
TestOptions
.Regular10,
18899
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
18900
parseOptions:
TestOptions
.RegularPreview,
18903
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
18904
parseOptions:
TestOptions
.Regular10,
18957
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
18958
parseOptions:
TestOptions
.Regular10,
19059
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
19060
parseOptions:
TestOptions
.RegularPreview,
19063
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
19064
parseOptions:
TestOptions
.RegularPreview,
19074
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
19075
parseOptions:
TestOptions
.RegularPreview,
19111
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
19112
parseOptions:
TestOptions
.RegularPreview,
19115
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
19116
parseOptions:
TestOptions
.RegularPreview,
19126
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
19127
parseOptions:
TestOptions
.RegularPreview,
19163
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
19164
parseOptions:
TestOptions
.RegularPreview,
19167
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
19168
parseOptions:
TestOptions
.RegularPreview,
19178
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
19179
parseOptions:
TestOptions
.RegularPreview,
19218
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
19219
parseOptions:
TestOptions
.RegularPreview,
19222
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
19223
parseOptions:
TestOptions
.RegularPreview,
19233
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
19234
parseOptions:
TestOptions
.RegularPreview,
19293
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
19294
parseOptions:
TestOptions
.RegularPreview,
19374
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
19375
parseOptions:
TestOptions
.RegularPreview,
19466
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
19467
parseOptions:
TestOptions
.RegularPreview,
19554
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
19555
parseOptions:
TestOptions
.RegularPreview,
19637
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
19638
parseOptions:
TestOptions
.RegularPreview,
19729
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
19730
parseOptions:
TestOptions
.RegularPreview,
19818
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
19819
parseOptions:
TestOptions
.RegularPreview,
19905
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
19906
parseOptions:
TestOptions
.RegularPreview,
19920
foreach (var parseOptions in new[] {
TestOptions
.Regular10,
TestOptions
.RegularPreview })
19922
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
19977
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
19978
parseOptions:
TestOptions
.RegularPreview,
19994
foreach (var parseOptions in new[] {
TestOptions
.Regular10,
TestOptions
.RegularPreview })
19996
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
20062
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
20063
parseOptions:
TestOptions
.RegularPreview,
20077
foreach (var parseOptions in new[] {
TestOptions
.Regular10,
TestOptions
.RegularPreview })
20079
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
20142
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
20143
parseOptions:
TestOptions
.RegularPreview,
20157
foreach (var parseOptions in new[] {
TestOptions
.Regular10,
TestOptions
.RegularPreview })
20159
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
20270
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
20271
parseOptions:
TestOptions
.RegularPreview,
20303
compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
20304
parseOptions:
TestOptions
.Regular10,
20405
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
20406
parseOptions:
TestOptions
.RegularPreview,
20438
compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
20439
parseOptions:
TestOptions
.Regular10,
20483
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
20484
parseOptions:
TestOptions
.RegularPreview,
20497
compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
20498
parseOptions:
TestOptions
.Regular10,
20515
var compilation2 = CreateCompilationWithIL(source2, ilSource, options:
TestOptions
.DebugDll,
20516
parseOptions:
TestOptions
.RegularPreview,
20563
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
20564
parseOptions:
TestOptions
.RegularPreview,
20577
compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
20578
parseOptions:
TestOptions
.Regular10,
20595
var compilation2 = CreateCompilationWithIL(source2, ilSource, options:
TestOptions
.DebugDll,
20596
parseOptions:
TestOptions
.RegularPreview,
20653
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
20654
parseOptions:
TestOptions
.RegularPreview,
20718
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
20719
parseOptions:
TestOptions
.RegularPreview,
20788
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
20789
parseOptions:
TestOptions
.RegularPreview,
20905
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
20906
parseOptions:
TestOptions
.RegularPreview,
21016
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
21017
parseOptions:
TestOptions
.RegularPreview,
21151
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
21152
parseOptions:
TestOptions
.RegularPreview,
21270
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
21271
parseOptions:
TestOptions
.RegularPreview,
21285
foreach (var parseOptions in new[] {
TestOptions
.RegularPreview,
TestOptions
.Regular10 })
21287
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
21330
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
21331
parseOptions:
TestOptions
.RegularPreview,
21345
foreach (var parseOptions in new[] {
TestOptions
.RegularPreview,
TestOptions
.Regular10 })
21347
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
21433
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
21434
parseOptions:
TestOptions
.RegularPreview,
21448
foreach (var parseOptions in new[] {
TestOptions
.RegularPreview,
TestOptions
.Regular10 })
21450
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
21553
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
21554
parseOptions:
TestOptions
.RegularPreview,
21568
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
21569
parseOptions:
TestOptions
.RegularPreview,
21674
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
21675
parseOptions:
TestOptions
.RegularPreview,
21691
foreach (var parseOptions in new[] {
TestOptions
.Regular10,
TestOptions
.RegularPreview })
21693
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
21783
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
21784
parseOptions:
TestOptions
.RegularPreview,
21800
foreach (var parseOptions in new[] {
TestOptions
.Regular10,
TestOptions
.RegularPreview })
21802
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
21885
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
21886
parseOptions:
TestOptions
.RegularPreview,
21902
foreach (var parseOptions in new[] {
TestOptions
.Regular10,
TestOptions
.RegularPreview })
21904
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
22042
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll.WithAllowUnsafe(true),
22043
parseOptions:
TestOptions
.RegularPreview,
22192
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll.WithAllowUnsafe(true),
22193
parseOptions:
TestOptions
.RegularPreview,
22262
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
22263
parseOptions:
TestOptions
.RegularPreview,
22307
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
22308
parseOptions:
TestOptions
.RegularPreview,
22378
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
22379
parseOptions:
TestOptions
.RegularPreview,
22458
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
22459
parseOptions:
TestOptions
.RegularPreview,
22520
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
22521
parseOptions:
TestOptions
.RegularPreview,
22596
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
22597
parseOptions:
TestOptions
.RegularPreview,
22677
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
22678
parseOptions:
TestOptions
.RegularPreview,
22748
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
22749
parseOptions:
TestOptions
.RegularPreview,
22752
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
22753
parseOptions:
TestOptions
.Regular10,
22772
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
22773
parseOptions:
TestOptions
.Regular10,
22810
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
22811
parseOptions:
TestOptions
.RegularPreview,
22814
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
22815
parseOptions:
TestOptions
.RegularPreview,
22831
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
22832
parseOptions:
TestOptions
.RegularPreview,
22866
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
22867
parseOptions:
TestOptions
.RegularPreview,
22870
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
22871
parseOptions:
TestOptions
.RegularPreview,
22881
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
22882
parseOptions:
TestOptions
.RegularPreview,
22921
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
22922
parseOptions:
TestOptions
.RegularPreview,
23016
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
23017
parseOptions:
TestOptions
.RegularPreview,
23107
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
23108
parseOptions:
TestOptions
.RegularPreview,
23195
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
23196
parseOptions:
TestOptions
.RegularPreview,
23210
foreach (var parseOptions in new[] {
TestOptions
.Regular10,
TestOptions
.RegularPreview })
23212
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
23374
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
23375
parseOptions:
TestOptions
.RegularPreview,
23415
compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
23416
parseOptions:
TestOptions
.Regular10,
23475
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
23476
parseOptions:
TestOptions
.RegularPreview,
23492
compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
23493
parseOptions:
TestOptions
.Regular10,
23513
var compilation2 = CreateCompilationWithIL(source2, ilSource, options:
TestOptions
.DebugDll,
23514
parseOptions:
TestOptions
.RegularPreview,
23543
var compilation3 = CreateCompilationWithIL(source3, ilSource, options:
TestOptions
.DebugDll,
23544
parseOptions:
TestOptions
.RegularPreview,
23605
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
23606
parseOptions:
TestOptions
.RegularPreview,
23634
var compilation2 = CreateCompilationWithIL(source2, ilSource, options:
TestOptions
.DebugDll,
23635
parseOptions:
TestOptions
.RegularPreview,
23695
var compilation3 = CreateCompilationWithIL(source3, ilSource, options:
TestOptions
.DebugDll,
23696
parseOptions:
TestOptions
.RegularPreview,
23775
var compilation4 = CreateCompilationWithIL(source4, ilSource, options:
TestOptions
.DebugDll,
23776
parseOptions:
TestOptions
.RegularPreview,
23805
var compilation5 = CreateCompilationWithIL(source5, ilSource, options:
TestOptions
.DebugDll,
23806
parseOptions:
TestOptions
.RegularPreview,
23865
var compilation6 = CreateCompilationWithIL(source6, ilSource, options:
TestOptions
.DebugDll,
23866
parseOptions:
TestOptions
.RegularPreview,
23895
var compilation7 = CreateCompilationWithIL(source7, ilSource, options:
TestOptions
.DebugDll,
23896
parseOptions:
TestOptions
.RegularPreview,
23957
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
23958
parseOptions:
TestOptions
.RegularPreview,
23986
var compilation2 = CreateCompilationWithIL(source2, ilSource, options:
TestOptions
.DebugDll,
23987
parseOptions:
TestOptions
.RegularPreview,
24047
var compilation3 = CreateCompilationWithIL(source3, ilSource, options:
TestOptions
.DebugDll,
24048
parseOptions:
TestOptions
.RegularPreview,
24127
var compilation4 = CreateCompilationWithIL(source4, ilSource, options:
TestOptions
.DebugDll,
24128
parseOptions:
TestOptions
.RegularPreview,
24157
var compilation5 = CreateCompilationWithIL(source5, ilSource, options:
TestOptions
.DebugDll,
24158
parseOptions:
TestOptions
.RegularPreview,
24217
var compilation6 = CreateCompilationWithIL(source6, ilSource, options:
TestOptions
.DebugDll,
24218
parseOptions:
TestOptions
.RegularPreview,
24247
var compilation7 = CreateCompilationWithIL(source7, ilSource, options:
TestOptions
.DebugDll,
24248
parseOptions:
TestOptions
.RegularPreview,
24338
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
24339
parseOptions:
TestOptions
.RegularPreview,
24386
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
24387
parseOptions:
TestOptions
.RegularPreview,
24575
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
24576
parseOptions:
TestOptions
.RegularPreview,
24756
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
24757
parseOptions:
TestOptions
.RegularPreview,
24771
foreach (var parseOptions in new[] {
TestOptions
.RegularPreview,
TestOptions
.Regular10 })
24773
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
24871
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
24872
parseOptions:
TestOptions
.RegularPreview,
24886
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
24887
parseOptions:
TestOptions
.RegularPreview,
24996
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
24997
parseOptions:
TestOptions
.RegularPreview,
25013
foreach (var parseOptions in new[] {
TestOptions
.Regular10,
TestOptions
.RegularPreview })
25015
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
25066
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
25067
parseOptions:
TestOptions
.RegularPreview,
25084
foreach (var parseOptions in new[] {
TestOptions
.Regular10,
TestOptions
.RegularPreview })
25086
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
25157
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
25158
parseOptions:
TestOptions
.RegularPreview,
25237
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
25238
parseOptions:
TestOptions
.RegularPreview,
25299
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
25300
parseOptions:
TestOptions
.RegularPreview,
25375
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
25376
parseOptions:
TestOptions
.RegularPreview,
25457
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
25458
parseOptions:
TestOptions
.RegularPreview,
25526
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
25527
parseOptions:
TestOptions
.RegularPreview,
25530
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
25531
parseOptions:
TestOptions
.Regular10,
25553
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
25554
parseOptions:
TestOptions
.Regular10,
25594
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
25595
parseOptions:
TestOptions
.RegularPreview,
25598
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
25599
parseOptions:
TestOptions
.RegularPreview,
25615
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
25616
parseOptions:
TestOptions
.RegularPreview,
25647
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
25648
parseOptions:
TestOptions
.RegularPreview,
25651
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
25652
parseOptions:
TestOptions
.RegularPreview,
25662
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
25663
parseOptions:
TestOptions
.RegularPreview,
25699
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
25700
parseOptions:
TestOptions
.RegularPreview,
25794
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
25795
parseOptions:
TestOptions
.RegularPreview,
25882
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
25883
parseOptions:
TestOptions
.RegularPreview,
25897
foreach (var parseOptions in new[] {
TestOptions
.Regular10,
TestOptions
.RegularPreview })
25899
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
26066
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
26067
parseOptions:
TestOptions
.RegularPreview,
26107
compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
26108
parseOptions:
TestOptions
.Regular10,
26168
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
26169
parseOptions:
TestOptions
.RegularPreview,
26185
compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
26186
parseOptions:
TestOptions
.Regular10,
26206
var compilation2 = CreateCompilationWithIL(source2, ilSource, options:
TestOptions
.DebugDll,
26207
parseOptions:
TestOptions
.RegularPreview,
26232
var compilation3 = CreateCompilationWithIL(source3, ilSource, options:
TestOptions
.DebugDll,
26233
parseOptions:
TestOptions
.RegularPreview,
26287
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
26288
parseOptions:
TestOptions
.RegularPreview,
26316
var compilation2 = CreateCompilationWithIL(source2, ilSource, options:
TestOptions
.DebugDll,
26317
parseOptions:
TestOptions
.RegularPreview,
26345
var compilation3 = CreateCompilationWithIL(source3, ilSource, options:
TestOptions
.DebugDll,
26346
parseOptions:
TestOptions
.RegularPreview,
26418
var compilation4 = CreateCompilationWithIL(source4, ilSource, options:
TestOptions
.DebugDll,
26419
parseOptions:
TestOptions
.RegularPreview,
26444
var compilation5 = CreateCompilationWithIL(source5, ilSource, options:
TestOptions
.DebugDll,
26445
parseOptions:
TestOptions
.RegularPreview,
26471
var compilation6 = CreateCompilationWithIL(source6, ilSource, options:
TestOptions
.DebugDll,
26472
parseOptions:
TestOptions
.RegularPreview,
26501
var compilation7 = CreateCompilationWithIL(source7, ilSource, options:
TestOptions
.DebugDll,
26502
parseOptions:
TestOptions
.RegularPreview,
26561
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
26562
parseOptions:
TestOptions
.RegularPreview,
26590
var compilation2 = CreateCompilationWithIL(source2, ilSource, options:
TestOptions
.DebugDll,
26591
parseOptions:
TestOptions
.RegularPreview,
26619
var compilation3 = CreateCompilationWithIL(source3, ilSource, options:
TestOptions
.DebugDll,
26620
parseOptions:
TestOptions
.RegularPreview,
26692
var compilation4 = CreateCompilationWithIL(source4, ilSource, options:
TestOptions
.DebugDll,
26693
parseOptions:
TestOptions
.RegularPreview,
26718
var compilation5 = CreateCompilationWithIL(source5, ilSource, options:
TestOptions
.DebugDll,
26719
parseOptions:
TestOptions
.RegularPreview,
26745
var compilation6 = CreateCompilationWithIL(source6, ilSource, options:
TestOptions
.DebugDll,
26746
parseOptions:
TestOptions
.RegularPreview,
26775
var compilation7 = CreateCompilationWithIL(source7, ilSource, options:
TestOptions
.DebugDll,
26776
parseOptions:
TestOptions
.RegularPreview,
26866
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
26867
parseOptions:
TestOptions
.RegularPreview,
26914
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
26915
parseOptions:
TestOptions
.RegularPreview,
27115
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
27116
parseOptions:
TestOptions
.RegularPreview,
27421
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
27422
parseOptions:
TestOptions
.RegularPreview,
27436
foreach (var parseOptions in new[] {
TestOptions
.RegularPreview,
TestOptions
.Regular10 })
27438
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
27536
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
27537
parseOptions:
TestOptions
.RegularPreview,
27551
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
27552
parseOptions:
TestOptions
.RegularPreview,
27662
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
27663
parseOptions:
TestOptions
.RegularPreview,
27679
foreach (var parseOptions in new[] {
TestOptions
.Regular10,
TestOptions
.RegularPreview })
27681
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
27732
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
27733
parseOptions:
TestOptions
.RegularPreview,
27750
foreach (var parseOptions in new[] {
TestOptions
.Regular10,
TestOptions
.RegularPreview })
27752
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
27891
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
27892
parseOptions:
TestOptions
.RegularPreview,
28034
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
28035
parseOptions:
TestOptions
.RegularPreview,
28143
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
28144
parseOptions:
TestOptions
.RegularPreview,
28300
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
28301
parseOptions:
TestOptions
.RegularPreview,
28418
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
28419
parseOptions:
TestOptions
.RegularPreview,
28422
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
28423
parseOptions:
TestOptions
.Regular10,
28456
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
28457
parseOptions:
TestOptions
.Regular10,
28519
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
28520
parseOptions:
TestOptions
.RegularPreview,
28523
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
28524
parseOptions:
TestOptions
.RegularPreview,
28534
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
28535
parseOptions:
TestOptions
.RegularPreview,
28571
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
28572
parseOptions:
TestOptions
.RegularPreview,
28575
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
28576
parseOptions:
TestOptions
.RegularPreview,
28586
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
28587
parseOptions:
TestOptions
.RegularPreview,
28650
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
28651
parseOptions:
TestOptions
.RegularPreview,
28767
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
28768
parseOptions:
TestOptions
.RegularPreview,
28869
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
28870
parseOptions:
TestOptions
.RegularPreview,
28884
foreach (var parseOptions in new[] {
TestOptions
.Regular10,
TestOptions
.RegularPreview })
28886
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
29009
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
29010
parseOptions:
TestOptions
.RegularPreview,
29042
compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
29043
parseOptions:
TestOptions
.Regular10,
29088
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
29089
parseOptions:
TestOptions
.RegularPreview,
29102
compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
29103
parseOptions:
TestOptions
.Regular10,
29120
var compilation2 = CreateCompilationWithIL(source2, ilSource, options:
TestOptions
.DebugDll,
29121
parseOptions:
TestOptions
.RegularPreview,
29182
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
29183
parseOptions:
TestOptions
.RegularPreview,
29247
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
29248
parseOptions:
TestOptions
.RegularPreview,
29363
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
29364
parseOptions:
TestOptions
.RegularPreview,
29494
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
29495
parseOptions:
TestOptions
.RegularPreview,
29509
foreach (var parseOptions in new[] {
TestOptions
.RegularPreview,
TestOptions
.Regular10 })
29511
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
29609
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
29610
parseOptions:
TestOptions
.RegularPreview,
29626
foreach (var parseOptions in new[] {
TestOptions
.Regular10,
TestOptions
.RegularPreview })
29628
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
29715
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
29716
parseOptions:
TestOptions
.RegularPreview,
29732
foreach (var parseOptions in new[] {
TestOptions
.Regular10,
TestOptions
.RegularPreview })
29734
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
29854
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll.WithAllowUnsafe(true),
29855
parseOptions:
TestOptions
.RegularPreview,
29921
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
29922
parseOptions:
TestOptions
.RegularPreview,
29986
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
29987
parseOptions:
TestOptions
.RegularPreview,
30054
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
30055
parseOptions:
TestOptions
.RegularPreview,
30140
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
30141
parseOptions:
TestOptions
.RegularPreview,
30146
compilation1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll,
30147
parseOptions:
TestOptions
.RegularPreview,
30212
compilation1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll,
30213
parseOptions:
TestOptions
.RegularPreview,
30325
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
30326
parseOptions:
TestOptions
.RegularPreview,
30398
compilation1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll,
30399
parseOptions:
TestOptions
.RegularPreview,
30516
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
30517
parseOptions:
TestOptions
.RegularPreview,
30520
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
30521
parseOptions:
TestOptions
.RegularPreview,
30531
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
30532
parseOptions:
TestOptions
.RegularPreview,
30574
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
30575
parseOptions:
TestOptions
.RegularPreview,
30578
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
30579
parseOptions:
TestOptions
.RegularPreview,
30589
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
30590
parseOptions:
TestOptions
.RegularPreview,
30631
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
30632
parseOptions:
TestOptions
.RegularPreview,
30635
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
30636
parseOptions:
TestOptions
.Regular10,
30660
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
30661
parseOptions:
TestOptions
.Regular10,
30717
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
30718
parseOptions:
TestOptions
.RegularPreview,
30721
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
30722
parseOptions:
TestOptions
.Regular10,
30732
var compilation3 = CreateCompilation(source2 + source1, options:
TestOptions
.DebugDll,
30733
parseOptions:
TestOptions
.Regular10,
30783
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
30784
parseOptions:
TestOptions
.RegularPreview,
30869
compilation1 = CreateCompilation(source1, options:
TestOptions
.ReleaseDll,
30870
parseOptions:
TestOptions
.RegularPreview,
30987
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
30988
parseOptions:
TestOptions
.RegularPreview,
31038
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
31039
parseOptions:
TestOptions
.RegularPreview,
31082
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
31083
parseOptions:
TestOptions
.RegularPreview,
31136
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
31137
parseOptions:
TestOptions
.RegularPreview,
31196
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
31197
parseOptions:
TestOptions
.RegularPreview,
31244
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
31245
parseOptions:
TestOptions
.RegularPreview,
31287
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
31288
parseOptions:
TestOptions
.RegularPreview,
31341
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
31342
parseOptions:
TestOptions
.RegularPreview,
31390
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
31391
parseOptions:
TestOptions
.RegularPreview,
31463
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
31464
parseOptions:
TestOptions
.RegularPreview,
31521
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
31522
parseOptions:
TestOptions
.RegularPreview,
31574
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
31575
parseOptions:
TestOptions
.RegularPreview,
31615
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
31616
parseOptions:
TestOptions
.RegularPreview,
31699
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll,
31700
parseOptions:
TestOptions
.RegularPreview,
31711
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
31712
parseOptions:
TestOptions
.RegularPreview,
31771
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll,
31772
parseOptions:
TestOptions
.RegularPreview,
31784
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
31785
parseOptions:
TestOptions
.RegularPreview,
31834
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
31835
parseOptions:
TestOptions
.RegularPreview,
31869
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
31870
parseOptions:
TestOptions
.RegularPreview,
31903
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
31904
parseOptions:
TestOptions
.RegularPreview,
32037
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugDll,
32038
parseOptions:
TestOptions
.RegularPreview,
32085
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
32086
parseOptions:
TestOptions
.RegularPreview,
32136
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
32137
parseOptions:
TestOptions
.RegularPreview,
32180
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32181
parseOptions:
TestOptions
.RegularPreview,
32214
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32215
parseOptions:
TestOptions
.RegularPreview,
32268
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32269
parseOptions:
TestOptions
.RegularPreview,
32309
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32310
parseOptions:
TestOptions
.RegularPreview,
32344
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32345
parseOptions:
TestOptions
.RegularPreview,
32385
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32386
parseOptions:
TestOptions
.RegularPreview,
32427
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32428
parseOptions:
TestOptions
.RegularPreview,
32473
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32474
parseOptions:
TestOptions
.RegularPreview,
32515
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32516
parseOptions:
TestOptions
.RegularPreview,
32551
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32552
parseOptions:
TestOptions
.RegularPreview,
32593
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32594
parseOptions:
TestOptions
.RegularPreview,
32615
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32616
parseOptions:
TestOptions
.RegularPreview,
32655
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32656
parseOptions:
TestOptions
.RegularPreview,
32693
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32694
parseOptions:
TestOptions
.RegularPreview,
32725
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32726
parseOptions:
TestOptions
.RegularPreview,
32763
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32764
parseOptions:
TestOptions
.RegularPreview,
32795
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32796
parseOptions:
TestOptions
.RegularPreview,
32833
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32834
parseOptions:
TestOptions
.RegularPreview,
32865
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32866
parseOptions:
TestOptions
.RegularPreview,
32903
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32904
parseOptions:
TestOptions
.RegularPreview,
32935
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32936
parseOptions:
TestOptions
.RegularPreview,
32973
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
32974
parseOptions:
TestOptions
.RegularPreview,
33005
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
33006
parseOptions:
TestOptions
.RegularPreview,
33043
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
33044
parseOptions:
TestOptions
.RegularPreview,
33065
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
33066
parseOptions:
TestOptions
.RegularPreview,
33096
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
33097
parseOptions:
TestOptions
.RegularPreview,
33132
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
33133
parseOptions:
TestOptions
.RegularPreview,
33163
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
33164
parseOptions:
TestOptions
.RegularPreview,
33199
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
33200
parseOptions:
TestOptions
.RegularPreview,
33230
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
33231
parseOptions:
TestOptions
.RegularPreview,
33266
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
33267
parseOptions:
TestOptions
.RegularPreview,
33297
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll,
33298
parseOptions:
TestOptions
.RegularPreview,
33408
""", options:
TestOptions
.DebugDll, parseOptions:
TestOptions
.RegularPreview, targetFramework: _supportingFramework).VerifyDiagnostics(
33433
""", options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview, targetFramework: _supportingFramework).VerifyDiagnostics(
33450
""", options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview, targetFramework: _supportingFramework).VerifyDiagnostics(
33474
options:
TestOptions
.DebugExe,
33475
parseOptions:
TestOptions
.RegularPreview,
33496
""", options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview, targetFramework: _supportingFramework).VerifyDiagnostics(
33520
options:
TestOptions
.DebugExe,
33521
parseOptions:
TestOptions
.RegularPreview,
33542
""", options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.RegularPreview, targetFramework: _supportingFramework).VerifyDiagnostics(
33655
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugDll,
33660
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll, references: new[] { compilation1.ToMetadataReference() },
33665
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugDll, references: new[] { compilation1.EmitToImageReference() },
33712
var compilation1 = CreateCompilation(source1 + source2, options:
TestOptions
.DebugDll,
33717
var compilation2 = CreateCompilation(source2, options:
TestOptions
.DebugDll, references: new[] { compilation1.ToMetadataReference() },
33722
var compilation3 = CreateCompilation(source2, options:
TestOptions
.DebugDll, references: new[] { compilation1.EmitToImageReference() },
Symbols\SymbolDistinguisherTests.cs (2)
233
var libRef = CreateCompilation(tree, assemblyName: "Metadata", options:
TestOptions
.UnsafeReleaseDll).EmitToImageReference();
234
var comp = CreateCompilation(tree, new[] { libRef }, assemblyName: "Source", options:
TestOptions
.UnsafeReleaseDll);
Symbols\SymbolErrorTests.cs (164)
100
var module1 = CreateCompilation(text1, options:
TestOptions
.ReleaseModule, assemblyName: name1);
103
options:
TestOptions
.ReleaseModule,
108
options:
TestOptions
.ReleaseDll.WithSpecificDiagnosticOptions(new Dictionary<string, ReportDiagnostic>() { { MessageProvider.Instance.GetIdForErrorCode((int)ErrorCode.WRN_UnreferencedField), ReportDiagnostic.Suppress } }),
839
CreateCompilation(text, parseOptions:
TestOptions
.Regular,
848
CreateCompilation(text, parseOptions:
TestOptions
.Regular7,
876
CreateCompilation(text, parseOptions:
TestOptions
.Regular7,
898
CreateCompilation(text, parseOptions:
TestOptions
.Regular7,
1118
CreateCompilationWithMscorlib46(text, parseOptions:
TestOptions
.Regular).VerifyDiagnostics(
1169
CreateCompilationWithMscorlib46(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics(
1716
CreateCompilation(text, parseOptions:
TestOptions
.Regular7).VerifyDiagnostics(
1763
CreateCompilation(text, parseOptions:
TestOptions
.Regular7, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics(
2086
CreateCompilation(text, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
2152
CreateCompilation(text, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
2846
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
2876
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
2893
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
2915
CreateCompilationWithMscorlibAndSpan(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
3158
var c = CreateCompilation(text, options:
TestOptions
.ReleaseDll.WithAllowUnsafe(false));
3238
CreateCompilation(text, parseOptions:
TestOptions
.Regular7).VerifyDiagnostics(
4204
", parseOptions:
TestOptions
.Regular7)
4228
", parseOptions:
TestOptions
.Regular7)
4408
CreateCompilationWithMscorlib46(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
4443
CreateCompilationWithMscorlib46(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
4517
CreateCompilationWithMscorlib46(source, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular12)
4520
CreateCompilationWithMscorlib46(source, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular11)
4547
CreateCompilationWithMscorlib46(source, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
4567
CreateCompilationWithMscorlib46(source, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
5653
var lib = CreateCompilation(libSource, assemblyName: "Lib", options:
TestOptions
.ReleaseDll);
5714
var lib = CreateCompilation(libSource, assemblyName: "Lib", options:
TestOptions
.ReleaseDll);
5774
var lib = CreateCompilation(libSource, assemblyName: "Lib", options:
TestOptions
.ReleaseDll);
5835
var lib = CreateCompilation(libSource, assemblyName: "Lib", options:
TestOptions
.ReleaseDll);
5895
var lib = CreateCompilation(libSource, assemblyName: "Lib", options:
TestOptions
.ReleaseDll);
5918
}, options:
TestOptions
.ReleaseExe);
5930
}, options:
TestOptions
.ReleaseExe);
5952
var lib = CreateCompilation(libSource, assemblyName: "Lib", options:
TestOptions
.ReleaseDll);
5975
}, options:
TestOptions
.ReleaseExe);
5988
}, options:
TestOptions
.ReleaseExe);
6011
var lib = CreateCompilation(libSource, assemblyName: "Lib", options:
TestOptions
.ReleaseDll);
6034
}, options:
TestOptions
.ReleaseExe);
6047
}, options:
TestOptions
.ReleaseExe);
6070
var lib = CreateCompilation(libSource, assemblyName: "Lib", options:
TestOptions
.ReleaseDll);
6093
}, options:
TestOptions
.ReleaseExe);
6106
}, options:
TestOptions
.ReleaseExe);
6267
var lib = CreateCompilation(libSource, assemblyName: "Lib", options:
TestOptions
.ReleaseDll);
6327
var lib = CreateCompilation(libSource, assemblyName: "Lib", options:
TestOptions
.ReleaseDll);
6389
var lib = CreateCompilation(libSource, assemblyName: "Lib", options:
TestOptions
.ReleaseDll);
6449
var lib = CreateCompilation(libSource, assemblyName: "Lib", options:
TestOptions
.ReleaseDll);
6511
var lib = CreateCompilation(libSource, assemblyName: "Lib", options:
TestOptions
.ReleaseDll);
6574
var lib = CreateCompilation(libSource, assemblyName: "Lib", options:
TestOptions
.ReleaseDll);
6637
var lib = CreateCompilation(libSource, assemblyName: "Lib", options:
TestOptions
.ReleaseDll);
6708
var lib = CreateCompilation(libSource, assemblyName: "Lib", options:
TestOptions
.ReleaseDll);
6771
var lib = CreateCompilation(libSource, assemblyName: "Lib", options:
TestOptions
.ReleaseDll);
6840
var lib = CreateCompilation(libSource, assemblyName: "Lib", options:
TestOptions
.ReleaseDll);
6911
var mod3Ref = CreateCompilation(mod3Source, options:
TestOptions
.ReleaseModule, assemblyName: "ErrTestMod03").EmitToImageReference();
6996
var mod3Ref = CreateCompilation(mod3Source, options:
TestOptions
.ReleaseModule, assemblyName: "ErrTestMod03").EmitToImageReference();
7067
var ModuleA01Ref = CreateCompilation(ModuleA01, options:
TestOptions
.ReleaseModule, assemblyName: "ModuleA01").EmitToImageReference();
7075
var ModuleB01Ref = CreateCompilation(ModuleB01, options:
TestOptions
.ReleaseModule, assemblyName: "ModuleB01").EmitToImageReference();
7092
},
TestOptions
.ReleaseExe);
7146
},
TestOptions
.ReleaseDll);
7229
var moduleRef2 = CreateCompilation(mod2Source, options:
TestOptions
.ReleaseModule, assemblyName: "mod_1_2").EmitToImageReference();
7236
},
TestOptions
.ReleaseDll);
7265
var forwardedTypes1 = CreateCompilation(forwardedTypesSource, options:
TestOptions
.ReleaseDll, assemblyName: "ForwardedTypes1");
7268
var forwardedTypes2 = CreateCompilation(forwardedTypesSource, options:
TestOptions
.ReleaseDll, assemblyName: "ForwardedTypes2");
7272
options:
TestOptions
.ReleaseModule,
7283
options:
TestOptions
.ReleaseModule,
7289
options:
TestOptions
.ReleaseModule,
7295
options:
TestOptions
.ReleaseModule,
7301
options:
TestOptions
.ReleaseModule,
7311
},
TestOptions
.ReleaseDll);
7324
},
TestOptions
.ReleaseDll);
7334
},
TestOptions
.ReleaseDll);
7344
},
TestOptions
.ReleaseDll);
7363
},
TestOptions
.ReleaseDll);
7377
},
TestOptions
.ReleaseDll);
7391
},
TestOptions
.ReleaseDll);
7405
},
TestOptions
.ReleaseDll);
7416
},
TestOptions
.ReleaseDll);
8132
CreateCompilation(text, parseOptions:
TestOptions
.Regular13).VerifyDiagnostics(
9147
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular7);
9180
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular7, targetFramework: TargetFramework.NetCoreApp);
9347
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
9362
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
9799
CreateCompilation(text, parseOptions:
TestOptions
.Regular7, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics(
10764
var comp = CreateCompilation(text, parseOptions:
TestOptions
.RegularPreview);
10774
comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular10);
10790
comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular11);
10811
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular7);
10891
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular9);
10944
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp5));
11300
CreateCompilation(text, options:
TestOptions
.ReleaseDll).VerifyDiagnostics(
11975
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyEmitDiagnostics(
12820
CreateCompilation(text, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
12836
CreateCompilation(text, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
12978
CreateCompilation(source, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods).VerifyDiagnostics(
13378
var regularComp = CreateCompilation(text, options:
TestOptions
.ReleaseDll.WithWarningLevel(4));
13804
comp = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithWarningLevel(4));
14015
CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods).VerifyDiagnostics(
14091
CreateCompilation(text, parseOptions:
TestOptions
.RegularWithExtendedPartialMethods).VerifyDiagnostics(
14465
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
14824
", options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
14893
}", parseOptions:
TestOptions
.Regular7)
15455
var comp = CreateCompilation(text, options:
TestOptions
.ReleaseDll);
15468
var comp = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
15482
var comp = CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll);
15498
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
15513
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
15528
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
15540
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
15555
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
15582
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
15600
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
15615
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
15629
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
15646
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
15680
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
15705
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
15726
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
15917
CreateCompilation(text, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics(
16736
CreateCompilationWithMscorlib40AndSystemCore(text, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
16759
CreateCompilationWithMscorlib40AndSystemCore(text, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
16770
CreateCompilationWithMscorlib40AndSystemCore(text, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
16853
CreateCompilationWithMscorlib461(new[] { Parse(text, options:
TestOptions
.Script) }).VerifyDiagnostics(expectedDiagnostics);
18451
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
18479
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
18504
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
18529
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
18555
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
18575
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
18601
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
18624
var comp = CreateCompilation(source, options:
TestOptions
.DebugDll);
19084
var netModule = CreateEmptyCompilation("", options:
TestOptions
.ReleaseModule, assemblyName: "lib").EmitToImageReference(expectedWarnings: new[] { Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion) });
20381
", options:
TestOptions
.ReleaseDll, assemblyName: "Bug7920_CS");
20386
", new[] { new CSharpCompilationReference(comp1) }, options:
TestOptions
.ReleaseDll);
20400
var comp3 = CreateCompilation(source3, new[] { new CSharpCompilationReference(comp2) }, options:
TestOptions
.ReleaseDll);
20404
var comp4 = CreateCompilation(source3, new[] { comp2.EmitToImageReference() }, options:
TestOptions
.ReleaseDll);
20458
var compilation = CreateCompilationWithMscorlib461(source, parseOptions:
TestOptions
.Script, options:
TestOptions
.DebugExe);
20480
var submission = CSharpCompilation.CreateScriptCompilation("s0.dll", SyntaxFactory.ParseSyntaxTree(source, options:
TestOptions
.Script), new[] { MscorlibRef_v4_0_30316_17626, SystemCoreRef });
20905
options:
TestOptions
.DebugDll,
20970
options:
TestOptions
.DebugDll,
21333
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular10);
21336
comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.DebugDll.WithWarningLevel(6));
21339
comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.DebugDll.WithWarningLevel(7));
21394
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular10);
21397
comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.DebugDll.WithWarningLevel(6));
21400
comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.DebugDll.WithWarningLevel(7));
21439
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular10);
21442
comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.DebugDll.WithWarningLevel(6));
21461
comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.DebugDll.WithWarningLevel(7));
21484
var comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.DebugDll.WithWarningLevel(7));
21502
comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.DebugDll.WithWarningLevel(7));
21529
comp = CreateCompilation(text, parseOptions:
TestOptions
.Regular11, options:
TestOptions
.DebugDll.WithWarningLevel(7));
Symbols\SymbolExtensionTests.cs (5)
99
var compilation = CreateCompilation(source, options:
TestOptions
.DebugDll);
117
var compilation = CreateCompilation(source, options:
TestOptions
.DebugDll);
135
var compilation = CreateCompilation(source, options:
TestOptions
.DebugDll);
154
var compilation = CreateCompilation(source, options:
TestOptions
.DebugDll);
248
var compilation = CreateCompilationWithIL(source, ilSource, options:
TestOptions
.ReleaseExe);
Symbols\TypeTests.cs (5)
807
TestOptions
.ReleaseDll.WithCryptoPublicKey(TestResources.TestKeys.PublicKey_b03f5f7f11d50a3a),
816
new[] { Parse(mainSrc, options:
TestOptions
.Script) },
818
TestOptions
.ReleaseDll.WithUsings("System.Console"));
829
new[] { Parse(mainSrc, options:
TestOptions
.Script) },
831
TestOptions
.ReleaseDll.WithUsings("System.Console").WithTopLevelBinderFlags(BinderFlags.IgnoreCorLibraryDuplicatedTypes));
Symbols\UnsignedRightShiftTests.cs (178)
109
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
110
parseOptions:
TestOptions
.RegularPreview);
389
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
390
parseOptions:
TestOptions
.RegularPreview);
393
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
394
parseOptions:
TestOptions
.Regular10);
397
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
398
parseOptions:
TestOptions
.Regular11);
493
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
494
parseOptions:
TestOptions
.RegularPreview);
521
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
522
parseOptions:
TestOptions
.RegularPreview);
617
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
618
parseOptions:
TestOptions
.RegularPreview);
892
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
893
parseOptions:
TestOptions
.RegularPreview);
896
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
897
parseOptions:
TestOptions
.Regular10);
900
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
901
parseOptions:
TestOptions
.Regular11);
922
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
923
parseOptions:
TestOptions
.RegularPreview);
948
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
949
parseOptions:
TestOptions
.RegularPreview);
970
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
971
parseOptions:
TestOptions
.RegularPreview);
1007
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1008
parseOptions:
TestOptions
.RegularPreview);
1011
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1012
parseOptions:
TestOptions
.Regular10);
1015
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1016
parseOptions:
TestOptions
.Regular11);
1048
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1049
parseOptions:
TestOptions
.RegularPreview);
1052
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1053
parseOptions:
TestOptions
.Regular10);
1056
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1057
parseOptions:
TestOptions
.Regular11);
1160
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
1161
parseOptions:
TestOptions
.RegularPreview);
1445
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1446
parseOptions:
TestOptions
.RegularPreview);
1449
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1450
parseOptions:
TestOptions
.Regular10);
1453
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1454
parseOptions:
TestOptions
.Regular11);
1572
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
1573
parseOptions:
TestOptions
.RegularPreview);
1853
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1854
parseOptions:
TestOptions
.RegularPreview);
1857
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1858
parseOptions:
TestOptions
.Regular10);
1861
compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1862
parseOptions:
TestOptions
.Regular11);
1883
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1884
parseOptions:
TestOptions
.RegularPreview);
1909
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1910
parseOptions:
TestOptions
.RegularPreview);
1931
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
1932
parseOptions:
TestOptions
.RegularPreview);
1973
var compilation1 = CreateCompilation(source0 + source1, options:
TestOptions
.DebugExe,
1974
parseOptions:
TestOptions
.RegularPreview);
1990
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll,
1991
parseOptions:
TestOptions
.RegularPreview);
1993
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugExe, references: new[] { compilation0.ToMetadataReference() },
1994
parseOptions:
TestOptions
.RegularPreview);
1999
var compilation3 = CreateCompilation(source1, options:
TestOptions
.DebugExe, references: new[] { compilation0.EmitToImageReference() },
2000
parseOptions:
TestOptions
.RegularPreview);
2062
var compilation1 = CreateCompilationWithIL(source1, ilSource, options:
TestOptions
.DebugExe,
2063
parseOptions:
TestOptions
.RegularPreview);
2129
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
2130
parseOptions:
TestOptions
.RegularPreview);
2179
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
2180
parseOptions:
TestOptions
.RegularPreview);
2225
var compilation1 = CreateCompilation(source0 + source1, options:
TestOptions
.DebugExe,
2226
parseOptions:
TestOptions
.RegularPreview);
2242
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll,
2243
parseOptions:
TestOptions
.RegularPreview);
2245
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugExe, references: new[] { compilation0.ToMetadataReference() },
2246
parseOptions:
TestOptions
.RegularPreview);
2251
var compilation3 = CreateCompilation(source1, options:
TestOptions
.DebugExe, references: new[] { compilation0.EmitToImageReference() },
2252
parseOptions:
TestOptions
.RegularPreview);
2278
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll);
2280
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll, references: new[] { compilation0.ToMetadataReference() },
2281
parseOptions:
TestOptions
.RegularPreview);
2288
var compilation3 = CreateCompilation(source1, options:
TestOptions
.DebugDll, references: new[] { compilation0.EmitToImageReference() },
2289
parseOptions:
TestOptions
.RegularPreview);
2318
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
2319
parseOptions:
TestOptions
.RegularPreview);
2367
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
2368
parseOptions:
TestOptions
.RegularPreview);
2404
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
2405
parseOptions:
TestOptions
.RegularPreview);
2443
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
2444
parseOptions:
TestOptions
.RegularPreview);
2495
var compilation1 = CreateCompilation(source0 + source1, options:
TestOptions
.DebugExe,
2496
parseOptions:
TestOptions
.RegularPreview);
2538
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
2539
parseOptions:
TestOptions
.RegularPreview);
2593
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
2594
parseOptions:
TestOptions
.RegularPreview);
2635
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
2636
parseOptions:
TestOptions
.RegularPreview);
2674
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
2675
parseOptions:
TestOptions
.RegularPreview);
2702
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
2710
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular10.WithDocumentationMode(DocumentationMode.Diagnose));
2728
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular11.WithDocumentationMode(DocumentationMode.Diagnose));
2758
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
2787
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
2811
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
2851
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
2874
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
2882
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular10.WithDocumentationMode(DocumentationMode.Diagnose));
2900
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.Regular11.WithDocumentationMode(DocumentationMode.Diagnose));
2930
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
2959
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
2983
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
3023
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions:
TestOptions
.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose));
3112
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
3113
parseOptions:
TestOptions
.Regular10);
3120
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
3121
parseOptions:
TestOptions
.Regular11);
3206
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
3207
parseOptions:
TestOptions
.Regular10);
3214
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
3215
parseOptions:
TestOptions
.Regular11);
3300
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
3301
parseOptions:
TestOptions
.Regular10);
3308
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
3309
parseOptions:
TestOptions
.Regular11);
3394
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
3395
parseOptions:
TestOptions
.Regular10);
3402
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugExe,
3403
parseOptions:
TestOptions
.Regular11);
3428
var compilation1 = CreateCompilation(source0 + source1, options:
TestOptions
.DebugDll,
3429
parseOptions:
TestOptions
.Regular10);
3436
compilation1 = CreateCompilation(source0 + source1, options:
TestOptions
.DebugDll,
3437
parseOptions:
TestOptions
.Regular11);
3440
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll,
3441
parseOptions:
TestOptions
.RegularPreview);
3445
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll, references: new[] { reference },
3446
parseOptions:
TestOptions
.Regular10);
3453
compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll, references: new[] { reference },
3454
parseOptions:
TestOptions
.Regular11);
3480
var compilation1 = CreateCompilation(source0 + source1, options:
TestOptions
.DebugDll,
3481
parseOptions:
TestOptions
.Regular10);
3488
compilation1 = CreateCompilation(source0 + source1, options:
TestOptions
.DebugDll,
3489
parseOptions:
TestOptions
.Regular11);
3492
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll,
3493
parseOptions:
TestOptions
.RegularPreview);
3497
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll, references: new[] { reference },
3498
parseOptions:
TestOptions
.Regular10);
3505
compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll, references: new[] { reference },
3506
parseOptions:
TestOptions
.Regular11);
3532
var compilation1 = CreateCompilation(source0 + source1, options:
TestOptions
.DebugDll,
3533
parseOptions:
TestOptions
.Regular10);
3540
compilation1 = CreateCompilation(source0 + source1, options:
TestOptions
.DebugDll,
3541
parseOptions:
TestOptions
.Regular11);
3544
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll,
3545
parseOptions:
TestOptions
.RegularPreview);
3549
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll, references: new[] { reference },
3550
parseOptions:
TestOptions
.Regular10);
3557
compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll, references: new[] { reference },
3558
parseOptions:
TestOptions
.Regular11);
3584
var compilation1 = CreateCompilation(source0 + source1, options:
TestOptions
.DebugDll,
3585
parseOptions:
TestOptions
.Regular10);
3592
compilation1 = CreateCompilation(source0 + source1, options:
TestOptions
.DebugDll,
3593
parseOptions:
TestOptions
.Regular11);
3596
var compilation0 = CreateCompilation(source0, options:
TestOptions
.DebugDll,
3597
parseOptions:
TestOptions
.RegularPreview);
3601
var compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll, references: new[] { reference },
3602
parseOptions:
TestOptions
.Regular10);
3609
compilation2 = CreateCompilation(source1, options:
TestOptions
.DebugDll, references: new[] { reference },
3610
parseOptions:
TestOptions
.Regular11);
3629
var compilation1 = CreateCompilation(source1, options:
TestOptions
.DebugDll,
3630
parseOptions:
TestOptions
.RegularPreview);
3690
CompileAndVerify(source, expectedOutput: @"150150", parseOptions:
TestOptions
.Regular11);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2167)
Diagnostics\DiagnosticTest.cs (46)
564
CreateCompilation(text, options:
TestOptions
.ReleaseExe).VerifyDiagnostics(
571
CSharpCompilationOptions option =
TestOptions
.ReleaseExe.WithSpecificDiagnosticOptions(warnings);
574
option =
TestOptions
.ReleaseExe.WithGeneralDiagnosticOption(ReportDiagnostic.Error);
581
option =
TestOptions
.ReleaseExe.WithGeneralDiagnosticOption(ReportDiagnostic.Default).WithSpecificDiagnosticOptions(warnings);
604
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
667
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
715
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
771
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
827
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
885
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
943
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
999
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
1066
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
1140
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
1211
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
1264
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
1318
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
1371
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
1419
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
1466
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
1536
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
1583
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
1642
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
1692
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
1735
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
1762
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
1808
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
1875
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
1917
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
1978
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
2014
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
2050
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
2097
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
2140
CreateCompilation(text1, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(expected1);
2143
var options =
TestOptions
.DebugDll.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress);
2145
CreateCompilation(text1, parseOptions:
TestOptions
.Regular7_3, options: options).VerifyDiagnostics();
2152
CreateCompilation(text2, parseOptions:
TestOptions
.Regular7_3, options: options).VerifyDiagnostics(expected1);
2159
CreateCompilation(text3, parseOptions:
TestOptions
.Regular7_3, options: options).VerifyDiagnostics(expected1);
2173
CreateCompilation(text4, parseOptions:
TestOptions
.Regular7_3, options: options).VerifyDiagnostics(expected2);
2180
CreateCompilation(text5, parseOptions:
TestOptions
.Regular7_3, options: options).VerifyDiagnostics(expected2);
2201
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
2226
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
2309
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
2331
CSharpCompilationOptions commonoption =
TestOptions
.ReleaseExe;
2526
CSharpCompilationOptions options =
TestOptions
.ReleaseExe;
2874
var ca = CreateCompilation(source, options:
TestOptions
.ReleaseDll.WithStrongNameProvider(new DesktopStrongNameProvider()).WithCryptoKeyContainer("bogus"));
Diagnostics\LineSpanDirectiveTests.cs (1)
634
var verifier = CompileAndVerify(source, options:
TestOptions
.DebugDll);
IncrementalParsing\BinaryExpression.cs (4)
176
MakeChange(oldStyle, newStyle, options:
TestOptions
.Script);
177
MakeChange(oldStyle, newStyle, topLevel: true, options:
TestOptions
.Script);
183
MakeChange(oldStyle, newStyle, options:
TestOptions
.Script);
184
MakeChange(oldStyle, newStyle, topLevel: true, options:
TestOptions
.Script);
IncrementalParsing\ChangingAsync.cs (2)
61
ParseAndValidate(text, validator,
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp5));
62
ParseAndValidate(text, validator,
TestOptions
.Script.WithLanguageVersion(LanguageVersion.CSharp5));
IncrementalParsing\ChangingIdentifiers.cs (2)
244
MakeIncrementalNameChanges(oldStyle, newStyle, expressionValidator, options:
TestOptions
.Script);
245
MakeIncrementalNameChanges(oldStyle, newStyle, expressionValidator, topLevel: true, options:
TestOptions
.Script);
IncrementalParsing\CompoundAssignment.cs (2)
89
MakeAssignmentChanges(oldStyle, newStyle, options:
TestOptions
.Script);
90
MakeAssignmentChanges(oldStyle, newStyle, topLevel: true, options:
TestOptions
.Script);
IncrementalParsing\IncrementalParsingTests.cs (8)
436
var oldTree = SyntaxFactory.ParseSyntaxTree(text, options:
TestOptions
.Script);
460
var oldTree = SyntaxFactory.ParseSyntaxTree(text, options:
TestOptions
.Script);
2782
var startTree = SyntaxFactory.ParseSyntaxTree(oldText, options:
TestOptions
.Script);
2795
var parsedTree = SyntaxFactory.ParseSyntaxTree(newText, options:
TestOptions
.Script);
2811
var startTree = SyntaxFactory.ParseSyntaxTree(oldText, options:
TestOptions
.Script);
2826
var parsedTree = SyntaxFactory.ParseSyntaxTree(newText, options:
TestOptions
.Script);
2841
var startTree = SyntaxFactory.ParseSyntaxTree(oldText, options:
TestOptions
.Script);
2853
var parsedTree = SyntaxFactory.ParseSyntaxTree(newText, options:
TestOptions
.Script);
IncrementalParsing\TypeChanges.cs (1)
150
ParseAndValidate(text, validator,
TestOptions
.Script);
IncrementalParsing\UnaryExpression.cs (2)
65
MakeUnaryChanges(oldStyle, newStyle, options:
TestOptions
.Script);
66
MakeUnaryChanges(oldStyle, newStyle, topLevel: true, options:
TestOptions
.Script);
LexicalAndXml\CrefLexerTests.cs (1)
444
using (var lexer = new InternalSyntax.Lexer(SourceText.From(text + "'"),
TestOptions
.RegularWithDocumentationComments))
LexicalAndXml\DisabledRegionTests.cs (1)
119
ParserErrorMessageTests.ParseAndValidate(source,
TestOptions
.Script,
LexicalAndXml\LexicalErrorTests.cs (85)
268
ParserErrorMessageTests.ParseAndValidate(test,
TestOptions
.Regular12,
287
ParserErrorMessageTests.ParseAndValidate(test,
TestOptions
.Regular12,
306
ParserErrorMessageTests.ParseAndValidate(test,
TestOptions
.Regular12,
325
ParserErrorMessageTests.ParseAndValidate(test,
TestOptions
.Regular13);
341
ParserErrorMessageTests.ParseAndValidate(test,
TestOptions
.Regular13);
357
ParserErrorMessageTests.ParseAndValidate(test,
TestOptions
.Regular13);
498
ParserErrorMessageTests.ParseAndValidate(test,
TestOptions
.Script, Diagnostic(ErrorCode.ERR_PPReferenceFollowsToken, "r"));
975
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics();
976
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
994
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
998
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
1016
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1020
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
1039
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1043
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
1061
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1065
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
1084
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1088
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
1108
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1112
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
1131
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1135
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
1154
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1158
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
1177
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1181
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
1201
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1205
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
1243
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1262
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
1316
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1335
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
1370
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics();
1371
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
1389
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1393
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
1415
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1419
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
1439
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics();
1440
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
1458
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1462
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
1483
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1487
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
1508
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1512
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
1530
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1534
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
1557
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1561
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
1584
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1588
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
1608
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1612
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
1633
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1637
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
1658
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1662
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
1683
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1687
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
1710
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1714
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
1737
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1741
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
1762
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1766
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
1790
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1794
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
1818
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1822
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
1844
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1848
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
1869
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1873
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
1897
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1901
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
1925
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1929
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
1951
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1955
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
1974
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics();
1975
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
1994
CreateCompilation(test, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
1998
CreateCompilation(test, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
LexicalAndXml\LexicalTests.cs (4)
1152
var token = LexToken(text,
TestOptions
.Regular12);
1171
var token = LexToken(text,
TestOptions
.Regular13);
1333
var token = LexToken(text,
TestOptions
.Regular12);
1350
var token = LexToken(text,
TestOptions
.Regular13);
LexicalAndXml\NameAttributeValueLexerTests.cs (1)
408
using (var lexer = new InternalSyntax.Lexer(SourceText.From(text + "'"),
TestOptions
.RegularWithDocumentationComments))
LexicalAndXml\PreprocessorTests.cs (22)
3687
var node = Parse(text, options:
TestOptions
.Regular);
3703
var node = Parse(text, options:
TestOptions
.Regular);
3735
var node = Parse(text, options:
TestOptions
.Regular);
3751
var node = Parse(text, options:
TestOptions
.Regular7_3);
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);
4466
var node = Parse(text, options:
TestOptions
.Regular7_3);
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\AnonymousFunctionParsingTests.cs (59)
113
CreateCompilation(test, parseOptions:
TestOptions
.Regular8).GetDiagnostics().Verify(
213
CreateCompilation(test, parseOptions:
TestOptions
.Regular8).GetDiagnostics().Verify(
311
CreateCompilation(test, parseOptions:
TestOptions
.Regular8).GetDiagnostics().Verify(
412
CreateCompilation(test, parseOptions:
TestOptions
.Regular8).GetDiagnostics().Verify(
513
CreateCompilation(test, parseOptions:
TestOptions
.Regular8).GetDiagnostics().Verify(
627
CreateCompilation(test, parseOptions:
TestOptions
.Regular8).GetDiagnostics().Verify();
768
CreateCompilation(test, parseOptions:
TestOptions
.Regular8).GetDiagnostics().Verify(
877
CreateCompilation(test, parseOptions:
TestOptions
.Regular8).GetDiagnostics().Verify(
893
CreateCompilation(testInMethod, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
904
UsingStatement(test, options:
TestOptions
.Regular8);
958
CreateCompilation(testInMethod, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
972
UsingStatement(test, options:
TestOptions
.Regular8);
1024
CreateCompilation(testInMethod, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
1035
UsingStatement(test, options:
TestOptions
.Regular8);
1094
CreateCompilation(testInMethod, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
1105
UsingStatement(test, options:
TestOptions
.Regular8);
1166
CreateCompilation(testInMethod, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
1177
UsingStatement(test, options:
TestOptions
.Regular8);
1233
UsingStatement(test, options: useCsharp9 ?
TestOptions
.Regular9 :
TestOptions
.Regular8,
1280
UsingStatement(test, options: useCsharp9 ?
TestOptions
.Regular9 :
TestOptions
.Regular8,
1330
CreateCompilation(testInMethod, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
1344
UsingStatement(test, options:
TestOptions
.Regular8,
1407
CreateCompilation(testInMethod, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
1421
UsingStatement(test, options:
TestOptions
.Regular8,
1478
UsingStatement(test, options: useCsharp9 ?
TestOptions
.Regular9 :
TestOptions
.Regular8,
1532
UsingStatement(test, options: useCsharp9 ?
TestOptions
.Regular9 :
TestOptions
.Regular8,
1600
CreateCompilation(testInMethod, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
1623
UsingStatement(test, options:
TestOptions
.Regular8,
1704
CreateCompilation(testInMethod, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
1727
UsingStatement(test, options:
TestOptions
.Regular8,
1799
CreateCompilation(testInMethod, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
1810
UsingStatement(test, options:
TestOptions
.Regular8);
1889
CreateCompilation(testWithStatement, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
1916
UsingStatement(test, options:
TestOptions
.Regular8,
2007
CreateCompilation(testInMethod, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
2045
UsingStatement(test, options:
TestOptions
.Regular8,
2112
CreateCompilation(test, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
2129
UsingStatement(test, options:
TestOptions
.Regular8);
2201
CreateCompilation(testWithStatement, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
2215
UsingStatement(test, options:
TestOptions
.Regular8);
2578
CreateCompilation(test, parseOptions:
TestOptions
.Regular8).GetDiagnostics().Verify(
2726
CreateCompilation(test, parseOptions:
TestOptions
.Regular8).GetDiagnostics().Verify(
2875
CreateCompilation(test, parseOptions:
TestOptions
.Regular8).GetDiagnostics().Verify(
2994
CreateCompilation(test, parseOptions:
TestOptions
.Regular8).GetDiagnostics().Verify();
3140
CreateCompilation(test, parseOptions:
TestOptions
.Regular8).GetDiagnostics().Verify(
3254
CreateCompilation(test, parseOptions:
TestOptions
.Regular8).GetDiagnostics().Verify(
3404
CreateCompilation(test, parseOptions:
TestOptions
.Regular8).GetDiagnostics().Verify(
3557
CreateCompilation(test, parseOptions:
TestOptions
.Regular8).GetDiagnostics().Verify(
3711
CreateCompilation(test, parseOptions:
TestOptions
.Regular8).GetDiagnostics().Verify(
3839
CreateCompilation(test, parseOptions:
TestOptions
.Regular8).GetDiagnostics().Verify();
3994
CreateCompilation(test, parseOptions:
TestOptions
.Regular8).GetDiagnostics().Verify(
4117
CreateCompilation(test, parseOptions:
TestOptions
.Regular8).GetDiagnostics().Verify(
4276
CreateCompilation(test, parseOptions:
TestOptions
.Regular8).GetDiagnostics().Verify(
4438
CreateCompilation(test, parseOptions:
TestOptions
.Regular8).GetDiagnostics().Verify(
4601
CreateCompilation(test, parseOptions:
TestOptions
.Regular8).GetDiagnostics().Verify(
Parsing\AsyncParsingTests.cs (5)
21
return SyntaxFactory.ParseSyntaxTree(text, options: (options ??
TestOptions
.Regular).WithLanguageVersion(LanguageVersion.CSharp5));
26
return SyntaxFactory.ParseExpression(text, options: (options ??
TestOptions
.Regular).WithLanguageVersion(LanguageVersion.CSharp5));
2383
CreateCompilation(test, parseOptions:
TestOptions
.Regular5).VerifyDiagnostics(
2470
CreateCompilation(text, parseOptions:
TestOptions
.Regular5).VerifyDiagnostics(
2586
CreateCompilation(test, parseOptions:
TestOptions
.Regular5).VerifyDiagnostics(
Parsing\AsyncStreamsParsingTests.cs (8)
22
return SyntaxFactory.ParseSyntaxTree(text, options: (options ??
TestOptions
.Regular).WithLanguageVersion(LanguageVersion.CSharp8));
27
return SyntaxFactory.ParseExpression(text, options: (options ??
TestOptions
.Regular).WithLanguageVersion(LanguageVersion.CSharp8));
45
", options: useCSharp8 ?
TestOptions
.Regular8 :
TestOptions
.Regular7_3);
286
", options: useCSharp8 ?
TestOptions
.Regular8 :
TestOptions
.Regular7_3);
479
", options: useCSharp8 ?
TestOptions
.Regular8 :
TestOptions
.Regular7_3);
Parsing\CollectionExpressionParsingTests.cs (2)
22
UsingExpression("[A, B]",
TestOptions
.Regular.WithLanguageVersion(languageVersion));
17098
UsingExpression(text,
TestOptions
.Regular);
Parsing\CrefParsingTests.cs (26)
350
foreach (var options in new[] {
TestOptions
.RegularPreview,
TestOptions
.Regular10,
TestOptions
.Regular11 })
365
foreach (var options in new[] {
TestOptions
.RegularPreview,
TestOptions
.Regular10,
TestOptions
.Regular11 })
381
foreach (var options in new[] {
TestOptions
.RegularPreview,
TestOptions
.Regular10,
TestOptions
.Regular11 })
397
foreach (var options in new[] {
TestOptions
.RegularPreview,
TestOptions
.Regular10,
TestOptions
.Regular11 })
438
UsingNode("operator unchecked +",
TestOptions
.RegularWithDocumentationComments,
506
UsingNode("operator unchecked +(A)",
TestOptions
.RegularWithDocumentationComments,
582
UsingNode("T.operator unchecked +",
TestOptions
.RegularWithDocumentationComments,
767
UsingNode("operator unchecked }}(A{A{T}})",
TestOptions
.RegularWithDocumentationComments,
902
UsingNode("implicit operator unchecked A",
TestOptions
.RegularWithDocumentationComments,
983
UsingNode("explicit operator unchecked A(B)",
TestOptions
.RegularWithDocumentationComments,
1071
UsingNode("T.implicit operator unchecked A",
TestOptions
.RegularWithDocumentationComments,
1175
UsingNode("T.explicit operator unchecked A(B)",
TestOptions
.RegularWithDocumentationComments,
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 (57)
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,
7162
",
TestOptions
.Regular7_3);
7206
",
TestOptions
.Regular7_3,
7252
UsingStatement(@"void M(string name!!) { }", options:
TestOptions
.RegularPreview,
7287
UsingStatement(@"void M(string name!) { }", options:
TestOptions
.RegularPreview,
7325
/*comment1*/!/*comment2*/) { }", options:
TestOptions
.RegularPreview,
7362
UsingStatement(@"void M(string name!! = null) { }", options:
TestOptions
.RegularPreview,
7399
UsingStatement(@"void M(string name!!=null) { }", options:
TestOptions
.RegularPreview,
7436
UsingStatement(@"void M(__arglist!) { }", options:
TestOptions
.RegularPreview,
7468
UsingStatement(@"void M(__arglist!!) { }", options:
TestOptions
.RegularPreview,
7500
UsingStatement(@"void M(__arglist!! = null) { }", options:
TestOptions
.RegularPreview,
7532
UsingStatement(@"void M(__arglist!!= null) { }", options:
TestOptions
.RegularPreview,
7564
UsingStatement(@"void M(__arglist[]!!= null) { }", options:
TestOptions
.RegularPreview,
7630
UsingStatement(@"void M(__arglist[]) { }", options:
TestOptions
.RegularPreview,
7692
UsingStatement(@"void M(__arglist = null) { }", options:
TestOptions
.RegularPreview,
7724
UsingStatement(@"void M(string name !!=null) { }", options:
TestOptions
.RegularPreview,
7761
UsingStatement(@"void M(string name!!=null) { }", options:
TestOptions
.RegularPreview,
7798
UsingStatement(@"void M(string name!!= null) { }", options:
TestOptions
.RegularPreview,
7835
UsingStatement(@"void M(string name!!=null) { }", options:
TestOptions
.RegularPreview,
7872
UsingStatement(@"void M(string name! !=null) { }", options:
TestOptions
.RegularPreview,
7909
UsingStatement(@"void M(string name !!=null) { }", options:
TestOptions
.RegularPreview,
7946
UsingStatement(@"void M(string name! ! =null) { }", options:
TestOptions
.RegularPreview,
7983
UsingStatement(@"void M(string name ! !=null) { }", options:
TestOptions
.RegularPreview,
8020
UsingStatement(@"void M(string name!!= null) { }", options:
TestOptions
.RegularPreview,
8057
UsingStatement(@"void M(string name!!= = null) { }", options:
TestOptions
.RegularPreview,
8098
}", options:
TestOptions
.RegularPreview,
8149
}", options:
TestOptions
.RegularPreview,
8199
}", options:
TestOptions
.RegularPreview,
8269
Del d = delegate(int k!!) { /* ... */ };", options:
TestOptions
.RegularPreview,
8359
",
TestOptions
.Regular7_3,
8403
text,
TestOptions
.Regular7_3,
8452
",
TestOptions
.Regular7_3,
8529
CreateCompilation(text, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
8568
var tree = UsingNode(text,
TestOptions
.Regular7_3,
8646
text,
TestOptions
.Regular7_3,
8693
text,
TestOptions
.Regular7_3,
8741
text,
TestOptions
.Regular7_3,
8787
CreateCompilation(test, parseOptions: useCSharp8 ?
TestOptions
.Regular8 :
TestOptions
.Regular9).VerifyDiagnostics(
8807
useCSharp8 ?
TestOptions
.Regular8 :
TestOptions
.Regular9);
8916
CreateCompilation(test, parseOptions: useCSharp8 ?
TestOptions
.Regular8 :
TestOptions
.Regular9).VerifyDiagnostics(
8952
useCSharp8 ?
TestOptions
.Regular8 :
TestOptions
.Regular9);
Parsing\DeclarationScopeParsingTests.cs (240)
24
UsingDeclaration(source,
TestOptions
.Regular.WithLanguageVersion(langVersion));
71
UsingDeclaration(source,
TestOptions
.Regular.WithLanguageVersion(langVersion));
142
UsingDeclaration(source,
TestOptions
.Regular.WithLanguageVersion(langVersion),
244
UsingDeclaration(source,
TestOptions
.Regular11);
276
UsingDeclaration(source,
TestOptions
.Regular11,
314
UsingTree(source,
TestOptions
.Regular.WithLanguageVersion(langVersion));
431
UsingTree(source,
TestOptions
.Regular.WithLanguageVersion(langVersion));
498
UsingDeclaration(source,
TestOptions
.Regular11,
547
UsingDeclaration(source,
TestOptions
.Regular11,
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));
1139
UsingExpression(source,
TestOptions
.Regular11,
1164
UsingExpression(source,
TestOptions
.Regular11,
1198
UsingExpression(source,
TestOptions
.Regular.WithLanguageVersion(langVersion));
1266
UsingExpression(source,
TestOptions
.Regular.WithLanguageVersion(langVersion));
1292
UsingDeclaration(source,
TestOptions
.Regular11,
1352
UsingDeclaration(source,
TestOptions
.Regular11);
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));
2903
UsingTree(source,
TestOptions
.Regular11,
2955
UsingTree(source,
TestOptions
.Regular11,
3024
UsingTree(source,
TestOptions
.Regular.WithLanguageVersion(langVersion),
3101
UsingTree(source,
TestOptions
.RegularPreview,
3171
UsingTree(source,
TestOptions
.Regular.WithLanguageVersion(langVersion),
3259
var parseOptions =
TestOptions
.Regular.WithLanguageVersion(langVersion);
3338
UsingTree(source,
TestOptions
.Script);
3373
UsingTree(source,
TestOptions
.Script,
3429
UsingTree(source,
TestOptions
.Script,
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),
11188
UsingTree(source,
TestOptions
.Regular11,
11275
UsingTree(source,
TestOptions
.Regular11,
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 (35)
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());
1580
var tree = UsingTree(@" (int x, int y) = (1, 2); ", options:
TestOptions
.Script);
1656
var tree = UsingTree(@" foreach ((int x, int y) in new[] { (1, 2) }) { }; ", options:
TestOptions
.Script);
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());
2104
CreateCompilation(source, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics();
2130
CreateCompilation(source, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
Parsing\ExpressionParsingTests.cs (36)
216
UsingExpression(text,
TestOptions
.Regular7_3);
243
UsingExpression(text,
TestOptions
.Regular8);
272
UsingExpression(text,
TestOptions
.Regular7_3);
318
UsingExpression(text,
TestOptions
.Regular8);
359
UsingExpression(text,
TestOptions
.RegularPreview);
617
TestPostfixUnary(SyntaxKind.ExclamationToken,
TestOptions
.Regular8);
700
TestAssignment(SyntaxKind.QuestionQuestionEqualsToken, options:
TestOptions
.Regular8);
742
CreateCompilation(testWithStatement, parseOptions:
TestOptions
.Regular5).VerifyDiagnostics(
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));
5240
CreateCompilation(testWithStatement, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
5251
UsingExpression(test,
TestOptions
.Regular7_3);
6511
var tree = ParseTree(text,
TestOptions
.Regular);
6548
var tree = ParseTree(text,
TestOptions
.Regular);
6608
foreach (var options in new[] {
TestOptions
.RegularPreview,
TestOptions
.Regular10,
TestOptions
.Regular11 })
6631
foreach (var options in new[] {
TestOptions
.RegularPreview,
TestOptions
.Regular10,
TestOptions
.Regular11 })
6666
foreach (var options in new[] {
TestOptions
.RegularPreview,
TestOptions
.Regular10,
TestOptions
.Regular11 })
6701
foreach (var options in new[] {
TestOptions
.RegularPreview,
TestOptions
.Regular10,
TestOptions
.Regular11 })
6724
foreach (var options in new[] {
TestOptions
.RegularPreview,
TestOptions
.Regular10,
TestOptions
.Regular11 })
6759
foreach (var options in new[] {
TestOptions
.RegularPreview,
TestOptions
.Regular10,
TestOptions
.Regular11 })
6794
foreach (var options in new[] {
TestOptions
.RegularPreview,
TestOptions
.Regular10,
TestOptions
.Regular11 })
Parsing\FieldKeywordParsingTests.cs (40)
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));
2399
TestOptions
.RegularPreview);
2410
TestOptions
.RegularPreview);
Parsing\FileModifierParsingTests.cs (21)
20
return SyntaxFactory.ParseSyntaxTree(text, options ??
TestOptions
.Regular);
30
options ??=
TestOptions
.RegularPreview;
266
options:
TestOptions
.Regular10,
565
options:
TestOptions
.Regular10,
1268
options:
TestOptions
.Regular10,
1354
options:
TestOptions
.Regular10,
1495
options:
TestOptions
.Regular10,
1525
options:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
1557
options:
TestOptions
.Regular10,
2027
options:
TestOptions
.Regular10,
2134
options:
TestOptions
.Regular10,
2203
options:
TestOptions
.Regular10,
2334
options:
TestOptions
.Regular10,
2521
options:
TestOptions
.Regular8,
2613
options:
TestOptions
.Regular8,
2712
options:
TestOptions
.Regular8,
2806
options:
TestOptions
.Regular8,
2905
options:
TestOptions
.Regular8, expectedBindingDiagnostics: new[]
3144
options:
TestOptions
.Regular.WithLanguageVersion(languageVersion),
3188
options:
TestOptions
.Regular.WithLanguageVersion(languageVersion),
3229
options:
TestOptions
.Regular.WithLanguageVersion(languageVersion),
Parsing\FunctionPointerTests.cs (69)
20
UsingStatement("delegate*<string, Goo, int> ptr;", options:
TestOptions
.Regular9);
76
UsingStatement($"delegate* unmanaged[{conventionString}]<string, Goo, int> ptr;", options:
TestOptions
.Regular9);
140
UsingStatement("delegate* unmanaged[void]<void> ptr;", options:
TestOptions
.RegularPreview,
198
UsingStatement($"delegate* {convention}<void> ptr;", options:
TestOptions
.RegularPreview);
237
UsingStatement("delegate* managed[Cdecl]<void> ptr;", options:
TestOptions
.RegularPreview,
289
UsingStatement("delegate* invalid[Cdecl]<void> ptr;", options:
TestOptions
.RegularPreview,
341
UsingStatement("delegate* invalid<void> ptr;", options:
TestOptions
.RegularPreview,
383
UsingStatement("delegate* unmanaged[]<void> ptr;", options:
TestOptions
.RegularPreview,
435
UsingStatement("delegate* unmanaged[Cdecl, Thiscall, Stdcall, Fastcall, Vectorcall, SuppressGCTransition]<void> ptr;", options:
TestOptions
.RegularPreview);
510
CreateCompilation(text, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
533
UsingStatement(text, options:
TestOptions
.Regular8);
598
UsingStatement("delegate*<void, void, void> ptr;", options:
TestOptions
.Regular9);
649
UsingStatement("delegate*<delegate* unmanaged[cdecl]<int*, void*>, delegate* managed<string*>> ptr;", options:
TestOptions
.Regular9);
755
UsingStatement("delegate*<Goo, void>* ptr;", options:
TestOptions
.Regular9);
802
UsingStatement("delegate*<ref Goo, in Bar, out Baz, ref readonly void*> ptr;", options:
TestOptions
.Regular9);
870
UsingStatement("delegate*< ;", options:
TestOptions
.Regular9,
914
UsingStatement("delegate*<ref ;", options:
TestOptions
.Regular9,
959
UsingStatement("delegate*<ref bar ;", options:
TestOptions
.Regular9,
1001
UsingStatement("delegate*<ref bar, ;", options:
TestOptions
.Regular9,
1054
UsingStatement("delegate* unmanaged[ptr];", options:
TestOptions
.Regular9,
1108
UsingStatement("delegate* unmanaged[cdecl] ;", options:
TestOptions
.Regular9,
1162
UsingStatement("delegate* unmanaged[cdecl] ptr;", options:
TestOptions
.Regular9,
1213
UsingStatement("delegate* ;", options:
TestOptions
.Regular9,
1254
UsingStatement("delegate* unmanaged.Name[Dotted]<void> ptr;", options:
TestOptions
.Regular9,
1333
UsingStatement("delegate*( ;", options:
TestOptions
.Regular9,
1380
UsingStatement("delegate* @cdecl>", options:
TestOptions
.Regular9,
1424
UsingStatement("delegate* unmanaged[ ;", options:
TestOptions
.RegularPreview,
1485
UsingStatement("delegate* unmanaged[Cdecl ;", options:
TestOptions
.RegularPreview,
1543
UsingStatement("delegate* unmanaged[Cdecl,", options:
TestOptions
.RegularPreview,
1612
UsingStatement("delegate*<> ptr;", options:
TestOptions
.Regular9,
1650
UsingStatement("delegate*(int, void)", options:
TestOptions
.Regular9,
1710
options:
TestOptions
.Regular9);
1832
UsingExpression("(delegate* unmanaged[thiscall]<int, C>)ptr", options:
TestOptions
.Regular9);
1886
UsingExpression("ptr as delegate* unmanaged[stdcall]<int, void>", options:
TestOptions
.Regular9);
1939
UsingExpression("((delegate*<int, void> i1, delegate* managed<C, D> i2))ptr", options:
TestOptions
.Regular9);
2023
UsingExpression("new M<delegate* unmanaged[thiscall]<void>, delegate*<C, D>>()", options:
TestOptions
.Regular9);
2104
UsingExpression("typeof(delegate* unmanaged[cdecl]<ref int, readonly ref D>)", options:
TestOptions
.Regular9);
2158
UsingStatement("delegate*<ref C>[] ptr;", options:
TestOptions
.Regular9);
2211
options:
TestOptions
.Regular9);
2300
UsingExpression("(delegate*<void> p1) => {}", options:
TestOptions
.Regular9);
2348
}", options:
TestOptions
.Regular9,
2473
UsingExpression("o is delegate*<void>", options:
TestOptions
.Regular9);
2505
UsingExpression("o is delegate*<void> ptr", options:
TestOptions
.Regular9);
2550
}", options:
TestOptions
.Regular9);
2670
}", options:
TestOptions
.Regular9);
2781
UsingStatement("using (delegate*<void> ptr = MyMethod()) {}", options:
TestOptions
.Regular9);
2839
UsingStatement("using delegate*<void> ptr = MyMethod();", options:
TestOptions
.Regular9);
2891
UsingStatement("fixed (delegate*<void> ptr = &MyMethod) {}", options:
TestOptions
.Regular9);
2945
UsingStatement("foreach (delegate*<void> ptr in ptrs) {}", options:
TestOptions
.Regular9);
2986
UsingStatement("for (delegate*<void> ptr = null;;) {}", options:
TestOptions
.Regular9);
3038
UsingExpression("sizeof(delegate*<void>)", options:
TestOptions
.Regular9);
3068
UsingStatement("delegate*<int param1, string param2 = default, void> ptr;", options:
TestOptions
.Regular9,
3125
UsingStatement("delegate*void> ptr;", options:
TestOptions
.Regular9,
3169
UsingStatement("delegate* unmanaged[cdecl] void> ptr;", options:
TestOptions
.Regular9,
3226
UsingStatement("delegate*> ptr;", options:
TestOptions
.Regular9,
3264
UsingStatement("delegate* unmanaged Cdecl]<void> ptr;", options:
TestOptions
.RegularPreview,
3310
UsingStatement("delegate*<this params readonly ref ref this int> ptr;", options:
TestOptions
.Regular9);
3355
}", options:
TestOptions
.Regular9);
3429
}", options:
TestOptions
.Regular9);
3502
}", options:
TestOptions
.Regular9,
3582
}", options:
TestOptions
.Regular9);
3650
UsingStatement("delegate*", options:
TestOptions
.Regular9,
3694
UsingStatement("delegate* unmanaged[cdecl]", options:
TestOptions
.Regular9,
3751
UsingStatement("delegate* unmanaged[cdecl]<void) ptr;", options:
TestOptions
.Regular9,
3808
UsingStatement("delegate* unmanaged[cdecl](void> ptr;", options:
TestOptions
.Regular9,
3873
}}", options:
TestOptions
.Regular9,
3960
}", options:
TestOptions
.Regular9,
4073
UsingStatement("I<delegate*<void>[]> i;", options:
TestOptions
.Regular9);
4129
UsingNode("using t = delegate*<void>;", options:
TestOptions
.Regular9);
Parsing\ImplicitObjectCreationParsingTests.cs (7)
16
private static readonly CSharpParseOptions DefaultParseOptions =
TestOptions
.Regular9;
408
CreateCompilation(testWithStatement, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
416
UsingExpression(test, options:
TestOptions
.Regular8);
457
CreateCompilation(testWithStatement, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
465
UsingExpression(test, options:
TestOptions
.Regular8);
538
CreateCompilation(testWithStatement, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
552
UsingExpression(test, options:
TestOptions
.Regular8);
Parsing\LambdaAttributeParsingTests.cs (42)
36
UsingExpression(source,
TestOptions
.Regular9);
39
UsingExpression(source,
TestOptions
.RegularPreview);
76
UsingExpression(source,
TestOptions
.Regular9);
79
UsingExpression(source,
TestOptions
.RegularPreview);
126
UsingExpression(source,
TestOptions
.Regular9);
129
UsingExpression(source,
TestOptions
.RegularPreview);
187
UsingExpression(source,
TestOptions
.Regular9);
190
UsingExpression(source,
TestOptions
.RegularPreview);
236
UsingExpression(source,
TestOptions
.RegularPreview,
282
UsingExpression(source,
TestOptions
.RegularPreview,
306
UsingExpression(source,
TestOptions
.RegularPreview,
926
UsingExpression($"f = {exprLambda}",
TestOptions
.RegularPreview);
944
UsingExpression($"F({exprLambda})",
TestOptions
.RegularPreview);
969
UsingExpression($"F(x, {exprLambda})",
TestOptions
.RegularPreview);
1002
UsingExpression("f = ([A] x => x)",
TestOptions
.RegularPreview);
1048
UsingExpression("new B { [A] x => y }",
TestOptions
.RegularPreview,
1104
UsingExpression("new B { ([A] x => y) }",
TestOptions
.RegularPreview);
1154
UsingExpression("[A] () => { } ++",
TestOptions
.RegularPreview);
1192
UsingExpression("-- [A] () => { }",
TestOptions
.RegularPreview,
1227
UsingExpression("! [A] () => { }",
TestOptions
.RegularPreview,
1262
UsingExpression("(F) [A] () => { }",
TestOptions
.RegularPreview,
1305
UsingExpression("[A] () => { } + y",
TestOptions
.RegularPreview,
1350
UsingExpression("x * [A] () => { }",
TestOptions
.RegularPreview,
1389
UsingExpression("[A] () => { } is E",
TestOptions
.RegularPreview,
1434
UsingExpression("[A] () => x as E",
TestOptions
.RegularPreview);
1475
UsingExpression("x ? [A] () => { } : z",
TestOptions
.RegularPreview);
1522
UsingExpression("x ? () => { } : z",
TestOptions
.RegularPreview);
1557
UsingExpression("x ? y : [A] () => { }",
TestOptions
.RegularPreview);
1605
UsingExpression("x ? ([A] () => { }) : y",
TestOptions
.RegularPreview);
1657
UsingExpression("[A] () => { } switch { }",
TestOptions
.RegularPreview,
1700
UsingExpression("x switch { y => [A] () => { }, _ => [A] () => z }",
TestOptions
.RegularPreview);
1789
UsingExpression("([A] () => { }, y)",
TestOptions
.RegularPreview);
1839
UsingExpression("(x, [A] () => { })",
TestOptions
.RegularPreview);
1889
UsingExpression("s[[A] x => x..]",
TestOptions
.RegularPreview);
1940
UsingExpression("s[..[A] () => { }]",
TestOptions
.RegularPreview,
1991
UsingExpression(source,
TestOptions
.Regular9);
1994
UsingExpression(source,
TestOptions
.RegularPreview);
2792
UsingExpression(source,
TestOptions
.Regular9);
2795
UsingExpression(source,
TestOptions
.Regular10);
3569
verify(source,
TestOptions
.Regular9);
3599
verify(source,
TestOptions
.Regular9);
3632
verify(source,
TestOptions
.Regular9);
Parsing\LambdaParameterParsingTests.cs (36)
778
UsingDeclaration("""Func<string, string> func1 = x!! => x + "1";""", options:
TestOptions
.RegularPreview,
834
UsingDeclaration("Func<int, int, bool> func1 = (x!!, y) => x == y;", options:
TestOptions
.RegularPreview,
911
UsingDeclaration("Func<int, int> func1 = (x!!) => x;", options:
TestOptions
.RegularPreview,
972
UsingDeclaration("Func<int, int> func1 = x!!=>x;", options:
TestOptions
.RegularPreview,
1040
UsingDeclaration("Func<int, int> func1 = (int x!!) => x;", options:
TestOptions
.RegularPreview,
1099
UsingDeclaration("Func<int, int, int> func1 = (int x!!, int y) => x;", options:
TestOptions
.RegularPreview,
1174
UsingDeclaration("Func<int, int, int> func1 = (int x!!, int y!!) => x;", options:
TestOptions
.RegularPreview,
1249
UsingDeclaration("Func<int> func1 = (!!) => 42;", options:
TestOptions
.RegularPreview,
1308
UsingDeclaration("Func<int, int> func1 = (_!!) => 42;", options:
TestOptions
.RegularPreview,
1369
UsingDeclaration("Func<string, string> func0 = x!=> x;", options:
TestOptions
.RegularPreview,
1433
UsingDeclaration("Func<string, string> func1 = x !=> x;", options:
TestOptions
.RegularPreview,
1497
UsingDeclaration("Func<string, string> func2 = x != > x;", options:
TestOptions
.RegularPreview,
1561
UsingDeclaration("Func<string, string> func3 = x! => x;", options:
TestOptions
.RegularPreview,
1611
UsingDeclaration("Func<string, string> func4 = x ! => x;", options:
TestOptions
.RegularPreview,
1661
UsingDeclaration("Func<string, string> func5 = x !!=> x;", options:
TestOptions
.RegularPreview,
1729
UsingDeclaration("Func<string, string> func6 = x !!= > x;", options:
TestOptions
.RegularPreview,
1797
UsingDeclaration("Func<string, string> func7 = x!! => x;", options:
TestOptions
.RegularPreview,
1853
UsingDeclaration("Func<string, string> func8 = x! !=> x;", options:
TestOptions
.RegularPreview,
1921
UsingDeclaration("Func<string, string> func9 = x! ! => x;", options:
TestOptions
.RegularPreview,
1977
UsingDeclaration("Func<string[], string> func0 = x[] => x;", options:
TestOptions
.RegularPreview,
2054
UsingDeclaration("Func<string[], string> func0 = (x[]) => x;", options:
TestOptions
.RegularPreview,
2142
UsingDeclaration("Func<string[], string> func0 = (string x[]) => x;", options:
TestOptions
.RegularPreview,
2212
UsingDeclaration("Func<string, string> func0 = x = null => x;", options:
TestOptions
.RegularPreview,
4331
UsingDeclaration("Func<string, string> func0 = x!! = null => x;", options:
TestOptions
.RegularPreview,
4394
UsingDeclaration("Func<string, string> func0 = (x!! = null) => x;", options:
TestOptions
.RegularPreview,
4463
UsingDeclaration("Func<string, string> func0 = (y, x!! = null) => x;", options:
TestOptions
.RegularPreview,
4543
UsingDeclaration("Func<string, string> func0 = (string x!! = null) => x;", options:
TestOptions
.RegularPreview,
4602
UsingDeclaration("Func<string, string> func0 = (string y, string x!! = null) => x;", options:
TestOptions
.RegularPreview,
4757
UsingDeclaration("Func<string, string> func0 = x! ! => x;", options:
TestOptions
.RegularPreview,
4813
UsingDeclaration("Func<string, string> func0 = (x! !) => x;", options:
TestOptions
.RegularPreview,
4874
UsingDeclaration("Func<string, string> func0 = (y, x! !) => x;", options:
TestOptions
.RegularPreview,
4946
UsingDeclaration("Func<string, string> func0 = (string x! !) => x;", options:
TestOptions
.RegularPreview,
5005
UsingDeclaration("Func<string, string> func0 = (string y, string x! !) => x;", options:
TestOptions
.RegularPreview,
5153
UsingExpression(source,
TestOptions
.Regular.WithLanguageVersion(languageVersion),
5183
UsingExpression(source,
TestOptions
.Regular.WithLanguageVersion(languageVersion),
5211
UsingExpression(source,
TestOptions
.Regular.WithLanguageVersion(languageVersion),
Parsing\LambdaReturnTypeParsingTests.cs (27)
42
UsingExpression(source,
TestOptions
.Regular9);
45
UsingExpression(source,
TestOptions
.RegularPreview);
79
UsingExpression(source,
TestOptions
.Regular9);
82
UsingExpression(source,
TestOptions
.RegularPreview);
126
UsingExpression(source,
TestOptions
.Regular9);
129
UsingExpression(source,
TestOptions
.RegularPreview);
167
verify(source,
TestOptions
.Regular9);
208
UsingExpression(source,
TestOptions
.Regular9,
214
UsingExpression(source,
TestOptions
.RegularPreview,
285
verify(source,
TestOptions
.Regular9);
286
verify(source,
TestOptions
.RegularPreview);
315
verify(source,
TestOptions
.Regular9);
316
verify(source,
TestOptions
.RegularPreview);
2882
UsingExpression(source, options:
TestOptions
.Regular7);
2925
UsingExpression(source, options:
TestOptions
.Regular7);
5009
UsingTree(source,
TestOptions
.Regular9);
5012
UsingTree(source,
TestOptions
.Regular10);
5054
UsingExpression(source,
TestOptions
.Regular9);
5080
UsingDeclaration(source,
TestOptions
.Regular9);
5125
verify(source,
TestOptions
.Regular9);
5157
verify(source,
TestOptions
.Regular9);
5179
verify(source,
TestOptions
.Regular9);
5235
verify(source,
TestOptions
.Regular9);
5288
verify(source,
TestOptions
.Regular9);
5339
verify(source,
TestOptions
.Regular9);
5384
verify(source,
TestOptions
.Regular9);
5432
verify(source,
TestOptions
.Regular9);
Parsing\LineSpanDirectiveParsingTests.cs (10)
43
UsingLineDirective(source,
TestOptions
.Regular9);
46
UsingLineDirective(source,
TestOptions
.Regular9.WithPreprocessorSymbols("IsActive"));
84
UsingLineDirective(source,
TestOptions
.Regular9);
87
UsingLineDirective(source,
TestOptions
.Regular10);
125
UsingLineDirective(source,
TestOptions
.Regular9);
128
UsingLineDirective(source,
TestOptions
.Regular10);
2352
UsingLineDirective(source,
TestOptions
.Regular10,
2390
UsingLineDirective(source,
TestOptions
.Regular10,
2429
UsingLineDirective(source,
TestOptions
.Regular10,
2468
UsingLineDirective(source,
TestOptions
.Regular10,
Parsing\LocalFunctionParsingTests.cs (43)
372
}", options:
TestOptions
.Regular9);
560
}",
TestOptions
.Regular9,
696
CreateCompilation(code, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
706
CreateCompilation(code, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
720
UsingTree(code,
TestOptions
.Regular9).GetDiagnostics().Verify();
723
UsingTree(code,
TestOptions
.Regular8);
788
CreateCompilation(code, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
795
CreateCompilation(code, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
806
UsingTree(code,
TestOptions
.Regular9).GetDiagnostics().Verify();
809
UsingTree(code,
TestOptions
.Regular8);
871
UsingStatement(statement,
TestOptions
.Regular9,
916
}",
TestOptions
.Regular9);
996
}",
TestOptions
.Regular9);
1287
var file = ParseFile(text, parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp6));
1304
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
1720
CreateCompilation(text, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
1727
CreateCompilation(text, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
1731
CreateCompilation(text, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
1736
UsingDeclaration(text, options:
TestOptions
.Regular7_3);
1739
UsingDeclaration(text, options:
TestOptions
.Regular8);
1742
UsingDeclaration(text, options:
TestOptions
.Regular9);
1805
CreateCompilation(text, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
1824
CreateCompilation(text, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
1837
CreateCompilation(text, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
1851
UsingDeclaration(text, options:
TestOptions
.Regular7_3);
1854
UsingDeclaration(text, options:
TestOptions
.Regular8);
1857
UsingDeclaration(text, options:
TestOptions
.Regular9);
1939
CreateCompilation(text, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
1973
CreateCompilation(text, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
1995
CreateCompilation(text, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
2018
UsingDeclaration(text, options:
TestOptions
.Regular7_3,
2027
UsingDeclaration(text, options:
TestOptions
.Regular8,
2036
UsingDeclaration(text, options:
TestOptions
.Regular9,
2135
UsingDeclaration(text, options:
TestOptions
.Regular9,
2215
UsingDeclaration(text, options:
TestOptions
.Regular9,
2302
UsingDeclaration(text, options:
TestOptions
.Regular9,
2396
UsingDeclaration(text, options:
TestOptions
.Regular9,
2474
CreateCompilation(text, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
2496
CreateCompilation(text, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
2515
CreateCompilation(text, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
2535
UsingDeclaration(text, options:
TestOptions
.Regular7_3,
2550
UsingDeclaration(text, options:
TestOptions
.Regular8,
2565
UsingDeclaration(text, options:
TestOptions
.Regular9,
Parsing\MemberDeclarationParsingTests.cs (455)
28
private static readonly CSharpParseOptions RequiredMembersOptions =
TestOptions
.Regular11;
29
public static readonly IEnumerable<object[]> Regular10AndScriptAndRequiredMembersMinimum = new[] { new[] {
TestOptions
.Regular10 }, new[] { RequiredMembersOptions }, new[] {
TestOptions
.Script.WithLanguageVersion(LanguageVersion.CSharp10) } };
30
public static readonly IEnumerable<object[]> Regular10AndScript = new[] { new[] {
TestOptions
.Regular10 }, new[] {
TestOptions
.Script.WithLanguageVersion(LanguageVersion.CSharp10) } };
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 })
428
foreach (var options in new[] {
TestOptions
.RegularPreview,
TestOptions
.Regular10,
TestOptions
.Regular11 })
479
foreach (var options in new[] {
TestOptions
.RegularPreview,
TestOptions
.Regular10,
TestOptions
.Regular11 })
562
foreach (var options in new[] {
TestOptions
.RegularPreview,
TestOptions
.Regular10,
TestOptions
.Regular11 })
645
foreach (var options in new[] {
TestOptions
.RegularPreview,
TestOptions
.Regular10,
TestOptions
.Regular11 })
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 })
1883
options:
TestOptions
.Regular10);
2069
options:
TestOptions
.Regular11,
2317
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
2333
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
2347
foreach (var options in new[] {
TestOptions
.Script,
TestOptions
.Regular })
2428
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
2453
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
2489
foreach (var options in new[] {
TestOptions
.Script,
TestOptions
.Regular })
2553
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
2578
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
2613
foreach (var options in new[] {
TestOptions
.Script,
TestOptions
.Regular })
2677
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
2696
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
2719
foreach (var options in new[] {
TestOptions
.Script,
TestOptions
.Regular })
2783
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
2802
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
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 })
3198
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
3214
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
3228
foreach (var options in new[] {
TestOptions
.Script,
TestOptions
.Regular })
3313
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
3338
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
3373
foreach (var options in new[] {
TestOptions
.Script,
TestOptions
.Regular })
3441
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
3466
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
3501
foreach (var options in new[] {
TestOptions
.Script,
TestOptions
.Regular })
3569
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
3588
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
3611
foreach (var options in new[] {
TestOptions
.Script,
TestOptions
.Regular })
3679
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
3698
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
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 })
4243
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
4256
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
4267
foreach (var options in new[] {
TestOptions
.Script,
TestOptions
.Regular })
4347
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
4369
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
4401
foreach (var options in new[] {
TestOptions
.Script,
TestOptions
.Regular })
4464
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
4486
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
4518
foreach (var options in new[] {
TestOptions
.Script,
TestOptions
.Regular })
4581
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
4597
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
4617
foreach (var options in new[] {
TestOptions
.Script,
TestOptions
.Regular })
4680
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
4696
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
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 })
5083
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
5096
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
5107
foreach (var options in new[] {
TestOptions
.Script,
TestOptions
.Regular })
5191
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
5213
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
5245
foreach (var options in new[] {
TestOptions
.Script,
TestOptions
.Regular })
5312
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
5334
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
5366
foreach (var options in new[] {
TestOptions
.Script,
TestOptions
.Regular })
5433
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
5449
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
5469
foreach (var options in new[] {
TestOptions
.Script,
TestOptions
.Regular })
5536
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
5552
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
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 })
6268
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
6281
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
6292
foreach (var options in new[] {
TestOptions
.Script,
TestOptions
.Regular })
6355
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
6371
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
6392
foreach (var options in new[] {
TestOptions
.Script,
TestOptions
.Regular })
6459
foreach (var options in new[] {
TestOptions
.Script,
TestOptions
.Regular })
6506
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
6522
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
6543
foreach (var options in new[] {
TestOptions
.Script,
TestOptions
.Regular })
6606
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
6622
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
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 })
6993
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
7006
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
7017
foreach (var options in new[] {
TestOptions
.Script,
TestOptions
.Regular })
7084
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
7103
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
7130
foreach (var options in new[] {
TestOptions
.Script,
TestOptions
.Regular })
7197
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
7213
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
7234
foreach (var options in new[] {
TestOptions
.Script,
TestOptions
.Regular })
7301
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
7317
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
7338
foreach (var options in new[] {
TestOptions
.Script,
TestOptions
.Regular })
7405
CreateCompilation(classWithText, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
7421
CreateCompilation(classWithText, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
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,
9717
UsingDeclaration("C I.operator checked " + op + "(C x) => x;", options:
TestOptions
.RegularPreview);
9848
UsingDeclaration("C I.operator checked " + op + "(C x, C y) => x;", options:
TestOptions
.RegularPreview);
9949
UsingDeclaration(op + " I.operator checked D(C x) => x;", options:
TestOptions
.RegularPreview);
10064
UsingDeclaration("C I.operator unchecked " + op + "(C x, C y) => x;", options:
TestOptions
.RegularPreview,
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\NameParsingTests.cs (2)
929
UsingTree(source,
TestOptions
.Regular1,
1008
CreateCompilation(source, parseOptions:
TestOptions
.Regular1).VerifyDiagnostics(
Parsing\NullableParsingTests.cs (4)
742
CreateCompilation(test, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
753
UsingStatement(test, options:
TestOptions
.Regular8);
810
CreateCompilation(test, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
833
UsingStatement(test, options:
TestOptions
.Regular8,
Parsing\ParserErrorMessageTests.cs (71)
638
CreateCompilation(test, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
2421
CreateCompilation(test, options:
TestOptions
.DebugExe, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
2684
ParseAndValidate(text,
TestOptions
.Regular,
2714
CreateCompilationWithMscorlib46(text, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
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,
2885
CreateCompilation(test, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
2902
ParseAndValidate(test,
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp6),
3764
var tree = ParseTree(test,
TestOptions
.Regular);
4590
ParseAndValidate(test,
TestOptions
.Regular,
4615
CreateCompilation(test, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
4626
ParseAndValidate(test,
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp6),
4671
CreateCompilation(test, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
4697
CreateCompilation(test, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
4717
CreateCompilation(test, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
4737
CreateCompilation(test, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
4759
CreateCompilationWithMscorlibAndSpan(test, options:
TestOptions
.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics(
4780
CreateCompilation(test, options:
TestOptions
.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics(
4888
CreateCompilation(test, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
5445
CreateCompilation(text, parseOptions:
TestOptions
.Regular5).VerifyDiagnostics();
5446
CreateCompilation(text, parseOptions:
TestOptions
.Regular1).VerifyDiagnostics(
5467
CreateCompilation(text, parseOptions:
TestOptions
.Regular5).VerifyDiagnostics(
5480
CreateCompilation(text, parseOptions:
TestOptions
.Regular2).VerifyDiagnostics(
5511
CreateCompilation(text, parseOptions:
TestOptions
.Regular5).VerifyDiagnostics(
5515
CreateCompilation(text, parseOptions:
TestOptions
.Regular2).VerifyDiagnostics(
5551
CreateCompilation(text, parseOptions:
TestOptions
.Regular5).VerifyDiagnostics();
5552
CreateCompilation(text, parseOptions:
TestOptions
.Regular2).VerifyDiagnostics(
5573
CreateCompilation(text, parseOptions:
TestOptions
.Regular5).VerifyDiagnostics(
5577
CreateCompilation(text, parseOptions:
TestOptions
.Regular2).VerifyDiagnostics(
5608
CreateCompilation(text, parseOptions:
TestOptions
.Regular5).VerifyEmitDiagnostics(
5612
CreateCompilation(text, parseOptions:
TestOptions
.Regular2).VerifyEmitDiagnostics(
5642
CreateCompilation(text, parseOptions:
TestOptions
.Regular5).VerifyDiagnostics(
5646
CreateCompilation(text, parseOptions:
TestOptions
.Regular2).VerifyDiagnostics(
5676
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
5683
CreateCompilation(text, parseOptions:
TestOptions
.Regular5).VerifyDiagnostics(
5980
CreateCompilation(text, parseOptions:
TestOptions
.Regular5).VerifyDiagnostics(
5988
CreateCompilation(text, parseOptions:
TestOptions
.Regular3).VerifyDiagnostics(
6008
CreateCompilation(text, parseOptions:
TestOptions
.Regular5).VerifyDiagnostics(
6015
CreateCompilation(text, parseOptions:
TestOptions
.Regular3).VerifyDiagnostics(
6038
CreateCompilation(text, parseOptions:
TestOptions
.Regular5).VerifyDiagnostics(
6051
CreateCompilation(text, parseOptions:
TestOptions
.Regular4).VerifyDiagnostics(
6080
CreateCompilation(text, parseOptions:
TestOptions
.Regular5).VerifyDiagnostics(
6093
CreateCompilation(text, parseOptions:
TestOptions
.Regular4).VerifyDiagnostics(
6121
CreateCompilation(text, parseOptions:
TestOptions
.Regular4).VerifyDiagnostics(
6131
CreateCompilation(text, parseOptions:
TestOptions
.Regular3).VerifyDiagnostics(
6163
CreateCompilation(text, parseOptions:
TestOptions
.Regular2).VerifyDiagnostics(
6167
CreateCompilation(text, parseOptions:
TestOptions
.Regular1).VerifyDiagnostics(
6187
CreateCompilation(text, parseOptions:
TestOptions
.Regular2).VerifyDiagnostics(
6191
CreateCompilation(text, parseOptions:
TestOptions
.Regular1).VerifyDiagnostics(
6209
CreateCompilation(text, parseOptions:
TestOptions
.Regular4).VerifyDiagnostics();
6210
CreateCompilation(text, parseOptions:
TestOptions
.Regular3).VerifyDiagnostics(
6231
CreateCompilation(text, parseOptions:
TestOptions
.Regular3).VerifyEmitDiagnostics(
6235
CreateCompilation(text, parseOptions:
TestOptions
.Regular2).VerifyEmitDiagnostics(
6259
CreateCompilation(text, parseOptions:
TestOptions
.Regular3).VerifyEmitDiagnostics(
6263
CreateCompilation(text, parseOptions:
TestOptions
.Regular2).VerifyEmitDiagnostics(
6285
SyntaxFactory.ParseSyntaxTree(text, options:
TestOptions
.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp2)).GetDiagnostics().Verify();
6286
SyntaxFactory.ParseSyntaxTree(text, options:
TestOptions
.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp1)).GetDiagnostics().Verify(
6304
SyntaxFactory.ParseSyntaxTree(text, options:
TestOptions
.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp2)).GetDiagnostics().Verify();
6305
SyntaxFactory.ParseSyntaxTree(text, options:
TestOptions
.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp1)).GetDiagnostics().Verify(
6328
SyntaxFactory.ParseSyntaxTree(text, options:
TestOptions
.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp2)).GetDiagnostics().Verify();
6329
SyntaxFactory.ParseSyntaxTree(text, options:
TestOptions
.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp1)).GetDiagnostics().Verify(
6348
SyntaxFactory.ParseSyntaxTree(text, options:
TestOptions
.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp2)).GetDiagnostics().Verify();
6349
SyntaxFactory.ParseSyntaxTree(text, options:
TestOptions
.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp1)).GetDiagnostics().Verify();
6383
CreateCompilation(source, parseOptions:
TestOptions
.Regular2).VerifyDiagnostics(
6390
CreateCompilation(source, parseOptions:
TestOptions
.Regular1).VerifyDiagnostics(
6430
CreateCompilation(source, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
6437
CreateCompilation(source, parseOptions:
TestOptions
.Regular5).VerifyDiagnostics(
Parsing\ParserRegressionTests.cs (1)
25
return SyntaxFactory.ParseSyntaxTree(text, options ??
TestOptions
.Regular);
Parsing\ParsingErrorRecoveryTests.cs (7)
6200
var file = this.ParseTree(text, options:
TestOptions
.Regular);
6228
var file = this.ParseTree(text,
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp6));
6253
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
6309
var file = this.ParseTree(text, options:
TestOptions
.Regular);
6339
var file = this.ParseTree(text, options:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp6));
6368
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
7395
SyntaxTree syntaxTree = SyntaxFactory.ParseSyntaxTree(text,
TestOptions
.Regular9);
Parsing\ParsingTests.cs (2)
84
ParseFile(text, parseOptions:
TestOptions
.Regular.WithExperimental(feature));
365
_ = SyntaxFactory.ParseSyntaxTree(stringBuilder.ToString(),
TestOptions
.RegularPreview);
Parsing\PatternParsingTests.cs (114)
50
CreateCompilation(test, parseOptions:
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics(
86
CreateCompilation(test, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
176
}", options:
TestOptions
.Regular);
1846
CreateCompilation(testInMethod, parseOptions:
TestOptions
.RegularWithoutRecursivePatterns).VerifyDiagnostics(
1856
CreateCompilation(testInMethod, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
1864
UsingStatement(test,
TestOptions
.RegularWithoutRecursivePatterns);
1867
UsingStatement(test,
TestOptions
.Regular8);
1942
CreateCompilation(testInMethod, parseOptions:
TestOptions
.RegularWithoutRecursivePatterns).VerifyDiagnostics(
1959
UsingStatement(test,
TestOptions
.RegularWithoutRecursivePatterns);
2030
CreateCompilation(testWithStatement, parseOptions:
TestOptions
.RegularWithoutRecursivePatterns).VerifyDiagnostics(
2044
UsingStatement(test,
TestOptions
.RegularWithoutRecursivePatterns);
2154
CreateCompilation(testInMethod, parseOptions:
TestOptions
.RegularWithoutRecursivePatterns).VerifyDiagnostics(
2168
UsingStatement(test,
TestOptions
.RegularWithoutRecursivePatterns,
2213
CreateCompilation(testInMethod, parseOptions:
TestOptions
.RegularWithoutRecursivePatterns).VerifyDiagnostics(
2233
UsingStatement(test,
TestOptions
.RegularWithoutRecursivePatterns,
2282
CreateCompilation(testInMethod, parseOptions:
TestOptions
.RegularWithoutRecursivePatterns).VerifyDiagnostics(
2293
UsingStatement(test,
TestOptions
.RegularWithoutRecursivePatterns);
2373
CreateCompilation(testInMethod, parseOptions:
TestOptions
.RegularWithoutRecursivePatterns).VerifyDiagnostics(
2387
UsingStatement(test,
TestOptions
.RegularWithoutRecursivePatterns,
2450
CreateCompilation(testInMethod, parseOptions:
TestOptions
.RegularWithoutRecursivePatterns).VerifyDiagnostics(
2461
UsingExpression(test,
TestOptions
.RegularWithoutRecursivePatterns);
2481
CreateCompilation(testWithStatement, parseOptions:
TestOptions
.RegularWithoutRecursivePatterns).VerifyDiagnostics(
2498
UsingExpression(test,
TestOptions
.RegularWithoutRecursivePatterns);
2549
CreateCompilation(testWithStatement, parseOptions:
TestOptions
.RegularWithoutRecursivePatterns).VerifyDiagnostics(
2566
UsingExpression(test,
TestOptions
.RegularWithoutRecursivePatterns,
2628
CreateCompilation(testWithStatement, parseOptions:
TestOptions
.RegularWithoutRecursivePatterns).VerifyDiagnostics(
2654
UsingExpression("1 switch { (a, b, c) => d }",
TestOptions
.RegularWithoutRecursivePatterns);
2722
CreateCompilation(testWithStatement, parseOptions:
TestOptions
.RegularWithoutRecursivePatterns).VerifyDiagnostics(
2744
UsingStatement(test,
TestOptions
.RegularWithoutRecursivePatterns,
2989
Parse(source, options:
TestOptions
.RegularWithRecursivePatterns);
2995
Parse(source2, options:
TestOptions
.RegularWithRecursivePatterns);
5524
UsingStatement("switch(e) { case _: break; }",
TestOptions
.Regular7_3);
8254
CreateCompilation(testInMethod, parseOptions:
TestOptions
.RegularWithoutPatternCombinators).VerifyDiagnostics(
8268
UsingStatement(test,
TestOptions
.RegularWithoutPatternCombinators);
8316
CreateCompilation(testInMethod, parseOptions:
TestOptions
.RegularWithoutPatternCombinators).VerifyDiagnostics(
8330
UsingStatement(test,
TestOptions
.RegularWithoutPatternCombinators);
8378
CreateCompilation(testInMethod, parseOptions:
TestOptions
.RegularWithoutPatternCombinators).VerifyDiagnostics(
8389
UsingStatement(test,
TestOptions
.RegularWithoutPatternCombinators);
8430
CreateCompilation(testInMethod, parseOptions:
TestOptions
.RegularWithoutPatternCombinators).VerifyDiagnostics(
8438
UsingStatement(test,
TestOptions
.RegularWithoutPatternCombinators);
8484
CreateCompilation(testInMethod, parseOptions:
TestOptions
.RegularWithoutPatternCombinators).VerifyDiagnostics(
8516
UsingStatement(test,
TestOptions
.RegularWithoutPatternCombinators);
8647
CreateCompilation(test, parseOptions:
TestOptions
.RegularWithoutPatternCombinators).VerifyDiagnostics(
8686
UsingStatement(test,
TestOptions
.RegularWithoutPatternCombinators);
8823
TestOptions
.RegularWithPatternCombinators,
9018
TestOptions
.RegularWithPatternCombinators
9125
TestOptions
.RegularWithPatternCombinators
9163
TestOptions
.RegularWithPatternCombinators
9209
TestOptions
.RegularWithPatternCombinators
9254
TestOptions
.RegularWithPatternCombinators
9294
TestOptions
.RegularWithPatternCombinators
9360
TestOptions
.RegularWithPatternCombinators
9407
TestOptions
.RegularWithPatternCombinators
9462
TestOptions
.RegularWithPatternCombinators
9520
TestOptions
.RegularWithPatternCombinators
9586
TestOptions
.RegularWithPatternCombinators
9648
TestOptions
.RegularWithPatternCombinators
9711
TestOptions
.RegularWithPatternCombinators
9764
TestOptions
.RegularWithPatternCombinators
9817
TestOptions
.RegularWithPatternCombinators
9904
TestOptions
.RegularWithPatternCombinators
9944
TestOptions
.RegularWithPatternCombinators
9992
TestOptions
.RegularWithPatternCombinators
10040
TestOptions
.RegularWithPatternCombinators
10095
TestOptions
.RegularWithPatternCombinators
10142
TestOptions
.RegularWithPatternCombinators
10190
TestOptions
.RegularWithPatternCombinators
10338
TestOptions
.RegularWithPatternCombinators
10379
TestOptions
.RegularWithPatternCombinators
10420
TestOptions
.RegularWithPatternCombinators
10461
TestOptions
.RegularWithPatternCombinators
10516
TestOptions
.RegularWithPatternCombinators
10561
TestOptions
.RegularWithPatternCombinators
10634
TestOptions
.RegularWithPatternCombinators
10671
TestOptions
.RegularWithPatternCombinators
10712
TestOptions
.RegularWithPatternCombinators
10754
TestOptions
.RegularWithPatternCombinators
10806
TestOptions
.RegularWithPatternCombinators
10856
TestOptions
.RegularWithPatternCombinators
10912
TestOptions
.RegularWithPatternCombinators
10973
TestOptions
.RegularWithPatternCombinators
11024
TestOptions
.RegularWithPatternCombinators
11077
TestOptions
.RegularWithPatternCombinators
11130
TestOptions
.RegularWithPatternCombinators
11187
TestOptions
.RegularWithPatternCombinators
11251
TestOptions
.RegularWithPatternCombinators
11305
TestOptions
.RegularWithPatternCombinators
11360
TestOptions
.RegularWithPatternCombinators
11403
TestOptions
.RegularWithPatternCombinators
11456
TestOptions
.RegularWithPatternCombinators
11554
TestOptions
.RegularWithPatternCombinators
11614
TestOptions
.RegularWithPatternCombinators
11672
TestOptions
.RegularWithPatternCombinators
11731
TestOptions
.RegularWithPatternCombinators
11735
TestOptions
.RegularWithoutPatternCombinators
11795
TestOptions
.RegularWithPatternCombinators
11799
TestOptions
.RegularWithoutPatternCombinators
11866
TestOptions
.RegularWithPatternCombinators,
11871
TestOptions
.RegularWithoutPatternCombinators,
11974
TestOptions
.RegularWithPatternCombinators,
11979
TestOptions
.RegularWithoutPatternCombinators,
12043
TestOptions
.RegularWithPatternCombinators
12124
TestOptions
.RegularWithPatternCombinators
12174
TestOptions
.RegularWithPatternCombinators
12219
TestOptions
.RegularWithPatternCombinators
12274
TestOptions
.RegularWithPatternCombinators
12324
TestOptions
.RegularWithPatternCombinators
12375
TestOptions
.RegularWithPatternCombinators
12420
TestOptions
.RegularWithPatternCombinators
12475
TestOptions
.RegularWithPatternCombinators
12525
TestOptions
.RegularWithPatternCombinators
12589
TestOptions
.RegularWithPatternCombinators
12640
TestOptions
.RegularWithPatternCombinators
12695
UsingExpression(@"new object() is { {}: 1 }",
TestOptions
.RegularWithPatternCombinators,
Parsing\PatternParsingTests_ListPatterns.cs (1)
15
private static CSharpParseOptions RegularWithoutListPatterns =>
TestOptions
.Regular10;
Parsing\PatternParsingTests2.cs (4)
31
CreateCompilation(testWithStatement, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
38
CreateCompilation(testWithStatement, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
49
UsingExpression(test,
TestOptions
.Regular10);
52
UsingExpression(test,
TestOptions
.Regular9);
Parsing\RawInterpolatedStringLiteralCompilingTests.cs (3)
73
}", parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
86
}", parseOptions:
TestOptions
.Regular11).VerifyDiagnostics();
286
}", parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
Parsing\RawStringLiteralCompilingTests.cs (2)
19
}", parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
214
}", parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
Parsing\ReadOnlyStructs.cs (12)
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\RecordParsing.cs (63)
19
=> UsingTree(text,
TestOptions
.Regular9, expectedErrors);
22
=> UsingExpression(text,
TestOptions
.Regular9, expectedErrors);
25
=> UsingStatement(text,
TestOptions
.Regular9, expectedErrors);
108
UsingTree(text, options:
TestOptions
.Regular8);
109
CreateCompilation(text, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
264
var tree = ParseTree(text, options:
TestOptions
.Regular8);
267
CreateCompilation(text, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
330
var tree = ParseTree(text, options:
TestOptions
.Regular8);
333
tree = ParseTree(text, options:
TestOptions
.RegularPreview);
1209
CreateCompilation(text, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
1217
var tree = SyntaxFactory.ParseSyntaxTree(text, options:
TestOptions
.Regular8);
1717
UsingStatement("int x = await with { };", options:
TestOptions
.Regular9);
1756
UsingStatement("await with;", options:
TestOptions
.Regular9);
2660
CreateCompilation(text, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
2667
UsingTree(text, options:
TestOptions
.Regular9,
2673
CreateCompilation(text, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
2677
UsingTree(text, options:
TestOptions
.Regular10,
2727
CreateCompilation(text, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics();
2728
UsingTree(text, options:
TestOptions
.Regular10);
2731
CreateCompilation(text, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics();
2732
UsingTree(text, options:
TestOptions
.Regular9);
2735
UsingTree(text, options:
TestOptions
.Regular8,
2744
CreateCompilation(text, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
2863
UsingTree(text, options:
TestOptions
.Regular10);
2907
CreateCompilation(text, parseOptions:
TestOptions
.Regular10).VerifyDiagnostics(
2914
UsingTree(text, options:
TestOptions
.Regular10);
2917
CreateCompilation(text, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
2927
UsingTree(text, options:
TestOptions
.Regular9);
2930
CreateCompilation(text, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
2954
UsingTree(text, options:
TestOptions
.Regular8,
3058
UsingTree(text, options:
TestOptions
.RegularPreview,
3116
UsingTree(text, options:
TestOptions
.RegularPreview,
3208
UsingTree(text, options:
TestOptions
.Regular10,
3253
UsingTree(text, options:
TestOptions
.Regular9,
3298
UsingTree(text, options:
TestOptions
.Regular8);
3318
UsingTree(text, options:
TestOptions
.Regular9);
3338
UsingTree(text, options:
TestOptions
.Regular10);
3358
UsingTree(text, options:
TestOptions
.Regular10,
3403
UsingTree(text, options:
TestOptions
.Regular9,
3448
UsingTree(text, options:
TestOptions
.RegularPreview,
3540
UsingTree(text, options:
TestOptions
.RegularPreview);
3561
UsingTree(text, options:
TestOptions
.RegularPreview);
3582
UsingTree(text, options:
TestOptions
.RegularPreview);
3602
UsingTree(text, options:
TestOptions
.RegularPreview);
3636
UsingTree(text, options:
TestOptions
.RegularPreview);
3671
UsingTree(text, options:
TestOptions
.RegularPreview);
3692
UsingTree(text, options:
TestOptions
.RegularPreview);
3714
UsingTree(text, options:
TestOptions
.RegularPreview,
3746
UsingTree(text, options:
TestOptions
.RegularPreview,
3793
CreateCompilation(text, parseOptions:
TestOptions
.RegularPreview).VerifyDiagnostics(
3797
UsingTree(text, options:
TestOptions
.RegularPreview);
3800
CreateCompilation(text, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
3808
UsingTree(text, options:
TestOptions
.Regular8,
3837
CreateCompilation(text, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
3844
UsingTree(text, options:
TestOptions
.Regular9);
3869
UsingTree(text, options:
TestOptions
.RegularPreview);
3873
UsingTree(text, options:
TestOptions
.Regular8);
3875
CreateCompilation(text, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
3917
UsingTree(text, options:
TestOptions
.Regular9);
3942
UsingTree(text, options:
TestOptions
.RegularPreview,
3990
UsingTree(text, options:
TestOptions
.RegularPreview,
4053
UsingTree(text, options:
TestOptions
.RegularPreview);
4096
UsingTree(text, options:
TestOptions
.RegularPreview);
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 (47)
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);
136
ParseAndValidate(text,
TestOptions
.Regular9,
501
UsingDeclaration(source,
TestOptions
.Regular11);
504
UsingDeclaration(source,
TestOptions
.Regular12);
544
UsingDeclaration(source,
TestOptions
.Regular11);
547
UsingDeclaration(source,
TestOptions
.Regular12);
588
UsingDeclaration(source,
TestOptions
.Regular11);
591
UsingDeclaration(source,
TestOptions
.Regular12);
631
UsingDeclaration(source,
TestOptions
.Regular11);
634
UsingDeclaration(source,
TestOptions
.Regular12);
675
UsingDeclaration(source,
TestOptions
.Regular11);
678
UsingDeclaration(source,
TestOptions
.Regular12);
719
UsingDeclaration(source,
TestOptions
.Regular11);
722
UsingDeclaration(source,
TestOptions
.Regular12);
764
UsingDeclaration(source,
TestOptions
.Regular11);
767
UsingDeclaration(source,
TestOptions
.Regular12);
808
UsingDeclaration(source,
TestOptions
.Regular11);
811
UsingDeclaration(source,
TestOptions
.Regular12);
852
UsingDeclaration(source,
TestOptions
.Regular11);
855
UsingDeclaration(source,
TestOptions
.Regular12);
896
UsingDeclaration(source,
TestOptions
.Regular11);
899
UsingDeclaration(source,
TestOptions
.Regular12);
950
UsingDeclaration(source,
TestOptions
.Regular11, expectedDiagnostics);
953
UsingDeclaration(source,
TestOptions
.Regular12, expectedDiagnostics);
956
UsingDeclaration(source,
TestOptions
.RegularPreview, expectedDiagnostics);
1012
UsingDeclaration(source,
TestOptions
.Regular11, expectedDiagnostics);
1015
UsingDeclaration(source,
TestOptions
.Regular12, expectedDiagnostics);
1018
UsingDeclaration(source,
TestOptions
.RegularPreview, expectedDiagnostics);
1074
UsingDeclaration(source,
TestOptions
.Regular11, expectedDiagnostics);
1077
UsingDeclaration(source,
TestOptions
.Regular12, expectedDiagnostics);
1080
UsingDeclaration(source,
TestOptions
.RegularPreview, expectedDiagnostics);
1135
UsingDeclaration(source,
TestOptions
.Regular11, expectedDiagnostics);
1138
UsingDeclaration(source,
TestOptions
.Regular12, expectedDiagnostics);
1141
UsingDeclaration(source,
TestOptions
.RegularPreview, expectedDiagnostics);
1187
UsingDeclaration(source,
TestOptions
.Regular11);
1190
UsingDeclaration(source,
TestOptions
.Regular12);
1230
UsingDeclaration(source,
TestOptions
.Regular11);
1233
UsingDeclaration(source,
TestOptions
.Regular12);
1273
UsingDeclaration(source,
TestOptions
.Regular11);
1276
UsingDeclaration(source,
TestOptions
.Regular12);
1279
UsingDeclaration(source,
TestOptions
.Regular9);
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 (7)
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);
230
}",
TestOptions
.UnsafeDebugDll).GetParseDiagnostics().Verify();
Parsing\RoundTrippingTests.cs (2)
23
ParseAndRoundTripping(text,
TestOptions
.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.Preview), errorCount, memberCount);
77
var parseOptions =
TestOptions
.Regular;
Parsing\ScriptParsingTests.cs (112)
25
return SyntaxFactory.ParseSyntaxTree(text, options: options ??
TestOptions
.Script);
77
ParseAndValidate(test,
TestOptions
.Script,
2590
ParseAndValidate(test,
TestOptions
.Regular9);
2594
ParseAndValidate(test,
TestOptions
.Regular9, new[] { new ErrorDescription { Code = (int)ErrorCode.ERR_SemicolonExpected, Line = 1, Column = 8 } }); // expected ';'
2598
ParseAndValidate(test,
TestOptions
.Script);
2602
ParseAndValidate(test,
TestOptions
.Script);
2606
ParseAndValidate(test,
TestOptions
.Script);
2612
var tree = UsingTree(@"a * b;",
TestOptions
.Script);
2642
var tree = UsingTree(@"a * b",
TestOptions
.Script);
2675
var tree = UsingTree(@"a<t>.n * f(x)",
TestOptions
.Script);
2811
var tree = UsingTree(@"T ? a;",
TestOptions
.Script);
2841
var tree = UsingTree(@"T ? b, c = 1;",
TestOptions
.Script);
2884
var tree = UsingTree(@"T ? b = d => { };",
TestOptions
.Script);
2931
var tree = UsingTree(@"T ? b = x ? y : z;",
TestOptions
.Script);
2981
var tree = UsingTree(@"T ? a,",
TestOptions
.Script,
3023
var tree = UsingTree(@"T ? a = 1,",
TestOptions
.Script,
3074
var tree = UsingTree(@"T ? a {",
TestOptions
.Script,
3105
var tree = UsingTree(@"T ? a.b {",
TestOptions
.Script,
3144
var tree = UsingTree(@"T ? a<T>.b {",
TestOptions
.Script,
3192
var tree = UsingTree(@"T ? a<T?>.b<S>.c {",
TestOptions
.Script,
3263
var tree = UsingTree(@"T ? a() {",
TestOptions
.Script,
3299
var tree = UsingTree(@"T ? a() where",
TestOptions
.Script,
3356
var tree = UsingTree(@"T ? a(T b",
TestOptions
.Script,
3399
var tree = UsingTree(@"T ? a.b(T c",
TestOptions
.Script,
3450
var tree = UsingTree(@"T ? a<A>.b<B>(C c",
TestOptions
.Script,
3519
var tree = UsingTree(@"T ? a([Attr]C c",
TestOptions
.Script,
3574
var tree = UsingTree(@"T ? a([Attr(a = b)]c",
TestOptions
.Script,
3652
var tree = UsingTree(@"T ? a(out C c",
TestOptions
.Script,
3696
var tree = UsingTree(@"T ? a(C[] a",
TestOptions
.Script,
3751
var tree = UsingTree(@"T ? a(params",
TestOptions
.Script,
3801
var tree = UsingTree(@"T ? a(out T ? b",
TestOptions
.Script,
3849
var tree = UsingTree(@"T ? a(ref T ? b",
TestOptions
.Script,
3897
var tree = UsingTree(@"T ? a(params T ? b",
TestOptions
.Script,
3945
var tree = UsingTree(@"T ? a([Attr]T ? b",
TestOptions
.Script,
4004
var tree = UsingTree(@"T ? a(T ? b,",
TestOptions
.Script,
4066
var tree = UsingTree(@"T ? a(T ? b)",
TestOptions
.Script,
4110
var tree = UsingTree(@"T ? a(T c)",
TestOptions
.Script,
4150
var tree = UsingTree(@"T ? a(this c d",
TestOptions
.Script,
4194
var tree = UsingTree(@"T ? a(ref out T a",
TestOptions
.Script,
4239
var tree = UsingTree(@"T ? a(int a",
TestOptions
.Script,
4282
var tree = UsingTree(@"T ? a(ref int a",
TestOptions
.Script,
4326
var tree = UsingTree(@"T ? a(T a =",
TestOptions
.Script,
4380
var tree = UsingTree(@"T ? a(T[,] a",
TestOptions
.Script,
4499
var tree = UsingTree(@"T ? m(a < b, c > d)",
TestOptions
.Script,
4555
var tree = UsingTree(@"T ? 1",
TestOptions
.Script,
4596
var tree = UsingTree(@"T ? a",
TestOptions
.Script,
4637
var tree = UsingTree(@"T ? a.",
TestOptions
.Script,
4689
var tree = UsingTree(@"T ? a[",
TestOptions
.Script,
4741
var tree = UsingTree(@"T ? a<",
TestOptions
.Script,
4793
var tree = UsingTree(@"T ? a<b",
TestOptions
.Script,
4842
var tree = UsingTree(@"T ? a<b>",
TestOptions
.Script,
4892
var tree = UsingTree(@"T ? a<b,c>",
TestOptions
.Script,
4947
var tree = UsingTree(@"T ? a<b>.",
TestOptions
.Script,
5008
var tree = UsingTree(@"T ? a<b>.c",
TestOptions
.Script,
5066
var tree = UsingTree(@"T ? a<b>.c(",
TestOptions
.Script,
5135
var tree = UsingTree(@"T ? a(",
TestOptions
.Script,
5187
var tree = UsingTree(@"T ? a.b(",
TestOptions
.Script,
5247
var tree = UsingTree(@"T ? m(c",
TestOptions
.Script,
5306
var tree = UsingTree(@"T ? m(c,",
TestOptions
.Script,
5376
var tree = UsingTree(@"T ? m(c:",
TestOptions
.Script,
5446
var tree = UsingTree(@"T ? m(c?",
TestOptions
.Script,
5527
var tree = UsingTree(@"T ? m(c? a",
TestOptions
.Script,
5605
var tree = UsingTree(@"T ? m(c? a =",
TestOptions
.Script,
5694
var tree = UsingTree(@"T ? m(c? a = b ?",
TestOptions
.Script,
5802
var tree = UsingTree(@"T ? m()",
TestOptions
.Script,
5851
var tree = UsingTree(@"T ? m(a)",
TestOptions
.Script,
5907
var tree = UsingTree(@"T ? m();",
TestOptions
.Script,
5956
var tree = UsingTree(@"T ? m(a);",
TestOptions
.Script,
6012
var tree = UsingTree(@"T ? m(x: 1",
TestOptions
.Script,
6079
var tree = UsingTree(@"T ? m(x: 1, y: a ? b : c)",
TestOptions
.Script,
6172
var tree = UsingTree(@"T ? u => { } : v => { }",
TestOptions
.Script);
6225
var tree = UsingTree(@"T ? u => (d ? e => 1 : f => 2)(3) : c => 2",
TestOptions
.Script);
6325
var tree = UsingTree(@"T ? a ?",
TestOptions
.Script,
6388
var tree = UsingTree(@"T ? a =",
TestOptions
.Script,
6440
var tree = UsingTree(@"T ? a = b",
TestOptions
.Script,
6489
var tree = UsingTree(@"T ? a = b : ",
TestOptions
.Script,
6535
var tree = UsingTree(@"T ? m(out c",
TestOptions
.Script,
6595
var tree = UsingTree(@"T ? m(ref c",
TestOptions
.Script,
6655
var tree = UsingTree(@"T ? m(ref out",
TestOptions
.Script,
6733
var tree = UsingTree(@"T ? m(ref out c",
TestOptions
.Script,
6808
var tree = UsingTree(@"T ? m(this",
TestOptions
.Script,
6867
var tree = UsingTree(@"T ? m(this.",
TestOptions
.Script,
6937
var tree = UsingTree(@"T ? m(this<",
TestOptions
.Script,
7007
var tree = UsingTree(@"T ? m(this[",
TestOptions
.Script,
7077
var tree = UsingTree(@"T ? m(this a",
TestOptions
.Script,
7147
var tree = UsingTree(@"T ? m(this(",
TestOptions
.Script,
7217
var tree = UsingTree(@"T ? m(T[",
TestOptions
.Script,
7287
var tree = UsingTree(@"T ? m(T[1",
TestOptions
.Script,
7364
var tree = UsingTree(@"T ? m(T[1]",
TestOptions
.Script,
7438
var tree = UsingTree(@"T ? a(T ? a =",
TestOptions
.Script,
7527
var tree = UsingTree(@"T ? a(T)",
TestOptions
.Script,
7583
var tree = UsingTree(@"T ? a(ref int.MaxValue)",
TestOptions
.Script,
7648
var tree = UsingTree(@"T ? a(ref a,",
TestOptions
.Script,
7719
var tree = UsingTree(@"T ? a(,",
TestOptions
.Script,
7792
var tree = UsingTree(@"T ? a(T ? b[1] : b[2])",
TestOptions
.Script,
7965
var tree = UsingTree(@"T ? m(a < b, c > d) :",
TestOptions
.Script,
8360
var tree = UsingTree(@"from",
TestOptions
.Script);
8382
var tree = UsingTree(@"from c",
TestOptions
.Script,
9177
var tree = UsingTree("a < b,c.",
TestOptions
.Script,
9609
var tree = SyntaxFactory.ParseSyntaxTree(test, options:
TestOptions
.Script);
9633
var tree = ParseAndValidate($"#!{command}",
TestOptions
.Script);
9644
tree = ParseAndValidate($"#! {command}\r\n ",
TestOptions
.Script);
9660
Console.WriteLine(""Hi!"");",
TestOptions
.Script);
9674
ParseAndValidate(" #!/usr/bin/env csi",
TestOptions
.Script,
9677
ParseAndValidate("\n#!/usr/bin/env csi",
TestOptions
.Script,
9680
ParseAndValidate("\r\n#!/usr/bin/env csi",
TestOptions
.Script,
9683
ParseAndValidate("#!/bin/sh\r\n#!/usr/bin/env csi",
TestOptions
.Script,
9686
ParseAndValidate("a #!/usr/bin/env csi",
TestOptions
.Script,
9693
ParseAndValidate("#/usr/bin/env csi",
TestOptions
.Script,
9700
ParseAndValidate("# !/usr/bin/env csi",
TestOptions
.Script,
9707
var tree = ParseAndValidate("//#!/usr/bin/env csi",
TestOptions
.Script);
9719
ParseAndValidate("#!/usr/bin/env csi",
TestOptions
.Regular,
Parsing\SeparatedSyntaxListParsingTests.cs (3)
327
", options:
TestOptions
.Regular,
673
CreateCompilation(text, parseOptions:
TestOptions
.Regular6).VerifyDiagnostics(
735
var tree = UsingTree(text,
TestOptions
.Regular.WithLanguageVersion(LanguageVersion.CSharp6),
Parsing\SingleLineDeclarationParsingTests.cs (28)
32
@"namespace",
TestOptions
.RegularPreview,
64
@"namespace A",
TestOptions
.RegularPreview,
93
@"namespace A.",
TestOptions
.RegularPreview,
133
@"namespace A.B",
TestOptions
.RegularPreview,
170
@"namespace A;",
TestOptions
.RegularPreview);
193
CreateCompilation(test, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
198
UsingNode(test,
TestOptions
.Regular9);
220
@"namespace A.;",
TestOptions
.RegularPreview,
253
@"namespace A.B;",
TestOptions
.RegularPreview);
283
@"namespace A; {",
TestOptions
.RegularPreview,
308
@"namespace A; { }",
TestOptions
.RegularPreview,
336
@"namespace A; }",
TestOptions
.RegularPreview,
362
namespace B;",
TestOptions
.RegularPreview);
396
}",
TestOptions
.RegularPreview);
431
}",
TestOptions
.RegularPreview);
466
namespace B;",
TestOptions
.RegularPreview);
499
namespace A;",
TestOptions
.RegularPreview);
531
using X;",
TestOptions
.RegularPreview);
563
namespace A;",
TestOptions
.RegularPreview);
593
class X { }",
TestOptions
.RegularPreview);
623
namespace A;",
TestOptions
.RegularPreview);
653
extern alias X;",
TestOptions
.RegularPreview);
682
@"namespace A;;",
TestOptions
.RegularPreview,
707
@"namespace A<X>;",
TestOptions
.RegularPreview);
738
@"namespace A::B;",
TestOptions
.RegularPreview);
768
@"public namespace A;",
TestOptions
.RegularPreview);
791
@"[X] namespace A;",
TestOptions
.RegularPreview);
825
@"namespace A; int x;",
TestOptions
.RegularPreview);
Parsing\StackAllocInitializerParsingTests.cs (8)
25
CreateCompilation(testWithStatement, parseOptions:
TestOptions
.Regular7).VerifyDiagnostics(
33
UsingExpression(test, options:
TestOptions
.Regular7);
72
CreateCompilation(testWithStatement, parseOptions:
TestOptions
.Regular7).VerifyDiagnostics(
80
UsingExpression(test, options:
TestOptions
.Regular7);
119
CreateCompilation(testWithStatement, parseOptions:
TestOptions
.Regular7).VerifyDiagnostics(
127
UsingExpression(test, options:
TestOptions
.Regular7);
153
CreateCompilation(testWithStatement, parseOptions:
TestOptions
.Regular7).VerifyDiagnostics(
161
UsingExpression(test, options:
TestOptions
.Regular7,
Parsing\StatementParsingTests.cs (27)
178
TestPostfixUnaryOperator(SyntaxKind.ExclamationToken,
TestOptions
.Regular8);
241
var statement = this.ParseStatement(text, options:
TestOptions
.Regular);
2393
var statement = this.ParseStatement(text, options:
TestOptions
.Regular8);
2421
UsingStatement(@"using T a = b;", options:
TestOptions
.Regular8);
2488
var statement = this.ParseStatement(text, options:
TestOptions
.Regular8);
2518
UsingStatement("using public readonly var a = b;",
TestOptions
.Regular8,
2558
UsingStatement(@"using var a = b;", options:
TestOptions
.Regular8);
2588
UsingStatement(@"await using T a = b;",
TestOptions
.Regular8);
2620
var statement = this.ParseStatement(text, 0,
TestOptions
.Regular8);
2651
UsingStatement(@"await using var a = b;",
TestOptions
.Regular8);
2765
UsingStatement(@"await var a = b;",
TestOptions
.Regular8,
2836
var statement = this.ParseStatement(text, options:
TestOptions
.Regular8);
2873
UsingStatement(@"using T a = b, c = d;", options:
TestOptions
.Regular8);
2939
var statement = this.ParseStatement(text, options:
TestOptions
.Regular8);
2956
UsingStatement(@"using var x = f ? a : b;", options:
TestOptions
.Regular8);
3000
var statement = this.ParseStatement(text, options:
TestOptions
.Regular8);
3022
var statement = this.ParseStatement(text, options:
TestOptions
.Regular8);
3039
UsingStatement(@"using f ? x = a;", options:
TestOptions
.Regular8);
3094
var statement = this.ParseStatement(text, options:
TestOptions
.Regular8);
3111
UsingStatement("using f? x, y;", options:
TestOptions
.Regular8);
3142
UsingStatement("using ref int x = ref y;",
TestOptions
.Regular8);
3180
UsingStatement("using ref readonly int x = ref y;",
TestOptions
.Regular8);
3219
UsingStatement("using ref var x = ref y;",
TestOptions
.Regular8);
3257
UsingStatement("using ref var x = y;",
TestOptions
.Regular8);
3291
UsingStatement("using readonly var x, y = ref z;",
TestOptions
.Regular8,
3506
var tree = SyntaxFactory.ParseSyntaxTree(source, options:
TestOptions
.Regular);
3531
var tree = SyntaxFactory.ParseSyntaxTree(source, options:
TestOptions
.Regular);
Parsing\SuppressNullableWarningExpressionParsingTests.cs (10)
79
TestOptions
.Regular8);
99
TestOptions
.Regular8);
123
TestOptions
.Regular8);
151
TestOptions
.Regular8);
188
TestOptions
.Regular8,
228
TestOptions
.Regular8);
793
CreateCompilation(text, parseOptions:
TestOptions
.Regular7_3).VerifyDiagnostics(
806
CreateCompilation(text, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
817
UsingNode(text, options:
TestOptions
.Regular7_3);
820
UsingNode(text, options:
TestOptions
.Regular8);
Parsing\TopLevelStatementsParsingTests.cs (3)
1621
var tree = UsingTree(test,
TestOptions
.RegularPreview.WithLanguageVersion(version));
3193
CreateCompilation(test, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
3217
UsingTree(test,
TestOptions
.Regular8,
Parsing\UsingDirectiveParsingTests.cs (58)
18
return SyntaxFactory.ParseSyntaxTree(text, options: options ??
TestOptions
.RegularPreview);
659
CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
771
CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
860
UsingTree(text, options:
TestOptions
.Regular11);
861
CreateCompilation(text, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
901
CreateCompilation(text, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
1108
CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
1156
CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
1231
CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
1304
CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
1379
CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
1466
CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
2096
CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
2173
CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics();
2248
CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
2329
CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
2405
CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
2473
CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics(
4036
CreateCompilation(text, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
4050
UsingTree(text, options:
TestOptions
.Regular11,
4086
CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
4097
UsingTree(text, options:
TestOptions
.Regular11,
4133
CreateCompilation(text, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
4180
CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
4224
CreateCompilation(text, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
4241
UsingTree(text, options:
TestOptions
.Regular11,
4285
CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
4299
UsingTree(text, options:
TestOptions
.Regular11,
4343
CreateCompilation(text, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
4401
CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
4456
UsingTree(text, options:
TestOptions
.Regular11);
4457
CreateCompilation(text, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
4499
UsingTree(text, options:
TestOptions
.Regular11);
4500
CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
4540
CreateCompilation(text, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
4580
CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
4616
UsingTree(text, options:
TestOptions
.Regular11);
4617
CreateCompilation(text, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
4700
UsingTree(text, options:
TestOptions
.Regular11);
4701
CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
4782
CreateCompilation(text, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
4863
CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
4941
UsingTree(text, options:
TestOptions
.Regular11);
4942
CreateCompilation(text, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
5019
UsingTree(text, options:
TestOptions
.Regular11);
5020
CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular11).VerifyDiagnostics(
5097
CreateCompilation(text, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
5177
CreateCompilation(text, options:
TestOptions
.UnsafeDebugDll, parseOptions:
TestOptions
.Regular12).VerifyDiagnostics(
Parsing\Utf8StringLiteralsParsingTests.cs (20)
114
UsingExpression(@"""hello""u8", options:
TestOptions
.Regular11);
126
UsingExpression(@"""hello""u8", options:
TestOptions
.Regular10);
150
UsingExpression(@"@""hello""u8", options:
TestOptions
.Regular11);
162
UsingExpression(@"@""hello""u8", options:
TestOptions
.Regular10);
186
UsingExpression(@"""hello""U8", options:
TestOptions
.Regular11);
198
UsingExpression(@"""hello""U8", options:
TestOptions
.Regular10);
222
UsingExpression(@"@""hello""U8", options:
TestOptions
.Regular11);
234
UsingExpression(@"@""hello""U8", options:
TestOptions
.Regular10);
594
foreach (var options in new[] {
TestOptions
.RegularDefault,
TestOptions
.Regular11,
TestOptions
.Regular10 })
612
foreach (var options in new[] {
TestOptions
.RegularDefault,
TestOptions
.Regular11,
TestOptions
.Regular10 })
748
foreach (var options in new[] {
TestOptions
.RegularDefault,
TestOptions
.Regular11,
TestOptions
.Regular10 })
770
foreach (var options in new[] {
TestOptions
.RegularDefault,
TestOptions
.Regular11,
TestOptions
.Regular10 })
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 (47)
40
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular.WithLanguageVersion(languageVersion));
84
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular13);
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));
879
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular13);
902
var comp = CreateCompilation(source, parseOptions:
TestOptions
.Regular13);
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\SyntaxFactoryTests.cs (6)
626
var parsedWith8 = SyntaxFactory.ParseTypeName(type, options:
TestOptions
.Regular8);
629
var parsedWithPreview = SyntaxFactory.ParseTypeName(type, options:
TestOptions
.Regular9);
632
CreateCompilation(type, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
649
CreateCompilation(type, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
662
CreateCompilation(type, parseOptions:
TestOptions
.Regular8).VerifyDiagnostics(
673
CreateCompilation(type, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
Syntax\SyntaxNodeTests.cs (3)
387
testContainsHelper2(new[] { SyntaxKind.ShebangDirectiveTrivia }, SyntaxFactory.ParseCompilationUnit("#!command", options:
TestOptions
.Script));
388
testContainsHelper2(new[] { SyntaxKind.BadDirectiveTrivia }, SyntaxFactory.ParseCompilationUnit(" #!command", options:
TestOptions
.Script));
389
testContainsHelper2(new[] { SyntaxKind.BadDirectiveTrivia }, SyntaxFactory.ParseCompilationUnit("#!command", options:
TestOptions
.Regular));
Syntax\SyntaxRewriterTests.cs (10)
361
var tree = SyntaxFactory.ParseSyntaxTree("System.Console.Write(\"Before\")",
TestOptions
.Script);
376
var tree = SyntaxFactory.ParseSyntaxTree("m(a, b)",
TestOptions
.Script);
395
var tree = SyntaxFactory.ParseSyntaxTree("m(a, b)",
TestOptions
.Script);
422
var tree = SyntaxFactory.ParseSyntaxTree("private class C { }", options:
TestOptions
.Script);
442
var tree = SyntaxFactory.ParseSyntaxTree("public class C { }", options:
TestOptions
.Script);
465
var tree = SyntaxFactory.ParseSyntaxTree("/* c */ identifier", options:
TestOptions
.Script);
492
var tree = SyntaxFactory.ParseSyntaxTree("/* c */ identifier", options:
TestOptions
.Script);
514
var tree = SyntaxFactory.ParseSyntaxTree("private class C { }", options:
TestOptions
.Script);
527
var tree = SyntaxFactory.ParseSyntaxTree("private class C { }", options:
TestOptions
.Script);
649
var oldTree = CSharpTestBase.Parse(oldSource, options:
TestOptions
.RegularWithDocumentationComments);
Syntax\SyntaxTests.cs (4)
22
Assert.False(SyntaxFactory.IsCompleteSubmission(SyntaxFactory.ParseSyntaxTree(code, options:
TestOptions
.Script)));
27
Assert.True(SyntaxFactory.IsCompleteSubmission(SyntaxFactory.ParseSyntaxTree(code, options:
TestOptions
.Script)));
35
SyntaxFactory.IsCompleteSubmission(SyntaxFactory.ParseSyntaxTree("", options:
TestOptions
.Regular)));
182
var expr = SyntaxFactory.ParseExpression(source, options:
TestOptions
.Regular);
Syntax\SyntaxTreeTests.cs (31)
96
var compilation = CSharpCompilation.Create("test", new[] { tree }, TargetFrameworkUtil.GetReferences(TargetFramework.Standard),
TestOptions
.DebugDll);
340
UsingTree(test,
TestOptions
.Regular10);
364
CreateCompilation(test, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
375
UsingTree(test,
TestOptions
.Regular9);
399
UsingTree(test,
TestOptions
.Regular10);
433
CreateCompilation(test, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
447
UsingTree(test,
TestOptions
.Regular9);
481
UsingTree(test,
TestOptions
.Regular10);
506
CreateCompilation(test, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
517
UsingTree(test,
TestOptions
.Regular9);
542
UsingTree(test,
TestOptions
.Regular10);
577
CreateCompilation(test, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
591
UsingTree(test,
TestOptions
.Regular9);
626
UsingTree(test,
TestOptions
.RegularPreview);
658
CreateCompilation(test, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
672
UsingTree(test,
TestOptions
.Regular9);
704
UsingTree(test,
TestOptions
.RegularPreview);
746
CreateCompilation(test, parseOptions:
TestOptions
.Regular9).VerifyDiagnostics(
763
UsingTree(test,
TestOptions
.Regular9);
808
UsingTree(test,
TestOptions
.RegularPreview,
839
UsingTree(test,
TestOptions
.RegularPreview,
873
UsingTree(test,
TestOptions
.RegularPreview,
914
UsingTree(test,
TestOptions
.RegularPreview);
948
UsingTree(test,
TestOptions
.Regular,
975
UsingTree(test,
TestOptions
.RegularPreview,
1003
UsingTree(test,
TestOptions
.Regular,
1039
UsingTree(test,
TestOptions
.RegularPreview,
1080
UsingTree(test,
TestOptions
.RegularPreview,
1121
UsingTree(test,
TestOptions
.RegularPreview);
1177
UsingTree(test,
TestOptions
.RegularPreview);
1249
UsingTree(test,
TestOptions
.RegularPreview);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (33)
CSharpTestBase.cs (27)
794
return (options ??
TestOptions
.ReleaseDll).WithNullableContextOptions(nullableContextOptions);
888
options = options ??
TestOptions
.ReleaseDll.WithOutputKind((expectedOutput != null) ? OutputKind.ConsoleApplication : OutputKind.DynamicallyLinkedLibrary);
1002
options = options ?? (expectedOutput != null ?
TestOptions
.ReleaseExe : CheckForTopLevelStatements(source.GetSyntaxTrees(parseOptions)));
1075
CreateCompilationWithMscorlib40(source, parseOptions:
TestOptions
.RegularPreview.WithNoRefSafetyRulesAttribute()),
1106
var tree = Parse(text, options: options ??
TestOptions
.RegularPreview);
1232
parseOptions = parseOptions != null ? parseOptions.WithDocumentationMode(DocumentationMode.Diagnose) :
TestOptions
.RegularWithDocumentationComments;
1233
options = (options ??
TestOptions
.ReleaseDll).WithXmlReferenceResolver(XmlFileResolver.Default);
1310
parseOptions = (parseOptions ??
TestOptions
.RegularPreview).WithExperimental(experimentalFeature.Value);
1339
var options = hasTopLevelStatements ?
TestOptions
.ReleaseExe :
TestOptions
.ReleaseDll;
1443
Func<CSharpCompilation> createCompilationLambda = () => CSharpCompilation.Create(identity.Name, options: options ??
TestOptions
.ReleaseDll, references: references, syntaxTrees: trees);
1466
syntaxTree: Parse(source, options: parseOptions ??
TestOptions
.Script),
1489
syntaxTree: Parse(code, options: parseOptions ??
TestOptions
.Script),
1499
var compilationOptions = (expectedOutput != null) ?
TestOptions
.ReleaseExe :
TestOptions
.ReleaseDll;
1536
var comp = CreateCompilation(source, options:
TestOptions
.ReleaseExe.WithAllowUnsafe(allowUnsafe));
2062
var compilation = CreateCompilation(testSrc, targetFramework: targetFramework, options: compilationOptions ??
TestOptions
.ReleaseDll, parseOptions: parseOptions);
2261
options:
TestOptions
.UnsafeReleaseDll);
2279
options:
TestOptions
.UnsafeReleaseDll);
2298
options: options ??
TestOptions
.UnsafeReleaseDll,
2330
var reference = CreateCompilation(new[] { TestSources.Index, TestSources.Range, TestSources.Span }, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
2347
var reference = CreateCompilation(new[] { TestSources.Span, TestSources.MemoryExtensions }, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
2365
var reference = CreateCompilation(new[] { TestSources.Index, TestSources.Range, TestSources.Span, TestSources.MemoryExtensions }, options:
TestOptions
.UnsafeReleaseDll).VerifyDiagnostics();
2593
new object[] { WithNullableEnable(
TestOptions
.DebugDll) },
2594
new object[] { WithNullableDisable(
TestOptions
.DebugDll) }
2605
new object[] { WithNullableEnable(
TestOptions
.ReleaseDll) },
2606
new object[] { WithNullableDisable(
TestOptions
.ReleaseDll) }
CSharpTestSource.cs (1)
42
var tree = SyntaxFactory.ParseSyntaxTree(stringText, options ??
TestOptions
.RegularPreview, path);
DiagnosticTestUtilities.cs (2)
47
var comp = CSharpTestBase.CreateCompilation(srcs, parseOptions:
TestOptions
.RegularPreview);
85
var comp = CSharpCompilation.Create(assemblyName: "DiagnosticsTest", options:
TestOptions
.ReleaseDll, syntaxTrees: synTrees, references: refs);
MetadataTestHelpers.cs (1)
71
var tc1 = CSharpCompilation.Create(assemblyName: "Dummy", options: options ??
TestOptions
.ReleaseDll, syntaxTrees: new SyntaxTree[0], references: refs);
MockCSharpCompiler.cs (1)
68
ResolveAnalyzersFromArguments(diagnostics, this.MessageProvider,
TestOptions
.DebugDll, skipAnalyzers, out analyzers, out generators);
TestOptions.cs (1)
34
/// Usages of <see cref="
TestOptions
.RegularNext"/> and <see cref="LanguageVersionFacts.CSharpNext"/>
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (34)
CodeGen\WinMdEventTests.cs (17)
31
var comp = CreateCompilationWithMscorlib40(source, options:
TestOptions
.ReleaseWinMD);
66
var comp = CreateCompilationWithMscorlib40(source, options:
TestOptions
.ReleaseWinMD);
108
var comp = CreateCompilationWithMscorlib40(source, options:
TestOptions
.ReleaseWinMD);
150
var comp = CreateCompilationWithMscorlib40(source, options:
TestOptions
.ReleaseWinMD);
181
var verifier = CompileAndVerifyWithWinRt(source, options:
TestOptions
.ReleaseWinMD);
217
var verifier = CompileAndVerifyWithWinRt(source, options:
TestOptions
.ReleaseWinMD);
281
var verifier = CompileAndVerifyWithWinRt(source, parseOptions:
TestOptions
.Regular10, options:
TestOptions
.ReleaseWinMD);
374
var verifier = CompileAndVerifyWithWinRt(source, parseOptions:
TestOptions
.Regular10, options:
TestOptions
.ReleaseWinMD);
463
var verifier = CompileAndVerifyWithWinRt(source, options:
TestOptions
.ReleaseWinMD);
623
var comp1 = CreateEmptyCompilation(source1, WinRtRefs,
TestOptions
.ReleaseWinMD,
TestOptions
.Regular, "Lib");
627
var comp2 = CreateEmptyCompilation(source2, WinRtRefs.Concat(new MetadataReference[] { new CSharpCompilationReference(comp1), serializationRef, SystemXmlRef }),
TestOptions
.ReleaseExe);
648
var comp = CreateEmptyCompilation(source, WinRtRefs,
TestOptions
.ReleaseWinMD,
TestOptions
.Regular7);
668
var comp = CreateEmptyCompilation(source, WinRtRefs,
TestOptions
.ReleaseWinMD);
CodeGen\WinRTCollectionTests.cs (3)
5190
options:
TestOptions
.ReleaseExe.WithModuleName("MODULE"));
5693
var comp = CreateCompilationWithWinRT(source, references: LegacyRefs, options:
TestOptions
.ReleaseExe);
7359
var verifier = CompileAndVerifyWithWinRt(source, options:
TestOptions
.ReleaseWinMD);
Metadata\WinMdDumpTest.cs (1)
444
var comp = CreateEmptyCompilation("", references, options:
TestOptions
.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
Metadata\WinMdEventTests.cs (11)
241
options:
TestOptions
.DebugWinMD.WithAllowUnsafe(true),
313
options:
TestOptions
.DebugModule.WithAllowUnsafe(true));
2914
var comp = CreateEmptyCompilation(source, WinRtRefs,
TestOptions
.CreateTestOptions(kind, OptimizationLevel.Debug));
2958
var comp = CreateEmptyCompilation(source, WinRtRefs.Concat(new[] { ilRef }),
TestOptions
.CreateTestOptions(kind, OptimizationLevel.Debug));
3027
var comp = CreateEmptyCompilation(source, WinRtRefs.Concat(new[] { interfaceILRef, baseILRef }),
TestOptions
.CreateTestOptions(kind, OptimizationLevel.Debug));
3093
var comp = CreateEmptyCompilation(source, WinRtRefs.Concat(new[] { ilRef }),
TestOptions
.CreateTestOptions(kind, OptimizationLevel.Debug));
3288
var comp = CreateEmptyCompilation(source, WinRtRefs,
TestOptions
.CreateTestOptions(kind, OptimizationLevel.Debug));
3322
var comp = CreateCompilationWithMscorlib40(source, options:
TestOptions
.ReleaseWinMD);
3379
CreateEmptyCompilation(source, WinRtRefs,
TestOptions
.ReleaseWinMD).VerifyDiagnostics(
3428
CreateCompilationWithMscorlib40(source, options:
TestOptions
.ReleaseWinMD).VerifyEmitDiagnostics(
3556
var comp = CreateEmptyCompilation("", WinRtRefs.Concat(new[] { ilRef }),
TestOptions
.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
PdbTests.cs (2)
21
var comp = CSharpCompilation.Create("Compilation", options:
TestOptions
.ReleaseDll);
119
var ops =
TestOptions
.ReleaseDll;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
Emit\CompilationOutputFilesTests.cs (2)
31
var compilation = CSharpTestBase.CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.DebugDll, assemblyName: "lib");
Emit\CompilationOutputsTests.cs (2)
54
var compilation = CSharpTestBase.CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.DebugDll, assemblyName: "lib");
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (2)
CSharpFunctionResolverTests.cs (2)
420
var compilationB = CreateCompilation(sourceB, assemblyName: nameB, options:
TestOptions
.DebugExe, references: new[] { refA });
512
var compilation = CreateCompilation(source, options:
TestOptions
.UnsafeDebugDll);
Microsoft.CodeAnalysis.Features.Test.Utilities (3)
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (2)
271
var parseOptions =
TestOptions
.RegularPreview.WithNoRefSafetyRulesAttribute();
279
Compilation compilation = CSharpTestBase.CreateCompilation(trees.ToArray(), options:
TestOptions
.DebugDll, targetFramework: DefaultTargetFramework, assemblyName: assemblyName);
EditAndContinue\Extensions.cs (1)
100
compilationOptions:
TestOptions
.DebugDll,
Microsoft.CodeAnalysis.Features.UnitTests (11)
EditAndContinue\EditAndContinueMethodDebugInfoReaderTests.cs (2)
63
var tree = CSharpTestSource.Parse(source, path: "/a/c.cs", options:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), checksumAlgorithm: SourceHashAlgorithm.Sha1);
64
var compilation = CSharpTestBase.CreateCompilationWithMscorlib40AndSystemCore(tree, options:
TestOptions
.DebugDll);
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (9)
67
var sourceTreeA1 = SyntaxFactory.ParseSyntaxTree(SourceText.From(sourceBytesA1, sourceBytesA1.Length, encodingA, SourceHashAlgorithms.Default),
TestOptions
.Regular, sourceFileA.Path);
68
var sourceTreeB1 = SyntaxFactory.ParseSyntaxTree(SourceText.From(sourceBytesB1, sourceBytesB1.Length, encodingB, SourceHashAlgorithms.Default),
TestOptions
.Regular, sourceFileB.Path);
69
var sourceTreeC1 = SyntaxFactory.ParseSyntaxTree(SourceText.From(sourceBytesC1, sourceBytesC1.Length, encodingC, SourceHashAlgorithm.Sha1),
TestOptions
.Regular, sourceFileC.Path);
72
var compilation = CSharpTestBase.CreateCompilation([sourceTreeA1, sourceTreeB1, sourceTreeC1], options:
TestOptions
.DebugDll, targetFramework: DefaultTargetFramework, assemblyName: "P");
2595
var compilationV1 = CSharpTestBase.CreateCompilation(sourceV1, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.DebugDll, targetFramework: DefaultTargetFramework, assemblyName: "lib");
3167
var compilationA = CSharpTestBase.CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: DefaultTargetFramework, assemblyName: "A");
3168
var compilationB = CSharpTestBase.CreateCompilation(source1, options:
TestOptions
.DebugDll, targetFramework: DefaultTargetFramework, assemblyName: "B");
3339
var compilationV1 = CSharpTestBase.CreateCompilationWithMscorlib40(sourceV1, options:
TestOptions
.DebugDll, assemblyName: "lib");
Microsoft.CodeAnalysis.Rebuild.UnitTests (3)
CompilationOptionsReaderTests.cs (1)
45
options:
TestOptions
.DebugModule,
CSharpRebuildTests.cs (1)
24
options:
TestOptions
.DebugExe);
OptionRoundTripTests.cs (1)
27
public static readonly CSharpCompilationOptions BaseCSharpCompilationOptions =
TestOptions
.DebugExe.WithDeterministic(true);
Microsoft.CodeAnalysis.UnitTests (2)
AnalyzerAssemblyLoaderTests.cs (1)
1322
TestOptions
.DebugDll.WithPublicSign(true).WithCryptoPublicKey(SigningTestHelpers.PublicKey));
Symbols\DocumentationCommentIdTests.cs (1)
173
var comp = CreateCSharpCompilation(text, compilationOptions:
TestOptions
.UnsafeDebugDll).VerifyDiagnostics();
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (3)
ProjectSystemShim\VisualStudioCompilationOutputFilesTests.cs (3)
38
var compilation = CSharpTestBase.CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions:
TestOptions
.Regular.WithNoRefSafetyRulesAttribute(), options:
TestOptions
.DebugDll, assemblyName: "lib");
87
var compilation = CSharpTestBase.CreateCompilationWithMscorlib40AndSystemCore(source, options:
TestOptions
.DebugDll, assemblyName: "lib");
SemanticSearch.BuildTask.UnitTests (3)
GenerateFilteredReferenceAssembliesTaskTests.cs (3)
128
""", references: [libRef],
TestOptions
.DebugExe);
176
""", references: [libRef],
TestOptions
.DebugExe);
225
""", references: [libRef],
TestOptions
.DebugExe);