25616 references to TestOptions
InteractiveHost.UnitTests (2)
AbstractInteractiveHostTests.cs (2)
201options: 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)
3664parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 3694parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 3724parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 3754parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 4944""", parseOptions: TestOptions.Regular);
src\Analyzers\CSharp\Tests\GenerateMethod\GenerateMethodTests.cs (16)
8775parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 8807parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 8839parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 8871parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 8905parseOptions: TestOptions.Regular); 8939parseOptions: TestOptions.Regular); 8974parseOptions: TestOptions.Regular); 9008parseOptions: TestOptions.Regular); 9137parseOptions: TestOptions.Regular); 9171parseOptions: TestOptions.Regular); 9277parseOptions: TestOptions.Regular); 9315parseOptions: TestOptions.Regular); 9353parseOptions: TestOptions.Regular); 9391parseOptions: TestOptions.Regular); 9429parseOptions: TestOptions.Regular); 9467parseOptions: TestOptions.Regular);
src\Analyzers\CSharp\Tests\ImplementAbstractClass\ImplementAbstractClassTests.cs (6)
567parseOptions: TestOptions.Regular7); 1798parseOptions: 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)
657var 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)
22var comp1 = CreateCompilation(source1, options: TestOptions.DebugDll, assemblyName: "N1", targetFramework: TargetFramework.Mscorlib461); 99var comp1 = CreateCompilation(source1, options: TestOptions.DebugDll, assemblyName: "N1", targetFramework: TargetFramework.Mscorlib461); 177var comp1 = CreateCompilation(source1, options: TestOptions.DebugDll, assemblyName: "N1", targetFramework: TargetFramework.Mscorlib461); 260var comp1 = CreateCompilation(source1, options: TestOptions.DebugDll, assemblyName: "N1", targetFramework: TargetFramework.Mscorlib461);
CommandLineTests.cs (7)
7312var compilation = CSharpCompilation.Create("a.dll", references: new[] { MscorlibRef }, options: TestOptions.ReleaseDll); 7423var compilation = CSharpCompilation.Create("a.dll", options: TestOptions.ReleaseDll); 9746var comp = CreateEmptyCompilation(string.Empty, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 9749comp = CreateEmptyCompilation(string.Empty, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 11715var csc32 = CreateCompilationWithMscorlib46(csc32src, options: TestOptions.ReleaseExe.WithPlatform(Platform.X86), assemblyName: "csc32"); 14208options: TestOptions.DebugDll.WithCryptoKeyFile(Path.GetFileName(snk.Path)).WithStrongNameProvider(virtualSnProvider), 15607var 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)
885await TestAsync(code, expected, TestOptions.Regular); 894await TestAsync(code, expected, TestOptions.Regular); 903await TestAsync(code, expected, TestOptions.Regular); 912await TestAsync(code, expected, TestOptions.Regular); 921await TestAsync(code, expected, TestOptions.Regular); 930await TestAsync(code, expected, TestOptions.Regular); 939await TestAsync(code, expected, TestOptions.Regular); 948await TestAsync(code, expected, TestOptions.Regular); 957await TestAsync(code, expected, TestOptions.Regular);
Classification\SemanticClassifierTests.cs (1)
2714ParseOptions(TestOptions.Regular, Options.Script));
Classification\SyntacticClassifierTests.cs (4)
4649ParseOptions(TestOptions.Regular, Options.Script), 4663ParseOptions(TestOptions.Regular, Options.Script), 4679ParseOptions(TestOptions.Regular, Options.Script), 4695ParseOptions(TestOptions.Regular, Options.Script),
CodeActions\AddUsing\AddUsingTests.cs (1)
2063TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolver));
CodeActions\GenerateType\GenerateTypeTests.cs (2)
1676parseOptions: TestOptions.Regular7); 1830parseOptions: TestOptions.Regular7);
CodeActions\MoveType\CSharpMoveTypeTestsBase.cs (1)
14protected 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)
56using var workspace = EditorTestWorkspace.CreateCSharp(source, TestOptions.Regular, composition: s_compositionWithMockDiagnosticUpdateSourceRegistrationService); 123using var workspace = EditorTestWorkspace.CreateCSharp(source, TestOptions.Regular, composition: s_compositionWithMockDiagnosticUpdateSourceRegistrationService); 162using var workspace = EditorTestWorkspace.CreateCSharp(TestResource.AllInOneCSharpCode, TestOptions.Regular, composition: s_compositionWithMockDiagnosticUpdateSourceRegistrationService); 777using var workspace = EditorTestWorkspace.CreateCSharp("class Class { }", TestOptions.Regular, composition: s_compositionWithMockDiagnosticUpdateSourceRegistrationService);
ExtractMethod\ExtractMethodBase.cs (1)
189using var workspace = EditorTestWorkspace.CreateCSharp(code, CodeAnalysis.CSharp.Test.Utilities.TestOptions.Regular);
Formatting\FormattingEngineTests.cs (1)
2220var tree = SyntaxFactory.ParseSyntaxTree(code, options: TestOptions.Script);
Formatting\Indentation\SmartIndenterTests.cs (8)
1725options: TestOptions.Script); 1742options: 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)
53using var workspace = EditorTestWorkspace.CreateCSharp(code, parseOptions: TestOptions.Script); 81using var workspace = EditorTestWorkspace.CreateCSharp(code, TestOptions.Script); 110using var workspace = EditorTestWorkspace.CreateCSharp(code, parseOptions: TestOptions.Script); 166using var workspace = EditorTestWorkspace.CreateCSharp(code, parseOptions: TestOptions.Script);
KeywordHighlighting\AbstractCSharpKeywordHighlighterTests.cs (2)
22yield return TestOptions.Regular; 23yield return TestOptions.Script;
QuickInfo\SemanticQuickInfoSourceTests.cs (15)
6911await TestWithOptionsAsync(TestOptions.Regular8, 6928await TestWithOptionsAsync(TestOptions.Regular8, 6946await TestWithOptionsAsync(TestOptions.Regular8, 6965await TestWithOptionsAsync(TestOptions.Regular8, 6985await TestWithOptionsAsync(TestOptions.Regular8, 7004await TestWithOptionsAsync(TestOptions.Regular8, 7024await TestWithOptionsAsync(TestOptions.Regular8, 7048await TestWithOptionsAsync(TestOptions.Regular8, 7072await TestWithOptionsAsync(TestOptions.Regular8, 7092await TestWithOptionsAsync(TestOptions.Regular8, 7112await TestWithOptionsAsync(TestOptions.Regular7_3, 7132await TestWithOptionsAsync(TestOptions.Regular8, 7170await TestWithOptionsAsync(TestOptions.Regular8, 7190await TestWithOptionsAsync(TestOptions.Regular8, 7314await TestWithOptionsAsync(TestOptions.Regular8,
Semantics\SpeculationAnalyzerTests.cs (1)
533TestOptions.ReleaseDll.WithSpecificDiagnosticOptions([KeyValuePairUtil.Create("CS0219", ReportDiagnostic.Suppress)]));
TextStructureNavigation\TextStructureNavigatorTests.cs (1)
495TestNavigator(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 (3345)
BreakingChanges.cs (11)
197var tree = Parse(text, options: TestOptions.RegularWithDocumentationComments); 216var tree = Parse(text, options: TestOptions.RegularWithDocumentationComments); 407var strictCompilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithStrictFeature()); 776CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1410compilationOptions: TestOptions.ReleaseDll); 1416compilationOptions: TestOptions.ReleaseDll, 1423compilationOptions: TestOptions.ReleaseDll, 1436compilationOptions: TestOptions.ReleaseExe, 1604var comp = CreateCompilation(source, new[] { libRef }, TestOptions.ReleaseExe); 1629var comp = CreateCompilation(source, new[] { libRef }, TestOptions.ReleaseExe); 1680var comp = CreateCompilation(source, new[] { libRef }, TestOptions.ReleaseExe);
CodeGen\CodeGenAsyncEHTests.cs (13)
940var v = CompileAndVerify(source, s_asyncRefs, targetFramework: TargetFramework.Empty, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: expected, symbolValidator: module => 2170CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 2171CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 2267CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 2268CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 2335CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 2336CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 2413CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput, 2415CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput, 2472CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 2473CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 2543CompileAndVerify(CreateCompilationWithTasksExtensions(sources, options: TestOptions.DebugExe), expectedOutput: expectedOutput).VerifyDiagnostics(); 2544CompileAndVerify(CreateCompilationWithTasksExtensions(sources, options: TestOptions.ReleaseExe), expectedOutput: expectedOutput).VerifyDiagnostics();
CodeGen\CodeGenAsyncIteratorTests.cs (132)
180}", options: TestOptions.DebugExe); 353}", options: TestOptions.DebugExe); 518}", TestOptions.ReleaseExe); 552}", TestOptions.ReleaseExe); 580var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, references: new[] { CSharpRef }, TestOptions.ReleaseExe); 609var comp = CreateCompilationWithTasksExtensions(new[] { source }, parseOptions: TestOptions.Regular7_3); 612comp = CreateCompilationWithTasksExtensions(new[] { source }, parseOptions: TestOptions.Regular8); 651var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 654comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular13); 657comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular12); 703var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular12); 709comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular13); 712comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 862var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular12); 868comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular13); 871comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 910var comp = CreateCompilationWithAsyncIterator(source, parseOptions: TestOptions.Regular12); 923comp = CreateCompilationWithAsyncIterator(source, parseOptions: TestOptions.Regular13); 1087var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugDll); 1134var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugDll); 1161var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugDll); 1855var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 1917var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, parseOptions: TestOptions.Regular7_3); 1920comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, parseOptions: TestOptions.Regular8); 2181var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations: 2), source }, options: TestOptions.DebugExe); 2354var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 2395var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe); 2473var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe); 2522var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe); 2567var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe); 2610var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe); 2640foreach (var options in new[] { TestOptions.DebugExe, TestOptions.ReleaseExe }) 2666if (options == TestOptions.DebugExe) 2871if (options == TestOptions.DebugExe) 3199var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.ReleaseDll); 3467var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3736var comp = CreateCompilationWithTasksExtensions(new[] { source, EnumeratorCancellationAttributeType, AsyncStreamsTypes }, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular9); 4000var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.ReleaseDll); 4240var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 4273var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 4305var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 4338var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 4389var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 4420var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 4449var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 4472var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 4506var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 4550var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 4578var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 4651var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 4686var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 4734var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 4775var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 4821var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 4870var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 4914var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 4968var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5012var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5058var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5111var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5144var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5175var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5240var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5274var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5305var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5337var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5372var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5406var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5445var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5485var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5563var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 5656var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 5691var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5721var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5752var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5785var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 6177var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 6211var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 6252var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 6291var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 6327var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 6361var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 6403var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 6431var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 6644var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.DebugExe); 6667var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 6697var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 6743var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 6820var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 6884var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 6933var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.DebugExe); 6985var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7036var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.DebugExe); 7084var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.DebugExe); 7133foreach (var options in new[] { TestOptions.DebugExe, TestOptions.ReleaseExe }) 7266foreach (var options in new[] { TestOptions.DebugExe, TestOptions.ReleaseExe }) 7268var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: options, parseOptions: TestOptions.Regular9); 7398foreach (var options in new[] { TestOptions.DebugExe, TestOptions.ReleaseExe }) 7443var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.DebugExe); 7489var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.DebugExe); 7547foreach (var options in new[] { TestOptions.DebugExe, TestOptions.ReleaseExe }) 7607foreach (var options in new[] { TestOptions.DebugExe, TestOptions.ReleaseExe }) 7611var comp = CreateCompilationWithAsyncIterator(new[] { source.Replace("SOURCETOCANCEL", sourceToCancel), EnumeratorCancellationAttributeType }, options: options, parseOptions: TestOptions.Regular9); 7646var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.DebugExe); 7673var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, TestOptions.DebugExe); 7704var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, TestOptions.DebugExe, TestOptions.Regular9); 7930var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.DebugExe); 7974var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.DebugExe); 8032var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.DebugExe); 8063var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 8112var comp = CreateCompilationWithTasksExtensions(new[] { source, EnumeratorCancellationAttributeType, AsyncStreamsTypes }, parseOptions: TestOptions.Regular9); 8162var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 8225}", options: TestOptions.DebugExe); 8274}", options: TestOptions.DebugExe); 8323}", options: TestOptions.DebugExe); 8591var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe);
CodeGen\CodeGenAsyncLocalsTests.cs (16)
149CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expected); 150CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expected); 236CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 249CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 288CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 306var vd = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 962var comp = CreateCompilationWithMscorlib461("", new[] { reference }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 992var c = CompileAndVerify(source, expectedOutput: null, options: TestOptions.ReleaseDll); 1150var c = CompileAndVerify(source, expectedOutput: null, options: TestOptions.ReleaseDll); 1247CompileAndVerify(source, targetFramework: TargetFramework.Empty, references: s_asyncRefs, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1301var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"1", verify: Verification.Fails); 1406verifier = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: @"1", verify: Verification.Fails); 1558var verifier = CompileAndVerify(text, options: TestOptions.ReleaseExe, expectedOutput: @"2"); 1691verifier = CompileAndVerify(text, options: TestOptions.DebugExe, expectedOutput: @"2"); 1883var verifier = CompileAndVerify(text, options: TestOptions.ReleaseExe, expectedOutput: @"2"); 2016verifier = CompileAndVerify(text, options: TestOptions.DebugExe, expectedOutput: @"2");
CodeGen\CodeGenAsyncMainTests.cs (111)
40var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe.WithMainTypeName("Program"), parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 65var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 93var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe.WithMainTypeName("Program"), parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 118var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 159var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 202var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 233var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 270var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 306var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 337var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 362var corCompilation = CreateEmptyCompilation(corAssembly, options: TestOptions.DebugDll); 369var taskCompilation = CreateCompilationWithMscorlib461(taskAssembly, options: TestOptions.DebugDll); 381var sourceCompilation = CreateEmptyCompilation(source, new[] { corCompilation.ToMetadataReference(), taskCompilation.ToMetadataReference() }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 402var corCompilation = CreateEmptyCompilation(corAssembly, options: TestOptions.DebugDll); 409var taskCompilation = CreateCompilationWithMscorlib461(taskAssembly, options: TestOptions.DebugDll); 421var sourceCompilation = CreateEmptyCompilation(source, new[] { corCompilation.ToMetadataReference(), taskCompilation.ToMetadataReference() }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 449var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 467var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 489var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 508var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 526var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 544var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 566var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 584var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 601var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 623var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 645var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 667var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 690var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 712var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 789var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 809var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 831var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 858var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 883var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 903var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 923var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 945var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 967var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 987var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 1007var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 1029var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 1052var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 1074CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)).VerifyDiagnostics( 1095CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 1116CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 1142var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)).VerifyDiagnostics(); 1164var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)).VerifyDiagnostics( 1192var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 1220var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)).VerifyDiagnostics( 1246var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithMainTypeName("A")).VerifyDiagnostics( 1273var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)).VerifyDiagnostics( 1310var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)).VerifyDiagnostics( 1341var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 1368var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithMainTypeName("A")).VerifyDiagnostics(); 1411var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 1465var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 1520var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 1566var comp = CreateCompilation(source, options: TestOptions.ReleaseExe.WithOptimizationLevel(OptimizationLevel.Release)); 1808var comp = CreateCompilation(source, options: TestOptions.ReleaseExe.WithOptimizationLevel(OptimizationLevel.Release)); 1982var comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 2004var comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 2064var comp = CreateCompilation(source, options: TestOptions.ReleaseExe);
CodeGen\CodeGenAsyncMethodBuilderOverrideTests.cs (49)
116var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular9); 129compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular10); 226var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular10); 277var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 331var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 369var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 407var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 447var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 485var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 522var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular9); 535compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular10); 571var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 617var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 659var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 696var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 766var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular9); 787compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular10); 820var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular9); 842compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular10); 883var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 941var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 983var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1027var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1070var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1110var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1151var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1192var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1241var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1285var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1319var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1349var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1401var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1442var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1476var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1538var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1578var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1618var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1658var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1702var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1742var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1782var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1822var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1862var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1902var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1942var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 2007var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 2063var compilation = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.RegularPreview); 2098var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 2135var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview);
CodeGen\CodeGenAsyncSpillTests.cs (42)
596var v = CompileAndVerify(source, options: TestOptions.DebugDll); 759var v = CompileAndVerify(source, options: TestOptions.ReleaseDll); 912CompileAndVerify(source, options: TestOptions.DebugDll); 945CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 960CompileAndVerify(source, verify: Verification.Passes, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1144CompileAndVerify(source, options: TestOptions.DebugDll); 3031CompileAndVerify(source, expectedOutput: "", options: TestOptions.ReleaseExe); 3032CompileAndVerify(source, expectedOutput: "", options: TestOptions.DebugExe); 3060CompileAndVerify(source, expectedOutput: "43", options: TestOptions.DebugExe); 3061CompileAndVerify(source, expectedOutput: "43", options: TestOptions.ReleaseExe); 3089CompileAndVerify(source, expectedOutput: "43", options: TestOptions.ReleaseExe); 3090CompileAndVerify(source, expectedOutput: "43", options: TestOptions.DebugExe); 3116CompileAndVerify(source, expectedOutput: "", options: TestOptions.ReleaseExe); 3117CompileAndVerify(source, expectedOutput: "", options: TestOptions.DebugExe); 3473var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseExe); 3578var v = CompileAndVerify(source, options: TestOptions.DebugExe); 3708var comp = CreateCompilationWithMscorlibAndSpan(source, options: TestOptions.DebugExe); 3715comp = CreateCompilationWithMscorlibAndSpan(source, options: TestOptions.ReleaseExe); 3750var comp = CreateCompilationWithMscorlibAndSpan(source, options: TestOptions.DebugExe); 3757comp = CreateCompilationWithMscorlibAndSpan(source, options: TestOptions.ReleaseExe); 3787foreach (var options in new[] { TestOptions.DebugExe, TestOptions.ReleaseExe }) 3844CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: "2"); 3845CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "2"); 3910CreateCompilation(source, options: TestOptions.DebugDll).VerifyDiagnostics().VerifyEmitDiagnostics(expectedDiagnostics); 3911CreateCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics().VerifyEmitDiagnostics(expectedDiagnostics); 3942CompileAndVerify(source, expectedOutput: "42", options: TestOptions.DebugExe); 3943CompileAndVerify(source, expectedOutput: "42", options: TestOptions.ReleaseExe); 3980CompileAndVerify(source, expectedOutput: "True", options: TestOptions.DebugExe); 3981CompileAndVerify(source, expectedOutput: "True", options: TestOptions.ReleaseExe); 4065var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4289var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4508var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4698var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4890var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 5083var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 5268var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 5468var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 5682var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 5923var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 6168var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 6334var comp = CreateCompilation(source, options: TestOptions.ReleaseExe);
CodeGen\CodeGenAsyncTests.cs (87)
24options = options ?? TestOptions.ReleaseExe; 61options = TestOptions.ReleaseExe; 70options = TestOptions.ReleaseDebugExe; 79options = TestOptions.DebugExe; 871CompileAndVerify(source, expectedOutput: "0", options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails); 913CompileAndVerify(source, options: TestOptions.UnsafeDebugExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "11", symbolValidator: debugSymbolValidator, verify: Verification.Fails) 915CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "11", symbolValidator: releaseSymbolValidator, verify: Verification.Fails) 972CompileAndVerify(source, options: TestOptions.UnsafeDebugExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "11", symbolValidator: debugSymbolValidator, verify: Verification.Fails) 974CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "10", symbolValidator: releaseSymbolValidator, verify: Verification.Fails) 1037CreateCompilation(source, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics( 1063CreateCompilation(source, options: TestOptions.UnsafeDebugExe.WithWarningLevel(7)).VerifyDiagnostics( 1144CompileAndVerify(source, expectedOutput: "0", options: TestOptions.UnsafeDebugExe, verify: Verification.Passes); 1205CompileAndVerify(source, expectedOutput: "0", options: TestOptions.UnsafeDebugExe, verify: Verification.Passes); 1246CompileAndVerify(source, expectedOutput: "0", options: TestOptions.UnsafeDebugExe, verify: Verification.Passes); 1305CompileAndVerify(source, "0", options: TestOptions.UnsafeDebugExe); 1389CompileAndVerify(source, "0", options: TestOptions.UnsafeDebugExe); 1451CompileAndVerify(source, "0", options: TestOptions.UnsafeDebugExe); 2336var c = CompileAndVerify(source, options: TestOptions.ReleaseDebugExe, expectedOutput: expected); 2484var c = CompileAndVerify(source, expectedOutput: expected, options: TestOptions.DebugExe); 3307var comp = CSharpTestBase.CreateEmptyCompilation(source, new[] { Net40.References.mscorlib }, TestOptions.ReleaseDll); // NOTE: 4.0, not 4.5, so it's missing the async helpers. 3337var comp = CSharpTestBase.CreateEmptyCompilation(source, new[] { Net40.References.mscorlib }, TestOptions.ReleaseDll); // NOTE: 4.0, not 4.5, so it's missing the async helpers. 3368var comp = CSharpTestBase.CreateEmptyCompilation(source, new[] { Net40.References.mscorlib }, TestOptions.ReleaseDll); // NOTE: 4.0, not 4.5, so it's missing the async helpers. 3447var v = CompileAndVerify(source, null, options: TestOptions.ReleaseDll); 3545var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3615var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3640var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3668var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3693var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3780var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3831var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3864var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3910var v = CompileAndVerify(source, null, options: TestOptions.ReleaseDll); 3988var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4071var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe); 4105var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 4232var v = CompileAndVerify(source, null, options: TestOptions.DebugDll); 4379var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4416var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4420CompileAndVerify(comp.WithOptions(TestOptions.ReleaseExe), expectedOutput: expectedOutput); 4453var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4455CompileAndVerify(comp.WithOptions(TestOptions.ReleaseExe)); 4494var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4496CompileAndVerify(comp.WithOptions(TestOptions.ReleaseExe), expectedOutput: "0"); 4504var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe); 4513var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe); 4523var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe); 4538var s0 = CSharpCompilation.CreateScriptCompilation("s0.dll", SyntaxFactory.ParseSyntaxTree(source0, options: TestOptions.Script), references); 4539var s1 = CSharpCompilation.CreateScriptCompilation("s1.dll", SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.Script), references, previousScriptCompilation: s0); 4549var s0 = CSharpCompilation.CreateScriptCompilation("s0.dll", SyntaxFactory.ParseSyntaxTree(source0, options: TestOptions.Script), references); 4567var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe); 4601var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4603CompileAndVerify(comp.WithOptions(TestOptions.ReleaseExe)); 4639var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4696var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4698CompileAndVerify(comp.WithOptions(TestOptions.ReleaseExe)); 4737var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4739CompileAndVerify(comp.WithOptions(TestOptions.ReleaseExe)); 4787var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4796CompileAndVerify(comp.WithOptions(TestOptions.ReleaseExe), expectedOutput: expectedOutput); 4840var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4849CompileAndVerify(comp.WithOptions(TestOptions.ReleaseExe), expectedOutput: expectedOutput); 4898var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4909CompileAndVerify(comp.WithOptions(TestOptions.ReleaseExe), expectedOutput: expectedOutput); 5038var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 5084var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 5118var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 5153var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5205var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5248var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5251compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5287var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5290compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5319var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 5493var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 5730var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5749var c = CreateCompilation(source, options: TestOptions.DebugDll); 5786var comp = CSharpTestBase.CreateCompilation(source, options: TestOptions.ReleaseExe); 5819var comp = CSharpTestBase.CreateCompilation(source, options: TestOptions.ReleaseExe); 5873CompileAndVerify(source, options: TestOptions.DebugExe, verify: Verification.Skipped, expectedOutput: "0123").VerifyDiagnostics(diags); 5874CompileAndVerify(source, options: TestOptions.ReleaseExe, verify: Verification.Skipped, expectedOutput: "0123").VerifyDiagnostics(diags); 5903var comp = CreateCompilation(source, options: TestOptions.DebugDll); 5905comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 5929var comp = CSharpTestBase.CreateCompilation(source, options: TestOptions.ReleaseDll);
CodeGen\CodeGenAwaitForeachTests.cs (242)
42var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular7_3); 45comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular8); 72var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular7_3); 75comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular8); 176var comp_checked = CreateCompilationWithTasksExtensions(new[] { source.Replace("REPLACE", "checked"), s_IAsyncEnumerable }, options: TestOptions.DebugExe); 180var comp_unchecked = CreateCompilationWithTasksExtensions(new[] { source.Replace("REPLACE", "unchecked"), s_IAsyncEnumerable }, options: TestOptions.DebugExe); 382var comp = CreateCompilationWithMscorlib46(source, parseOptions: useCsharp8 ? TestOptions.Regular8 : TestOptions.Regular9); 816var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe); 851var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe); 1038var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 1082var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 1139var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 1179var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 1222var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 1269var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 1312var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 1594var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 1700var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12); 1713comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13); 1767var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12); 1775comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular13); 1778comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 1818var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12); 1831comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13); 1857var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.UnsafeDebugDll); 2059var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 2089CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 2104CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 2138CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 2153CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 2180CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 2195CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 2233var comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 2280var comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 2378CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 2382var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe); 2385comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 2449CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 2453var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe); 2456comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 2509CompileAndVerify(source, parseOptions: TestOptions.Regular12, expectedOutput: expectedOutput, verify: Verification.FailsILVerify).VerifyDiagnostics(); 2510CompileAndVerify(source, parseOptions: TestOptions.Regular13, expectedOutput: expectedOutput, verify: Verification.FailsILVerify).VerifyDiagnostics(); 2561var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 2607CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 2614var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe); 2617comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 2671CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 2678var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe); 2681comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 2715CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 2727CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 2779CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 2786CompileAndVerify(source, parseOptions: TestOptions.Regular13, expectedOutput: expectedOutput).VerifyDiagnostics(); 2819CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 2831CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 2912var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 2963var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 3028var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 3066var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 3106var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 3157var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 3198var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 3287var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 3345var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 3541var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 3708var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 3781var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 4051var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4105var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4161var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4216var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4307var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4367var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4456var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4529var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4585var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4639var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4739var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4818var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4853var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4899var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 5042var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 5123var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 5349var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 5623var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 5719var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 5764var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 5807var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 5855var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 5899var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 6033var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 6077var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 6123var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 6168var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 6223var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.ReleaseExe); 6243CreateCompilation(source, parseOptions: TestOptions.Regular9) 6268CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, parseOptions: TestOptions.Regular9) 6295CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, parseOptions: TestOptions.Regular9) 6322var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6346var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6367CreateCompilation(source, parseOptions: TestOptions.Regular9) 6400CreateCompilation(source, parseOptions: TestOptions.Regular9) 6433var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6476var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6506var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6536var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6568var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular9); 6604CreateCompilation(source, parseOptions: TestOptions.Regular9) 6640CreateCompilation(source, parseOptions: TestOptions.Regular9) 6676CreateCompilation(source, parseOptions: TestOptions.Regular9) 6713CreateCompilation(source, parseOptions: TestOptions.Regular9) 6754var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6789var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6820var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6852var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6882CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular9) 6918CreateCompilation(source, parseOptions: TestOptions.Regular9) 6951var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6982var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7012var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7043var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7073var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7103var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7133var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7168options: TestOptions.DebugExe, 7169parseOptions: TestOptions.Regular9); 7201var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7237var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7270var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular9); 7308var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular9); 7352var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7388var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular9); 7439var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7472CreateCompilationWithCSharp(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9) 7509var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular9); 7549CreateCompilation(source, parseOptions: TestOptions.Regular9) 7589CreateCompilation(source, parseOptions: TestOptions.Regular9) 7629var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7663CreateCompilation(source, parseOptions: TestOptions.Regular9) 7707CreateCompilation(source, parseOptions: TestOptions.Regular9) 7749var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7785CreateCompilation(source, parseOptions: TestOptions.Regular9) 7825var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7859CreateCompilation(source, parseOptions: TestOptions.Regular9) 7896var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7926CreateCompilation(source, parseOptions: TestOptions.Regular9) 7963var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7993var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular9); 8026var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular9); 8059var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular9); 8099var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 8132var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 8162var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular8); 8195var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8225var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8254CreateCompilation(source, parseOptions: TestOptions.Regular9) 8298CreateCompilation(source, parseOptions: TestOptions.Regular9) 8337var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8374var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8407var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8440var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8474var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8507var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8537var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8573var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8620var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8653CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular9) 8687var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8738var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8787var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8838CreateCompilation(source, parseOptions: TestOptions.Regular9) 8892CreateCompilation(source, parseOptions: TestOptions.Regular9) 8932var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8967var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8998CreateCompilation(source, parseOptions: TestOptions.Regular9) 9037var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 9088var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, 9089parseOptions: withCSharp8 ? TestOptions.Regular8 : TestOptions.Regular7_3); 9164var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, 9165parseOptions: withCSharp8 ? TestOptions.Regular8 : TestOptions.Regular7_3); 9242var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, 9243parseOptions: withCSharp8 ? TestOptions.Regular8 : TestOptions.Regular7_3); 9315var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 9374var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, 9375parseOptions: withCSharp8 ? TestOptions.Regular8 : TestOptions.Regular7_3); 9481var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe);
CodeGen\CodeGenAwaitUsingTests.cs (73)
36var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, parseOptions: TestOptions.Regular7_3); 62var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, parseOptions: TestOptions.Regular7_3); 171var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 213var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 240var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.UnsafeDebugDll); 297var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 321var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 328comp = CreateCompilationWithTasksExtensions([source, IAsyncDisposableDefinition], parseOptions: TestOptions.Regular7); 341comp = CreateCompilationWithTasksExtensions([source, IAsyncDisposableDefinition], parseOptions: TestOptions.Regular8, options: TestOptions.DebugExe); 401var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 516var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 552var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 579var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 842var comp = CreateCompilationWithTasksExtensions(comp_cs, references: new[] { libComp.EmitToImageReference() }, options: TestOptions.DebugExe); 879var comp = CreateCompilationWithTasksExtensions(comp_cs, references: new[] { libComp.EmitToImageReference() }, options: TestOptions.DebugExe); 909var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 989var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 1066var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, references: new[] { CSharpRef }); 1093var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, references: new[] { CSharpRef }); 1119var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 1293var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 1468var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 1638var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 1687var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, references: new[] { CSharpRef }); 1713var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 1882var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2060var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2087var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2114var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2186var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2225var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2270var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2369var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2400var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2428var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2461var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2491var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2524var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2554var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2584var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2697var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2906var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2935var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2966var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 3035var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.ReleaseExe); 3125CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3137CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 3169CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(expectedDiagnostics); 3170CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 3207CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 3208CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 3244CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3251CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular13, verify: Verification.FailsILVerify).VerifyDiagnostics(); 3283CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3290CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 3332CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 3333CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 3365CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3372var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe); 3375comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 3400CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3412CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 3438CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3450CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 3474CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3486CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 3525CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3532var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe); 3535comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 3720var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe);
CodeGen\CodeGenCheckedTests.cs (9)
391var verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 1880CompileAndVerify(source, options: TestOptions.ReleaseDll.WithOverflowChecks(true)).VerifyIL("C.ULong_UInt", @" 1889CompileAndVerify(source, options: TestOptions.ReleaseDll.WithOverflowChecks(false)).VerifyIL("C.ULong_UInt", @" 1912CompileAndVerify(source, options: TestOptions.ReleaseDll.WithOverflowChecks(true)).VerifyIL("C.ULong_UInt", @" 1940CompileAndVerify(source, options: TestOptions.ReleaseDll.WithOverflowChecks(true)).VerifyIL("C.ULong_UInt", @" 2687var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 2710var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 2734var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 2757var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe);
CodeGen\CodeGenClosureLambdaTests.cs (9)
2569CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F", verify: Verification.Passes); 3970CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: m => 4041CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: m => 4082CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: m => 4432var compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"True 4454var compilation = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"True 4715var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll); 4807var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll); 4936var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll);
CodeGen\CodeGenConditionalOperatorTests.cs (18)
41var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 64verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithDebugPlusMode(true), expectedOutput: expectedOutput); 90verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput); 172options: TestOptions.ReleaseExe, 374options: TestOptions.ReleaseExe, 457options: TestOptions.ReleaseExe, 568var comp = CreateCompilationWithIL(source2, source1, options: TestOptions.ReleaseExe); 625options: TestOptions.DebugExe, 749options: TestOptions.DebugExe, 875options: TestOptions.DebugExe, 1004options: TestOptions.DebugExe, 1153options: TestOptions.DebugExe, 1237options: TestOptions.DebugExe, 1327options: TestOptions.DebugExe, 1433options: TestOptions.DebugExe, 1687var comp = CompileAndVerify(source, parseOptions: TestOptions.Regular10); 2778options: TestOptions.DebugExe, 3015CompileAndVerify(source, expectedOutput: expectedOutput, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails);
CodeGen\CodeGenConstructorInitTests.cs (7)
690var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All); 757options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 779options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 846options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 925options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1151CompileAndVerify(source, options: TestOptions.UnsafeDebugDll, verify: Verification.Skipped).VerifyIL("C..cctor()", @" 1209var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute();
CodeGen\CodeGenConversionTests.cs (3)
284var comp2 = CreateCompilation(source2, new[] { MetadataReference.CreateFromImage(verifier1.EmittedAssemblyData) }, TestOptions.ReleaseExe); 382var comp2 = CreateCompilation(source2, new[] { MetadataReference.CreateFromImage(verifier1.EmittedAssemblyData) }, TestOptions.ReleaseExe); 1070var compilation = CreateCompilationWithMscorlib461AndCSharp(source, options: TestOptions.ReleaseExe.WithAllowUnsafe(true));
CodeGen\CodeGenDeconstructTests.cs (174)
1430sourceSymbolValidator: validator, parseOptions: TestOptions.Regular7_1); 1460var comp = CreateCompilationWithMscorlib40(source, parseOptions: TestOptions.Regular7, options: TestOptions.DebugExe); 1503var comp = CreateCompilationWithMscorlib40(source, parseOptions: TestOptions.Regular7, options: TestOptions.DebugExe); 1556var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 1585var comp = CreateCompilationWithMscorlib40(source, parseOptions: TestOptions.Regular7); 1607var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 1636parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 1685sourceSymbolValidator: validator, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 1793var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1837var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 2149var comp = CreateCompilationWithILAndMscorlib40(source, ilSource, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe); 2234var comp = CompileAndVerify(source, expectedOutput: "(1, 1) 2", parseOptions: TestOptions.Regular.WithRefsFeature()); 2260var comp = CompileAndVerify(source, expectedOutput: "1 2", parseOptions: TestOptions.Regular.WithRefsFeature()); 2282var comp = CompileAndVerify(source, expectedOutput: "1 hello world", parseOptions: TestOptions.Regular.WithRefsFeature()); 2374var comp = CompileAndVerify(source, expectedOutput: "override", parseOptions: TestOptions.Regular.WithRefsFeature()); 2402var comp = CompileAndVerify(source, expectedOutput: expected, parseOptions: TestOptions.Regular.WithRefsFeature()); 3216sourceSymbolValidator: validator, parseOptions: TestOptions.Regular7_1); 3255sourceSymbolValidator: validator, parseOptions: TestOptions.Regular7_1); 3343parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 3557var comp = CompileAndVerify(source, expectedOutput: expected, parseOptions: TestOptions.Regular, 4064sourceSymbolValidator: validator, parseOptions: TestOptions.Regular7_1); 5046var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5119var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5137var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5151var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5197var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5212var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5321var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5357var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5371var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp6), options: TestOptions.DebugExe, references: s_valueTupleRefs); 5391var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5424var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5459var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5494var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5525var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5557var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5582var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5630var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5671var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5716var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5758var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5797var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5847var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5901var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5945var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5972var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5992var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6172var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6199var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6231var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6277var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6298var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6330var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6360var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6387var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6474var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6503var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6555var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6586var comp = CreateCompilation(source, parseOptions: TestOptions.Regular6); 6627var comp = CreateCompilation(source, parseOptions: TestOptions.Regular6); 6680var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll); 6702var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6727var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6746var compCSharp9 = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6762var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 6790var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6816var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6836var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6877var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 6896var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe); 6911var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 6946var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 6968var comp = CreateCompilation(source, options: TestOptions.DebugExe); 7034var comp = CreateCompilation(source, options: TestOptions.DebugExe); 7058var comp = CreateCompilation(source, options: TestOptions.DebugExe); 7089var comp = CreateCompilation(source, options: TestOptions.DebugExe); 7114var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7147var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7198var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7260var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7460var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7661var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7703var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7834var comp1 = CreateEmptyCompilation(source1, WinRtRefs, TestOptions.ReleaseWinMD, TestOptions.Regular); 7881var comp1 = CreateEmptyCompilation(source1, WinRtRefs, TestOptions.ReleaseWinMD, TestOptions.Regular); 8207var comp = CreateCompilationWithMscorlib461(source, references: s_valueTupleRefs, options: TestOptions.DebugExe); 8228var comp = CreateCompilationWithMscorlib461(source, references: s_valueTupleRefs, options: TestOptions.DebugDll); 8259var comp = CreateCompilationWithMscorlib461(source, references: s_valueTupleRefs, options: TestOptions.DebugDll); 8294var comp = CreateCompilationWithMscorlib461(source, references: s_valueTupleRefs, options: TestOptions.DebugDll); 8324var comp = CreateCompilationWithMscorlib461(source, references: s_valueTupleRefs, options: TestOptions.DebugDll); 8353var comp = CreateCompilationWithMscorlib461(source, references: s_valueTupleRefs, options: TestOptions.DebugDll); 8409var comp = CreateCompilationWithMscorlib461(source, references: s_valueTupleRefs, options: TestOptions.DebugDll); 8432var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll); // no ValueTuple reference 8444var missing = CreateCompilationWithMscorlib461(missing_cs, options: TestOptions.DebugDll, assemblyName: "missing"); 8447var lib = CreateCompilationWithMscorlib461(lib_cs, references: new[] { missing.EmitToImageReference() }, options: TestOptions.DebugDll); 8461var comp = CreateCompilationWithMscorlib461(source, references: new[] { lib.EmitToImageReference() }, options: TestOptions.DebugDll); // no ValueTuple reference 8473var missing = CreateCompilationWithMscorlib461(missing_cs, options: TestOptions.DebugDll, assemblyName: "missing"); 8476var lib = CreateCompilationWithMscorlib461(lib_cs, references: new[] { missing.ToMetadataReference() }, options: TestOptions.DebugDll); 8490var comp = CreateCompilationWithMscorlib461(source, references: new[] { lib.ToMetadataReference() }, options: TestOptions.DebugDll); // no ValueTuple reference 8708var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 8730var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 8755var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7, options: TestOptions.DebugExe); 8777parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 8782parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 8802parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 8807parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 8828parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 8833parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 8863parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 8868parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 8889parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 8894parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 8932parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 8939parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 8987parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 8993parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 9038var comp = CreateCompilation(source, options: TestOptions.DebugExe); 9063var comp = CreateCompilation(source, options: TestOptions.DebugExe); 9096var comp = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: "102030405060"); 9154var comp = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: "102030405060"); 9212var comp = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: "102030405060"); 9298var comp = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expected); 9389var comp = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 9491var comp = CreateCompilation(source, options: TestOptions.DebugExe); 9525var comp = CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: @"1 hello 9653var comp = CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: @"1 hello True 9751CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 9785CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 9817var comp = CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: @"1 hello 9902var comp = CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: @"1 hello 10004CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 10067var comp = CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: @"1 hello True 10114CreateCompilation(source, parseOptions: TestOptions.RegularPreview) 10163CreateCompilation(source, parseOptions: TestOptions.RegularPreview)
CodeGen\CodeGenDisplayClassOptimisationTests.cs (53)
45var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"3", options: TestOptions.ReleaseExe); 129var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"3", options: TestOptions.DebugExe); 260var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"three 435var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 587var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 733var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"three 952var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"one 1132var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"one 1367var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 1733var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "one"); 1842var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "one"); 1994var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "one"); 2159var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"Program+Disposable 2313var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"Program+Disposable 2516var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"Program+Disposable 2849var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"one 3052var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"two 3255var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"one"); 3451var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"one"); 3588var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"one"); 3732var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"three 3943var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 4033var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @""); 4121var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 4225var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 4328var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 4424var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 4524var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 4617var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 4735var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 4852var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 4971var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 5091var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 5221var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 5338var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 5467var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 5567var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 5664var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1"); 5798var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"4"); 5941var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"2"); 6094var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"3"); 6229var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"3"); 6361var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1 6553var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"1 6751var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"3 6919var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"3 7087var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: @"3 7265var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 7401var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 7603var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 8043var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
CodeGen\CodeGenDynamicTests.cs (22)
41var unoptimizedCompilation = CreateCompilationWithMscorlib461(source, references, parseOptions: parseOptions, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All).WithAllowUnsafe(allowUnsafe)); 42var optimizedCompilation = CreateCompilationWithMscorlib461(source, references, parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All).WithAllowUnsafe(allowUnsafe)); 62private readonly CSharpParseOptions _localFunctionParseOptions = TestOptions.Regular; 584var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: peModule => 640var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: peModule => 675var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: peModule => 801var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: peModule => 821var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: peModule => 7493new[] { Parse(sourceScript, options: TestOptions.Script) }, 7591new[] { Parse(sourceScript, options: TestOptions.Script) }, 7593TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 14056CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15339var comp = CreateCompilationWithCSharp(source, options: TestOptions.ReleaseExe); 15343comp = CreateCompilationWithCSharp(source, options: TestOptions.DebugExe); 15384var comp = CreateCompilationWithCSharp(source, options: TestOptions.ReleaseExe); 15388comp = CreateCompilationWithCSharp(source, options: TestOptions.DebugExe); 15857var comp = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "321 123", references: new[] { CSharpRef }); 15879CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "True", references: new[] { CSharpRef }), 15982CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "True", references: new[] { CSharpRef }), 16108CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "True", references: new[] { CSharpRef }), 16219CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "True", references: new[] { CSharpRef }), 16336CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "True", references: new[] { CSharpRef }),
CodeGen\CodeGenExplicitImplementationTests.cs (6)
129options: TestOptions.ReleaseExe, 215options: TestOptions.ReleaseDll); 225options: TestOptions.ReleaseExe); 258options: TestOptions.ReleaseExe); 374options: TestOptions.ReleaseDll); 380options: TestOptions.ReleaseExe);
CodeGen\CodeGenExprLambdaTests.cs (14)
1537var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll); 2110parseOptions: TestOptions.Regular9, 2452var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll); 2481CompileAndVerifyUtil(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: TrimExpectedOutput(expectedOutput), verify: Verification.Fails); 2540options: TestOptions.ReleaseExe); 3219options: TestOptions.UnsafeReleaseDll, 3590TestOptions.ReleaseExe); 3600TestOptions.ReleaseExe); 3789CreateCompilation(source, parseOptions: TestOptions.Regular).VerifyDiagnostics( 3839CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics( 5215parseOptions: TestOptions.ExperimentalParseOptions); 5378var compilation = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 5440var compilation = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 5513var compilation = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
CodeGen\CodeGenFieldInitTests.cs (9)
435var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 462var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 483var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 511var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 565var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 569options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 592var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 654trees.Add(SyntaxFactory.ParseSyntaxTree("System.Console.WriteLine(" + i + ");", options: TestOptions.Script)); 658var compilation = CreateCompilationWithMscorlib461(trees, options: TestOptions.ReleaseExe);
CodeGen\CodeGenForEachTests.cs (87)
107var compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @" 1394var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 1749var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 2412CreateCompilation(source, parseOptions: TestOptions.Regular9) 2436CreateCompilation(source, parseOptions: TestOptions.Regular9) 2462CreateCompilation(source, parseOptions: TestOptions.Regular9) 2485CreateCompilation(source, parseOptions: TestOptions.Regular9) 2511CompileAndVerify(source, parseOptions: TestOptions.Regular9) 2573CompileAndVerify(source, parseOptions: TestOptions.Regular9) 2631CreateCompilation(source, parseOptions: TestOptions.Regular9) 2663CreateCompilation(source, parseOptions: TestOptions.Regular9) 2695CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 2722CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 2749CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 2776CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 2805CreateCompilation(source, parseOptions: TestOptions.Regular9) 2840CreateCompilation(source, parseOptions: TestOptions.Regular9) 2875CreateCompilation(source, parseOptions: TestOptions.Regular9) 2910CreateCompilation(source, parseOptions: TestOptions.Regular9) 2947CreateCompilation(source, parseOptions: TestOptions.Regular9) 2987CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 3019CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 3047CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "System.Char"); 3074CreateCompilation(source, parseOptions: TestOptions.Regular9) 3106CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 3134CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 3161CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 3189CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 3216CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 3243CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 3270CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 3298var comp = CreateCompilationWithSpan(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 3329var comp = CreateCompilationWithIndexAndRange(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 3359CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 3387CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: @"1.1 3412CreateCompilation(source, parseOptions: TestOptions.Regular9) 3443CreateCompilation(source, parseOptions: TestOptions.Regular9) 3478CreateCompilation(source, parseOptions: TestOptions.Regular9) 3514CreateCompilation(source, parseOptions: TestOptions.Regular9) 3557CompileAndVerify(source, parseOptions: TestOptions.Regular9, 3591CreateCompilation(source, parseOptions: TestOptions.Regular9) 3645CompileAndVerify(source, parseOptions: TestOptions.Regular9, 3684var comp = CreateCompilationWithCSharp(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9) 3717CreateCompilation(source, parseOptions: TestOptions.Regular9) 3756CreateCompilation(source, parseOptions: TestOptions.Regular9) 3795CreateCompilation(source, parseOptions: TestOptions.Regular9) 3834CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 3865CreateCompilation(source, parseOptions: TestOptions.Regular9) 3908CreateCompilation(source, parseOptions: TestOptions.Regular9) 3949CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 3982CreateCompilation(source, parseOptions: TestOptions.Regular9) 4021CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 4052CreateCompilation(source, parseOptions: TestOptions.Regular9) 4088CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "23"); 4116CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 4143CreateCompilation(source, parseOptions: TestOptions.Regular9) 4177CreateCompilation(source, parseOptions: TestOptions.Regular9) 4209CreateCompilation(source, parseOptions: TestOptions.Regular9) 4241CreateCompilation(source, parseOptions: TestOptions.Regular9) 4278CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 4306CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 4446var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular8); 4478CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 4505CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 4531CreateCompilation(source, parseOptions: TestOptions.Regular9) 4573CreateCompilation(source, parseOptions: TestOptions.Regular9) 4611CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 4641CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 4671CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 4702CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: @"123Disposed") 4761CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: @"123Disposed") 4820CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: @"123") 4869CompileAndVerify(source, parseOptions: TestOptions.Regular9, verify: Verification.FailsILVerify, expectedOutput: @"123Disposed") 4927CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123") 4968CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 4998CreateCompilation(source, parseOptions: TestOptions.Regular9) 5046CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 5092CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 5136CreateCompilation(source, parseOptions: TestOptions.Regular9) 5189CreateCompilation(source, parseOptions: TestOptions.Regular9) 5229CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 5262CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123"); 5290CreateCompilation(source, parseOptions: TestOptions.Regular9) 5328CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "123123");
CodeGen\CodeGenFunctionPointersTests.cs (90)
39parseOptions: TestOptions.RegularPreview, 40options: options ?? (expectedOutput is null ? TestOptions.UnsafeReleaseDll : TestOptions.UnsafeReleaseExe), 48return CreateCompilation(source, references: references, options: options ?? TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularPreview, targetFramework: targetFramework ?? TargetFramework.Net50); 56return CreateCompilation(source, references: references, options: options ?? TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.Empty); 61var comp = CreateCompilationWithIL(source, ilStub, parseOptions: TestOptions.RegularPreview, options: expectedOutput is null ? TestOptions.UnsafeReleaseDll : TestOptions.UnsafeReleaseExe); 70return CreateCompilationWithIL(source, ilStub, references: references, options: options ?? TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.Empty); 683var 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); 5395var comp = CreateCompilationWithFunctionPointers(source, options: WithNullableEnable(TestOptions.UnsafeReleaseDll)); 6271var allSourceComp = CreateCompilationWithFunctionPointers(new[] { executableCode, source1, source2 }, options: TestOptions.UnsafeReleaseExe); 6282var derivedComp = CreateCompilationWithFunctionPointers(new[] { executableCode, source2 }, references: new[] { metadataRef }, options: TestOptions.UnsafeReleaseExe); 7467var verifier = CompileAndVerifyFunctionPointers(source, expectedOutput: "", options: TestOptions.UnsafeReleaseExe); 7477verifier = CompileAndVerifyFunctionPointers(source, expectedOutput: "", options: TestOptions.UnsafeDebugExe); 7563var allInCoreLib = CreateEmptyCompilation(source1 + source2, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 7580var coreLib = CreateEmptyCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 7583var comp1 = CreateEmptyCompilation(source2, references: new[] { coreLib.EmitToImageReference() }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 7632var allInCoreLib = CreateEmptyCompilation(source1 + source2, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 7649var coreLib = CreateEmptyCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 7652var 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); 10987var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular10, options: TestOptions.UnsafeReleaseExe); 10994comp = CreateCompilationWithSpan(source, options: TestOptions.UnsafeReleaseExe); 11021var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular10, options: TestOptions.UnsafeReleaseExe); 11037comp = CreateCompilationWithSpan(source, options: TestOptions.UnsafeReleaseExe); 11054}", options: TestOptions.UnsafeReleaseExe); 11302", options: TestOptions.UnsafeReleaseExe); 11410}", options: TestOptions.UnsafeReleaseExe); 11540CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 11592CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 11617CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 11641CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 11673var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.UnsafeDebugExe, symbolValidator: static module => 11704CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 11736var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.UnsafeDebugExe, symbolValidator: static module => 11768CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 11799var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.UnsafeDebugExe, symbolValidator: static module => 11830CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 11858var verifier = CompileAndVerify(source, options: TestOptions.UnsafeDebugExe, expectedOutput: "True", symbolValidator: static module => 11890var verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, 11916CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11942CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 11967CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 11994CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 12017CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 12044CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 12101CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 12133var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.UnsafeDebugExe, symbolValidator: static module => 12166CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 12192CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 12217CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 12244CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics( 12276var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.UnsafeDebugExe, symbolValidator: static module => 12315var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "True" : null, options: TestOptions.UnsafeDebugExe, symbolValidator: static module => 12359var verifier = CompileAndVerify(source, expectedOutput: expectedOutput, options: TestOptions.UnsafeDebugExe, symbolValidator: module => 12400CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyEmitDiagnostics(
CodeGen\CodeGenImplicitImplementationTests.cs (2)
2293var libComp = CreateCompilation(libSource, options: TestOptions.ReleaseDll, assemblyName: "OtherAssembly"); 2296var exeComp = CreateCompilation(exeSource, options: TestOptions.ReleaseExe, references: new[] { new CSharpCompilationReference(libComp) });
CodeGen\CodeGenInParametersTests.cs (47)
752var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails); 800var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: @"42 854var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: @"42 917var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: "42"); 938comp = CompileAndVerify(text, verify: Verification.Fails, expectedOutput: "42", parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature()); 977var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: "42"); 998comp = CompileAndVerify(text, verify: Verification.Fails, expectedOutput: "42", parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature()); 1038var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: "42"); 1089var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: @"hi 1126var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails); 1267var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.UnsafeReleaseDll); 1333var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails); 1376var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails); 1446var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"42"); 1479var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"42"); 1528var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe); 1570var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe); 1751var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.UnsafeReleaseExe); 1837comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature()); 1876var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe); 1936var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe); 2004var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe); 2066var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe); 2123var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe); 2183var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe); 2262var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe); 2277comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature()); 2343var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe); 2430comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature()); 2574var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"0"); 2632var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @""); 2724var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"4242420"); 3735var compilation = CreateCompilationWithMscorlib40AndSystemCore(code, options: TestOptions.ReleaseExe); 3773var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 3824var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 3882var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 3946var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 4008var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 4087var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 4143var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 4201var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 4264var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 4337var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 4394var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe);
CodeGen\CodeGenInterfaceImplementation.cs (3)
371options: TestOptions.ReleaseExe, 2639var comp = CreateCompilationWithILAndMscorlib40(source, il, options: TestOptions.DebugDll); 2734var comp = CreateCompilationWithILAndMscorlib40(source, il, options: TestOptions.DebugDll);
CodeGen\CodeGenInterpolatedString.cs (1)
32var comp = CreateCompilation(source, options: TestOptions.ReleaseExe);
CodeGen\CodeGenIterators.cs (11)
1176var rel = CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1193var dbg = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1232CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1249CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1281CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1293CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 2389var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 2435var compilation = CreateEmptyCompilation(new[] { Parse(source, options: TestOptions.Regular.WithNoRefSafetyRulesAttribute()) }); 2499var compilation = CreateEmptyCompilation(new[] { Parse(source, options: TestOptions.Regular.WithNoRefSafetyRulesAttribute()) }); 2569var v = CompileAndVerify(source, options: TestOptions.ReleaseDll); 2918var compilation = CompileAndVerify(source, expectedOutput: "FalseTrueFalseTrue", options: TestOptions.ReleaseExe);
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); 2085var comp = CreateCompilationWithMscorlib461AndCSharp(source, options: TestOptions.ReleaseExe); 2439VerifyOutput(source, "2", TestOptions.ReleaseExe.WithWarningLevel(0)); 4609VerifyOutput(source, output, TestOptions.ReleaseExe.WithAllowUnsafe(true).WithWarningLevel(0), verify: Verification.Passes); 4635VerifyOutput(source, "2", TestOptions.ReleaseExe.WithAllowUnsafe(true), verify: Verification.Fails); 4661VerifyOutput(source, "2", TestOptions.ReleaseExe.WithAllowUnsafe(true), verify: Verification.Fails); 4688VerifyOutput(source, "2", TestOptions.ReleaseExe.WithAllowUnsafe(true), verify: Verification.Fails); 4728VerifyOutput(src, $"10{Environment.NewLine}4", TestOptions.ReleaseExe.WithAllowUnsafe(true), verify: Verification.Fails); 5228options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 5229parseOptions: TestOptions.Regular9, 5277options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 5278parseOptions: TestOptions.Regular9, 5318options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 5319parseOptions: TestOptions.Regular9, 5351options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 5352parseOptions: TestOptions.Regular9, 5385options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 5386parseOptions: TestOptions.Regular9, 5418options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 5419parseOptions: TestOptions.Regular9, 5452var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5487var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5523options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 5524parseOptions: TestOptions.Regular9.WithPreprocessorSymbols("DEBUG"), 5530options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 5531parseOptions: TestOptions.Regular9, 5565CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics(); 5567CreateCompilation(source, parseOptions: TestOptions.Regular9.WithPreprocessorSymbols("DEBUG")).VerifyDiagnostics(); 5590CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 5595CreateCompilation(source, parseOptions: TestOptions.Regular9.WithPreprocessorSymbols("DEBUG")).VerifyDiagnostics(); 5621options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 5622parseOptions: TestOptions.Regular9.WithPreprocessorSymbols("DEBUG"), 5627options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 5628parseOptions: TestOptions.Regular9, 5673options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 5674parseOptions: TestOptions.Regular9); 5739options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 5740parseOptions: TestOptions.Regular9, 5814options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 5815parseOptions: TestOptions.Regular9, 5889options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 5890parseOptions: TestOptions.Regular9, 5957options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 5958parseOptions: TestOptions.Regular9, 5997options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 6053options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 6110options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 6309var comp = CreateCompilationWithMscorlib461AndCSharp(source, options: TestOptions.ReleaseExe);
CodeGen\CodeGenLockTests.cs (7)
547CompileAndVerify(text, parseOptions: TestOptions.Regular10).VerifyIL("Test.Main", @" 1902var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 1923var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 1944var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 1973var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2001var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2037var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe);
CodeGen\CodeGenMscorlib.cs (22)
153var c = CreateEmptyCompilation(text, options: TestOptions.UnsafeReleaseDll); 206options: TestOptions.ReleaseDll) 223var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 247var compilation1 = CreateEmptyCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyName: GetUniqueName()); 257var compilation2 = CreateEmptyCompilation(source2, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), references: new[] { reference1 }); 281var compilation1 = CreateEmptyCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyName: GetUniqueName()); 298var compilation2 = CreateEmptyCompilation(source2, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), references: new[] { reference1 }); 318var compilation1 = CreateEmptyCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyName: GetUniqueName()); 335var compilation2 = CreateEmptyCompilation(source2, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), references: new[] { reference1 }); 356var compilation1 = CreateEmptyCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyName: GetUniqueName()); 374var compilation2 = CreateEmptyCompilation(source2, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), references: new[] { reference1 }); 477var compilation1 = CreateEmptyCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyName: GetUniqueName()); 490var compilation2 = CreateEmptyCompilation(source2, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), references: new[] { reference1 }); 549options: TestOptions.ReleaseDll) 614parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), 615options: TestOptions.ReleaseDll) 752parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), 753options: TestOptions.ReleaseDll) 880var comp = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1037var comp = CreateEmptyCompilation(text, options: TestOptions.UnsafeReleaseDll); 1163var comp = CreateEmptyCompilation(text, options: TestOptions.UnsafeReleaseDll);
CodeGen\CodeGenNullCoalescingAssignmentTests.cs (4)
126CompileAndVerify(source, options: TestOptions.DebugDll).VerifyIL("C.TestObject()", expectedIL: @" 706", parseOptions: TestOptions.Regular10, expectedOutput: @" 2751}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 29181", options: TestOptions.DebugExe);
CodeGen\CodeGenOperators.cs (32)
37var compilation = CompileAndVerify(source, expectedOutput: "False", options: TestOptions.ReleaseExe); 48compilation = CompileAndVerify(source, expectedOutput: "False", options: TestOptions.DebugExe); 88var compilation = CompileAndVerify(source, expectedOutput: "False", options: TestOptions.ReleaseExe); 105compilation = CompileAndVerify(source, expectedOutput: "False", options: TestOptions.DebugExe); 156var compilation = CompileAndVerify(source, expectedOutput: "False", options: TestOptions.ReleaseExe); 173compilation = CompileAndVerify(source, expectedOutput: "False", options: TestOptions.DebugExe); 227var compilation = CompileAndVerify(source, expectedOutput: "False Branch not taken-True Branch taken", options: TestOptions.ReleaseExe); 247compilation = CompileAndVerify(source, expectedOutput: "False Branch not taken-True Branch taken", options: TestOptions.DebugExe); 299var compilation = CompileAndVerify(source, expectedOutput: "True Branch taken", options: TestOptions.ReleaseExe); 310compilation = CompileAndVerify(source, expectedOutput: "True Branch taken", options: TestOptions.DebugExe); 352var compilation = CompileAndVerify(source, expectedOutput: "True Branch taken", options: TestOptions.ReleaseExe); 363compilation = CompileAndVerify(source, expectedOutput: "True Branch taken", options: TestOptions.DebugExe); 1865options: TestOptions.DebugExe, expectedOutput: "C"); 2290CompileAndVerify(source, expectedOutput: "0", options: TestOptions.ReleaseExe.WithWarningLevel(5)).VerifyDiagnostics( 3480var comp = CompileAndVerify(text, options: TestOptions.DebugExe, expectedOutput: @"True 5301var result = CompileAndVerify(source, options: TestOptions.ReleaseExe); 5356var result = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: "True"); 5404var result = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: "11461640193"); 5440var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5499var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5556var result = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: @"5180801 5607var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5692var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5730var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5761var result = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 6198var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 6301var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 6325var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 6563var comp = CreateCompilation(code, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.Net60); 6613var comp = CreateCompilation(code, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.Net60); 6971var comp = CreateCompilation(code, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.Net60); 7027var comp = CreateCompilation(code, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.Net60);
CodeGen\CodeGenOptimizedNullableOperators.cs (107)
783var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 831verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput); 922var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 936verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput); 985var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 1018verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput); 1406CompileAndVerify(source, expectedOutput: expectedOutput, options: TestOptions.ReleaseExe.WithWarningLevel(4)).VerifyDiagnostics( 2753var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 2756verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 2799var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 2802verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 2842var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 2845verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 2879var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 2882verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 2927var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 2930verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 2972var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 2975verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 3009var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3012verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 3046var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3049verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 3083var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3086verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 3121var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3124verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 3159var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3162verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 3199var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3202verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 3246var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3249verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 3290var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3293verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 3337var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3340verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 3386var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3389verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 3434var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3437verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 3482var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3485verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 3532var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3535verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 3582var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3585verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 3638var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3641verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 3691var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3694verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 3747var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3750verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 3800var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3803verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 3857var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3860verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 3911var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3914verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 3961var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 3964verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 4016var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4019verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 4076var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4079verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 4129var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4132verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 4190var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4193verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 4251var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4254verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 4298var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4301verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 4336var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4339verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 4396var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4399verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 4449var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4452verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 4509var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4512verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 4562var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4565verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 4610var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4613verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 4649var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4652verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 4697var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4700verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 4736var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4739verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 4784var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4787verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 4823var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4826verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 4871var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4874verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 4910var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4913verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 4970var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 4973verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 5023var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 5026verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 5072var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 5075verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output); 5112var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: output); 5115verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: output);
CodeGen\CodeGenOverridingAndHiding.cs (26)
1194var compilation = CreateCompilation(substitutedSource, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.NetLatest); 2536options: TestOptions.ReleaseDll, 2542options: TestOptions.ReleaseExe, 2830options: TestOptions.ReleaseDll); 2834options: TestOptions.ReleaseExe); 2923options: TestOptions.ReleaseDll); 2927options: TestOptions.ReleaseExe); 2990options: TestOptions.ReleaseExe, 3161parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseDll); 3168parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseDll); 3173options: TestOptions.ReleaseExe); 3222options: TestOptions.ReleaseExe, 3384options: TestOptions.ReleaseExe, 3488options: TestOptions.ReleaseExe, 4203compilationOptions: TestOptions.ReleaseDll, 4245compilationOptions: TestOptions.ReleaseExe, 4272compilationOptions: TestOptions.ReleaseDll, 4317compilationOptions: TestOptions.ReleaseExe, 4359compilationOptions: TestOptions.ReleaseDll); 4363compilationOptions: TestOptions.ReleaseDll, 4368compilationOptions: TestOptions.ReleaseDll, 4373compilationOptions: TestOptions.ReleaseDll, 4420compilationOptions: TestOptions.ReleaseDll, 4455compilationOptions: 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)); 762var compilationOptions = TestOptions.ReleaseExe; 803var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseExe); 945var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseDll); 1026var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.UnsafeReleaseDll); 1050var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.UnsafeReleaseDll); 1093var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.UnsafeReleaseDll); 1172var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.UnsafeReleaseDll); 1314var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseDll); 1367var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseExe); 1478var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseDll); 1515var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseDll); 1548var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseExe); 1616var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseExe); 2044", TestOptions.ReleaseExe); 2406var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseDll); 2566var compilation = CreateCompilation(csharp, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseDll); 2614var compilation = CreateCompilation(csharp, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseDll); 2665var compilation = CreateCompilation(csharp, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseDll); 3474""", TestOptions.ReleaseExe); 3527var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseDll);
CodeGen\CodeGenReadonlyStructTests.cs (25)
51var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: @"12"); 67comp = CompileAndVerify(text, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), verify: Verification.Passes, expectedOutput: @"12"); 122var comp = CompileAndVerify(text, new[] { ref1 }, parseOptions: TestOptions.Regular, verify: Verification.Fails, expectedOutput: @"12"); 138comp = CompileAndVerify(text, new[] { ref1 }, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), verify: Verification.Passes, expectedOutput: @"12"); 188var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.FailsPEVerify, expectedOutput: @"12"); 206comp = CompileAndVerify(text, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), verify: Verification.Passes, expectedOutput: @"12"); 262var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.FailsPEVerify, expectedOutput: @"hello2"); 281comp = CompileAndVerify(text, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), verify: Verification.Passes, expectedOutput: @"hello2"); 343var comp = CompileAndVerify(text, new[] { ref1 }, parseOptions: TestOptions.Regular, verify: Verification.FailsPEVerify, expectedOutput: @"hello2"); 362comp = CompileAndVerify(text, new[] { ref1 }, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), verify: Verification.Passes, expectedOutput: @"hello2"); 416var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"12"); 462var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"12"); 513var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"Program+S1Program+S1"); 570var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.Passes, expectedOutput: @"4242"); 824var comp = CreateCompilation(text, parseOptions: TestOptions.Regular); 998var comp = CreateCompilation("//NO CODE HERE", new[] { ref1 }, parseOptions: TestOptions.Regular); 1090}", TestOptions.UnsafeReleaseExe); 1107}", TestOptions.ReleaseExe); 1149}", TestOptions.ReleaseExe); 1198}", TestOptions.ReleaseExe); 1241}", TestOptions.ReleaseExe); 1296}", TestOptions.UnsafeReleaseExe); 1318}", TestOptions.UnsafeReleaseExe); 2554CompileAndVerify(csharp, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: "42"); 2560{ false, TestOptions.Regular7_3, Verification.Passes },
CodeGen\CodeGenRefConditionalOperatorTests.cs (33)
529var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 574var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 601var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 632var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 666var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); 696var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 727var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 763var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 800var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 947var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 972var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 1198var comp = CreateCompilationWithMscorlib461(source, references: new[] { SystemRuntimeFacadeRef, ValueTupleRef }, options: TestOptions.ReleaseExe); 1221verify(TestOptions.UnsafeReleaseExe, Verification.Passes, @" 1240verify(TestOptions.UnsafeDebugExe, Verification.Fails, @" 1296verify(TestOptions.UnsafeReleaseExe, @" 1319verify(TestOptions.UnsafeDebugExe, @" 1404var comp = CompileAndVerify(source, expectedOutput: "0123-1230", options: TestOptions.ReleaseExe); 1405CompileAndVerify(source, expectedOutput: "0123-1230", options: TestOptions.DebugExe); 1539var comp = CompileAndVerify(source, expectedOutput: "0123-1230", options: TestOptions.ReleaseExe); 1540CompileAndVerify(source, expectedOutput: "0123-1230", options: TestOptions.DebugExe); 1684var comp = CompileAndVerify(source, expectedOutput: "0123-1230", options: TestOptions.ReleaseExe); 1685CompileAndVerify(source, expectedOutput: "0123-1230", options: TestOptions.DebugExe); 1837var comp = CompileAndVerify(source, expectedOutput: "0123-1230", options: TestOptions.ReleaseExe); 1838CompileAndVerify(source, expectedOutput: "0123-1230", options: TestOptions.DebugExe); 2060var comp = CompileAndVerify(source, expectedOutput: "124-123", options: TestOptions.ReleaseExe); 2061CompileAndVerify(source, expectedOutput: "124-123", options: TestOptions.DebugExe); 2383CompileAndVerify(source, targetFramework: TargetFramework.NetCoreApp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null, options: TestOptions.ReleaseExe, verify: Verification.FailsPEVerify); 2384CompileAndVerify(source, targetFramework: TargetFramework.NetCoreApp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null, options: TestOptions.DebugExe, verify: Verification.FailsPEVerify); 2422CompileAndVerify(source, targetFramework: TargetFramework.NetCoreApp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null, options: TestOptions.ReleaseExe, verify: Verification.FailsPEVerify); 2423CompileAndVerify(source, targetFramework: TargetFramework.NetCoreApp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null, options: TestOptions.DebugExe, verify: Verification.FailsPEVerify); 2473CompileAndVerify(source, targetFramework: TargetFramework.NetCoreApp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null, options: TestOptions.ReleaseExe, verify: Verification.FailsPEVerify); 2474CompileAndVerify(source, targetFramework: TargetFramework.NetCoreApp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null, options: TestOptions.DebugExe, verify: Verification.FailsPEVerify);
CodeGen\CodeGenRefLocalTests.cs (75)
66parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), 91}", options: TestOptions.UnsafeReleaseExe, 530}", options: TestOptions.ReleaseExe); 1659CompileAndVerify(text, options: TestOptions.DebugDll).VerifyIL("Program.M()", @" 1673CompileAndVerify(text, options: TestOptions.ReleaseDll).VerifyIL("Program.M()", @" 1699CompileAndVerify(text, options: TestOptions.DebugDll).VerifyIL("Program.M", @" 1712CompileAndVerify(text, options: TestOptions.ReleaseDll).VerifyIL("Program.M", @" 1737CompileAndVerify(text, options: TestOptions.DebugDll).VerifyIL("Program.M", @" 1750CompileAndVerify(text, options: TestOptions.ReleaseDll).VerifyIL("Program.M", @" 1775CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails).VerifyIL("Program.M", @" 1789CompileAndVerify(text, options: TestOptions.ReleaseDll).VerifyIL("Program.M", @" 1815CompileAndVerify(text, options: TestOptions.DebugDll).VerifyIL("Program.M<T>", @" 1828CompileAndVerify(text, options: TestOptions.ReleaseDll).VerifyIL("Program.M<T>", @" 1853CompileAndVerify(text, options: TestOptions.DebugDll).VerifyIL("Program.M<T>", @" 1866CompileAndVerify(text, options: TestOptions.ReleaseDll).VerifyIL("Program.M<T>", @" 1893CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails).VerifyIL("Program.M<T>", @" 1907CompileAndVerify(text, options: TestOptions.ReleaseDll).VerifyIL("Program.M<T>", @" 1933CompileAndVerify(text, options: TestOptions.DebugDll).VerifyIL("Program.M<T>", @" 1946CompileAndVerify(text, options: TestOptions.ReleaseDll).VerifyIL("Program.M<T>", @" 1972CompileAndVerify(text, options: TestOptions.DebugDll).VerifyIL("Program.M", @" 1984CompileAndVerify(text, options: TestOptions.ReleaseDll).VerifyIL("Program.M", @" 2009CompileAndVerify(text, options: TestOptions.DebugDll).VerifyIL("Program.M", @" 2021CompileAndVerify(text, options: TestOptions.ReleaseDll).VerifyIL("Program.M", @" 2047CompileAndVerify(text, options: TestOptions.DebugDll).VerifyIL("Program.M<T>", @" 2060CompileAndVerify(text, options: TestOptions.ReleaseDll).VerifyIL("Program.M<T>", @" 2086CompileAndVerify(text, options: TestOptions.DebugDll).VerifyIL("Program.M(ref int)", @" 2112CompileAndVerify(text, options: TestOptions.DebugDll).VerifyIL("Program.M(out int)", @" 2141CompileAndVerify(text, options: TestOptions.DebugDll).VerifyIL("Program.M(ref int)", @" 2172CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails).VerifyIL("Program.M()", @" 2205var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails); 2276var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails); 2366var comp = CompileAndVerify(text, options: TestOptions.DebugDll); 2428var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails); 2495var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails); 2577var comp = CompileAndVerify(text, options: TestOptions.DebugDll); 2638CompileAndVerify(text, options: TestOptions.DebugDll).VerifyIL("Program.M()", @" 2672var comp = CompileAndVerify(text, options: TestOptions.DebugDll); 2713CompileAndVerify(text, options: TestOptions.DebugDll).VerifyIL("Program.M()", @" 2748var comp = CompileAndVerify(text, options: TestOptions.DebugDll); 2799var comp = CompileAndVerify(text, options: TestOptions.DebugDll); 2843CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails).VerifyIL("Program.M()", @" 2880var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails); 2951var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails); 3048var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails); 3118CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails).VerifyIL("Program.M(ref int, ref int, object)", @" 3158var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails); 3235var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails); 3341var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails); 3421CompileAndVerify(text, options: TestOptions.DebugDll).VerifyIL("Program.M(D)", @" 3450CompileAndVerify(text, options: TestOptions.DebugDll, verify: Verification.Fails).VerifyIL("Program.M(D, ref int, ref int, object)", @" 3879CompileAndVerify(text, options: TestOptions.UnsafeDebugDll, verify: Verification.Fails).VerifyIL("Program.Main()", @" 3952CompileAndVerify(text, options: TestOptions.UnsafeDebugDll, verify: Verification.Passes).VerifyIL("Program.Main()", @" 4003var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 4207verify(TestOptions.UnsafeReleaseExe, Verification.Passes, @" 4222verify(TestOptions.UnsafeDebugExe, Verification.Fails, @" 4276verify(TestOptions.UnsafeReleaseExe, @" 4289verify(TestOptions.UnsafeDebugExe, @" 4332verify(TestOptions.UnsafeReleaseExe, Verification.Passes, @" 4348verify(TestOptions.UnsafeDebugExe, Verification.Fails, @" 4395verify(TestOptions.UnsafeReleaseExe, Verification.Passes, @" 4408verify(TestOptions.UnsafeDebugExe, Verification.Fails, @" 4447verify(TestOptions.UnsafeReleaseExe, Verification.Passes, @" 4462verify(TestOptions.UnsafeDebugExe, Verification.Fails, @" 4508var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: ""); 4525verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: ""); 4561var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: ""); 4577verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: ""); 4613var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: ""); 4629verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: ""); 4664var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: ""); 4680verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: ""); 4713var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: ""); 4722verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: ""); 4749var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: ""); 4758verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: "");
CodeGen\CodeGenRefOutTests.cs (13)
350var compilation = CreateCompilationWithMscorlib40AndSystemCore(code, options: TestOptions.ReleaseExe); 412var compilation = CreateCompilationWithMscorlib40AndSystemCore(code, options: TestOptions.ReleaseExe); 474var compilation = CreateCompilationWithMscorlib40AndSystemCore(code, options: TestOptions.ReleaseExe); 514verify(TestOptions.UnsafeReleaseExe, @" 525verify(TestOptions.UnsafeDebugExe, @" 573verify(TestOptions.UnsafeReleaseExe, @" 594verify(TestOptions.UnsafeDebugExe, @" 650verify(TestOptions.UnsafeReleaseExe, @" 666verify(TestOptions.UnsafeDebugExe, @" 721verify(TestOptions.UnsafeReleaseExe, @" 744verify(TestOptions.UnsafeDebugExe, @" 797verify(TestOptions.UnsafeReleaseExe, @" 810verify(TestOptions.UnsafeDebugExe, @"
CodeGen\CodeGenRefReadonlyReturnTests.cs (9)
62var comp = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), verify: Verification.Fails); 433}", options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: "NullReferenceException"); 466var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular); 688var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.UnsafeReleaseDll); 805var comp = CompileAndVerifyWithMscorlib40(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, parseOptions: TestOptions.Regular, verify: Verification.Passes); 883var comp = CompileAndVerifyWithMscorlib40(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, parseOptions: TestOptions.Regular, verify: Verification.Fails); 915comp = CompileAndVerify(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), verify: Verification.Fails, targetFramework: TargetFramework.Mscorlib40); 973var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, parseOptions: TestOptions.Regular10); 1201var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular);
CodeGen\CodeGenRefReturnTests.cs (25)
131CompileAndVerify(text, parseOptions: TestOptions.Regular10, verify: Verification.Fails).VerifyIL("Program.M(out int)", @" 1303CompileAndVerifyRef(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("Program.Main()", @" 1492CompileAndVerifyRef(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("Program.Main()", @" 1595CompileAndVerify(text, parseOptions: TestOptions.Regular).VerifyIL("Program.M()", @" 1643CompileAndVerify(text, parseOptions: TestOptions.Regular, expectedOutput: "42", verify: Verification.Fails).VerifyIL("Program.M()", @" 1716CompileAndVerify(text, parseOptions: TestOptions.Regular, expectedOutput: "42", verify: Verification.Fails).VerifyIL("Program.M()", @" 2304var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 2339var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 2381var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 2402var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 2431var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 2480var compilation = CreateCompilation("", options: TestOptions.DebugDll, references: new[] { ref1 }); 2520var comp = CreateCompilation(text, options: TestOptions.ReleaseDll); 2553var comp = CreateCompilation(text, options: TestOptions.ReleaseDll); 2825CreateCompilation(source, parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyDiagnostics( 2877CreateCompilation(source, parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyDiagnostics( 2967var comp = CreateCompilationWithMscorlib461AndCSharp(source, options: TestOptions.ReleaseExe); 3080var comp = CreateCompilationWithMscorlib461AndCSharp(source, options: TestOptions.ReleaseExe); 3358CreateCompilationWithMscorlib461AndCSharp(source, parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyEmitDiagnostics( 3410CreateCompilationWithMscorlib461AndCSharp(source, parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyEmitDiagnostics( 3455CompileAndVerify(source, parseOptions: TestOptions.Regular, expectedOutput: "Base", verify: Verification.Passes); 3498CreateCompilationWithMscorlib461AndCSharp(source, parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyEmitDiagnostics( 3548CompileAndVerify(source, parseOptions: TestOptions.Regular, expectedOutput: "Program+RefFunc1`2[Derived2,Derived1]", verify: Verification.Passes); 3588CompileAndVerify(source, parseOptions: TestOptions.Regular, expectedOutput: @"System.Func`2[Derived1,Base] 3633CompileAndVerify(text, expectedOutput: "37", parseOptions: TestOptions.Regular10, verify: Verification.Fails).VerifyIL("Program.Main()", @"
CodeGen\CodeGenScriptTests.cs (23)
25var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.Script); 30options: TestOptions.ReleaseExe.WithScriptClassName("Script"), 44var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.Script); 49options: TestOptions.ReleaseExe.WithScriptClassName("Script"), 62var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.Script); 67options: TestOptions.ReleaseExe.WithScriptClassName("Script"), 88var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.Script); 93options: TestOptions.ReleaseExe.WithScriptClassName("Script"), 113var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.Script); 117options: TestOptions.ReleaseExe.WithScriptClassName("Script")); 138var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.Script); 142options: TestOptions.ReleaseExe.WithScriptClassName("Script")); 169var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.Script); 173options: TestOptions.ReleaseExe.WithScriptClassName("Script")); 197var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.Script); 201options: TestOptions.ReleaseExe.WithScriptClassName("Script")); 496var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe); 555SyntaxFactory.ParseSyntaxTree(source0, options: TestOptions.Script), 603var compilation = CreateCompilationWithMscorlib40(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe); 636var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.Script); 640options: TestOptions.ReleaseExe.WithScriptClassName("Script"));
CodeGen\CodeGenShortCircuitOperatorTests.cs (38)
2755var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 2824var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 2905var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 2975var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 3058var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 3141var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 3422var comp = CreateCompilationWithMscorlib461(source, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe); 4777var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 5181var verifier = CompileAndVerify(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), verify: Verification.Fails, expectedOutput: @"--- 5232var verifier = CompileAndVerify(source, verify: Verification.FailsILVerify, options: TestOptions.DebugExe.WithAllowUnsafe(true), expectedOutput: @"--- 5289var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"--- 5416var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"--- 5543var verifier = CompileAndVerify(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), verify: Verification.Fails, expectedOutput: @"--- 5616var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 5669var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @" --- 5718var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"--- 5807var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"--- 5863source, references: new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, options: TestOptions.DebugExe); 6191var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 6228var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 6271var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 6307var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 6350var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 6385var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 6992var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: 7052var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: 7119var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: 7179var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: 7234var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: 7278var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: 7324var comp = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"", verify: Verification.Fails); 7349comp = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"", parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), verify: Verification.Passes); 7392var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @""); 7469CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput); 7470CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 7520CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput); 7521CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput);
CodeGen\CodeGenStackAllocInitializerTests.cs (41)
50parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3), 51options: TestOptions.UnsafeReleaseExe, 123parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3), 124options: TestOptions.UnsafeReleaseExe, 214", options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3)); 313parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3), 314options: TestOptions.UnsafeReleaseExe, 369parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3), 370options: TestOptions.UnsafeReleaseExe, 410parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3), 411options: TestOptions.UnsafeReleaseExe, 429parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3), 430options: TestOptions.UnsafeDebugExe, 493parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3), 494options: TestOptions.UnsafeReleaseExe, 528parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3), 529options: TestOptions.UnsafeReleaseExe, 568parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3), 569options: TestOptions.UnsafeReleaseExe, 613options: TestOptions.UnsafeReleaseExe, 670parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3), 671options: TestOptions.UnsafeReleaseExe, 726parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3), 727options: TestOptions.UnsafeReleaseExe, 869", options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3)); 981options: TestOptions.DebugExe).VerifyDiagnostics(); 1050", options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3)); 1138options: TestOptions.DebugExe).VerifyDiagnostics(); 1237options: TestOptions.DebugExe).VerifyDiagnostics(); 1293options: TestOptions.DebugExe).VerifyDiagnostics(); 1348options: TestOptions.DebugExe).VerifyDiagnostics(); 1498verify: Verification.Fails, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 1524verify: Verification.Fails, options: TestOptions.UnsafeDebugExe, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 1526var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 1580verify: Verification.Fails, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 1675options: TestOptions.DebugExe).VerifyDiagnostics(); 1699parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3), 1700options: TestOptions.UnsafeReleaseExe,
CodeGen\CodeGenStructsAndEnum.cs (2)
525CompileAndVerify(text, options: TestOptions.DebugExe).VerifyIL("Struct.Main()", expectedIL); 1570compilation = CompileAndVerify(source, expectedOutput: "S1", parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature());
CodeGen\CodeGenTests.cs (74)
33var parseOptions = TestOptions.RegularWithDocumentationComments; 34var options = TestOptions.ReleaseDll 81var result = CompileAndVerify(source, verify: Verification.FailsILVerify, options: TestOptions.DebugDll); 169var result = CompileAndVerify(source, verify: Verification.FailsILVerify, options: TestOptions.DebugDll); 239var result = CompileAndVerify(source, options: TestOptions.DebugDll); 300var result = CompileAndVerify(source, options: TestOptions.DebugDll); 335var result = CompileAndVerify(source, options: TestOptions.ReleaseDll); 383var result = CompileAndVerify(source, options: TestOptions.ReleaseDll); 436var result = CompileAndVerify(source, options: TestOptions.ReleaseDll); 476var compilation = CreateEmptyCompilation(tree, [Net461.References.mscorlib], TestOptions.ReleaseExe, assemblyName: "Test"); 534var compilation = CreateCompilationWithILAndMscorlib40(source, il, TargetFramework.Mscorlib461, options: TestOptions.ReleaseDll); 608var compilation = CreateCompilationWithILAndMscorlib40(source, il, TargetFramework.Mscorlib461, options: TestOptions.DebugDll); 867var compilation = CreateCompilationWithILAndMscorlib40(source, il, TargetFramework.Mscorlib461, options: TestOptions.ReleaseExe); 932options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1814var v = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "42123"); 3165var compilation = CompileAndVerify(source, options: TestOptions.ReleaseDebugExe, expectedOutput: "0427"); 3335var compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: "222333"); 4355", options: TestOptions.ReleaseExe); 4476", options: TestOptions.ReleaseExe); 5189compilation = CompileAndVerify(source, expectedOutput: @"hi", verify: Verification.Passes, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature()); 5275compilation = CompileAndVerify(source, expectedOutput: @"hihi", verify: Verification.Fails, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature()); 5685var v = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"1"); 6670var compilation = CompileAndVerifyWithMscorlib40(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @" 6793var compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"3-5"); 6855var compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"30"); 7009var compilation = CreateCompilationWithMscorlib461(source: source, options: TestOptions.ReleaseExe.WithModuleName("MODULE")); 7122var compilation = CompileAndVerify(source, options: TestOptions.ReleaseDebugExe, expectedOutput: @"0"); 7593var compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @" 7876var compilation = CompileAndVerify(source, options: TestOptions.DebugExe.WithModuleName("MODULE")); 9006var compilation = CompileAndVerify(source, options: TestOptions.ReleaseDebugExe, expectedOutput: @"2 9170var compilation = CompileAndVerify(source, expectedOutput: @"42", options: TestOptions.ReleaseDebugExe); 10448var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10516CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()).VerifyEmitDiagnostics( 10793var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 10913var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 10993var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 11067var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 12299var comp = CompileAndVerify(source, expectedOutput: @"42", parseOptions: TestOptions.Regular7_2, verify: Verification.FailsPEVerify); 12332comp = CompileAndVerify(source, expectedOutput: @"42", verify: Verification.Passes, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature()); 12364comp = CompileAndVerify(source, expectedOutput: @"42", verify: Verification.Passes, parseOptions: TestOptions.Regular7_1); 12482comp = CompileAndVerify(source, expectedOutput: @"-10", verify: Verification.Passes, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature()); 13249}", options: TestOptions.ReleaseExe, 13270var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithConcurrentBuild(false)); 13435var comp = CompileAndVerify(code, expectedOutput: "5", options: TestOptions.DebugExe); 13455comp = CompileAndVerify(code, expectedOutput: "5", options: TestOptions.ReleaseExe); 13612var compRelease = CreateCompilation(source, options: TestOptions.ReleaseExe); 13613var compDebug = CreateCompilation(source, options: TestOptions.DebugExe); 13656var comp = CreateCompilation(source, options: TestOptions.DebugExe); 13962var compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"False 14564var compilation = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 14598var compilation = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 14634var compilation = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 14809options: TestOptions.UnsafeDebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 14810parseOptions: TestOptions.Regular9); 14930CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"" 16289var comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.UnsafeReleaseExe); 16291comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.UnsafeDebugExe); 16312comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseExe); 16334comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.DebugExe); 16388var comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseExe); 16421comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.DebugExe); 16481var comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseExe); 16500comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.DebugExe); 16537var comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseExe); 16559comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.DebugExe); 16602var comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseExe); 16657comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.DebugExe); 16746var comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.UnsafeReleaseExe); 16748comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.UnsafeDebugExe); 16770var comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.UnsafeReleaseExe); 16772comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.UnsafeDebugExe); 17241var compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithAllowUnsafe(true), verify: Verification.Skipped, expectedOutput: @""); 17311var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe);
CodeGen\CodeGenThrowTests.cs (1)
335CreateCompilation(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
CodeGen\CodeGenTryFinally.cs (17)
3730CompileAndVerify(source, expectedOutput: "", options: TestOptions.DebugExe); 3731CompileAndVerify(source, expectedOutput: "", options: TestOptions.ReleaseExe).VerifyIL("Program.Main", 3826var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: "M1M4M1M2Catch", 3858verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "M1M4M1M2Catch", 3924var verifier = CompileAndVerify(source, options: TestOptions.ReleaseDll).VerifyDiagnostics(); 3956verifier = CompileAndVerify(source, options: TestOptions.DebugDll).VerifyDiagnostics(); 4021var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 4053var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 4085var verifier = CompileAndVerify(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 4103verifier = CompileAndVerify(source, options: TestOptions.DebugDll).VerifyDiagnostics( 4149var verifier = CompileAndVerify(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 4166verifier = CompileAndVerify(source, options: TestOptions.DebugDll).VerifyDiagnostics( 4212var verifier = CompileAndVerify(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 4230verifier = CompileAndVerify(source, options: TestOptions.DebugDll).VerifyDiagnostics( 4287CompileAndVerify(source, options: TestOptions.ReleaseDll).VerifyDiagnostics(expectedDiagnostics); 4288CompileAndVerify(source, options: TestOptions.DebugDll).VerifyDiagnostics(expectedDiagnostics); 4314CompileAndVerify(source, options: TestOptions.ReleaseDll).VerifyDiagnostics(
CodeGen\CodeGenTupleEqualityTests.cs (83)
31var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_2); 66var comp = CreateCompilation(source, options: TestOptions.DebugExe, assemblyName: name); 785var comp = CreateCompilation(source, options: TestOptions.DebugExe); 830var comp = CreateCompilation(source, options: TestOptions.DebugExe); 847var comp = CreateCompilation(source, options: TestOptions.DebugExe); 895var comp = CreateCompilation(source, options: TestOptions.DebugExe); 944var comp = CreateCompilation(source, options: TestOptions.DebugExe); 994var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1048var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1082var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1114var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1145var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1205var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1234var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1259var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1281var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1305var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1335var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1489var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1550var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1587var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1612var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1649var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1662comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 1806var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 1822var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 1840var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 1860var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 1893var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 1911var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 1995var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2058var comp = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe); 2098var comp = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe); 2154var comp = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe); 2175var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2219var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 2266var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 2297var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2414var comp = CreateCompilation(source.Replace("EXPRESSION", expression), options: TestOptions.DebugExe); 2502var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2732var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2819var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2983var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3013var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3271var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3356var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3391var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3426var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3440CompileAndVerify(source, options: TestOptions.ReleaseExe).VerifyIL("C.Main", @"{ 3468CompileAndVerify(source, expectedOutput: "TrueFalse", options: TestOptions.ReleaseExe).VerifyIL("C.M", @"{ 3502CompileAndVerify(source, expectedOutput: "FalseTrue", options: TestOptions.ReleaseExe).VerifyIL("C.M", @"{ 3534CompileAndVerify(source, expectedOutput: "TrueFalse", options: TestOptions.ReleaseExe).VerifyIL("C.M", @"{ 3563CompileAndVerify(source, expectedOutput: "False", options: TestOptions.ReleaseExe).VerifyIL("C.Main", @"{ 3591CompileAndVerify(source, expectedOutput: "TrueFalse", options: TestOptions.ReleaseExe).VerifyIL("C.M", @"{ 3620CompileAndVerify(source, expectedOutput: "False", options: TestOptions.ReleaseExe).VerifyIL("C.Main", @"{ 3642var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3677var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3776var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3801var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3904var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3997var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4075var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4116var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4177var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4231var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4333var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4381var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4478targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 4582targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 4671var comp = CreateCompilation(source.Replace("REPLACE", expression), options: TestOptions.DebugExe); 4978var comp = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe); 5045var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 5085var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 5107var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5150var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5296var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5343var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5371var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5392var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5418var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5439var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 5502var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5558var comp = CreateCompilation(source, options: TestOptions.DebugExe);
CodeGen\CodeGenTupleTest.cs (296)
229var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 267var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 1600var tree = Parse(source, options: TestOptions.Regular); 1683options: TestOptions.ReleaseExe); 1688options: TestOptions.ReleaseDll); 1692options: TestOptions.ReleaseExe); 1697options: TestOptions.ReleaseExe); 2213var verifier = CompileAndVerify(source, expectedOutput: @"42", options: TestOptions.ReleaseExe); 2333var verifier = CompileAndVerify(source, expectedOutput: @"{42, 42}", options: TestOptions.ReleaseExe); 2480var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Mscorlib46Extended, expectedOutput: @"42", options: TestOptions.ReleaseExe); 2622var verifier = CompileAndVerify(source, expectedOutput: @"42", options: TestOptions.ReleaseExe); 2764var verifier = CompileAndVerify(source, expectedOutput: @"42", options: TestOptions.ReleaseExe); 2925CompileAndVerify(source, expectedOutput: @"42", targetFramework: TargetFramework.Mscorlib46, options: TestOptions.ReleaseExe); 3732var comp = CreateCompilationWithMscorlib40(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, parseOptions: TestOptions.Regular7); 3773references: new[] { ValueTupleRef, SystemRuntimeFacadeRef, libComp.ToMetadataReference() }, parseOptions: TestOptions.Regular); 3785references: new[] { ValueTupleRef, SystemRuntimeFacadeRef, libComp.ToMetadataReference() }, parseOptions: TestOptions.Regular7_1); 3819var comp7 = CreateCompilation(source_cs, parseOptions: TestOptions.Regular, assemblyName: "UseSiteDiagnosticOnTupleField2_comp7"); 3826var comp7_1 = CreateCompilation(source_cs, parseOptions: TestOptions.Regular7_1, assemblyName: "UseSiteDiagnosticOnTupleField2_comp7_1"); 3858var comp = CreateCompilation(source, targetFramework: TargetFramework.NetFramework, parseOptions: TestOptions.Regular7); 3884var comp = CreateCompilationWithMscorlib40(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular7_1); 3945var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 3971var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 4029var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 4050var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 4077var comp7 = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 4084var verifier7_1 = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 4105var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7), 4276var comp = CreateCompilation(source, references: new[] { new CSharpCompilationReference(comp1), new CSharpCompilationReference(comp2) }, options: TestOptions.ReleaseExe); 5323parseOptions: TestOptions.Regular, expectedOutput: 5408CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 5418CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 5533options: TestOptions.DebugExe); 7100CreateCompilation(source, parseOptions: TestOptions.Regular).VerifyDiagnostics( 7449CreateCompilation(source, parseOptions: TestOptions.Regular).VerifyDiagnostics( 7491var comp = CreateCompilation(source, options: TestOptions.DebugExe); 7524var comp = CreateCompilation(source, options: TestOptions.DebugExe); 7561var comp = CreateCompilation(source, options: TestOptions.DebugExe); 7618var comp = CreateCompilation(source, options: TestOptions.DebugExe); 7678parseOptions: TestOptions.Regular, expectedOutput: @" 7757parseOptions: TestOptions.Regular, expectedOutput: @" 7796parseOptions: TestOptions.Regular, expectedOutput: @" 7829parseOptions: TestOptions.Regular, expectedOutput: @" 7902parseOptions: TestOptions.Regular, expectedOutput: @" 8287var tree = Parse(source, options: TestOptions.Regular); 8318var tree = Parse(source, options: TestOptions.Regular); 8373var tree = Parse(source, options: TestOptions.Regular); 8402var tree = Parse(source, options: TestOptions.Regular); 8431var tree = Parse(source, options: TestOptions.Regular); 8479var tree = Parse(source, options: TestOptions.Regular); 8513var tree = Parse(source, options: TestOptions.Regular); 8546var tree = Parse(source, options: TestOptions.Regular); 8575var tree = Parse(source, options: TestOptions.Regular); 8622var tree = Parse(source, options: TestOptions.Regular); 8657var tree = Parse(source, options: TestOptions.Regular); 8686var tree = Parse(source, options: TestOptions.Regular); 8715var tree = Parse(source, options: TestOptions.Regular); 8745var tree = Parse(source, options: TestOptions.Regular); 8800var tree = Parse(source, options: TestOptions.Regular); 8830var tree = Parse(source, options: TestOptions.Regular); 8889var tree = Parse(source, options: TestOptions.Regular); 8890var comp = CreateCompilation(tree, options: TestOptions.ReleaseExe); 8936var tree = Parse(source, options: TestOptions.Regular); 8937var comp = CreateCompilation(tree, options: TestOptions.ReleaseExe); 9007var tree = Parse(source, options: TestOptions.Regular); 9008var comp = CreateCompilation(tree, options: TestOptions.ReleaseExe); 9059var tree = Parse(source, options: TestOptions.Regular); 9061options: TestOptions.ReleaseExe); 9136var tree = Parse(source, options: TestOptions.Regular); 9137var comp = CreateCompilation(tree, options: TestOptions.ReleaseExe); 9217var tree = Parse(source, options: TestOptions.Regular); 9218var comp = CreateCompilation(tree, options: TestOptions.ReleaseExe); 9300var tree = Parse(source, options: TestOptions.Regular); 9301var comp = CreateCompilation(tree, options: TestOptions.ReleaseExe); 9354var tree = Parse(source, options: TestOptions.Regular); 9356options: TestOptions.ReleaseExe); 9398parseOptions: TestOptions.Regular, expectedOutput: @" 9437parseOptions: TestOptions.Regular, expectedOutput: @" 9474parseOptions: TestOptions.Regular, expectedOutput: @" 9545parseOptions: TestOptions.Regular, expectedOutput: @" 9583parseOptions: TestOptions.Regular, expectedOutput: @" 9654parseOptions: TestOptions.Regular, expectedOutput: @" 10164parseOptions: TestOptions.Regular, expectedOutput: @" 10201parseOptions: TestOptions.Regular, expectedOutput: @" 10300parseOptions: TestOptions.Regular, expectedOutput: @" 10333parseOptions: TestOptions.Regular, expectedOutput: @" 10393options: TestOptions.UnsafeDebugDll); 10642options: TestOptions.UnsafeDebugDll); 10793parseOptions: TestOptions.Regular, expectedOutput: @"(1, hello) 10826parseOptions: TestOptions.Regular, expectedOutput: @"(1, hello) 10856parseOptions: TestOptions.Regular, expectedOutput: @"((1, Australia), (2, Brazil))"); 10941var comp = CreateCompilation(source, parseOptions: TestOptions.Regular6); 11010parseOptions: TestOptions.Regular, expectedOutput: @"1 11344parseOptions: TestOptions.Regular, expectedOutput: @"111 111 222 222 666"); 11724parseOptions: TestOptions.Regular, expectedOutput: @"31 11863parseOptions: TestOptions.Regular, expectedOutput: @"41 12140parseOptions: TestOptions.Regular, expectedOutput: @"501 13519var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 13908options: TestOptions.ReleaseExe); 13913options: TestOptions.ReleaseDll); 13917options: TestOptions.ReleaseExe); 13923options: TestOptions.ReleaseExe); 14073options: TestOptions.ReleaseExe); 14078options: TestOptions.ReleaseDll); 14082options: TestOptions.ReleaseExe); 14088options: TestOptions.ReleaseExe); 14207options: TestOptions.ReleaseExe.WithAllowUnsafe(true), 14397options: TestOptions.ReleaseExe.WithAllowUnsafe(true)); 14500options: TestOptions.ReleaseDll); 14505options: TestOptions.ReleaseExe); 14769var lib = CreateCompilationWithMscorlib40(tuple, options: TestOptions.ReleaseDll); 14772var consumer1 = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseExe, references: new[] { lib.ToMetadataReference() }); 14775var consumer2 = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseExe, references: new[] { lib.EmitToImageReference() }); 15030var lib = CreateCompilationWithMscorlib40(tuple, options: TestOptions.ReleaseDll); 15033var consumer1 = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseExe, references: new[] { lib.ToMetadataReference() }); 15036var consumer2 = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseExe, references: new[] { lib.EmitToImageReference() }); 15093parseOptions: TestOptions.Regular, 15094options: TestOptions.ReleaseExe, 15157parseOptions: TestOptions.Regular, 15158options: TestOptions.ReleaseExe, 15416var lib = CreateCompilationWithMscorlib46(tuple, options: TestOptions.ReleaseDll); 15419var consumer1 = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseExe, references: new[] { lib.ToMetadataReference() }); 15422var consumer2 = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseExe, references: new[] { lib.EmitToImageReference() }); 15677var lib = CreateCompilationWithMscorlib46(tuple, options: TestOptions.ReleaseDll); 15680var consumer1 = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseExe, references: new[] { lib.ToMetadataReference() }); 15683var consumer2 = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseExe, references: new[] { lib.EmitToImageReference() }); 15711options: TestOptions.ReleaseExe, 16169var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 16269var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 16515var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 16562var tree = Parse(source, options: TestOptions.Regular); 16599var tree = Parse(source, options: TestOptions.Regular); 16793parseOptions: TestOptions.Regular, 16794options: TestOptions.DebugExe); 16804parseOptions: TestOptions.Regular, 16805options: TestOptions.DebugExe); 16815parseOptions: TestOptions.Regular, 16816options: TestOptions.DebugExe); 16855parseOptions: TestOptions.Regular, 16856options: TestOptions.DebugExe); 16866parseOptions: TestOptions.Regular, 16867options: TestOptions.DebugExe); 16887parseOptions: TestOptions.Regular, 16888options: TestOptions.DebugExe); 16927parseOptions: TestOptions.Regular, 16928options: TestOptions.DebugExe); 16941parseOptions: TestOptions.Regular, 16942options: TestOptions.DebugExe); 16962parseOptions: TestOptions.Regular, 16963options: TestOptions.DebugExe); 17024parseOptions: TestOptions.Regular, 17025options: TestOptions.DebugExe); 17047parseOptions: TestOptions.Regular, 17048options: TestOptions.DebugExe); 17074parseOptions: TestOptions.Regular, 17075options: TestOptions.DebugExe); 17125parseOptions: TestOptions.Regular, 17126options: TestOptions.DebugExe); 17179parseOptions: TestOptions.Regular, 17180options: TestOptions.DebugExe); 17205var tree = Parse(source, options: TestOptions.Regular); 17266var tree = Parse(source, options: TestOptions.Regular); 17325var tree = Parse(source, options: TestOptions.Regular); 17364var tree = Parse(source, options: TestOptions.Regular); 17396var tree = Parse(source, options: TestOptions.Regular7_1); 17429var tree = Parse(source, options: TestOptions.Regular7_1); 17615parseOptions: TestOptions.Regular, expectedOutput: @" 17704parseOptions: TestOptions.Regular, expectedOutput: @" 17793parseOptions: TestOptions.Regular, expectedOutput: @" 17833parseOptions: TestOptions.Regular, expectedOutput: @" 17893parseOptions: TestOptions.Regular, expectedOutput: @" 17958parseOptions: TestOptions.Regular, assemblyName: "ImplicitConversions06Err"); 18021parseOptions: TestOptions.Regular, expectedOutput: @" 18079parseOptions: TestOptions.Regular, expectedOutput: @" 18483var comp = CompileAndVerify(source, parseOptions: TestOptions.Regular, expectedOutput: @" 18707parseOptions: TestOptions.Regular, expectedOutput: @" 18740parseOptions: TestOptions.Regular, expectedOutput: @" 18778parseOptions: TestOptions.Regular, expectedOutput: @" 20541var comp = CreateCompilation(source, options: TestOptions.DebugExe); 21296options: TestOptions.DebugDll); 21308options: TestOptions.DebugDll); 21324options: TestOptions.DebugDll); 21345var comp = CreateCompilation(source, options: TestOptions.DebugExe); 21452parseOptions: TestOptions.Regular, expectedOutput: @" 21479parseOptions: TestOptions.Regular, expectedOutput: @"(w, w)"); 21503parseOptions: TestOptions.Regular, expectedOutput: @" 21545parseOptions: TestOptions.Regular, expectedOutput: @" 21587parseOptions: TestOptions.Regular, expectedOutput: @" 21629parseOptions: TestOptions.Regular, expectedOutput: @" 21671parseOptions: TestOptions.Regular, expectedOutput: @" 21706parseOptions: TestOptions.Regular, expectedOutput: @" 21751parseOptions: TestOptions.Regular, expectedOutput: @" 21789parseOptions: TestOptions.Regular, expectedOutput: @"w"); 21921parseOptions: TestOptions.Regular); 22010parseOptions: TestOptions.Regular); 22062parseOptions: TestOptions.Regular); 22101parseOptions: TestOptions.Regular); 22141var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Mscorlib46, expectedOutput: @"5", options: TestOptions.ReleaseExe); 22378parseOptions: TestOptions.Regular.WithTuplesFeature()); 22380parseOptions: TestOptions.Regular.WithTuplesFeature()); 22395parseOptions: TestOptions.Regular.WithTuplesFeature(), 22396options: TestOptions.DebugExe); 22479var compLib = CreateCompilationWithMscorlib40(lib_cs, options: TestOptions.ReleaseDll); 22770var comp = CreateCompilation(source, assemblyName: "comp", options: TestOptions.DebugExe); 22810var comp = CreateCompilationWithMscorlib40(source, assemblyName: "comp", references: new[] { libComp.EmitToImageReference() }, options: TestOptions.DebugExe); 22847options: TestOptions.DebugExe, 22897var comp = CreateCompilation(source, assemblyName: "ValueTupleNotStruct", options: TestOptions.DebugExe); 22966var comp = CreateCompilation(source, assemblyName: "ValueTupleNotStruct", options: TestOptions.DebugExe); 23010var comp = CreateCompilation(source, assemblyName: "ValueTupleNotStruct", options: TestOptions.DebugExe); 23044var comp = CreateCompilation(source, assemblyName: "ValueTupleNotStruct", options: TestOptions.DebugExe); 23086var comp = CreateCompilation(source, assemblyName: "ValueTupleNotStruct", options: TestOptions.DebugExe); 23125var comp = CreateCompilation(source, assemblyName: "ValueTupleNotStruct", options: TestOptions.DebugExe); 23218var signedDllOptions = TestOptions.SigningReleaseDll. 23336parseOptions: TestOptions.Regular, expectedOutput: @"(42, 0) 23419var libComp = CreateCompilationWithMscorlib461AndCSharp(lib, references: s_valueTupleRefs, options: TestOptions.DebugDll); 23446var comp = CompileAndVerify(source, expectedOutput: "42qq", references: new[] { libComp.ToMetadataReference() }, options: TestOptions.DebugExe, verify: Verification.Fails); 23473var libComp = CreateCompilationWithMscorlib461AndCSharp(lib, options: TestOptions.DebugDll, references: s_valueTupleRefs); 23502var comp = CompileAndVerifyWithMscorlib40(source, expectedOutput: "42qq", references: s_valueTupleRefs.Concat(new[] { libCompRef }).ToArray(), options: TestOptions.DebugExe, verify: Verification.Fails); 23545parseOptions: TestOptions.Regular, expectedOutput: 23585parseOptions: TestOptions.Regular, expectedOutput: 23629parseOptions: TestOptions.Regular, expectedOutput: 23664parseOptions: TestOptions.Regular, expectedOutput: @"(1, 2)"); 23695parseOptions: TestOptions.Regular, expectedOutput: 23741parseOptions: TestOptions.Regular, expectedOutput: 23846var comp = CreateCompilationWithMscorlib461AndCSharp(source, references: (new[] { libCompRef }).Concat(s_valueTupleRefs).ToArray(), options: TestOptions.DebugExe); 23875var libComp = CreateCompilationWithMscorlib461AndCSharp(lib, references: s_valueTupleRefs, options: TestOptions.DebugDll); 23901var comp = CompileAndVerify(source, expectedOutput: "42qq", references: new[] { libCompRef }, options: TestOptions.DebugExe, verify: Verification.Passes); 23962parseOptions: TestOptions.Regular, expectedOutput: @"(1, 2)"); 24075var comp = CreateCompilationWithMscorlib461AndCSharp(source, references: s_valueTupleRefs, options: TestOptions.UnsafeDebugDll); 24254var comp = CreateCompilation(source, options: TestOptions.DebugExe); 24317var comp = CreateCompilation(source, options: TestOptions.DebugExe); 24382var comp = CreateCompilation(source, options: TestOptions.DebugExe); 24454var comp = CreateCompilation(source, options: TestOptions.DebugExe); 24527var comp = CreateCompilation(source, options: TestOptions.DebugExe); 24597var comp = CreateCompilation(source, options: TestOptions.DebugExe); 25018var comp = CreateCompilation(source, options: TestOptions.DebugExe); 25125parseOptions: TestOptions.Regular, expectedOutput: @" 25159parseOptions: TestOptions.Regular, expectedOutput: @" 25275references: new[] { SystemXmlRef }, options: TestOptions.DebugExe); 25315var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 25324var libWithVT = CreateEmptyCompilation(valuetuple_cs, references: new[] { corlibWithoutVTRef }, parseOptions: parseOptions, options: TestOptions.DebugDll); 25396options: TestOptions.ReleaseExe); 25424var comp = CreateCompilationWithMscorlib40(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.DebugExe); 25464var comp = CreateCompilationWithMscorlib40(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, parseOptions: TestOptions.Regular8); 25548options: TestOptions.ReleaseExe); 25617options: TestOptions.DebugExe, expectedOutput: 25646options: TestOptions.ReleaseExe, expectedOutput: 25688var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 25733var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 25759var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 25804var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 25830var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 25869var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 25902var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 26216var comp = CreateCompilation(source, options: TestOptions.DebugExe); 26447options: TestOptions.DebugExe); 26512options: TestOptions.DebugExe); 26569options: TestOptions.DebugExe); 26577options: TestOptions.DebugExe); 26631var executeComp = CreateCompilation(executable_cs, references: new[] { comp.EmitToImageReference(), libRef, missingRef }, options: TestOptions.DebugExe); 27039var comp1 = CreateCompilation(source0 + source1, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe); 27046var comp4 = CreateCompilation(source0 + source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe); 27049var comp5 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe, references: comp1Ref); 27053var comp6 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe, references: comp1ImageRef); 27057var comp7 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib46, options: TestOptions.DebugExe, references: comp1Ref); 27123var comp1 = CreateCompilation(source0 + source1, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe); 27130var comp4 = CreateCompilation(source0 + source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe); 27133var comp5 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe, references: comp1Ref); 27137var comp6 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe, references: comp1ImageRef); 27141var comp7 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib46, options: TestOptions.DebugExe, references: comp1Ref); 27197var comp1 = CreateCompilation(source0 + source1, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe); 27204var comp4 = CreateCompilation(source0 + source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe); 27207var comp5 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe, references: comp1Ref); 27211var comp6 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe, references: comp1ImageRef); 27215var comp7 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib46, options: TestOptions.DebugExe, references: comp1Ref); 27275var comp1 = CreateCompilation(source0 + source1, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe); 27282var comp4 = CreateCompilation(source0 + source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe); 27285var comp5 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe, references: comp1Ref); 27289var comp6 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe, references: comp1ImageRef); 27293var comp7 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib46, options: TestOptions.DebugExe, references: comp1Ref); 27336var comp1 = CreateCompilation(source0, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 27537var comp0 = CreateCompilation(new[] { source0, source1 }, options: TestOptions.DebugDll); 27540var comp1 = CreateCompilation(source0, options: TestOptions.DebugDll); 27543var comp2 = CreateCompilation(source1, references: new[] { comp1.EmitToImageReference() }, options: TestOptions.DebugDll); 27563var comp = CreateCompilation(new[] { source }, options: TestOptions.DebugDll); 27616var compilation = CreateCompilationWithMscorlib461(source, null, TestOptions.UnsafeDebugExe); 27654options: TestOptions.ReleaseExe); 27901options: TestOptions.ReleaseExe); 28025var comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40, assemblyName: "emptyValueTuple", parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 28963", options: TestOptions.UnsafeReleaseDll, symbolValidator: symbolValidator); 29179var verifier = CompileAndVerify(source, options: TestOptions.ReleaseDll); 29229var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: """ 29352var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: """ 29457var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: """
CodeGen\CodeGenUsingDeclarationTests.cs (8)
681var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe).VerifyDiagnostics(); 1162var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe).VerifyDiagnostics(); 1189var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe).VerifyDiagnostics(); 1234var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe).VerifyDiagnostics(); 1281var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe).VerifyDiagnostics(); 1317var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe).VerifyDiagnostics(); 1402var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 1429var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe);
CodeGen\DestructorTests.cs (1)
692var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll);
CodeGen\EventTests.cs (5)
620var compilation = CreateCompilation(csharpSource, new MetadataReference[] { ilAssemblyReference }, TestOptions.ReleaseExe); 645var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 707var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 779var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 842var compilation = CreateCompilation(source, options: TestOptions.DebugDll);
CodeGen\FixedSizeBufferTests.cs (30)
50}", options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails); 115CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "12", verify: Verification.Fails) 176CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "12", verify: Verification.Passes) 227CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "12", verify: Verification.Passes) 278CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "12", verify: Verification.Passes) 328CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 361CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 398CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 439CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "12", verify: Verification.Fails) 504CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "12", verify: Verification.Fails) 569var comp1 = CompileAndVerify(s1, options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).Compilation; 572options: TestOptions.UnsafeReleaseExe, 607CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "12", verify: Verification.Fails) 640CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 665CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 692CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 714CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 758CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "133", verify: Verification.Fails) 798CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 827CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 856CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 912CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 953CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 978CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes, 1010CompileAndVerify(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); 1152var 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); 1398var comp = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.ReleaseExe); 1683var comp = CreateCompilation(source, parseOptions: TestOptions.RegularDefault.WithFeature("run-nullable-analysis", "never"));
CodeGen\ForLoopsTests.cs (5)
726var c = CompileAndVerify(source, options: TestOptions.ReleaseDll); 907var c = CompileAndVerify(source, options: TestOptions.ReleaseDll); 961var c = CompileAndVerify(source, options: TestOptions.ReleaseDll); 1265var c = CompileAndVerify(source, options: TestOptions.ReleaseDll); 1916var c = CompileAndVerify(text, options: TestOptions.DebugExe);
CodeGen\GotoTest.cs (24)
503var c = CompileAndVerify(source, options: TestOptions.ReleaseDll); 932var compilation = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions: TestOptions.Script, options: TestOptions.DebugExe); 947var compilation = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions: TestOptions.Script, options: TestOptions.DebugExe); 983var compilation = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions: TestOptions.Script, options: TestOptions.DebugExe); 1000var s0 = CSharpCompilation.CreateScriptCompilation("s0.dll", SyntaxFactory.ParseSyntaxTree(source0, options: TestOptions.Script), references); 1002var s1 = CSharpCompilation.CreateScriptCompilation("s1.dll", SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.Script), references, previousScriptCompilation: s0); 1019var compilation = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions: TestOptions.Script); 1039var compilation = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions: TestOptions.Script); 1066var compilation = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions: TestOptions.Script, options: TestOptions.DebugExe); 1086var compilation = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions: TestOptions.Script, options: TestOptions.DebugExe); 1111var s0 = CSharpCompilation.CreateScriptCompilation("s0.dll", SyntaxFactory.ParseSyntaxTree(source0, options: TestOptions.Script), references); 1113var s1 = CSharpCompilation.CreateScriptCompilation("s1.dll", SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.Script), references, previousScriptCompilation: s0); 1128var options = TestOptions.DebugDll.WithSourceReferenceResolver(resolver); 1129var compilation = CreateCompilationWithMscorlib461(sourceB, options: options, parseOptions: TestOptions.Script); 1146var tree = Parse(source, options: TestOptions.Script); 1159var tree = Parse(source, options: TestOptions.Script); 1173var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script); 1188compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script); 1201compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script);
CodeGen\IndexAndRangeTests.cs (39)
24expectedOutput is null ? TestOptions.ReleaseDll : TestOptions.ReleaseExe); 190var comp = CreateCompilationWithIndexAndRangeAndSpan(src, TestOptions.ReleaseExe); 280var comp = CreateCompilationWithIndexAndRangeAndSpan(src, TestOptions.ReleaseExe); 412var comp = CreateCompilationWithIndexAndRangeAndSpan(src, TestOptions.ReleaseExe); 509var comp = CreateCompilationWithIndex(src, options: TestOptions.ReleaseExe); 676var comp = CreateCompilationWithIndex(src, options: TestOptions.ReleaseExe); 829var comp = CreateCompilationWithIndexAndRangeAndSpanAndMemoryExtensions(src, TestOptions.ReleaseExe); 917var comp = CreateCompilationWithIndexAndRangeAndSpan(src, TestOptions.ReleaseExe); 951var comp = CreateCompilationWithIndexAndRange(src, TestOptions.ReleaseExe); 1024}", TestOptions.ReleaseExe); 1098}", TestOptions.ReleaseExe); ; 1183}", TestOptions.ReleaseExe); 1899}", TestOptions.ReleaseExe); 1957var 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), 3000options: TestOptions.ReleaseExe), 3017options: TestOptions.ReleaseExe), 3036options: TestOptions.ReleaseExe), 3058options: 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)
423var compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE")); 571var compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE")); 719var compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE")); 944var compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE"));
CodeGen\ITuplePatternTests.cs (3)
19return CreateCompilation(new[] { source, _iTupleSource }, options: options ?? TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithRecursivePatterns); 229var verifier = CompileAndVerify(CreatePatternCompilation(source, TestOptions.DebugDll));
CodeGen\ObjectAndCollectionInitializerTests.cs (7)
1386var comp = CreateCompilationWithMscorlib461AndCSharp(source, options: TestOptions.ReleaseExe); 1483var comp = CreateCompilationWithMscorlib461AndCSharp(source, options: TestOptions.ReleaseExe); 1820var comp = CreateCompilationWithMscorlib461AndCSharp(source, options: TestOptions.ReleaseExe); 3534CompileAndVerify(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), expectedOutput: "1", verify: Verification.Fails); 3581var verifier = CompileAndVerify(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), verify: Verification.Fails, expectedOutput: 3692var comp = CSharpTestBase.CreateCompilation(source, options: TestOptions.ReleaseExe); 3731var comp = CSharpTestBase.CreateCompilation(source, options: TestOptions.ReleaseExe);
CodeGen\PatternTests.cs (129)
99var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll); 122var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 152var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 200var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 235var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 269compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 333var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 401var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 502var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 634var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 695compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 771var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 832var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 857var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 893var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 932var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 968var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1008var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1055var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1106var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1141var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1179var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1223var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1282var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1339var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1399var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1471var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1535var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1598var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1657var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1712var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1773var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1840var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1904var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1973var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2038var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2173var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2267var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2404var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithRecursivePatterns); 2538var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithoutRecursivePatterns); 2612var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2646var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithRecursivePatterns); 2667var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithRecursivePatterns); 2713var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2793var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2839var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2902var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2999var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3055var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3096var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3128var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3237var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, references: new[] { CSharpRef }); 3265var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3295var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3315var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll); 3384var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3473var v = CompileAndVerify(source, options: TestOptions.DebugExe); 3548foreach (var options in new[] { TestOptions.DebugExe, TestOptions.ReleaseExe }) 3631foreach (var options in new[] { TestOptions.DebugExe, TestOptions.ReleaseExe }) 3703foreach (var options in new[] { TestOptions.DebugExe, TestOptions.ReleaseExe }) 3779foreach (var options in new[] { TestOptions.DebugExe, TestOptions.ReleaseExe }) 3992var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3995compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4030var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4033compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4058var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4094var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4121var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4173var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4213var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4248var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4327foreach (var compilationOptions in new[] { TestOptions.ReleaseExe, TestOptions.DebugExe }) 4508var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4542var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4576var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4613var verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 4670var verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 4716var verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 4773var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4806var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4842var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4880var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4914var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4951var compilation = CreateCompilationWithMscorlibAndSpan(source, options: TestOptions.ReleaseExe); 5453var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5481var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5507var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithPatternCombinators); 5549compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 5607var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithPatternCombinators); 5653compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 5715var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithPatternCombinators); 5789compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 5879var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithPatternCombinators); 5938compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 6023var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithPatternCombinators); 6107compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 6195var verifier = CompileAndVerify(source, expectedOutput: "012323", options: TestOptions.DebugExe); 6280var verifier = CompileAndVerify(source, expectedOutput: " 0 1 2 3 2 3", options: TestOptions.DebugExe); 6369var verifier = CompileAndVerify(source, expectedOutput: "0123452345", options: TestOptions.DebugExe); 6465var verifier = CompileAndVerify(source, expectedOutput: "0123233", options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6550var verifier = CompileAndVerify(source, options: TestOptions.DebugDll); 6650var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "012"); 6745var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: """ 6852var verifier = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "System.ActionSystem.Action");
CodeGen\PropertyTests.cs (1)
30var compilation = CreateCompilation(source, options: TestOptions.DebugDll);
CodeGen\SwitchTests.cs (77)
429var compVerifier = CompileAndVerify(text, expectedOutput: "1", options: TestOptions.DebugExe); 2899var compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), 2900parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch(), expectedOutput: "True"); 3040var comp = CSharpCompilation.Create("Name", references: new[] { reference }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 3046compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: "True"); 3348var compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), 3349parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch(), expectedOutput: "PASS"); 3673compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: "PASS"); 4032var compVerifier = CompileAndVerify(text, expectedOutput: "1", parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 7161var compVerifier = CompileAndVerify(text, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch(), expectedOutput: "3"); 7852var comp = CreateCompilation(text, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch(), 7853options: TestOptions.ReleaseExe.WithModuleName("MODULE")); 7989comp = CreateCompilation(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE")); 8092var comp = CreateCompilation(text, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch(), 8093options: TestOptions.ReleaseExe.WithModuleName("MODULE")); 8223comp = CreateCompilation(text, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 8302comp = CreateCompilation(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE")); 8796options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 8809options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 8863options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 8882options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 8939options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 8952options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 9003options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 9022options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 9077options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 9093options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 9150options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 9167options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 9225options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 9242options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 9300options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 9319options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 9369options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 9385options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 9441CreateCompilation(source, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 9450options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 9451parseOptions: TestOptions.Regular7_1, 9476options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 9477parseOptions: TestOptions.Regular7_1, 9572CreateCompilation(source, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 9581options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 9582parseOptions: TestOptions.Regular7_1, 9625options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 9626parseOptions: TestOptions.Regular7_1, 9723options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 9765CreateCompilation(source, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 9774options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 9775parseOptions: TestOptions.Regular7_1, 9820CreateCompilation(source, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 9829options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 9830parseOptions: TestOptions.Regular7_1, 9873CreateCompilation(source, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 9882options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 9883parseOptions: TestOptions.Regular7_1) 9925CreateCompilation(source, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 9934options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication), 9935parseOptions: TestOptions.Regular7_1) 10027options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication)) 10119options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication)) 10170options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 10246options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication).WithMetadataImportOptions(MetadataImportOptions.All)); 10520options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication)) 10607var compilation = CreateCompilation(source, options: TestOptions.DebugExe) 10695compilation = CreateCompilation(source, options: TestOptions.ReleaseExe) 10802var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9) 10867compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9) 11028options: TestOptions.ReleaseExe.WithOutputKind(OutputKind.ConsoleApplication), 11029parseOptions: TestOptions.RegularWithPatternCombinators, 11286options: TestOptions.ReleaseExe.WithOutputKind(OutputKind.ConsoleApplication), 11287parseOptions: TestOptions.RegularWithPatternCombinators, 11544options: TestOptions.ReleaseExe.WithOutputKind(OutputKind.ConsoleApplication), 11545parseOptions: TestOptions.RegularWithPatternCombinators, 11973options: TestOptions.ReleaseExe.WithOutputKind(OutputKind.ConsoleApplication), 11974parseOptions: TestOptions.RegularWithPatternCombinators,
CodeGen\UnsafeTests.cs (226)
32var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes); 59var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 89var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 115var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 141var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 167var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 193var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 219var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes); 244var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 291var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 338var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 372var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "123", verify: Verification.Fails); 409var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "456", verify: Verification.Fails); 437var compVerifierOptimized = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "2", verify: Verification.Fails); 456var compVerifierUnoptimized = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: "2", verify: Verification.Fails); 500var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "1", verify: Verification.Fails); 552var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"Before: 2 7 599var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"ab", verify: Verification.Fails); 647var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"12", verify: Verification.Fails); 694var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"3", verify: Verification.Fails); 712compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"3", verify: Verification.Fails); 752var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"34", verify: Verification.Fails); 776compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"34", verify: Verification.Fails); 827var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"123", verify: Verification.Fails); 849compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"123", verify: Verification.Fails); 903var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"123", verify: Verification.Fails); 926compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"123", verify: Verification.Fails); 970var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"34", verify: Verification.Fails); 1008compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"34", verify: Verification.Fails); 1084var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails); 1204var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails); 1248var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @" 1277var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "210", verify: Verification.Fails); 1297var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "1", verify: Verification.Fails).VerifyIL("C.Main", @" 1338var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"1", verify: Verification.Fails); 1396var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"123", verify: Verification.Fails); 1454var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"12", verify: Verification.Fails); 1524var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"12", verify: Verification.Fails); 1586var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 1659var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"12", verify: Verification.Fails); 1725var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"a", verify: Verification.Fails); 1770var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: @"a", verify: Verification.Fails); 1814var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: @"h", verify: Verification.Fails); 1871var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: @"hTrue", verify: Verification.Fails); 1956var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"hTrue", verify: Verification.Fails); 2027var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"01", verify: Verification.Fails); 2095var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"01", verify: Verification.Fails); 2163var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"01", verify: Verification.Fails); 2234var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"970104", verify: Verification.Fails); 2325CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 2387CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 2450CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 2506CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 2567CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 2628CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 2688CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 2764CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 2848CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 2978CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3029CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3094CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3178CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3258CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3314CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3359CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3413CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3463CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3515CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3569CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3622CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3676CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3726CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3776CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3825CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3865CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3906CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 3964CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 4028CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 4095CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails). 4157var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Fails); 4217var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Fails); 4272var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular7_2); 4305var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"0", verify: Verification.Fails); 4356var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Fails); 4418var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Fails); 4482var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 4534var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 4581var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 4619var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 4658var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"20", verify: Verification.Fails); 4732var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"5456"); 4792var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"5456"); 4884var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"2123 4973var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"5456"); 5033var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"23", verify: Verification.Fails); 5111var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"3", verify: Verification.Fails); 5172var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 5214var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 5253var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular7_2); 5289var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 5325var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 5361var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 5400var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 5413var missing = CreateCompilationWithMscorlib461(missing_cs, options: TestOptions.DebugDll, assemblyName: "missing"); 5424var lib = CreateCompilationWithMscorlib461(lib_cs, references: new[] { missing.EmitToImageReference() }, options: TestOptions.DebugDll); 5439var comp = CreateCompilationWithMscorlib461(source, references: new[] { lib.EmitToImageReference() }, options: TestOptions.UnsafeDebugDll); 5474var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 5502var comp = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 5539var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @""); 5619var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 5666var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"00", verify: Verification.Fails); 5793var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseExe); 5868CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL); 5869CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL); 5919CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL); 5920CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL); 5956CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", @" 6046CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", @" 6136CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.FailsPEVerify).VerifyIL("C.M", @" 6226CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.FailsPEVerify).VerifyIL("C.M", @" 6367CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", expectedIL); 6368CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", expectedIL); 6430CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", expectedIL); 6431CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", expectedIL); 6537CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeDebugExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL, sequencePoints: "C.Main"); 6538CompileAndVerify(string.Format(template, "checked "), options: TestOptions.UnsafeDebugExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL, sequencePoints: "C.Main"); 6594CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL); 6595CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL); 6636CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).VerifyIL("C.M", expectedIL); 6637CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).VerifyIL("C.M", expectedIL); 6705CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).VerifyIL("C.M", expectedIL); 6706CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).VerifyIL("C.M", expectedIL); 6760CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "12", verify: Verification.Fails).VerifyIL("C.Main", @" 6823CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "1234", verify: Verification.FailsPEVerify).VerifyIL("C.Main", @" 6984CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Passes).VerifyIL("C.Main", @" 7071CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Passes).VerifyIL("C.Main", @" 7113CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Passes).VerifyIL("C.Main", @" 7156CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("S.Main", @" 7221CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("S.Main", @" 7286CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("S.Main", @" 7351CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("S.Main", @" 7421CompileAndVerify(text, options: TestOptions.UnsafeDebugDll, verify: Verification.Fails).VerifyIL("C.Test", @" 7529var comp = CompileAndVerify(text, options: TestOptions.UnsafeDebugDll, verify: Verification.Fails); 7697CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2147483651 7783CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "4", verify: Verification.Fails).VerifyIL("S.Main", @" 7847CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "4", verify: Verification.Fails).VerifyIL("S.Main", @" 7906CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "I0", verify: Verification.Fails).VerifyIL("S.Main", @" 7974CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "8", verify: Verification.Fails).VerifyIL("S.Main", @" 8081CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("S.Main", @" 8148CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "44", verify: Verification.Fails).VerifyIL("S.Main", @" 8206CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "11", verify: Verification.Fails).VerifyIL("S.Main", @" 8262CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "11", verify: Verification.Fails).VerifyIL("S.Main", @" 8321CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "01", verify: Verification.Fails).VerifyIL("S.Main", @" 8376CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "2", verify: Verification.Fails); 8774CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails); 8875CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails); 8910CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: expectedOutput); 8945CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails); 8954CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @" 8981CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @" 9045CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails); 9092CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails); 9122CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Passes, expectedOutput: @" 9172CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Passes); 9210CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails); 9251CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @" 9360CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails); 9461CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails); 9496CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails); 9531CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails); 9588CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails); 9645CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails); 9692CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails); 9736CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails); 9784CompileAndVerify(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); 10013CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", @" 10070CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", @" 10107CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.FailsPEVerify).VerifyIL("C.M", @" 10153CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"123 10194var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails); 10267CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "0", verify: Verification.Fails).VerifyIL("T.Main", @" 10290CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "0", verify: Verification.Fails).VerifyIL("T.Main", @" 10340var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 10415CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @" 10473CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.FailsPEVerify); 10497CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify: Verification.Passes); 10523var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugExe); 10553var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10624var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10684CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.Test", @" 10768CompileAndVerify(string.Format(template, "int"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes); 10769CompileAndVerify(string.Format(template, "int*"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes); 10770CompileAndVerify(string.Format(template, "int**"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes); 10771CompileAndVerify(string.Format(template, "int[]"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes); 10772CompileAndVerify(string.Format(template, "int[][]"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes); 10773CompileAndVerify(string.Format(template, "int*[]"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes); 10807CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.FailsPEVerify with 10827var c = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.FailsPEVerify with 10849var c = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.FailsPEVerify with 10903var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 10927CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).VerifyDiagnostics( 10950var comp = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyDiagnostics(); 11003var comp = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "ABC", verify: Verification.Fails).VerifyDiagnostics(); 11070CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "b", verify: Verification.Fails); 11114var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "hello", verify: Verification.Fails); 11183var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @" 11263var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @" 11315var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll.WithConcurrentBuild(false), verify: Verification.Passes); 11339var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll.WithConcurrentBuild(false), verify: Verification.FailsPEVerify); 11357var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 11379var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F6543210", verify: Verification.Fails); 11425var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F6543210", verify: Verification.Fails); 11474var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F6543210", verify: Verification.Fails); 11516var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F654320F", verify: Verification.Fails); 11559var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "0", verify: Verification.Passes); 11613var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "System.Byte[]", verify: Verification.Fails); 11686var v = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: "System.Byte[]", verify: Verification.Fails); 11806var compilation = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.ReleaseExe); 11832CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, expectedOutput: "OK", verify: Verification.Passes); 11857var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, expectedOutput: "0", verify: Verification.FailsPEVerify); 11889var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, expectedOutput: "0");
CodeGen\WinMdDelegateTests.cs (4)
56options: winmd ? TestOptions.ReleaseWinMD : TestOptions.ReleaseDll, 145options: TestOptions.ReleaseWinMD.WithAllowUnsafe(true), 153options: TestOptions.UnsafeReleaseDll,
Emit\BinaryCompatibility.cs (4)
34var lib0Image = CreateCompilationWithMscorlib46(lib0, options: TestOptions.ReleaseDll, assemblyName: "lib").EmitToImageReference(); 46var lib1Image = CreateCompilationWithMscorlib46(lib1, options: TestOptions.ReleaseDll, assemblyName: "lib").EmitToImageReference(); 58var clientImage = CreateCompilationWithMscorlib46(client, references: new[] { lib0Image }, options: TestOptions.ReleaseDll).EmitToImageReference(); 69var compilation = CreateCompilationWithMscorlib46(program, references: new[] { lib1Image, clientImage }, options: TestOptions.ReleaseExe);
Emit\CompilationEmitTests.cs (164)
80var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("abc.X")); 83compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("\"abc.X\"")); 99compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("решения.X")); 102compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("\"решения.X\"")); 561", options: TestOptions.DebugExe); 897options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1021var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1043var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, 1051var comp = CreateCompilation(source, options: TestOptions.DebugDll, 1099var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1122var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, 1130var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, 1205CSharpCompilation comp1 = CreateCompilation(Parse(source1), options: TestOptions.DebugDll.WithDeterministic(true), assemblyName: name); 1209Compilation comp2 = CreateCompilation(Parse(source2), options: TestOptions.DebugDll.WithDeterministic(true), assemblyName: name); 1310options: TestOptions.DebugDll.WithDeterministic(true).WithOutputKind(OutputKind.NetModule)); 1322", references: new[] { reference }, options: TestOptions.ReleaseDll); 1888options: TestOptions.DebugDll.WithDeterministic(true), assemblyName: name); 1893options: TestOptions.DebugDll.WithAllowUnsafe(true)); 1904var options = TestOptions.DebugDll.WithDeterministic(false); 1999options: TestOptions.ReleaseDll.WithCryptoKeyFile(snk.Path).WithPublicSign(true)); 2014var signedDllOptions = TestOptions.SigningReleaseDll. 2032var signedDllOptions = TestOptions.SigningReleaseDll. 2052var signedDllOptions = TestOptions.SigningReleaseDll 2096options: TestOptions.DebugDll.WithDeterministic(true), assemblyName: name); 2124parseOptions: TestOptions.Regular7_2.WithNoRefSafetyRulesAttribute(), 2125options: TestOptions.DebugDll.WithDeterministic(true)); 2130var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 2133options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 2164options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 2192options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 2221options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 2261var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 2263options: TestOptions.DebugDll.WithDeterministic(true)); 2270options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 2280options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 2292options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 2328var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 2330options: TestOptions.DebugDll.WithDeterministic(true)); 2337options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 2347options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 2359options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 2395var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 2397options: TestOptions.DebugDll.WithDeterministic(true)); 2404options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 2414options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 2426options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 2455var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 2457options: TestOptions.DebugDll.WithDeterministic(true)); 2465options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 2500var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 2502options: TestOptions.DebugDll.WithDeterministic(true)); 2510options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 2524options: TestOptions.DebugDll.WithDeterministic(true)); 2538options: TestOptions.DebugDll.WithDeterministic(true)); 2552options: TestOptions.DebugDll.WithDeterministic(true)); 2567options: TestOptions.DebugDll.WithDeterministic(true)); 2580options: TestOptions.DebugDll.WithDeterministic(true).WithOutputKind(OutputKind.NetModule)); 2594options: TestOptions.DebugDll.WithDeterministic(true).WithOutputKind(OutputKind.NetModule)); 2607options: TestOptions.DebugDll); 2633options: TestOptions.DebugDll); 2653options: TestOptions.DebugDll.WithDeterministic(true)); 2699options: TestOptions.ReleaseDll, 3485var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithPlatform(Platform.AnyCpu)); 3489compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithPlatform(Platform.X86)); 3493compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithPlatform(Platform.X64)); 3499compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithPlatform(Platform.AnyCpu32BitPreferred)); 3505compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithPlatform(Platform.Arm)); 3523options: TestOptions.DebugDll.WithPlatform(Platform.X86)); 3557options: TestOptions.DebugDll.WithPlatform(Platform.X64)); 3607options: TestOptions.DebugDll.WithPlatform(Platform.Arm)); 3647options: TestOptions.ReleaseExe.WithPlatform(Platform.AnyCpu)); 3688var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithPlatform(Platform.X64)); 3738var compilation = CreateCompilation(source, options: TestOptions.CreateTestOptions(OutputKind.WindowsRuntimeApplication, OptimizationLevel.Debug)); 3756var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3761compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3766compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3771compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithPlatform(Platform.X86)); 3776compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithPlatform(Platform.X86)); 3781compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithPlatform(Platform.X86)); 3785compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithPlatform(Platform.X64)); 3790compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithPlatform(Platform.X64)); 3795compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithPlatform(Platform.X64)); 3810var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4013var compilation = CreateCompilation("class A { }", options: TestOptions.ReleaseDll, assemblyName: name); 4048options: TestOptions.ReleaseModule.WithModuleName(name + extension)); 4079var compilation = CreateCompilation("class A { }", options: TestOptions.ReleaseDll, assemblyName: name); 4110var compilation = CreateCompilation("class A { }", options: TestOptions.ReleaseDll, assemblyName: name); 4141var compilation = CreateCompilation("class A { }", options: TestOptions.ReleaseDll, assemblyName: name); 4172var compilation = CreateCompilation("class A { }", options: TestOptions.ReleaseDll, assemblyName: name); 4210var compilation = CreateCompilation(source, options: TestOptions.ReleaseModule, assemblyName: "ContentType"); 4230var compilation = CreateCompilation("class A { }", options: TestOptions.ReleaseDll); 4253var compilation = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 4288var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule)); 4317var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4364var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4425var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4491var compilation = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 4548var compilation = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 4610var c1 = CreateCompilation(p1, options: TestOptions.ReleaseDll, assemblyName: Guid.NewGuid().ToString()); 4620var comp = CreateCompilation(source1, options: TestOptions.ReleaseModule); 4622CompileAndVerify(source2, references: new[] { metadataRef }, options: TestOptions.ReleaseModule, verify: Verification.Fails); 4659var comp = CreateCompilation(text, options: TestOptions.ReleaseExe).VerifyDiagnostics( 4672var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 4678var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.Itanium), assemblyName: "PlatformMismatch"); 4692parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.AnyCpu)); 4698parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.AnyCpu)); 4704parseOptions: parseOptions, options: TestOptions.ReleaseModule.WithPlatform(Platform.AnyCpu)); 4710parseOptions: parseOptions, options: TestOptions.ReleaseModule.WithPlatform(Platform.AnyCpu)); 4716parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.X86)); 4724parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.X86)); 4732parseOptions: parseOptions, options: TestOptions.ReleaseModule.WithPlatform(Platform.X86)); 4740parseOptions: parseOptions, options: TestOptions.ReleaseModule.WithPlatform(Platform.X86)); 4757var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 4763var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options: TestOptions.ReleaseModule.WithPlatform(Platform.Itanium), assemblyName: "PlatformMismatch"); 4776parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.AnyCpu)); 4784parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.X86)); 4792parseOptions: parseOptions, options: TestOptions.ReleaseModule.WithPlatform(Platform.AnyCpu)); 4802var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 4808var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.X86), assemblyName: "PlatformMismatch"); 4823parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.Itanium)); 4831parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.Itanium)); 4839parseOptions: parseOptions, options: TestOptions.ReleaseModule.WithPlatform(Platform.Itanium)); 4847parseOptions: parseOptions, options: TestOptions.ReleaseModule.WithPlatform(Platform.Itanium)); 4858var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 4864var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options: TestOptions.ReleaseModule.WithPlatform(Platform.X86), assemblyName: "PlatformMismatch"); 4878parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.Itanium)); 4889var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 4895var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.AnyCpu), assemblyName: "PlatformMismatch"); 4910parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.Itanium)); 4916parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.Itanium)); 4922parseOptions: parseOptions, options: TestOptions.ReleaseModule.WithPlatform(Platform.Itanium)); 4928parseOptions: parseOptions, options: TestOptions.ReleaseModule.WithPlatform(Platform.Itanium)); 4937var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 4943var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options: TestOptions.ReleaseModule.WithPlatform(Platform.AnyCpu), assemblyName: "PlatformMismatch"); 4957parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.Itanium)); 4966var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 4972var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.Itanium), assemblyName: "PlatformMismatch"); 4987parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.Itanium)); 4993parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.Itanium)); 4999parseOptions: parseOptions, options: TestOptions.ReleaseModule.WithPlatform(Platform.Itanium)); 5005parseOptions: parseOptions, options: TestOptions.ReleaseModule.WithPlatform(Platform.Itanium)); 5014var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 5020var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options: TestOptions.ReleaseModule.WithPlatform(Platform.Itanium), assemblyName: "PlatformMismatch"); 5035parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.Itanium)); 5043var comp = CreateEmptyCompilation("", new[] { TestReferences.SymbolsTests.netModule.x64COFF }, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 5069var compilation = CreateCompilation(source, null, TestOptions.ReleaseDll); 5141var compilation = CreateCompilation(source, null, TestOptions.ReleaseDll); 5206var compilation = CreateCompilation(source, null, TestOptions.DebugDll); 5262var comp1 = CreateCompilation(s1, options: TestOptions.ReleaseModule); 5266var comp2 = CreateCompilation(s2, options: TestOptions.ReleaseModule, references: new[] { ref1 }); 5270var comp3 = CreateCompilation(s3, options: TestOptions.ReleaseExe, references: new[] { ref1, ref2 }); 5309var comp1 = CreateCompilation(s1, options: TestOptions.ReleaseModule.WithModuleName("A")); 5313var comp2 = CreateCompilation(s2, options: TestOptions.ReleaseModule.WithModuleName("B"), references: new[] { ref1 }); 5317var comp3 = CreateCompilation(s3, options: TestOptions.ReleaseExe.WithModuleName("C"), references: new[] { ref1, ref2 }); 5354var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll); 5416var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll, references: new[] { CSharpRef }); 5549var modRef = CreateCompilation("public class A { }", options: TestOptions.ReleaseModule, assemblyName: "refMod").EmitToImageReference(); 5571var options = TestOptions.DebugDll.WithGeneralDiagnosticOption(ReportDiagnostic.Error); 5579var options = TestOptions.DebugDll.WithSpecificDiagnosticOptions("CS0169", ReportDiagnostic.Error); 5616var options = TestOptions.DebugDll.WithGeneralDiagnosticOption(ReportDiagnostic.Error); 5624var options = TestOptions.DebugDll.WithSpecificDiagnosticOptions("CS0612", ReportDiagnostic.Error);
Emit\CovariantReturnTests.cs (4)
247parseOptions: TestOptions.WithCovariantReturns, 278var compilation = CreateCovariantCompilation(source, options: TestOptions.DebugExe); 313var compilation = CreateCovariantCompilation(source, options: TestOptions.DebugExe); 546var compilation = CreateCovariantCompilation(program, options: TestOptions.DebugExe, references: new[] { ref0, ref1b, ref2 });
Emit\DesktopStrongNameProviderTests.cs (2)
95var options = TestOptions 112var options = TestOptions
Emit\DeterministicTests.cs (9)
31return CompiledGuid(source, assemblyName, options: debug ? TestOptions.DebugExe : TestOptions.ReleaseExe, platform: platform); 53var options = (optimize ? TestOptions.ReleaseExe : TestOptions.DebugExe).WithPlatform(platform).WithDeterministic(true); 77options: TestOptions.DebugDll.WithDeterministic(true)); 82options: TestOptions.DebugDll.WithDeterministic(false)); 175var mvid1 = CompiledGuid(source.Replace("CHANGE", ""), "X1", TestOptions.DebugDll, emitRefAssembly); 176var mvid2 = CompiledGuid(source.Replace("CHANGE", "private void M() { }"), "X1", TestOptions.DebugDll, emitRefAssembly); 268TestOptions.DebugExe.WithDeterministic(true));
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.cs (1)
1022options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
Emit\DynamicAnalysis\DynamicInstrumentationTests.cs (48)
678CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput, options: TestOptions.ReleaseExe); 682verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput, options: TestOptions.DebugExe); 744CompilationVerifier verifier = CompileAndVerify(source, expectedOutput: checker.ExpectedOutput, options: TestOptions.ReleaseExe); 748verifier = CompileAndVerify(source, expectedOutput: checker.ExpectedOutput, options: TestOptions.DebugExe); 854CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput, options: TestOptions.ReleaseExe); 856verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput, options: TestOptions.DebugExe); 948CompilationVerifier verifier = CompileAndVerify(source, expectedOutput: checker.ExpectedOutput, options: TestOptions.ReleaseExe); 952verifier = CompileAndVerify(source, expectedOutput: checker.ExpectedOutput, options: TestOptions.DebugExe); 1029CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput, options: TestOptions.ReleaseExe); 1031verifier = CompileAndVerify(source + InstrumentationHelperSource, expectedOutput: expectedOutput, options: TestOptions.DebugExe); 1225CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.UnsafeDebugExe, expectedOutput: expectedOutput, verify: Verification.Fails); 2478var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2499var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2519var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2538var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2568options: TestOptions.ReleaseDll, 2569parseOptions: TestOptions.Regular9); 2598options: TestOptions.ReleaseDll, 2599parseOptions: TestOptions.Regular9); 2645options: TestOptions.ReleaseDll, 2646parseOptions: TestOptions.Regular9); 2677var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2711var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2749var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 2794var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2863var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2893var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2923options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular9); 2958var c = CreateCompilationWithMscorlib40(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2994var c = CreateCompilationWithMscorlib40(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 3097var verifier = CompileAndVerify(source, expectedOutput, options: TestOptions.ReleaseExe); 3173verifier = CompileAndVerify(source, expectedOutput, options: TestOptions.DebugExe); 3243var verifier = CompileAndVerify(source, expectedOutput, options: TestOptions.ReleaseExe); 3247verifier = CompileAndVerify(source, expectedOutput, options: TestOptions.DebugExe); 3369var verifier = CompileAndVerify(sources, expectedOutput, options: TestOptions.ReleaseExe); 3372verifier = CompileAndVerify(sources, expectedOutput, options: TestOptions.DebugExe); 3495var verifier = CompileAndVerify(sources, expectedOutput, options: TestOptions.ReleaseExe); 3498verifier = CompileAndVerify(sources, expectedOutput, options: TestOptions.DebugExe); 3569var verifier = CompileAndVerify(source, expectedOutput, options: TestOptions.ReleaseExe); 3572verifier = CompileAndVerify(source, expectedOutput, options: TestOptions.DebugExe); 3618var verifier = CompileAndVerify(source, expectedOutput, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 3622verifier = CompileAndVerify(source, expectedOutput, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 3646options: (options ?? TestOptions.ReleaseExe).WithDeterministic(true), 3661var compilation = CreateCompilation(trees.ToArray(), options: (options ?? TestOptions.ReleaseExe).WithDeterministic(true));
Emit\EmitCustomModifiers.cs (5)
45options: TestOptions.UnsafeReleaseExe); 600var comp = CreateCompilationWithILAndMscorlib40(source, il, TargetFramework.Mscorlib40, options: TestOptions.ReleaseExe); 656var comp = CreateCompilationWithILAndMscorlib40(source, il, TargetFramework.Mscorlib40, options: TestOptions.ReleaseExe); 707var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.UnsafeReleaseExe); 741var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.UnsafeReleaseExe);
Emit\EmitErrorTests.cs (2)
264var netModule = CreateCompilation(moduleSource, options: TestOptions.ReleaseModule, assemblyName: "ModuleNameMismatch"); 306var compilation1 = CreateCompilation(builder.ToString(), null, TestOptions.DebugDll.WithSpecificDiagnosticOptions(warnOpts));
Emit\EmitMetadataTests.cs (28)
86CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), symbolValidator: module => 120}, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 230options: TestOptions.DebugDll.WithOutputKind(OutputKind.NetModule)); 421CompileAndVerify(source, options: TestOptions.ReleaseDll, symbolValidator: module => 529CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll, sourceSymbolValidator: validator(true), symbolValidator: validator(false)); 579CompileAndVerify(source, sourceSymbolValidator: validator(true), symbolValidator: validator(false), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 673CompileAndVerify(source: source, sourceSymbolValidator: validator(true), symbolValidator: validator(false), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 741CompileAndVerify(source: source, sourceSymbolValidator: validator(true), symbolValidator: validator(false), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 888CompileAndVerify(source: source, sourceSymbolValidator: validator(true), symbolValidator: validator(false), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 916}", options: TestOptions.DebugExe); 940}", parseOptions: TestOptions.Regular, 941options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.Internal)); 1010}", parseOptions: TestOptions.Regular, 1011options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.Internal)); 1288options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1543var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 2222var options = TestOptions.ReleaseExe.WithPlatform(platform); 2230var syntax = SyntaxFactory.ParseSyntaxTree(@"class C {}", TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 2234options: TestOptions.ReleaseDll.WithDeterministic(true), 2419var syntax = SyntaxFactory.ParseSyntaxTree(@"class C { static void Main() { } }", TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 2423options: TestOptions.DebugExe.WithPlatform(Platform.X64).WithDeterministic(true), 2597options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), 2642CompileAndVerify(text, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 2714options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 2810}", new[] { reference }, TestOptions.ReleaseExe); 2871options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), 2923options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All),
Emit\EntryPointTests.cs (69)
18return CreateCompilation(source, options: TestOptions.ReleaseExe.WithWarningLevel(5).WithMainTypeName(mainTypeName), parseOptions: parseOptions); 49var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 125var compilation = CompileConsoleApp(source, parseOptions: TestOptions.Regular7_1); 144var compilation = CompileConsoleApp(source, parseOptions: TestOptions.Regular7); 283Parse(csx, options: TestOptions.Script), 284Parse(cs, options: TestOptions.Regular) 286options: TestOptions.ReleaseExe); 374SyntaxFactory.ParseSyntaxTree(csx, options: TestOptions.Script), 376options: TestOptions.ReleaseExe); 395SyntaxFactory.ParseSyntaxTree(csx, options: TestOptions.Script), 397options: TestOptions.ReleaseExe); 410var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("N.M")); 428var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("C.D")); 446var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("C.D")); 481var compilation = CreateCompilation(cs, options: TestOptions.ReleaseExe); 494compilation = CreateCompilation(cs, options: TestOptions.ReleaseExe.WithMainTypeName("C")); 502compilation = CreateCompilation(cs, options: TestOptions.ReleaseExe.WithMainTypeName("D.DD")); 530CompileAndVerify(source, options: TestOptions.ReleaseExe.WithMainTypeName("A.B.C"), expectedOutput: "1"); 554CompileAndVerify(source, options: TestOptions.ReleaseExe.WithMainTypeName("A.B.C"), expectedOutput: "1"); 580CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("A.B.C")).VerifyDiagnostics( 602var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("C")); 624var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("C")); 647var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("C")); 675var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("C")); 696var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("C")); 726new[] { SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.Script) }, 727options: TestOptions.ReleaseExe); 749SyntaxFactory.ParseSyntaxTree(csx, options: TestOptions.Script), 750SyntaxFactory.ParseSyntaxTree(cs, options: TestOptions.Regular) 752options: TestOptions.ReleaseExe); 783SyntaxFactory.ParseSyntaxTree(csx, options: TestOptions.Script), 784SyntaxFactory.ParseSyntaxTree(cs, options: TestOptions.Regular) 786options: TestOptions.ReleaseExe); 812var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("C")); 815compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("D")); 831options: TestOptions.ReleaseExe.WithMainTypeName("D")); 849options: TestOptions.ReleaseExe.WithMainTypeName("C")); 857options: TestOptions.ReleaseExe.WithMainTypeName("D")); 865options: TestOptions.ReleaseExe.WithMainTypeName("I")); 895var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("C")); 900compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("D")); 907compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("E")); 930SyntaxFactory.ParseSyntaxTree(csx, options: TestOptions.Script), 931SyntaxFactory.ParseSyntaxTree(cs, options: TestOptions.Regular), 933options: TestOptions.ReleaseExe.WithMainTypeName("C")); 1160CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe).VerifyDiagnostics(// (8,24): warning CS0028: 'Extension.Main(B, string[])' has the wrong signature to be an entry point 1180CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe).VerifyDiagnostics(// (8,23): warning CS0028: 'Extension.Main(B)' has the wrong signature to be an entry point 1197CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe).VerifyDiagnostics(// (5,23): warning CS0028: 'Extension.Main(string)' has the wrong signature to be an entry point 1389CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("D")).VerifyDiagnostics( 1402CreateCompilation(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 1407CreateCompilation(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 1412CreateCompilation(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 1417CreateCompilation(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 1422CreateCompilation(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 1427CreateCompilation(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 1441CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName(string.Empty)).VerifyDiagnostics( 1455CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("D")).VerifyDiagnostics( 1470CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("d")).VerifyDiagnostics( 1488CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe.WithMainTypeName("B")).VerifyDiagnostics( 1493CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe.WithMainTypeName("extension")).VerifyDiagnostics( 1511CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("Main")).VerifyDiagnostics( 1533CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("Program")).VerifyDiagnostics(); 1552options: TestOptions.ReleaseExe). 1570var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 1573var netModule = CreateCompilation(source, options: TestOptions.ReleaseModule); 1577options: TestOptions.ReleaseExe, 1596var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1617var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1637var compilation = CreateCompilation(source, options: TestOptions.DebugExe);
Emit\InAttributeModifierTests.cs (10)
4200CompileAndVerify(source: userCode, expectedOutput: "5", references: new[] { testRef.ToMetadataReference() }, options: TestOptions.ReleaseExe, symbolValidator: validator); 4201CompileAndVerify(source: userCode, expectedOutput: "5", references: new[] { testRef.EmitToImageReference() }, options: TestOptions.ReleaseExe, symbolValidator: validator); 4247CompileAndVerify(source: userCode, expectedOutput: "5", references: new[] { testRef.ToMetadataReference() }, options: TestOptions.ReleaseExe, symbolValidator: validator); 4248CompileAndVerify(source: userCode, expectedOutput: "5", references: new[] { testRef.EmitToImageReference() }, options: TestOptions.ReleaseExe, symbolValidator: validator); 4296CompileAndVerify(source: userCode, expectedOutput: "5", references: new[] { testRef.ToMetadataReference() }, options: TestOptions.ReleaseExe, symbolValidator: validator); 4297CompileAndVerify(source: userCode, expectedOutput: "5", references: new[] { testRef.EmitToImageReference() }, options: TestOptions.ReleaseExe, symbolValidator: validator); 4348CompileAndVerify(source: userCode, expectedOutput: "5", references: new[] { testRef.ToMetadataReference() }, options: TestOptions.ReleaseExe, symbolValidator: validator); 4349CompileAndVerify(source: userCode, expectedOutput: "5", references: new[] { testRef.EmitToImageReference() }, options: TestOptions.ReleaseExe, symbolValidator: validator); 4401CompileAndVerify(source: userCode, expectedOutput: "5", references: new[] { testRef.ToMetadataReference() }, options: TestOptions.ReleaseExe, symbolValidator: validator); 4402CompileAndVerify(source: userCode, expectedOutput: "5", references: new[] { testRef.EmitToImageReference() }, options: TestOptions.ReleaseExe, symbolValidator: validator);
Emit\OptionalArgumentsTests.cs (4)
108var compilation = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource, TargetFramework.Mscorlib461, options: TestOptions.DebugExe); 144var comp1 = CreateCompilation(source1, options: TestOptions.DebugDll); 176options: TestOptions.DebugExe); 185options: TestOptions.DebugExe);
Emit\ResourceTests.cs (4)
42var c1 = CreateCompilation(source, assemblyName: "Win32VerNoAttrs", options: TestOptions.ReleaseExe); 132var c1 = CreateCompilation(source, assemblyName: "Win32WithCoff", options: TestOptions.ReleaseDll); 290var c1 = CSharpCompilation.Create("goo", references: new[] { MscorlibRef }, options: TestOptions.ReleaseDll); 832var c1 = CreateCompilation(source, assemblyName: "Win32VerAttrs", options: TestOptions.ReleaseExe);
PrivateProtected.cs (36)
38CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 77var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 100var baseCompilation = CreateCompilation(source1, parseOptions: TestOptions.Regular7_2, 101options: TestOptions.SigningReleaseDll, 137CreateCompilation(source2, parseOptions: TestOptions.Regular7_2, 140options: TestOptions.SigningReleaseDll) 188CreateCompilation(source2, parseOptions: TestOptions.Regular7_2, 191options: TestOptions.SigningReleaseDll) 240CreateCompilation(source2, parseOptions: TestOptions.Regular7_2, 243options: TestOptions.SigningReleaseDll) 246CreateCompilation(source2, parseOptions: TestOptions.Regular7_2, 249options: TestOptions.SigningReleaseDll) 274CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 294CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 318CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 360CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 386CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 400CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 419CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 451CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 468CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 498CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 549CreateCompilation(source, parseOptions: TestOptions.Regular7_1) 579CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 596parseOptions: TestOptions.Regular7_2, 613CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 625CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 658CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 681CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 695var compilation1 = CreateCompilation(source1, parseOptions: TestOptions.Regular7_2); 704CreateCompilation(source2, parseOptions: TestOptions.Regular7_2, 722var compilation1 = CreateCompilation(source1, parseOptions: TestOptions.Regular7_2); 730CreateCompilation(source2, parseOptions: TestOptions.Regular7_2, 748var compilation1 = CreateCompilation(source1, parseOptions: TestOptions.Regular7_2); 757CreateCompilation(source2, parseOptions: TestOptions.Regular7_2, 786CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular7_2)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1305)
CodeGen\CodeGenCallTests.cs (357)
78var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 117CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 176var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 192CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 251var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 291CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 350var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 366CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 432var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 626CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 692var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 776CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 844var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 1118CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 1186var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 1310CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 1380var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 1600CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 1668var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 1773CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 1855options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 1934options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 2016options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 2052options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 2134options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 2214options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 2296options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 2332options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 2391var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 2439CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 2489CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 2491CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 2550var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 2599CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 2649CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 2651CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 2717var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 2919CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 2976CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 2978CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 3046var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 3328CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 3386CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 3388CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 3456var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 3510CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 3579var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 3599CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 3668var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 3722CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 3791var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 3811CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 3887var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 4102CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 4178var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 4271CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 4349var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 4644CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 4722var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 4855CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 4924var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 5000CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 5069var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 5099CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 5168var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 5245CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 5314var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 5344CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 5420var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 5652CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 5728var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 5824CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 5902var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 6214CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 6292var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 6428CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 6497var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 6569CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 6638var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 6666CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 6735var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 6808CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 6877var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 6905CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 6981var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 7197CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 7273var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 7364CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 7442var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 7738CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 7816var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 7947CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 8016var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 8088CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 8157var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 8185CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 8254var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 8327CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 8396var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 8424CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 8500var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 8722CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 8798var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 8892CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 8970var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 9272CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 9350var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 9484CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 9558var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 9634CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 9705var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 9735CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 9815var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 10069CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 10147var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 10263CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 10337var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 10413CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 10484var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 10514CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 10594var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 10854CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 10932var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 11051CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 11120var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 11220CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 11289var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 11331CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 11400var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 11501CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 11570var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 11612CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 11688var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 11932CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 12008var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 12113CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 12191var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 12515CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 12593var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 12738CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 12807var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 12865CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 12934var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 12959CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 13028var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 13086CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 13155var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 13180CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 13256var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 13475CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 13551var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 13646CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 13715var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 13789CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 13858var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 13887CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 13956var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 14031CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 14100var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 14129CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 14205var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 14453CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 14529var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 14633CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 14709var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 14929CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 15005var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 15098CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 15174var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 15495CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 15571var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 15711CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 15780var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 15874CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 15943var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 15982CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 16051var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 16146CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 16215var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 16254CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 16330var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 16568CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 16644var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 16746CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 16815var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 16917CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 16986var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 17029CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 17098var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 17201CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 17270var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 17313CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 17389var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 17641CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 17717var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 17826CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 17902var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 18150CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 18226var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 18333CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 18409var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 18739CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 18815var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 18963CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 19030var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 19084CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 19151var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 19170CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 19237var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 19292CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 19359var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 19378CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 19452var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 19646CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 19720var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 19804CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 19883var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 19950CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 20029var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 20053CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 20132var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 20200CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 20279var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 20303CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 20389var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 20603CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 20689var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 20779CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 20860var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 20943CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 21024var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 21059CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 21140var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 21224CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 21305var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 21340CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 21428var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 21668CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 21756var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 21855CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 21936var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 22007CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 22088var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 22120CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 22201var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 22273CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 22354var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 22386CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 22474var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 22715CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 22803var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 22910CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 22991var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 23076CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 23157var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 23193CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 23274var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 23360CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 23441var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 23477CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 23565var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 23832CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 23920var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 24032CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 24120var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 24364CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 24452var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 24553CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 24641var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 24986CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 25074var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 25222CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 25303var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 25414CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 25495var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 25544CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 25625var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 25737CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 25818var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 25867CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 25955var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 26223CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 26311var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 26424CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 26505var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 26610CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 26691var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 26737CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 26818var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 26924CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 27005var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 27051CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 27139var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 27405CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 27493var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 27605CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 27686var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 27799CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 27880var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 27930CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 28011var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 28125CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 28206var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 28256CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 28344var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 28620CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 28708var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 28825CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 28913var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 29185CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 29273var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 29388CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 29476var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 29824CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 29912var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 30065CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 30144var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 30213CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 30292var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 30320CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 30399var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 30469CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 30548var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 30576CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 30662var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 30892CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 30978var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 31076CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 31148var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 31217CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 31289var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 31317CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 31389var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 31459CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 31531var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 31559CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 31638var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 31854CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 31933var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 32024CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 32096var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 32199CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 32271var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 32316CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 32388var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 32492CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 32564var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 32609CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 32688var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 32944CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 33023var verifier = CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 33134CompileAndVerify(source, targetFramework: TargetFramework.NetLatest, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 33190var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 33296var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 33403CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: expectedOutput).VerifyDiagnostics(); 33463var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, verify: Verification.Fails, expectedOutput: expectedOutput).VerifyDiagnostics(); 33506CompileAndVerify(source, options: TestOptions.DebugExe, verify: Verification.Fails, expectedOutput: expectedOutput).VerifyDiagnostics();
CodeGen\CodeGenLengthBasedSwitchTests.cs (16)
267comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 505comp = CreateCompilation(source, options: TestOptions.DebugExe); 1034comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 1472comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 1795comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 2430comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 2864comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 7761comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 9184comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 9581comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 10342comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 11643comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 12647comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 13108comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 13585comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 14020comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch());
CodeGen\CodeGenMethodGroupConversionCachingTests.cs (15)
519var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular10, symbolValidator: VerifyNoCacheContainersIn("Program")); 4686CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll).VerifyIL("C.Test", @" 4722CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll).VerifyIL("C<T>.Test", @" 4762CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll).VerifyIL("C.Test<T>", @" 5621var comp = CompileAndVerify(source, parseOptions: TestOptions.Regular11); 5704var verifier = CompileAndVerifyWithWinRt(source, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseWinMD); 5821var verifier = CompileAndVerifyWithWinRt(source, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseWinMD); 5902CompileAndVerify(text, parseOptions: TestOptions.Regular11, expectedOutput: PASS).VerifyIL("Test.Main", @" 5961", parseOptions: TestOptions.Regular11, expectedOutput: @" 6026var comp = CreateCompilation(source, parseOptions: TestOptions.Regular11, options: TestOptions.DebugExe); 6169var compilation = CreateCompilationWithIL(source, ilSource, options: TestOptions.ReleaseExe); 6325var compilation = CreateCompilationWithIL(source, ilSource, options: TestOptions.DebugExe);
CodeGen\CodeGenSpanBasedStringConcatTests.cs (38)
329var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 382var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 437var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 481var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 535var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 586var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1066var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1176var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1356var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1467var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1533var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1598var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1659var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1739var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1785var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1848var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1931var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 2056var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 2117var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 2707var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 2895var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 3171var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 3356var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 3431var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 3507var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 3580var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 3701var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 3749var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 3823var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 3953var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 4285var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 4338var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 4471var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 4561var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 4685var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 4754var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 5479var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 5669var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80);
CodeGen\IndexAndRangeTests.cs (24)
57var comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 201comp = CreateCompilationWithIndex(source, parseOptions: TestOptions.Regular12); 233var comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 237comp = CreateCompilationWithIndex(source, parseOptions: TestOptions.Regular12); 275var comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 279comp = CreateCompilationWithIndex(source, parseOptions: TestOptions.Regular12); 568var comp = CreateCompilationWithIndex(source, options: TestOptions.ReleaseExe); 823var comp = CreateCompilationWithIndex(source, options: TestOptions.ReleaseExe); 1567var comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 1721comp = CreateCompilationWithIndex(source, parseOptions: TestOptions.Regular12); 1759var comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 1763comp = CreateCompilationWithIndex(source, parseOptions: TestOptions.Regular12); 1957var comp = CreateCompilationWithIndex(source, parseOptions: TestOptions.Regular12); 1976comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2197var comp = CreateCompilationWithIndexAndRange(source, parseOptions: useCsharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2485comp = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.Regular12); 3620var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe);
Emit\EditAndContinue\AssemblyReferencesTests.cs (16)
30TestOptions.ReleaseDll.WithCryptoPublicKey(TestResources.TestKeys.PublicKey_ce65828c82a341f2); 66var compilation0 = CreateEmptyCompilation(src1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), references: references); 136var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 202var lib0 = CreateCompilation(srcLib, assemblyName: "Lib", options: TestOptions.DebugDll); 205var lib1 = CreateCompilation(srcLib, assemblyName: "Lib", options: TestOptions.DebugDll); 208var lib2 = CreateCompilation(srcLib, assemblyName: "Lib", options: TestOptions.DebugDll); 211var compilation0 = CreateEmptyCompilation(src0, new[] { MscorlibRef, lib0.ToMetadataReference() }, assemblyName: "C", options: TestOptions.DebugDll); 301var lib0 = CreateCompilation(srcLib, assemblyName: "Lib", options: TestOptions.DebugDll); 306var lib1 = CreateCompilation(srcLib, assemblyName: "Lib", options: TestOptions.DebugDll); 310var lib2 = CreateCompilation(srcLib, assemblyName: "Lib", options: TestOptions.DebugDll); 315var compilation0 = CreateEmptyCompilation(src0, new[] { MscorlibRef, lib0.ToMetadataReference() }, assemblyName: "C", options: TestOptions.DebugDll); 386var lib0 = CreateCompilation(srcLib, assemblyName: "Lib", options: TestOptions.DebugDll); 390var lib1 = CreateCompilation(srcLib, assemblyName: "Lib", options: TestOptions.DebugDll); 394var lib2 = CreateCompilation(srcLib, assemblyName: "Lib", options: TestOptions.DebugDll); 398var compilation0 = CreateEmptyCompilation(src0, new[] { MscorlibRef, lib0.EmitToImageReference() }, assemblyName: "C", options: TestOptions.DebugDll); 482var compilation0 = CreateEmptyCompilation(src0, new[] { MscorlibRef, ref01, ref11 }, assemblyName: "C", options: TestOptions.DebugDll);
Emit\EditAndContinue\EditAndContinueClosureTests.cs (11)
2463var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All), assemblyName: "A"); 2580var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All), assemblyName: "A"); 2713var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All), assemblyName: "A"); 3843var source0 = MarkedSource(template.Replace("<<VALUE>>", "0"), options: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 3844var source1 = MarkedSource(template.Replace("<<VALUE>>", "1"), options: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 3845var source2 = MarkedSource(template.Replace("<<VALUE>>", "2"), options: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 4626var compilation0 = CreateCompilation(source0.Tree, options: TestOptions.DebugExe); 4685var compilation0 = CreateCompilation(source0.Tree, options: TestOptions.DebugDll); 4733var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: TargetFramework.NetStandard20); 5631using var _ = new EditAndContinueTest(options: TestOptions.DebugExe)
Emit\EditAndContinue\EditAndContinueDelegateCacheTests.cs (5)
45var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 109var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 173var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 237var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 301var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
Emit\EditAndContinue\EditAndContinueStateMachineTests.cs (15)
46var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 47var compilation0 = CreateCompilation(Parse(source0, "a.cs", parseOptions), options: TestOptions.DebugDll); 228var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 345var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 447var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 520var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 571var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 7993var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 8685var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All), assemblyName: "A"); 8768var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All), assemblyName: "A");
Emit\EditAndContinue\EditAndContinueTest.cs (2)
27private readonly CSharpCompilationOptions _compilationOptions = (options ?? TestOptions.DebugDll).WithConcurrentBuild(false); 28private readonly CSharpParseOptions _parseOptions = parseOptions ?? TestOptions.Regular.WithNoRefSafetyRulesAttribute();
Emit\EditAndContinue\EditAndContinueTestBase.cs (2)
33internal static readonly CSharpCompilationOptions ComSafeDebugDll = TestOptions.DebugDll.WithConcurrentBuild(false); 50parser: s => Parse(s, fileName, options ?? TestOptions.Regular.WithNoRefSafetyRulesAttribute()),
Emit\EditAndContinue\EditAndContinueTests.cs (143)
259var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 308var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 500var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe); 561var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 794var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe, targetFramework: TargetFramework.NetStandard20); 856using var _ = new EditAndContinueTest(options: TestOptions.DebugDll, targetFramework: TargetFramework.NetStandard20) 1005using var _ = new EditAndContinueTest(options: TestOptions.DebugDll, targetFramework: TargetFramework.NetStandard20) 1137var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe, targetFramework: TargetFramework.NetStandard20); 1260var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe, targetFramework: TargetFramework.NetStandard20); 2437using var _ = new EditAndContinueTest(options: TestOptions.DebugExe) 2540using var _ = new EditAndContinueTest(options: TestOptions.DebugExe) 2633using var _ = new EditAndContinueTest(options: TestOptions.DebugDll) 2789using var _ = new EditAndContinueTest(options: TestOptions.DebugDll) 2838using var _ = new EditAndContinueTest(options: TestOptions.DebugDll) 2895var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe, targetFramework: TargetFramework.NetStandard20); 2979var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe, targetFramework: TargetFramework.NetStandard20); 3106var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: TargetFramework.NetStandard20); 3434var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 3577var compilation0 = CreateCompilation(source0, references: new[] { RefSafetyRulesAttributeLib }, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: ComSafeDebugDll); 3829var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 3891var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 3956var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 5421var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 5986var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: TargetFramework.NetStandard20); 6109var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: TargetFramework.NetStandard20); 6442var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: TargetFramework.NetStandard20); 6527var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: TargetFramework.NetStandard20); 6608var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 6718var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 6773var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 6889var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: ComSafeDebugDll); 6945var compilation0 = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 7015var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 7092var compilation0 = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 7174var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: TargetFramework.Net50); 7353var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 7513var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 7577var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 7633var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 7634var compilation0 = CreateCompilation(Parse(source0, "a.cs", parseOptions), options: TestOptions.DebugDll); 7741var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 7799var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 7840var compilation0 = CreateCompilation(parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, source: 8026var options = TestOptions.UnsafeDebugDll; 8027var compilation0 = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: options, references: new[] { CSharpRef }); 8409var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: ComSafeDebugDll); 8502var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe); 8605var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 8691var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 8822var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 9035var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 9124var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 9172var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 9367var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 9702var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 9812var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: TargetFramework.NetStandard20); 10097var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 10214var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 10879var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 10949var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 11022var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 11089var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 11213var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: TargetFramework.NetStandard20); 11270var compilation0 = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugDll); 11336var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll, references: new[] { CSharpRef }); 11722var compilationPIA = CreateCompilation(sourcePIA, options: TestOptions.DebugDll); 11775var compilationPIA = CreateCompilation(sourcePIA, options: TestOptions.DebugDll); 11861var compilationPIA = CreateCompilation(sourcePIA, options: TestOptions.DebugDll); 11863var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular10, options: TestOptions.DebugDll, references: new MetadataReference[] { referencePIA, CSharpRef }); 11949var compilationPIA = CreateCompilation(sourcePIA, options: TestOptions.DebugDll); 11951var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll, references: new MetadataReference[] { referencePIA, CSharpRef }); 12093var compilation0 = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: TargetFramework.NetStandard20); 12200var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: TargetFramework.NetStandard20); 12272var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 12357var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 12405var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 12446var compilation0 = CreateCompilation(new[] { sourceA0, sourceB0 }, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 12492var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: TargetFramework.NetStandard20); 12557var compilationA0 = CreateCompilation(sourceA0, options: TestOptions.DebugDll, assemblyName: "LibA"); 12559var compilationB0 = CreateCompilation(sourceB0, new[] { compilationA0.ToMetadataReference() }, options: TestOptions.DebugDll, assemblyName: "LibB"); 12560var compilationB1 = CreateCompilation(sourceB1, new[] { compilationA1.ToMetadataReference() }, options: TestOptions.DebugDll, assemblyName: "LibB"); 12622var compilationA = CreateCompilation(sourceA, options: TestOptions.DebugDll, assemblyName: "AssemblyA"); 12625var compilationB0 = CreateCompilation(sourceB0, new[] { aRef }, options: TestOptions.DebugDll, assemblyName: "AssemblyB"); 12695parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), 12742var compilation0 = CreateCompilation(String.Format(source, 1), options: TestOptions.DebugDll); 12818var compilation0 = CreateCompilation(source0.Tree, options: TestOptions.DebugDll, assemblyName: "PdbReadingErrorsAssembly"); 15672using var _ = new EditAndContinueTest(options: TestOptions.DebugDll, targetFramework: TargetFramework.NetStandard20) 15756using var _ = new EditAndContinueTest(options: TestOptions.DebugDll, targetFramework: TargetFramework.NetLatest, verification: Verification.Skipped) 15897using var _ = new EditAndContinueTest(options: TestOptions.DebugDll, targetFramework: TargetFramework.NetStandard20, verification: Verification.Skipped) 15991var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe);
Emit\EditAndContinue\LocalSlotMappingTests.cs (45)
47var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 340var debug = CreateCompilation(source, options: TestOptions.DebugDll); 341var release = CreateCompilation(source, options: TestOptions.ReleaseDll); 426var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 530var compilation0 = CreateCompilation(source0.Tree, options: TestOptions.DebugDll); 642var compilation0 = CreateCompilation(source0.Tree, options: TestOptions.DebugDll); 752var compilation0 = CreateCompilationWithTasksExtensions(new[] { source0.Tree, asyncStreamsTree }, options: TestOptions.DebugDll); 843var compilation0 = CreateCompilationWithTasksExtensions(new[] { source0.Tree, asyncStreamsTree }, options: TestOptions.DebugDll); 1147var compilation0 = CreateEmptyCompilation(source, options: TestOptions.DebugDll, references: new[] { MscorlibRef_v20 }); 1148var compilation1 = CreateEmptyCompilation(source, options: TestOptions.DebugDll, references: new[] { MscorlibRef_v20 }); 1208var compilation0 = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1316var compilation0 = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1480var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 1663var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 1848var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 2008var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 2040options: TestOptions.DebugDll, 2148var compilation0 = CreateCompilation(source0.Tree, options: TestOptions.DebugDll); 2194var compilation1 = CreateCompilation(source1.Tree, options: TestOptions.DebugDll); 2341var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 2418var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll); 2598var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 2736var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 2881var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 2990var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 3117var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 3331var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 3438var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 3551var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 3659var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 3751var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 3970var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4079var compilation0 = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll); 4233var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4280var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4336var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4391var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4443var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4499var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4568var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4648var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4741var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4802var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4862var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4951var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll);
Emit\EditAndContinue\SymbolMatcherTests.cs (61)
30var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 77var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 140var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 166var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 190var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll, references: new[] { metadataRef }); 231var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 276var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll).WithSource(source1); 304var lib0 = CreateCompilation(libSource, options: TestOptions.DebugDll, assemblyName: "Lib"); 305var lib1 = CreateCompilation(libSource, options: TestOptions.DebugDll, assemblyName: "Lib"); 307var compilation0 = CreateCompilation(source, new[] { lib0.ToMetadataReference() }, options: TestOptions.DebugDll); 341var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 372var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 404var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 439var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 490var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll); 545var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 561var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll); 600var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 624var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 648var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 672var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 696var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 720var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 744var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 768var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 792var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 816var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 854var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 902var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 943var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 948var compilation1 = CreateCompilation(source, options: TestOptions.DebugDll); 983var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1008var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1033var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1056var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1100var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1115var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll); 1162var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 1211var compilation0 = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1245var compilation0 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1296var compilation0 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1319var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1341var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1364var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1385var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1411var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1469var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll); 1520var compilation0 = CreateCompilation(source0, options: TestOptions.UnsafeDebugDll); 1521var compilation1 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll); 1580var compilation0 = CreateCompilation(source0, options: TestOptions.UnsafeDebugDll); 1581var compilation1 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll); 1650var compilation0 = CreateCompilation(source0, options: TestOptions.UnsafeDebugDll); 1651var compilation1 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll); 1715var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 1757var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1809var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1856var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1901var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll);
Emit\ManagedAddressTests.cs (1)
52var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(
Emit\NumericIntPtrTests.cs (172)
123var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 173var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 266comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 328var comp = CreateEmptyCompilation(sourceA, options: TestOptions.UnsafeReleaseDll); 365comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 429var comp = CreateEmptyCompilation(sourceA, options: TestOptions.UnsafeReleaseDll); 485comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 560comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 670comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 767var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular9); 842comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 933var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 936comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 941comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 944comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 995var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 998comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1003comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1006comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1021var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1024comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1188var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1191comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1196comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1199comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1231var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, targetFramework: TargetFramework.Net70); 1234comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1252var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1275var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, targetFramework: TargetFramework.Net70); 1278comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1296var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1328var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1363CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 1377CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 1408CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics); 1409CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics); 1432var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1456var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 1491var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1520var comp = CreateCompilation("", parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1625var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1646comp = CreateCompilation(sourceB, references: new[] { AsReference(comp, useCompilationReference) }, parseOptions: useLatest ? TestOptions.Regular9 : TestOptions.Regular8, targetFramework: TargetFramework.Net70); 1738var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1757comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: useCSharp9 ? TestOptions.Regular9 : TestOptions.Regular8, targetFramework: TargetFramework.Net70); 1865var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3, targetFramework: TargetFramework.Net70); 1889var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 1913var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1965var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2048var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2150var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2223var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2251comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2274var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2292comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2407var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2457var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2598var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2776var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2796var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2811var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2823comp = CreateCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2840var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2855comp = CreateCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2877var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2919var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2952var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 3052var comp = CreateCompilation(new[] { sourceA, sourceB }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 3055comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 3059comp = CreateCompilation(sourceB, references: new[] { ref1 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 3062comp = CreateCompilation(sourceB, references: new[] { ref2 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 3065comp = CreateCompilation(sourceB, references: new[] { ref1 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular8, targetFramework: TargetFramework.Net70); 3068comp = CreateCompilation(sourceB, references: new[] { ref2 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular8, targetFramework: TargetFramework.Net70); 3125var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 3293var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 6003var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithAllowUnsafe(useUnsafeContext), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 6240var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 6613var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 6847var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 6897var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 7020var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 8121var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithAllowUnsafe(useUnsafeContext), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 8182var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 8408var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 8612var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 8688var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9013var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9032comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9060var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9089var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9121comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9139comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9157var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9188comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9206comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9245var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9274var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9298var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9327var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9362var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9427var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9508var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9646var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9702var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9832var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9904var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 9917var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9939var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 10273var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, targetFramework: TargetFramework.Net70); 10325var parseOptions = (useCSharp11 ? TestOptions.Regular11 : TestOptions.Regular10).WithNoRefSafetyRulesAttribute(); 10681comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 11047var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 11051comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 11168var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70); 11191var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70); 11219var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70); 11244var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70); 11269var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70); 11289var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70); 11687var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 11704var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 11745var comp = CreateCompilation(new[] { TestSources.Span, source }, options: TestOptions.UnsafeReleaseExe); 11748comp = CreateCompilation(new[] { source }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 11812options: TestOptions.UnsafeReleaseDll,
Emit\RuntimeProbing\ModuleCancellationTests.cs (3)
28options: options ?? (expectedOutput != null ? TestOptions.UnsafeDebugExe : TestOptions.UnsafeDebugDll), 145var verifier = CompileAndVerify(source, options: TestOptions.DebugExe);
Emit\RuntimeProbing\StackOverflowProbingTests.cs (3)
27options: options ?? (expectedOutput != null ? TestOptions.UnsafeDebugExe : TestOptions.UnsafeDebugDll), 135var verifier = CompileAndVerify(source, options: TestOptions.DebugExe);
Emit\UnmanagedTypeModifierTests.cs (3)
1034options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All), 1087options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All), 1474CompileAndVerify(code, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"
PDB\CheckSumTest.cs (3)
26TestOptions.DebugDll.WithSourceReferenceResolver(new SourceFileResolver(ImmutableArray.Create<string>(), baseDirectory))); 103CompileAndVerify(text, options: TestOptions.DebugExe). 304TestOptions.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)
70var compilation = CreateCompilationWithMscorlib461(text, options: TestOptions.DebugDll).VerifyDiagnostics(); 386var compilation = CreateCompilationWithMscorlib461(text, options: TestOptions.DebugDll).VerifyDiagnostics(); 545options: TestOptions.DebugDll, 621var v = CompileAndVerify(CreateCompilationWithMscorlib461(text, options: TestOptions.DebugDll)); 759var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 847var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 952var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 1039var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 1155var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 1259var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 1366var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 1464var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 1550var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 1658var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 1694var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 1948var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 2017var compilation = CreateCompilationWithMscorlib461(src, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 2100var v = CreateEmptyCompilation(src, LatestVbReferences, options: TestOptions.DebugDll);
PDB\PDBConstantTests.cs (12)
34var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 100var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 209var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 287CompileAndVerify(text, options: TestOptions.DebugDll).VerifyPdb("C.M", @" 337var c = CompileAndVerify(text, options: TestOptions.DebugDll); 409var v = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 487CompileAndVerify(text, options: TestOptions.DebugDll).VerifyPdb("C.M", @" 532var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 609var c = CompileAndVerify(text, options: TestOptions.DebugDll); 666var c = CompileAndVerify(text, options: TestOptions.DebugDll); 726var c = CompileAndVerify(text, options: TestOptions.DebugDll); 781CompileAndVerify(text, options: TestOptions.DebugDll).VerifyPdb("C.M", @"
PDB\PDBDynamicLocalsTests.cs (31)
49var c = CreateCompilationWithMscorlib40AndSystemCore(source, references: new[] { CSharpRef }, options: TestOptions.DebugDll); 147var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 213var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 272var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 337var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 393var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 451var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 527var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 609var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 676var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 764var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 844var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 926var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1012var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1138var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1286var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1535var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1708var c = CreateCompilation(source, options: TestOptions.DebugDll); 1778var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1832var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1882var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1940var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1998var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2057var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2117var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2171var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2226var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2290var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2352var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2412var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2497var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll);
PDB\PDBEmbeddedSourceTests.cs (2)
44var c = CreateCompilation(new[] { tree1, tree2 }, options: TestOptions.DebugDll); 104var c = CreateCompilation(tree, options: TestOptions.DebugDll);
PDB\PDBIteratorTests.cs (21)
34var c = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.DebugDll); 79var c = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.DebugDll); 124var c = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.DebugDll); 180var c = CompileAndVerify(text, options: TestOptions.ReleaseDll, symbolValidator: module => 251var c = CompileAndVerify(text, options: TestOptions.DebugDll, symbolValidator: module => 339var c = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.DebugDll); 437var c = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.ReleaseExe); 552var c = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.DebugExe); 736var v = CompileAndVerify(text, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 807var v = CompileAndVerify(text, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 913CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 931var v = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1027var v = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1101var v = CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1225var v = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1371var v = CompileAndVerify(source, new[] { CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1457var v = CompileAndVerify(source, new[] { CSharpRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1519var v = CompileAndVerify(source, new[] { CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1587var c = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.DebugDll); 1624var compilation = CreateCompilation(src, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp);
PDB\PDBLambdaTests.cs (29)
35var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 109var compilation = CreateCompilationWithMscorlib40AndSystemCore(source.Tree, options: TestOptions.DebugDll); 129var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 203var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 319var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 439var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 553var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 638var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 748var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 827var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 912var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 992var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1068var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1156var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1229var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1301var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1377var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1447var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1523var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1599var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1675var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1759var v = CompileAndVerify(source, options: TestOptions.DebugDll); 1801var v = CompileAndVerify(source, options: TestOptions.DebugDll); 1847var compilation = CreateCompilation(source.Tree, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 1875var compilation = CreateCompilation(source.Tree, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 1909var compilation = CreateCompilation(source.Tree, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 1926var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2024var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2146var c = CompileAndVerify(source, options: TestOptions.DebugDll);
PDB\PDBLocalFunctionTests.cs (5)
42var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 157var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 235var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 326var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 407var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll);
PDB\PDBSourceLinkTests.cs (5)
51var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options: TestOptions.DebugDll); 81var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options: TestOptions.DebugDll); 121var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options: TestOptions.DebugDll); 143var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options: TestOptions.DebugDll); 185var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options: TestOptions.DebugDll);
PDB\PDBTests.cs (169)
50var comp = CSharpCompilation.Create("Compilation", new[] { tree1, tree2, tree3, tree4 }, new[] { MscorlibRef }, options: TestOptions.ReleaseDll); 70var comp = CSharpCompilation.Create("Compilation", new[] { tree1, tree2, tree3, tree4 }, new[] { MscorlibRef }, options: TestOptions.ReleaseDll); 94Compilation compilation = CreateCompilation("class C { }", options: TestOptions.DebugDll, parseOptions: TestOptions.Regular); 110var driver = CSharpGeneratorDriver.Create(new[] { testGenerator }, parseOptions: TestOptions.Regular); 140var comp = CSharpCompilation.Create("test", new[] { tree1, tree2 }, TargetFrameworkUtil.StandardReferences, TestOptions.DebugDll); 174options: TestOptions.DebugDll.WithSourceReferenceResolver(SourceFileResolver.Default)); 218options: TestOptions.DebugDll.WithSourceReferenceResolver(SourceFileResolver.Default)); 250var compilation = CreateCompilation(source0, options: TestOptions.DebugDll); 282var compilation = CreateCompilation(source0, options: TestOptions.DebugDll); 314var compilation = CreateCompilation(source0, options: TestOptions.DebugDll.WithDeterministic(true)); 447CreateCompilation(source, options: TestOptions.DebugDll).VerifyEmitDiagnostics( 471var debug = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugWinMD); 510var release = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.ReleaseWinMD); 556var debug = CreateCompilation(source, options: TestOptions.DebugWinMD); 581var release = CreateCompilation(source, options: TestOptions.ReleaseWinMD); 648var c = CreateCompilation(source, options: TestOptions.DebugDll); 671var c = CreateCompilation(source, options: TestOptions.DebugExe); 697var c1 = CreateCompilation(source1, options: TestOptions.DebugDll); 698var c2 = CreateCompilation(source2, options: TestOptions.DebugDll); 745var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 802var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 838var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 879var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 933var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 998var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1066var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1240var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1327var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1423var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1491var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1567var v = CompileAndVerify(source, options: TestOptions.DebugDll); 1622var v = CompileAndVerify(source, options: TestOptions.DebugDll); 1677var v = CompileAndVerify(source, options: TestOptions.DebugDll); 1699var v = CompileAndVerify(source, options: TestOptions.DebugDll); 1732var v = CompileAndVerify(source, options: TestOptions.DebugDll); 1829var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1943var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 2023var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2074var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2116var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2168var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 2226var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2297var v = CompileAndVerify(source, options: TestOptions.DebugDll); 2393var v = CompileAndVerify(source, options: TestOptions.DebugDll); 2531var v = CompileAndVerify(source, options: TestOptions.DebugDll); 2589var v = CompileAndVerify(source, options: TestOptions.DebugDll); 2671var v = CompileAndVerify(source, options: TestOptions.DebugDll); 2721var v = CompileAndVerify(source, options: TestOptions.DebugDll); 2866var v = CompileAndVerify(source, options: TestOptions.DebugDll); 2978var v = CompileAndVerify(source, options: TestOptions.DebugDll.WithModuleName("MODULE")); 3106var v = CompileAndVerify(source, options: TestOptions.DebugDll); 3195var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 3267var c = CreateCompilation(source, options: TestOptions.DebugDll); 3428var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 3519var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 3618var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 3719var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe); 3773c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 3841var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_1); 3935c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); 4007var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_1); 4039c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); 4079var v = CompileAndVerify(source, options: TestOptions.DebugDll); 4169var v = CompileAndVerify(source, options: TestOptions.DebugDll); 4413var v = CompileAndVerify(source, options: TestOptions.DebugDll); 4535var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 4621var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 4726var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 4822}", TestOptions.DebugDll); 4832}", TestOptions.DebugDll); 4843}", TestOptions.DebugDll); 4855}", TestOptions.DebugDll); 4868}", TestOptions.DebugDll); 4897var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 5062var compilation = CreateCompilation(new[] { Parse(text1, "a.cs"), Parse(text2, "b.cs"), Parse(text3, "a.cs") }, options: TestOptions.DebugDll); 5109var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 5150var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 5189var comp = CreateCompilation(source, options: TestOptions.DebugDll); 5240}", TestOptions.DebugDll); 5248}", TestOptions.DebugDll); 5256}", TestOptions.DebugDll); 5264}", TestOptions.DebugDll, TestOptions.Regular); 5282var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 5316var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 5399var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 5548var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 5626var v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll)); 5775var v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll)); 5864var v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll)); 5953var v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll)); 6035var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 6104var c = CreateCompilation(source, options: TestOptions.DebugDll); 6221var c = CreateCompilation(source, options: TestOptions.DebugDll); 6347var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 6440var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 6527var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 6588var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 6652var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 6736var c = CreateCompilation(source, options: TestOptions.DebugDll); 6851var c = CreateCompilation(source, options: TestOptions.DebugDll); 6953var c = CreateCompilation(source, options: TestOptions.DebugDll); 7064var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 7105var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 7159var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); 7218var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugDll); 7277var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); 7352var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); 7418var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugDll); 7486var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); 7568var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugDll); 7646var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); 7692var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); 7748var compilation = CreateCompilation(text1, options: TestOptions.DebugDll); 7854var c = CreateCompilationWithMscorlib40AndSystemCore(src, references: new[] { CSharpRef, ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.DebugDll); 7901var c = CreateCompilationWithMscorlib40AndSystemCore(src, references: new[] { CSharpRef, ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.DebugExe); 7955var c = CreateCompilationWithMscorlib40AndSystemCore(src, references: new[] { CSharpRef, ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.DebugDll); 8407var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll, references: new[] { SystemCoreRef }); 8452var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll, references: new[] { SystemCoreRef }); 8507var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll, references: new[] { SystemCoreRef }); 8559var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll, references: new[] { SystemCoreRef }); 8619var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 8694var c = CreateCompilation(source, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); 9091var c = CreateCompilation(source, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); 9458var c = CreateCompilation(source, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); 9687var c = CreateCompilation(source, options: TestOptions.DebugDll); 10082var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 10291var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 10529var c = CreateCompilation(source, options: TestOptions.DebugDll); 10700var c = CreateCompilation(source, options: TestOptions.DebugDll); 10840var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 10883var c = CreateCompilation(source, options: TestOptions.DebugDll); 10970var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11147var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, references: s_valueTupleRefs); 11249var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, references: s_valueTupleRefs); 11286var c = CreateCompilation(source, options: TestOptions.DebugDll); 11320var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, references: s_valueTupleRefs); 11344var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, references: s_valueTupleRefs); 11368var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, references: s_valueTupleRefs); 11423var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11438var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11487var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11533var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11575var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11620var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11676var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11732var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11848var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11908var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11975var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 12032var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 12068var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 12308var c = CSharpCompilation.Create("Compilation", new[] { tree }, new[] { MscorlibRef_v46 }, options: TestOptions.DebugDll.WithDebugPlusMode(true)); 12404options: TestOptions.DebugDll); 12468var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 12541var v = CompileAndVerify(source, options: TestOptions.DebugDll); 12625var v = CompileAndVerify(source, options: TestOptions.DebugDll); 12706var v = CompileAndVerify(source, options: TestOptions.DebugDll); 12798var v = CompileAndVerify(source, options: TestOptions.DebugDll); 12911var c = CreateCompilation(new[] { tree1, tree2 }, options: TestOptions.DebugDll); 12949var c = CreateCompilation(new[] { tree }, options: TestOptions.DebugDll); 12972options: TestOptions.DebugDll);
PDB\PDBTupleTests.cs (6)
27var comp = CreateCompilation(source, options: TestOptions.DebugDll); 74var comp = CreateCompilation(source, options: TestOptions.DebugDll); 126var comp = CreateCompilation(source, options: TestOptions.DebugDll); 193var comp = CreateCompilation(source, options: TestOptions.DebugDll); 244var comp = CreateCompilation(source, options: TestOptions.DebugDll); 310var c = CreateCompilation(source, options: TestOptions.DebugDll);
PDB\PDBUsingTests.cs (53)
33options: TestOptions.DebugDll); 60CompileAndVerify(text, options: TestOptions.DebugDll).VerifyPdb(@" 140CompileAndVerify(text, options: TestOptions.DebugDll).VerifyPdb(@" 220CompileAndVerify(text, options: TestOptions.DebugDll).VerifyPdb(@" 300CompileAndVerify(text, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetFramework).VerifyPdb(@" 380CompileAndVerify(text, options: TestOptions.DebugDll).VerifyPdb(@" 467CompileAndVerify(text, options: TestOptions.UnsafeDebugDll, targetFramework: TargetFramework.NetFramework).VerifyPdb(@" 573parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), 574options: TestOptions.DebugDll, 664var compilation1 = CreateCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, assemblyName: "TestExternAliases2"); 673parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), 674options: TestOptions.DebugDll, 717var compilation1 = CreateCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, assemblyName: "TestExternAliases3"); 726parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), 727options: TestOptions.DebugDll, 771var dummyCompilation = CreateCompilation(src1, assemblyName: "A", options: TestOptions.DebugDll); 790options: TestOptions.DebugDll, 818comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.DebugDll); 882comp = CreateCompilation([sourceB, sourceC], references: new[] { refA1, refA4 }, options: TestOptions.DebugDll); 968comp = CreateCompilation([sourceB, sourceC], references: new[] { refA1, refA4 }, options: TestOptions.DebugDll); 1055comp = CreateCompilation([sourceB, sourceC], references: new[] { refA1, refA4 }, options: TestOptions.DebugDll); 1148comp = CreateCompilation([sourceB, sourceC], references: new[] { refA1, refA4 }, options: TestOptions.DebugDll); 1241comp = CreateCompilation([sourceB, sourceC], references: new[] { refA1, refA4 }, options: TestOptions.DebugDll); 1333comp = CreateCompilation([sourceB, sourceC], references: new[] { refA1, refA4 }, options: TestOptions.DebugDll); 1398CSharpCompilation dummyCompilation1 = CreateCompilation(dummySource, assemblyName: "A", options: TestOptions.DebugDll); 1399CSharpCompilation dummyCompilation2 = CreateCompilation(dummySource, assemblyName: "B", options: TestOptions.DebugDll); 1412options: TestOptions.DebugDll, 1485options: TestOptions.DebugDll, 1559options: TestOptions.DebugDll, 1692var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll); 1715options: TestOptions.DebugDll, 1765var compilation1 = CreateCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 1782parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), 1783options: TestOptions.DebugDll, 1865options: TestOptions.DebugDll, 2043options: TestOptions.DebugDll, 2210CompileAndVerify(text, options: TestOptions.DebugDll).VerifyPdb(@" 2259CompileAndVerify(text, options: TestOptions.DebugDll).VerifyPdb(@" 2340CompileAndVerify(text, options: TestOptions.DebugDll).VerifyPdb(@" 2444CompileAndVerify(text, options: TestOptions.DebugDll).VerifyPdb(@" 2502CompileAndVerify(text, options: TestOptions.DebugDll).VerifyPdb(@" 2558var v = CompileAndVerify(source, options: TestOptions.DebugDll); 2611CompileAndVerify(source, new[] { libRef }, options: TestOptions.DebugExe).VerifyPdb("Test.Main", @" 2795}", TestOptions.ReleaseExe, methodName: "Test.Main"); 2816}", TestOptions.ReleaseExe, methodName: "Test.Main"); 2834var comp1 = CreateCompilation(source1, options: TestOptions.DebugDll, assemblyName: "Comp1"); 2851var comp2 = CreateCompilation(source2, new[] { comp1.ToMetadataReference() }, options: TestOptions.DebugExe); 2905var compilation = CreateCompilation(text, options: TestOptions.DebugExe); 2973var comp = CreateCompilationWithMscorlib40(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), references: new[] { SystemCoreRef.WithAliases(new[] { "A" }), SystemDataRef }); 3070var c = CreateCompilation(source, assemblyName: "EmittingPdbVsNot", options: TestOptions.ReleaseDll);
PDB\PDBWinMdExpTests.cs (5)
29options: TestOptions.ReleaseWinMD, 110options: TestOptions.ReleaseWinMD, 157options: TestOptions.ReleaseWinMD, 236options: TestOptions.ReleaseWinMD, 272options: TestOptions.ReleaseWinMD,
PDB\PortablePdbTests.cs (6)
42var c = CreateCompilation(source, options: TestOptions.DebugDll); 166var c = CreateCompilation(Parse(source, "goo.cs"), options: TestOptions.DebugDll); 226var c = CreateCompilation(Parse(source, "goo.cs"), options: TestOptions.DebugDll.WithDeterministic(true)); 301var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options: TestOptions.DebugDll); 342var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options: TestOptions.DebugDll); 381var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options: TestOptions.DebugDll);
PDB\TypeDefinitionDocumentTests.cs (1)
464var compilation = CreateCompilation(trees, options: TestOptions.DebugDll);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6109)
Attributes\AttributeTests.cs (121)
40var 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); 1701CSharpCompilationOptions opt = TestOptions.ReleaseDll; 1748var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_2); 1837options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1871options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1932options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1995options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 2214options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 2280options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 2351options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 2483options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 3093var compilation = CreateCompilation(source, references, options: TestOptions.ReleaseDll); 3166CSharpCompilationOptions opt = TestOptions.ReleaseDll; 3208CSharpCompilationOptions opt = TestOptions.ReleaseDll; 3258var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3306var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3358var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3410var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3442CSharpCompilationOptions opt = TestOptions.ReleaseDll; 3581CSharpCompilationOptions opt = TestOptions.ReleaseDll; 3675CSharpCompilationOptions opt = TestOptions.ReleaseDll; 3782CSharpCompilationOptions opt = TestOptions.ReleaseDll; 4132var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4175var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4219var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4264var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4308var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4510var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4956var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5062var compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.ReleaseExe); 5131var compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.ReleaseExe); 5167var compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.ReleaseExe); 5242var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5300var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5361var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5884", options: TestOptions.ReleaseDll); 5944", options: TestOptions.ReleaseDll); 5992CSharpCompilationOptions opt = TestOptions.ReleaseDll; 6286var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular10); 6295compilation = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 6346var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular10); 6355compilation = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 6758var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 7490CSharpCompilationOptions opt = TestOptions.ReleaseDll; 7608CSharpCompilationOptions opt = TestOptions.ReleaseDll; 7651CSharpCompilationOptions opt = TestOptions.ReleaseDll; 7709CSharpCompilationOptions opt = TestOptions.ReleaseDll; 7807CSharpCompilationOptions opt = TestOptions.ReleaseDll; 7915CSharpCompilationOptions opt = TestOptions.ReleaseDll; 7917var compilation = CreateCompilation(source, null, options: opt, parseOptions: TestOptions.Regular10); 7953CSharpCompilationOptions opt = TestOptions.ReleaseDll; 7955var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 7999var comp = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource, parseOptions: TestOptions.Regular9); 8009comp = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource, parseOptions: TestOptions.RegularPreview); 8892var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 9009var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 9030comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 9071var comp = CreateCompilationWithILAndMscorlib40(source, il, parseOptions: TestOptions.Regular10); 9091comp = CreateCompilationWithILAndMscorlib40(source, il, parseOptions: TestOptions.RegularPreview); 9126var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 9141comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 9172var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 9199var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 9908var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 9990var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 10019var compilation1 = CreateCompilationWithMscorlib40(source1, options: TestOptions.DebugDll); 10032var compilation2 = CreateCompilationWithMscorlib40(source2, new[] { new CSharpCompilationReference(compilation1) }, options: TestOptions.DebugDll, assemblyName: "Test.dll"); 10043var compilation3 = CreateCompilationWithMscorlib461(source2, new[] { new CSharpCompilationReference(compilation1) }, options: TestOptions.DebugDll); 10173var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10211var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10236var libRef = CreateCompilation(lib_cs, parseOptions: TestOptions.RegularPreview).EmitToImageReference(); 10238var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, references: new[] { libRef }); 10242comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, references: new[] { libRef }); 10259var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 10263comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10286var libRef = CreateCompilation(lib_cs, parseOptions: TestOptions.RegularPreview).EmitToImageReference(); 10288var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, references: new[] { libRef }); 10292comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, references: new[] { libRef }); 10312var libRef = CreateCompilation(lib_cs, parseOptions: TestOptions.RegularPreview).EmitToImageReference(); 10314var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, references: new[] { libRef }); 10318comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, references: new[] { libRef }); 10338var libRef = CreateCompilation(lib_cs, parseOptions: TestOptions.RegularPreview).EmitToImageReference(); 10340var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, references: new[] { libRef }); 10344comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, references: new[] { libRef }); 10360var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 10385var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 10392comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10421var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 10428comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10459var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular10); 10466var comp2 = CreateCompilation(source2, references: new[] { comp1.ToMetadataReference() }, parseOptions: TestOptions.Regular9); 10469comp2 = CreateCompilation(source2, references: new[] { comp1.EmitToImageReference() }, parseOptions: TestOptions.Regular9); 10508var comp = CreateCompilationWithIL(source, il, parseOptions: TestOptions.Regular9); 10530var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular10); 10537var comp2 = CreateCompilation(source2, references: new[] { comp1.ToMetadataReference() }, parseOptions: TestOptions.Regular9); 10540comp2 = CreateCompilation(source2, references: new[] { comp1.EmitToImageReference() }, parseOptions: TestOptions.Regular9); 10574var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10754var comp = CreateCompilationWithIL(source, il, options: TestOptions.DebugExe); 10872var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10895var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10901comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 10908comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 10922var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10939var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 11008var verifier = CompileAndVerify(source, symbolValidator: validateMetadata, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 11217var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), sourceSymbolValidator: verify, symbolValidator: verify, expectedOutput: "a"); 11576var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll);
Attributes\AttributeTests_Assembly.cs (135)
31var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 41var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 52var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 70var comp = CreateCompilation(s, options: TestOptions.ReleaseDll.WithCurrentLocalTime(now)); 84var comp = CreateCompilation(s, options: TestOptions.ReleaseDll.WithCurrentLocalTime(new DateTime(2300, 1, 1))); 99var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 106other = CreateCompilation(s, options: TestOptions.ReleaseDll); 118var comp = CreateCompilation(s, options: TestOptions.ReleaseDll.WithDeterministic(true)); 131var comp = CreateCompilation(s, options: TestOptions.ReleaseDll.WithDeterministic(true)); 144var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 154var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 164var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 174var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 193var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 206var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 227var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 236other = CreateCompilation(s, options: TestOptions.ReleaseDll); 245other = CreateCompilation(s, options: TestOptions.ReleaseDll); 267var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 277var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 287var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 297var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 306var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 310comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 314comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 323var comp = CreateCompilation(s, options: TestOptions.ReleaseExe); 327comp = CreateCompilation(s, options: TestOptions.ReleaseExe); 335var comp = CreateCompilation(s, options: TestOptions.ReleaseExe); 347var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 362var 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"); 419compilation = compilation.WithOptions(TestOptions.ReleaseModule); 422compilation = CreateCompilationWithMscorlib40("", new MetadataReference[] { compilation.EmitToImageReference() }, TestOptions.ReleaseDll, assemblyName: assemblyNameBase + "20"); 444", new MetadataReference[] { en_usRef }, options: TestOptions.ReleaseDll, assemblyName: assemblyNameBase + "23"); 448compilation = compilation.WithOptions(TestOptions.ReleaseModule); 451compilation = CreateCompilationWithMscorlib40("", new MetadataReference[] { compilation.EmitToImageReference() }, TestOptions.ReleaseDll, assemblyName: assemblyNameBase + "25"); 463", new MetadataReference[] { deRef, neutralRef }, TestOptions.ReleaseDll, assemblyName: assemblyNameBase + "30"); 467compilation = compilation.WithOptions(TestOptions.ReleaseModule); 470compilation = CreateCompilationWithMscorlib40("", new MetadataReference[] { compilation.EmitToImageReference() }, TestOptions.ReleaseDll, assemblyName: assemblyNameBase + "40"); 495", new MetadataReference[] { deRef }, TestOptions.ReleaseDll, assemblyName: assemblyNameBase + "50"); 502compilation = compilation.WithOptions(TestOptions.ReleaseModule); 505compilation = CreateCompilationWithMscorlib40("", new MetadataReference[] { compilation.EmitToImageReference() }, TestOptions.ReleaseDll, assemblyName: assemblyNameBase + "60"); 518var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 524other = CreateCompilation(s, options: TestOptions.ReleaseDll); 534var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 544var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 554var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 560other = CreateCompilation(s, options: TestOptions.ReleaseDll); 570var 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); 869var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 876comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 880comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 892var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 905var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 920var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 1013var netmoduleCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseModule, references: references, assemblyName: assemblyName); 1076parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), 1077options: TestOptions.ReleaseExe); 1123parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), 1124options: TestOptions.ReleaseModule); 1177options: TestOptions.ReleaseModule, 1178parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), 1197parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), 1198options: TestOptions.ReleaseExe); 1238parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), 1239options: TestOptions.ReleaseModule); 1271var consoleappCompilation = CreateCompilationWithMscorlib40(consoleappSource, references: new[] { GetNetModuleWithAssemblyAttributesRef() }, options: TestOptions.ReleaseExe); 1323var consoleappCompilation = CreateCompilationWithMscorlib40(consoleappSource, references: new[] { GetNetModuleWithAssemblyAttributesRef() }, options: TestOptions.ReleaseExe); 1374var consoleappCompilation = CreateCompilationWithMscorlib40(consoleappSource, references: new[] { GetNetModuleWithAssemblyAttributesRef() }, options: TestOptions.ReleaseExe); 1419var compilation = CreateCompilationWithMscorlib40(consoleappSource, references: new[] { netmodule1Ref }, options: TestOptions.ReleaseExe); 1432compilation = CreateCompilationWithMscorlib40(netmodule2Source, options: TestOptions.ReleaseModule, references: new[] { netmodule1Ref }); 1439compilation = CreateCompilationWithMscorlib40("", options: TestOptions.ReleaseDll, references: new[] { netmodule1Ref, netmodule2Ref }); 1497var compilation = CreateCompilationWithMscorlib40(source, references: new[] { GetNetModuleWithAssemblyAttributesRef() }, options: TestOptions.ReleaseDll); 1523var compilation = CreateCompilationWithMscorlib40(source1, references: new[] { defsRef, netmodule1Ref }, options: TestOptions.ReleaseDll); 1533compilation = CreateCompilationWithMscorlib40("", references: new[] { defsRef, netmodule1Ref, netmodule2Ref }, options: TestOptions.ReleaseDll); 1576var compilation = CreateCompilationWithMscorlib40(source, references: new[] { netmoduleRef }, options: TestOptions.ReleaseDll); 1629var compilation = CreateCompilationWithMscorlib40(source, references: new[] { netmoduleDefsRef, netmodule0Ref, netmodule1Ref, netmodule2Ref, netmodule3Ref }, options: TestOptions.ReleaseDll); 1671var compilation = CreateCompilationWithMscorlib40(source, references: new[] { netmoduleRef }, options: TestOptions.ReleaseDll); 1718var compilation = CreateCompilationWithMscorlib40(source, references: new[] { netmoduleRef }, options: TestOptions.ReleaseDll); 1744var appCompilation = CreateCompilationWithMscorlib40(app, references: new[] { netModuleRef }, options: TestOptions.ReleaseDll); 1750appCompilation = CreateCompilationWithMscorlib40(app, references: new[] { netModuleRef, Net40.References.SystemCore }, options: TestOptions.ReleaseDll); 1784var appCompilation = CreateCompilationWithMscorlib40(app, references: new[] { netModuleRef }, options: TestOptions.ReleaseDll); 1835var module = CreateCompilation(moduleSrc, options: TestOptions.ReleaseModule, assemblyName: "M"); 1932var module = CreateCompilation(moduleSrc, options: TestOptions.ReleaseModule, assemblyName: "M"); 1958var module1 = CreateCompilation(moduleSrc1, options: TestOptions.ReleaseModule, assemblyName: "M1"); 1965var module2 = CreateCompilation(moduleSrc2, options: TestOptions.ReleaseModule, assemblyName: "M2"); 1986var module1 = CreateCompilation(moduleSrc1, options: TestOptions.ReleaseModule, assemblyName: "M1"); 2011var module1 = CreateCompilation(moduleSrc1, options: TestOptions.ReleaseModule, assemblyName: "M1"); 2018var module2 = CreateCompilation(moduleSrc2, options: TestOptions.ReleaseModule, assemblyName: "M2"); 2039var module1 = CreateCompilation(moduleSrc1, options: TestOptions.ReleaseModule, assemblyName: "M1"); 2064var module1 = CreateCompilation(moduleSrc1, options: TestOptions.ReleaseModule, assemblyName: "M1"); 2071var module2 = CreateCompilation(moduleSrc2, options: TestOptions.ReleaseModule, assemblyName: "M2"); 2090var module1 = CreateCompilation(moduleSrc1, options: TestOptions.ReleaseModule, assemblyName: "M1"); 2116var compMod1 = CreateCompilation(mod1Source, options: TestOptions.ReleaseModule, assemblyName: "M1"); 2117var compMod2 = CreateCompilation(mod2Source, options: TestOptions.ReleaseModule, assemblyName: "M2"); 2121options: TestOptions.ReleaseDll); 2148var compMod1 = CreateCompilation(mod1Source, options: TestOptions.ReleaseModule, assemblyName: "M1"); 2149var compMod2 = CreateCompilation(mod2Source, options: TestOptions.ReleaseModule, assemblyName: "M2"); 2153options: TestOptions.ReleaseDll); 2178var compMod1 = CreateCompilation(mod1Source, options: TestOptions.ReleaseModule, assemblyName: "M1"); 2179var compMod2 = CreateCompilation(mod2Source, options: TestOptions.ReleaseModule, assemblyName: "M2"); 2183options: TestOptions.ReleaseDll); 2210var compMod1 = CreateCompilation(mod1Source, options: TestOptions.ReleaseModule, assemblyName: "M1"); 2211var compMod2 = CreateCompilation(mod2Source, options: TestOptions.ReleaseModule, assemblyName: "M2"); 2215options: TestOptions.ReleaseDll); 2237var compMod1 = CreateCompilation(mod1Source, options: TestOptions.ReleaseModule, assemblyName: "M1"); 2240options: TestOptions.ReleaseExe); 2272var compilation = CreateCompilation(s, options: TestOptions.ReleaseDll); 2286var attributeDefinition1 = CreateCompilation(attribute1, options: TestOptions.ReleaseDll, assemblyName: "A1").EmitToImageReference(); 2291var moduleWithAttribute = CreateCompilation(module, references: new[] { attributeDefinition1 }, options: TestOptions.ReleaseModule, assemblyName: "M1").EmitToImageReference(); 2293var comp = CreateCompilation("", references: new[] { moduleWithAttribute, attributeDefinition1 }, options: TestOptions.ReleaseDll); 2305var comp2 = CreateCompilation("", references: new[] { moduleWithAttribute }, options: TestOptions.ReleaseDll); 2318var attributeDefinition2 = CreateCompilation(attribute2, options: TestOptions.ReleaseDll, assemblyName: "A1").EmitToImageReference(); 2320var comp3 = CreateCompilation("", references: new[] { moduleWithAttribute, attributeDefinition2 }, options: TestOptions.ReleaseDll); 2337var c1Definition = CreateCompilation(c1, options: TestOptions.ReleaseDll, assemblyName: "A1").EmitToImageReference(); 2347var module1WithAttribute = CreateCompilation(module1, references: new[] { c1Definition }, options: TestOptions.ReleaseModule, assemblyName: "M1").EmitToImageReference(); 2349var comp = CreateCompilation("", references: new[] { module1WithAttribute, c1Definition }, options: TestOptions.ReleaseDll); 2361var comp2 = CreateCompilation("", references: new[] { module1WithAttribute }, options: TestOptions.ReleaseDll); 2376var module2WithAttribute = CreateCompilation(module2, references: new[] { c1Definition }, options: TestOptions.ReleaseModule, assemblyName: "M1").EmitToImageReference(); 2377var comp3 = CreateCompilation("", references: new[] { module2WithAttribute, c1Definition }, options: TestOptions.ReleaseDll);
Attributes\AttributeTests_CallerInfoAttributes.cs (191)
72var compilation = CreateEmptyCompilation(source, GetReferencesWithoutInteropServices(), options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 138var compilation = CreateEmptyCompilation(source, GetReferencesWithoutInteropServices(), options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 203var compilation = CreateEmptyCompilation(source, GetReferencesWithoutInteropServices(), options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 259var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 318var compilation = CreateEmptyCompilation(source, GetReferencesWithoutInteropServices(), options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 375var compilation = CreateEmptyCompilation(source, GetReferencesWithoutInteropServices(), options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 420var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 459var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 498var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 526var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 565var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 626var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 659var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 679var comp1 = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, parseOptions: TestOptions.Regular9); 690var compilation = CreateCompilation(source2, references: new[] { ref1 }, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 716var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 742var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 767var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 796var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 825var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 854var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 889var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 924var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 953var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 982var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1014var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1063var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1098var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1137var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1177var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1215var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1250var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1290var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1321var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1346var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe); 1393var compilation = CreateCompilationWithIL(source, il, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe); 1444var compilation = CreateCompilation(source, targetFramework: TargetFramework.Net50, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1478var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1512var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1545var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1582var compilation = CreateCompilation(source2, references: new[] { ref1 }, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1613var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1648var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1688var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1730var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1776var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1815var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1849var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1913var compilation = CreateCompilationWithIL(source, il, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1941var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1973var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2005var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2038var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2077var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2121var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2153var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2181var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 2209var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2237var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2297var compilation = CreateCompilationWithILAndMscorlib40(source, il, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2331var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2367var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2405var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2442var compilation = CreateCompilation(source, targetFramework: TargetFramework.Net50, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2493var compilation = CreateCompilation(source, targetFramework: TargetFramework.Net50, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2677var compilation = CreateCompilationWithMscorlib461(source, new MetadataReference[] { SystemRef }, TestOptions.ReleaseExe); 2711var compilation = CreateCompilationWithMscorlib461(source, new MetadataReference[] { SystemRef }, TestOptions.ReleaseExe); 2755var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemRef }, TestOptions.ReleaseExe); 2846var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 2891var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 2926var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 2957var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 3046var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 3077var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 3170var compilation = CreateCompilationWithMscorlib461(source, new[] { libReference }, TestOptions.ReleaseExe); 3235CompileAndVerify(source, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: verify); 3278var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 3323CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDll.WithWarningLevel(0)).VerifyDiagnostics( 3389TestOptions.ReleaseExe); 3428var compilation = CreateCompilationWithMscorlib461(source, references: new MetadataReference[] { SystemRef }, options: TestOptions.ReleaseExe); 3485var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemRef }, TestOptions.ReleaseExe); 3521var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemRef }, TestOptions.ReleaseExe); 3563var compilation = CreateCompilationWithMscorlib461(source, references: new MetadataReference[] { SystemRef }, options: TestOptions.ReleaseExe); 3606var compilation = CreateCompilationWithMscorlib461(source, references: new MetadataReference[] { SystemRef }, options: TestOptions.ReleaseExe); 3647options: TestOptions.ReleaseExe, 3648parseOptions: TestOptions.Regular9); 3693options: TestOptions.ReleaseExe, 3694parseOptions: TestOptions.Regular9); 3742options: TestOptions.ReleaseExe, 3743parseOptions: TestOptions.Regular9); 3782var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemRef }, TestOptions.ReleaseExe); 3830var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemRef }, TestOptions.ReleaseExe); 3868var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemRef }, TestOptions.ReleaseExe); 3908TestOptions.ReleaseExe); 3966var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemRef }, TestOptions.ReleaseExe); 4008var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemRef }, TestOptions.ReleaseExe); 4060var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemRef }, TestOptions.ReleaseExe); 4134var compilation = CreateCompilationWithMscorlib461(source, references: new MetadataReference[] { SystemRef }, options: TestOptions.ReleaseExe); 4175TestOptions.ReleaseExe.WithSourceReferenceResolver(SourceFileResolver.Default)); 4211SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.Regular9, path: @"C:\filename", encoding: Encoding.UTF8) 4213options: TestOptions.ReleaseExe.WithSourceReferenceResolver(SourceFileResolver.Default)); 4271TestOptions.ReleaseExe.WithSourceReferenceResolver(new SourceFileResolver(ImmutableArray<string>.Empty, baseDirectory: @"C:\A\B"))); 4336var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemRef }, TestOptions.ReleaseExe); 4379var compilation = CreateCompilationWithMscorlib461(source, references: new MetadataReference[] { SystemRef }, options: TestOptions.ReleaseExe); 4401var compilation = CreateCompilationWithMscorlib461(source, references: new MetadataReference[] { SystemRef }, options: TestOptions.ReleaseExe); 4431var compilation = CreateCompilationWithMscorlib461(source, references: new MetadataReference[] { SystemRef }, options: TestOptions.ReleaseExe); 4484var compilation = CreateCompilationWithMscorlib461(source, new[] { libReference }, TestOptions.ReleaseExe); 4519var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 4637TestOptions.ReleaseExe); 4669var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 4720var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 4790var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 4823var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 4906var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 5024var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 5173TestOptions.ReleaseExe); 5222new[] { SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.Regular7, path: @"C:\filename", encoding: Encoding.UTF8) }, 5223options: TestOptions.ReleaseExe); 5292var compilation = CreateCompilationWithMscorlib461(new SyntaxTree[] { SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.Regular7, path: @"C:\filename") }).VerifyDiagnostics( 5384var compilation = CreateCompilationWithMscorlib461(source, new MetadataReference[] { SystemRef }, TestOptions.ReleaseExe); 5420var compilation = CreateCompilationWithMscorlib461(source, new MetadataReference[] { SystemRef }, TestOptions.ReleaseExe); 5456var compilation = CreateCompilationWithMscorlib461(source, new MetadataReference[] { SystemRef }, TestOptions.ReleaseExe); 5495var compilation = CreateCompilationWithMscorlib461(source, new MetadataReference[] { SystemRef }, TestOptions.ReleaseExe); 5557TestOptions.ReleaseExe); 5617TestOptions.ReleaseExe); 5672TestOptions.ReleaseExe); 5711TestOptions.ReleaseExe); 5757TestOptions.ReleaseExe);
Attributes\AttributeTests_Conditional.cs (2)
252var compilation = CreateCompilation(syntaxTree, options: TestOptions.ReleaseExe); 463var compilation = CreateCompilation(syntaxTree, options: TestOptions.ReleaseExe);
Attributes\AttributeTests_Dynamic.cs (18)
103var comp = CreateCompilationWithMscorlib40(s_dynamicTestSource, options: TestOptions.UnsafeReleaseDll, references: new[] { SystemCoreRef, ValueTupleRef, SystemRuntimeFacadeRef }); 562var comp = CreateCompilationWithMscorlib46(s_dynamicTestSource, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.UnsafeReleaseDll); 821parseOptions: TestOptions.Script, 822options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 839CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script).VerifyDiagnostics( 853options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 854parseOptions: TestOptions.Script, 871var comp = CreateCompilationWithMscorlib461(source: source, parseOptions: TestOptions.Script).VerifyDiagnostics( 888options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 889parseOptions: TestOptions.Script, 910options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 911parseOptions: TestOptions.Script.WithLanguageVersion(LanguageVersion.Preview), 930var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script).VerifyDiagnostics( 944var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script).VerifyDiagnostics( 1087CompileAndVerify(source, references: new[] { CSharpRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1188var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 1225var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 1333CreateCompilationWithMscorlib461(source: source, parseOptions: TestOptions.Script).VerifyDiagnostics(
Attributes\AttributeTests_Embedded.cs (6)
45CreateCompilation(code, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()).VerifyEmitDiagnostics(); 105}", options: TestOptions.ReleaseModule); 193CompileAndVerify(code, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), verify: Verification.Passes, expectedOutput: "3"); 221var module = CreateCompilation(options: TestOptions.ReleaseModule, assemblyName: "testModule", source: @" 270var reference = CreateCompilation(assemblyName: "testRef", parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), source: @" 492var compilation1 = CreateCompilation(parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), source: @"
Attributes\AttributeTests_Experimental.cs (1)
261var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { DeprecatedAttributeSource, ExperimentalAttributeSource, source }, parseOptions: TestOptions.Regular9);
Attributes\AttributeTests_IsByRefLike.cs (7)
356var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All); 398CreateCompilation(code, options: TestOptions.ReleaseModule).VerifyDiagnostics( 415CreateCompilation(code, options: TestOptions.ReleaseModule).VerifyDiagnostics( 440CompileAndVerify(code, verify: Verification.Fails, references: new[] { reference }, options: TestOptions.ReleaseModule, symbolValidator: module => 452var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All); 516CreateCompilation(text, options: TestOptions.ReleaseModule).VerifyDiagnostics( 606var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All);
Attributes\AttributeTests_IsUnmanaged.cs (23)
38CompileAndVerify(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), symbolValidator: module => 62CompileAndVerify(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), symbolValidator: module => 92CompileAndVerify(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 114CompileAndVerify(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 201options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), 229options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), 258CompileAndVerify(text, verify: Verification.Fails, references: new[] { reference }, options: TestOptions.ReleaseModule, symbolValidator: module => 284CompileAndVerify(text, verify: Verification.Fails, references: new[] { reference }, options: TestOptions.ReleaseModule, symbolValidator: module => 320options: TestOptions.ReleaseModule.WithMetadataImportOptions(MetadataImportOptions.All), 349options: TestOptions.ReleaseModule.WithMetadataImportOptions(MetadataImportOptions.All), 417options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), 437options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), 626var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All); 665CreateCompilation(code, options: TestOptions.ReleaseModule).VerifyDiagnostics( 680CreateCompilation(code, options: TestOptions.ReleaseModule).VerifyDiagnostics( 702CreateCompilation(source: code, options: TestOptions.ReleaseModule.WithMetadataImportOptions(MetadataImportOptions.All)).VerifyDiagnostics( 713CreateCompilation(source: code, options: TestOptions.ReleaseModule.WithMetadataImportOptions(MetadataImportOptions.All)).VerifyDiagnostics( 722var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All); 771CreateCompilation(text, options: TestOptions.DebugDll.WithOutputKind(outputKind)).VerifyDiagnostics( 794CreateCompilation(text, options: TestOptions.DebugDll.WithOutputKind(outputKind)).VerifyDiagnostics( 814CreateCompilation(text, options: TestOptions.DebugDll.WithOutputKind(outputKind)).VerifyDiagnostics(
Attributes\AttributeTests_LifetimeAnnotation.cs (4)
454options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 491options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 518options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 554options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
Attributes\AttributeTests_Locations.cs (2)
198CreateCompilation(source, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 246CreateCompilation(source, parseOptions: TestOptions.Regular10).VerifyDiagnostics(
Attributes\AttributeTests_MarshalAs.cs (6)
32options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 66options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 704options: TestOptions.ReleaseDll.WithWarningLevel(7)) 709options: TestOptions.ReleaseDll.WithWarningLevel(8)) 1449CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 1531options: TestOptions.ReleaseExe,
Attributes\AttributeTests_NativeInteger.cs (64)
71comp = CreateCompilation(source, references: new[] { ref0 }, parseOptions: TestOptions.Regular9); 102var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular9); 128var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular9); 165var comp = CreateCompilation(new[] { sourceAttribute, source }, parseOptions: TestOptions.Regular8); 168comp = CreateCompilation(new[] { sourceAttribute, source }, parseOptions: TestOptions.Regular9); 204var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 256var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular8); 266comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular9); 342var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular8); 346comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular9); 419var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular8); 429comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular9); 502var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular8); 506comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular9); 590var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular8); 612comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular9); 706var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular8); 722comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular9); 770var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 787var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 815var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 844comp = CreateCompilation(source2, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 857comp = CreateCompilation(source3, references: new[] { ref2 }, parseOptions: TestOptions.Regular9); 876var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 893var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 909var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 927var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 944var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 966var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 986var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1002var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1016var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1030var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1056var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1080parseOptions: TestOptions.Regular9, 1081options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 1104parseOptions: TestOptions.Regular9, 1105options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 1127parseOptions: TestOptions.Regular9, 1128options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 1151parseOptions: TestOptions.Regular9, 1152options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 1174var comp = CreateCompilation(source, options: TestOptions.ReleaseModule); 1198var comp = CreateCompilation(source, options: TestOptions.ReleaseModule); 1287var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1333var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 1357var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 1375var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 1397comp = CreateCompilation(source2, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 1413var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), parseOptions: TestOptions.Regular9); 1421comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.Regular9); 1444options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), 1445parseOptions: TestOptions.Regular9.WithNullablePublicOnly()); 1460var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1488var 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)
30var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular8); 355var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 371var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 379var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }, parseOptions: TestOptions.Regular8); 398var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 426var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 451var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 490var comp = CreateCompilation(new[] { sourceAttribute, source }, parseOptions: TestOptions.Regular7); 526var options = TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All); 561var options = TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All); 597var comp0 = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular7); 608parseOptions: TestOptions.Regular8); 645var comp0 = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular7); 656parseOptions: TestOptions.Regular8); 698var comp0 = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular7); 709parseOptions: TestOptions.Regular8); 746var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 797var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 811comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 841var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 864var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 886var comp = CreateCompilation(new[] { source }, options: WithNullable(NullableContextOptions.Enable), parseOptions: TestOptions.Regular8); 908var comp = CreateCompilation(new[] { source }, options: WithNullable(NullableContextOptions.Annotations), parseOptions: TestOptions.Regular8); 931var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 954var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 970var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 993var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 1004var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseModule); 1082var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1103var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8, references: new[] { comp.EmitToImageReference() }); 1130var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1158var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8, references: new[] { comp.EmitToImageReference() }); 1181var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 1208var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8, references: new[] { comp.EmitToImageReference() }); 1342var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1372var comp2 = CreateCompilation(new[] { source, source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1381comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8, references: new[] { comp.EmitToImageReference() }); 1407var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 1434var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8, references: new[] { comp.EmitToImageReference() }); 1455var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1480var comp2 = CreateCompilation(new[] { source, source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1489comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8, references: new[] { comp.EmitToImageReference() }); 1513var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1534var comp2 = CreateCompilation(new[] { source, source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1546comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8, references: new[] { comp.EmitToImageReference() }); 1902var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 1923var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 1944var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 1961var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 1984var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 2040var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 2056var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 2070var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 2084var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 2145var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 2166options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 2192parseOptions: TestOptions.Regular8, 2193options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 2219parseOptions: TestOptions.Regular8, 2220options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 2239var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular8); 2254var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, references: new[] { ref0 }); 2272parseOptions: TestOptions.Regular8, 2273options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 2296parseOptions: TestOptions.Regular8, 2297options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 2322var comp = CreateCompilation(source, options: TestOptions.ReleaseModule); 2349var comp = CreateCompilation(source, options: TestOptions.ReleaseModule); 2492var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular8); 2505parseOptions: TestOptions.Regular8, 2506options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 2530parseOptions: TestOptions.Regular8, 2531options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 2556parseOptions: TestOptions.Regular8, 2557options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 2585var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3471var parseOptions = TestOptions.Regular8; 3516var parseOptions = TestOptions.Regular8; 3631var options = TestOptions.ReleaseDll; 3632var parseOptions = TestOptions.Regular8; 3756var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 3826var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 3867var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 3967var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 4036var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 4115var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 4393var comp0 = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 4415parseOptions: TestOptions.Regular8.WithNoRefSafetyRulesAttribute()); 4429var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4449var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4470var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4488var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4503var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4518var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4536var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4560var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4585var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4606var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4621var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4647var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseModule); 4669var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4706var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4725var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4744var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4794var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8, references: new[] { comp.EmitToImageReference() }); 4853var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 4924var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8, references: new[] { comp.EmitToImageReference() }); 4970var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 4991var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 5028var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.DebugExe); 5063var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.DebugExe); 5299CompileAndVerify(source, options: TestOptions.ReleaseExe, references: new[] { library }, expectedOutput: 5317CompileAndVerify(source, options: TestOptions.ReleaseExe, references: new[] { library }, expectedOutput: 5343CompileAndVerify(source, options: TestOptions.ReleaseExe, references: new[] { library }, expectedOutput: 5367CompileAndVerify(source, options: TestOptions.ReleaseExe, references: new[] { library }, expectedOutput:
Attributes\AttributeTests_NullableContext.cs (6)
87var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular7); 128var comp = CreateCompilation(new[] { sourceAttribute, source }, parseOptions: TestOptions.Regular7); 204var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 231var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 337var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.DebugExe);
Attributes\AttributeTests_NullablePublicOnly.cs (27)
32var parseOptions = TestOptions.Regular8; 52var comp = CreateCompilation(NullablePublicOnlyAttributeDefinition, parseOptions: TestOptions.Regular7); 57var parseOptions = TestOptions.Regular8; 84var parseOptions = TestOptions.Regular8; 100var parseOptions = TestOptions.Regular8; 119var options = TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All); 120var parseOptions = TestOptions.Regular7; 140var parseOptions = TestOptions.Regular8; 160var parseOptions = TestOptions.Regular8; 180var parseOptions = TestOptions.Regular8; 200var parseOptions = TestOptions.Regular8; 217var parseOptions = TestOptions.Regular8; 253options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), 254parseOptions: TestOptions.Regular8.WithNullablePublicOnly()); 271var parseOptions = TestOptions.Regular8; 291var parseOptions = TestOptions.Regular8; 310var parseOptions = TestOptions.Regular8; 330var parseOptions = TestOptions.Regular8; 353var options = TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All); 354var parseOptions = TestOptions.Regular8; 376var options = TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All); 377var parseOptions = TestOptions.Regular8; 406var comp = CreateCompilation(new[] { sourceAttribute, source }, parseOptions: TestOptions.Regular7); 501var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNullablePublicOnly(), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 522var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNullablePublicOnly().WithNoRefSafetyRulesAttribute()); 566var parseOptions = TestOptions.Regular8;
Attributes\AttributeTests_ReadOnlyStruct.cs (8)
346var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All); 388CreateCompilation(code, options: TestOptions.ReleaseModule).VerifyDiagnostics( 405CreateCompilation(code, options: TestOptions.ReleaseModule).VerifyDiagnostics( 432CompileAndVerify(code, verify: Verification.Fails, references: new[] { reference }, options: TestOptions.ReleaseModule, symbolValidator: module => 444var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All); 486CompileAndVerify(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), verify: Verification.Passes, symbolValidator: module => 508CreateCompilation(text, options: TestOptions.ReleaseModule).VerifyDiagnostics( 598var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All);
Attributes\AttributeTests_RefReadOnly.cs (24)
594var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All); 622var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All); 648var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All); 682var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All); 721var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All); 753var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All); 780var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All); 815var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All); 1051var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All); 1095CreateCompilation(code, options: TestOptions.ReleaseModule).VerifyDiagnostics( 1111CreateCompilation(code, options: TestOptions.ReleaseModule).VerifyDiagnostics( 1135CreateCompilation(code, options: TestOptions.ReleaseModule).VerifyDiagnostics( 1156CompileAndVerify(code, verify: Verification.Fails, references: new[] { reference }, options: TestOptions.ReleaseModule, symbolValidator: module => 1169var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All); 1233CreateCompilation(text, options: TestOptions.ReleaseModule).VerifyDiagnostics( 1325var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All); 1532var compilation = CreateCompilation(code, options: TestOptions.ReleaseModule, references: new[] { reference }); 1556var compilation = CreateCompilation(code, options: TestOptions.ReleaseModule); 2342options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 2366options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 2389options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 2413options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 2438var comp = CreateCompilation(source, options: TestOptions.ReleaseModule); 2464var comp = CreateCompilation(source, options: TestOptions.ReleaseModule);
Attributes\AttributeTests_RefSafetyRules.cs (10)
28var comp = CreateCompilation(new[] { source, RefSafetyRulesAttributeDefinition }, parseOptions: TestOptions.Regular10); 39var comp = CreateCompilation(RefSafetyRulesAttributeDefinition, parseOptions: TestOptions.Regular10); 49comp = CreateCompilation(source, references: new[] { ref1 }, parseOptions: TestOptions.Regular10); 70var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular10); 95comp = CreateCompilation(source, references: new[] { ref1 }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 125var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 152var refA = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10).EmitToImageReference(); 154var comp = CreateCompilation(source, references: new[] { refA }, parseOptions: TestOptions.Regular10); 171var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 181comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB));
Attributes\AttributeTests_Security.cs (18)
670var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll, assemblyName: "Test"); 723var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll); 766var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular9); 804var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 844var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll); 897var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll); 949var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll); 1009var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll); 1075var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll); 1137var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll); 1200var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll); 1303var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.UnsafeReleaseDll); 1383var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.UnsafeReleaseDll); 1507TestOptions.ReleaseDll.WithXmlReferenceResolver(resolver)); 1586CreateCompilationWithMscorlib40(source, options: TestOptions.DebugDll.WithXmlReferenceResolver(resolver)).VerifyDiagnostics( 1629TestOptions.ReleaseDll.WithXmlReferenceResolver(new XmlFileResolver(tempDir.Path)));
Attributes\AttributeTests_StructLayout.cs (2)
360CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyValidator: (assembly) => 408CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyValidator: (assembly) =>
Attributes\AttributeTests_Synthesized.cs (51)
125var comp = CreateEmptyCompilation("", new[] { reference }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 145var reference = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).EmitToImageReference(); 146var comp = CreateEmptyCompilation("", new[] { reference }, options: TestOptions.UnsafeReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 171var options = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 220var options = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 259var options = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 287var options = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 371var comp = CreateCompilation(source, options: TestOptions.DebugDll); 425var options = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 480var options = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 538var options = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 576var options = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 619var options = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 665CompileAndVerify(source, symbolValidator: validate, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 735CompileAndVerify(source, symbolValidator: validate, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 797options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), 871CompileAndVerify(source, symbolValidator: validate, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 981var options = TestOptions.CreateTestOptions(outputKind, optimizationLevel); 1016var options = TestOptions.CreateTestOptions(outputKind, optimizationLevel); 1051var options = TestOptions.CreateTestOptions(outputKind, optimizationLevel); 1086var options = TestOptions.CreateTestOptions(outputKind, optimizationLevel); 1122var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 1123var options = TestOptions.CreateTestOptions(outputKind, optimizationLevel); 1161var options = TestOptions.CreateTestOptions(outputKind, optimizationLevel); 1196var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 1197var options = TestOptions.CreateTestOptions(outputKind, optimizationLevel); 1234var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 1235var options = TestOptions.CreateTestOptions(outputKind, optimizationLevel); 1261var options = TestOptions.CreateTestOptions(outputKind, optimizationLevel); 1262var compilation = CreateEmptyCompilation("", parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: options); 1305var options = TestOptions.CreateTestOptions(outputKind, optimizationLevel); 1354var options = TestOptions.CreateTestOptions(outputKind, optimizationLevel); 1401var options = TestOptions.CreateTestOptions(outputKind, optimizationLevel); 1445var options = TestOptions.CreateTestOptions(outputKind, optimizationLevel); 1488var options = TestOptions.CreateTestOptions(outputKind, optimizationLevel); 1519", options: TestOptions.CreateTestOptions(OutputKind.NetModule, optimizationLevel)); 1532var options = TestOptions.CreateTestOptions(outputKind, optimizationLevel); 1560", options: TestOptions.CreateTestOptions(OutputKind.NetModule, optimizationLevel)); 1573var options = TestOptions.CreateTestOptions(outputKind, optimizationLevel); 1608var compilation = CreateCompilationWithMscorlib40(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.CreateTestOptions(outputKind, OptimizationLevel.Release, allowUnsafe: true)); 1671var options = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 1714var options = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 1756var options = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 1798var referenceOptions = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 1802var options = TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All); 1837var options = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 1867var options = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 1897var referenceOptions = TestOptions.CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel) 1901var options = TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All); 1914var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute();
Attributes\AttributeTests_Tuples.cs (9)
109options: TestOptions.ReleaseDll, 117options: TestOptions.UnsafeReleaseDll, 143options: TestOptions.ReleaseDll); 175var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 213var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 239options: TestOptions.UnsafeReleaseDll, 658options: TestOptions.ReleaseDll); 948parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), 1048parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(),
Attributes\AttributeTests_WellKnownAttributes.cs (97)
1613CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: ""); 2689CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyValidator: (assembly) => 2805CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyValidator: (assembly) => 3279CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyValidator: (assembly) => 3457CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyValidator: (assembly) => 3701CompileAndVerify(source, options: TestOptions.ReleaseDll, verify: Verification.FailsPEVerify, sourceSymbolValidator: sourceValidator, symbolValidator: metadataValidator); 4703CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyValidator: (assembly) => 4812CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyValidator: (assembly) => 5016var script = CreateCompilation("", parseOptions: TestOptions.Script); 5141var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 5143var compilation = CreateCompilation(syntaxTree, options: TestOptions.ReleaseDll); 5204CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 5271var opt = TestOptions.ReleaseDll; 5761parseOptions: TestOptions.Regular9, 5762options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All)); 6650CreateCompilation(source, null, TestOptions.ReleaseDll.WithConcurrentBuild(false)).VerifyDiagnostics( 8787verify(TestOptions.DebugDll.WithGeneralDiagnosticOption(ReportDiagnostic.Warn), 8793verify(TestOptions.DebugDll.WithGeneralDiagnosticOption(ReportDiagnostic.Error), 8799verify(TestOptions.DebugDll.WithGeneralDiagnosticOption(ReportDiagnostic.Hidden), 8804verify(TestOptions.DebugDll.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress)); 8807verify(TestOptions.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("TEST1", ReportDiagnostic.Warn)), 8813verify(TestOptions.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("TEST1", ReportDiagnostic.Error)), 8819verify(TestOptions.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("TEST1", ReportDiagnostic.Hidden)), 8825verify(TestOptions.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("TEST1", ReportDiagnostic.Suppress))); 8828verify(TestOptions.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("CS0618", ReportDiagnostic.Error)), 8834verify(TestOptions.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("CS0618", ReportDiagnostic.Suppress)), 9779var compilation1 = CreateEmptyCompilation(source1, WinRtRefs, TestOptions.ReleaseDll); 9844var compilation2 = CreateEmptyCompilation(source2, WinRtRefs.Concat(new[] { new CSharpCompilationReference(compilation1) }), TestOptions.ReleaseDll); 9872compilation2 = CreateEmptyCompilation(source2, WinRtRefs.Concat(new[] { compilation1.EmitToImageReference() }), TestOptions.ReleaseDll); 9905? CreateEmptyCompilation(new[] { (libSrc, "libSrc"), (src, "src") }, WinRtRefs, TestOptions.ReleaseDll) 9907references: WinRtRefs.Append(CreateEmptyCompilation(new[] { libSrc }, WinRtRefs, TestOptions.ReleaseDll).EmitToImageReference()).ToArray(), 9908TestOptions.ReleaseDll); 10171var compilation1 = CreateEmptyCompilation(source1, WinRtRefs, TestOptions.ReleaseDll); 10208var compilation1 = CreateEmptyCompilation(source1, WinRtRefs, TestOptions.ReleaseDll); 10224var compilation2 = CreateEmptyCompilation(source2, WinRtRefs.Concat(new[] { new CSharpCompilationReference(compilation1) }), TestOptions.ReleaseDll); 10284var cscomp = CreateEmptyCompilation(cssource, new[] { MscorlibRef, ilReference }, TestOptions.ReleaseExe); 10392var cscomp = CreateEmptyCompilation(cssource, new[] { MscorlibRef, ilReference }, TestOptions.ReleaseExe); 10428return CompileAndVerifyWithSkipLocalsInit(src, TestOptions.UnsafeReleaseDll, parseOptions, verify ?? Verification.Fails); 10502var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 10537var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 10570var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularWithExtendedPartialMethods, verify: Verification.Fails); 10603var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularWithExtendedPartialMethods, verify: Verification.Fails); 10695var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 10820var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 10850var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 10910var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 10955var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); 10997var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); 11039var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); 11081var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); 11123var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); 11165var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.Regular9); 11392var verifier = CompileAndVerifyWithSkipLocalsInit(source, parseOptions: TestOptions.RegularPreview, verify: Verification.Skipped); 11417var verifier = CompileAndVerifyWithSkipLocalsInit(source, parseOptions: TestOptions.RegularPreview, verify: Verification.Skipped); 11448var verifier = CompileAndVerifyWithSkipLocalsInit(source, parseOptions: TestOptions.RegularPreview, verify: Verification.Skipped); 11479var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.UnsafeReleaseExe); 11498var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.UnsafeReleaseExe, verify: Verification.Passes); 11537var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11578var comp1 = CompileAndVerify(source1, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11614var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11662var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11696var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11733var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11764var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11809var comp_init = CompileAndVerify(source_init, options: TestOptions.UnsafeReleaseDll); 11810var comp_skip = CompileAndVerify(source_skip, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11847var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll); 11890var comp_init = CompileAndVerify(source_init, options: TestOptions.UnsafeReleaseDll); 11891var comp_skip = CompileAndVerify(source_skip, options: TestOptions.UnsafeReleaseDll); 11933var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 11985var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12057var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12092var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12165var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12226var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12255var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll); 12301var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll); 12419var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12469var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12524var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12582var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12629var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12658var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12686var comp = CompileAndVerify(source, options: TestOptions.UnsafeDebugExe, verify: Verification.Fails); 12714var comp = CompileAndVerify(source, options: TestOptions.DebugModule.WithAllowUnsafe(true), verify: Verification.Fails); 12744var metadata_comp = CreateCompilation(metadata_source, options: TestOptions.DebugModule.WithAllowUnsafe(true)); 12799var verifier = CompileAndVerify(src, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12865var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 12919var comp = CreateCompilation(new[] { src, skipLocalsInitDef1 }, options: TestOptions.UnsafeDebugDll); 13040var verifier = CompileAndVerify(src, options: TestOptions.UnsafeReleaseDll, verify: Verification.Skipped); 13086var verifier = CompileAndVerify(src, options: TestOptions.UnsafeReleaseDll, verify: Verification.Skipped); 13113var comp = CreateCompilation(new[] { src, skipLocalsInitDef }, options: TestOptions.UnsafeReleaseDll); 13492}", options: TestOptions.ReleaseExe); 13553var comp = CreateCompilation(new[] { sourceAttribute, sourceA }, parseOptions: TestOptions.RegularPreview); 13598var comp = CreateCompilation(new[] { sourceAttribute, sourceA }, parseOptions: TestOptions.RegularPreview);
Attributes\EmitTestStrongNameProvider.cs (2)
33var options = TestOptions.DebugDll 53var options = TestOptions.DebugDll
Attributes\InternalsVisibleToAndStrongNameTests.cs (149)
40new object[] { TestOptions.Regular }, 41new object[] { TestOptions.RegularWithLegacyStrongName } 45return SpecializedCollections.SingletonEnumerable(new object[] { TestOptions.Regular }); 95options: TestOptions.ReleaseDll.WithStrongNameProvider(new DesktopStrongNameProvider()), 109var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll, parseOptions: parseOptions); 141var comp = CreateCompilation(syntaxTree, options: TestOptions.ReleaseDll); 152TestOptions.ReleaseDll.WithStrongNameProvider(GetProviderWithPath(keyFileDir))); 170var comp = CreateCompilation(syntaxTree, options: TestOptions.ReleaseDll); 182TestOptions.ReleaseDll.WithStrongNameProvider(GetProviderWithPath(PathUtilities.CombineAbsoluteAndRelativePaths(keyFileDir, @"TempSubDir\")))); 193var options = TestOptions.SigningReleaseDll.WithStrongNameProvider(s_providerNoSigningTempPath); 195var compilation = CreateCompilation(code, options: options, parseOptions: TestOptions.Regular); 198compilation = CreateCompilation(code, options: options, parseOptions: TestOptions.RegularWithLegacyStrongName); 208var options = TestOptions.SigningReleaseDll.WithStrongNameProvider(SigningTestHelpers.DefaultDesktopStrongNameProvider); 210var compilation = CreateCompilation(code, options: options, parseOptions: TestOptions.Regular); 215compilation = CreateCompilation(code, options: options, parseOptions: TestOptions.RegularWithLegacyStrongName); 227var syntaxTree = Parse(s, @"IVTAndStrongNameTests\AnotherTempDir\temp.cs", TestOptions.RegularWithLegacyStrongName); 234var options = TestOptions.ReleaseDll.WithStrongNameProvider(provider); 255var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll, parseOptions: parseOptions); 281var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions); 298var comp = CreateCompilation(s, options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(keyFileName), parseOptions: parseOptions); 311TestOptions.ReleaseDll.WithCryptoKeyFile(keyFileName).WithStrongNameProvider(GetProviderWithPath(keyFileDir))); 323options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_publicKeyFile).WithDelaySign(true), 341options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(publicKeyFileName).WithDelaySign(true), 358TestOptions.ReleaseDll.WithCryptoKeyFile(publicKeyFileName).WithDelaySign(true).WithStrongNameProvider(GetProviderWithPath(publicKeyFileDir))); 368var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll.WithCryptoKeyFile("goo"), parseOptions: parseOptions); 383CSharpCompilation other = CreateCompilation(s, options: TestOptions.ReleaseDll.WithCryptoKeyFile(tempFile.Path), parseOptions: parseOptions); 396var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll.WithCryptoKeyContainer("goo"), parseOptions: parseOptions); 415var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions); 427var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll.WithCryptoKeyContainer("RoslynTestContainer"), parseOptions: parseOptions); 438var options = TestOptions.SigningReleaseDll 453var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll, parseOptions: parseOptions); 464var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll, parseOptions: parseOptions); 477var c = CreateCompilation(source, options: TestOptions.ReleaseDll.WithCryptoPublicKey(s_publicKey), parseOptions: parseOptions); 501var c = CreateCompilation(source, options: TestOptions.ReleaseDll.WithCryptoPublicKey(s_publicKey).WithPublicSign(true), parseOptions: parseOptions); 517c = CreateCompilation(source, options: TestOptions.SigningReleaseModule.WithCryptoPublicKey(s_publicKey).WithPublicSign(true), parseOptions: parseOptions); 524c = CreateCompilation(source, options: TestOptions.SigningReleaseModule.WithCryptoKeyFile(s_publicKeyFile).WithPublicSign(true), parseOptions: parseOptions); 541c = CreateCompilation(source1, options: TestOptions.SigningReleaseModule.WithCryptoKeyFile(snk.Path).WithPublicSign(true)); 557var c = CreateCompilation(source, options: TestOptions.ReleaseDll.WithPublicSign(true), parseOptions: parseOptions); 577var c = CreateCompilation(source, options: TestOptions.ReleaseDll.WithPublicSign(true), parseOptions: parseOptions); 609options: TestOptions.ReleaseDll 631options: TestOptions.ReleaseDll 655options: TestOptions.ReleaseDll 677options: TestOptions.ReleaseDll 694options: TestOptions.SigningReleaseDll 718options: TestOptions.ReleaseDll 739options: TestOptions.ReleaseDll 756options: TestOptions.ReleaseDll.WithPublicSign(true), 772var c = CreateCompilation(source, options: TestOptions.SigningReleaseDll. 798var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll, assemblyName: "Paul", parseOptions: parseOptions); 813options: TestOptions.SigningReleaseDll, 837options: TestOptions.SigningReleaseDll); 849var otherStream = CreateCompilation(s, options: TestOptions.SigningReleaseDll, parseOptions: parseOptions).EmitToStream(); 864options: TestOptions.SigningReleaseDll, 885options: TestOptions.SigningReleaseDll, 899options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), 917TestOptions.SigningReleaseDll.WithCryptoKeyContainer("roslynTestContainer"), 931var other = CreateCompilation(s, assemblyName: "Paul", options: TestOptions.SigningReleaseDll, parseOptions: parseOptions); 947options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), 988var other = CreateCompilation(cs0281, references: new[] { friendClass.EmitToImageReference() }, assemblyName: "cs0281", options: TestOptions.SigningReleaseDll, parseOptions: parseOptions); 1032var other = CreateCompilation(cs0281, references: new[] { friendClass.EmitToImageReference() }, assemblyName: "cs0281", options: TestOptions.SigningReleaseDll, parseOptions: parseOptions); 1072options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), 1092options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), 1106options: TestOptions.SigningReleaseDll, 1122options: TestOptions.SigningReleaseDll, 1136options: TestOptions.SigningReleaseDll); 1151options: TestOptions.SigningReleaseDll, 1165options: TestOptions.SigningReleaseDll); 1181options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), 1196options: TestOptions.SigningReleaseDll, 1216options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), 1231options: TestOptions.SigningReleaseDll, 1257options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), 1270options: TestOptions.SigningReleaseDll, 1287options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), 1302TestOptions.SigningReleaseDll, 1323options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), 1338TestOptions.SigningReleaseDll, 1366options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(SigningTestHelpers.KeyPairFile2), 1383options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), 1406", options: TestOptions.SigningReleaseDll, parseOptions: parseOptions); 1423", options: TestOptions.SigningReleaseExe.WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions); 1453options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(SigningTestHelpers.MaxSizeKeyFile), 1474options: TestOptions.SigningReleaseExe.WithCryptoKeyFile(SigningTestHelpers.MaxSizeKeyFile), 1484options: TestOptions.SigningReleaseExe.WithCryptoKeyFile(SigningTestHelpers.MaxSizeKeyFile), 1502options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions); 1554TestOptions.SigningReleaseDll, 1576var other = CreateCompilation(s, options: TestOptions.SigningReleaseModule); 1589var other = CreateCompilation(s, options: TestOptions.SigningReleaseModule); 1602var other = CreateCompilation(s, options: TestOptions.SigningReleaseModule, parseOptions: parseOptions); 1608other = CreateCompilation(s, new[] { reference }, TestOptions.SigningReleaseDll); 1625var other = CreateCompilation(s, options: TestOptions.SigningReleaseModule); 1632other = CreateCompilation(s, new[] { reference }, TestOptions.SigningReleaseDll, parseOptions: parseOptions); 1642var options = TestOptions.SigningReleaseDll.WithCryptoKeyFile(PublicKeyFile); 1661var options = TestOptions.SigningReleaseModule.WithCryptoKeyContainer("roslynTestContainer"); 1680var options = TestOptions.SigningReleaseModule.WithCryptoKeyContainer("roslynTestContainer"); 1700var other = CreateCompilation(s, options: TestOptions.SigningReleaseModule.WithCryptoKeyContainer("roslynTestContainer"), parseOptions: parseOptions); 1718var options = TestOptions.SigningReleaseModule.WithCryptoKeyFile(s_keyPairFile); 1734var options = TestOptions.SigningReleaseDll 1755var options = TestOptions.SigningDebugDll.WithCryptoKeyFile(s_keyPairFile); 1778var options = TestOptions.SigningReleaseModule.WithCryptoKeyFile(s_keyPairFile); 1796var other = CreateCompilation(s, options: TestOptions.SigningReleaseModule.WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions); 1816options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_publicKeyFile), parseOptions: parseOptions); 1822other = other.WithOptions(TestOptions.SigningReleaseModule.WithCryptoKeyFile(s_publicKeyFile)); 1826options: TestOptions.SigningReleaseDll, 1845options: TestOptions.SigningReleaseModule, parseOptions: parseOptions); 1849options: TestOptions.SigningReleaseDll, 1866}", options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_publicKeyFile), parseOptions: parseOptions); 1886options: TestOptions.SigningReleaseDll, parseOptions: parseOptions); 1907options: 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); 1967var options = TestOptions.SigningReleaseDll 2027var comp = CreateCompilation(csharp, new[] { ilRef }, assemblyName: "asm2", options: TestOptions.SigningReleaseDll, parseOptions: parseOptions); 2085var comp1 = CreateCompilationWithMscorlib461(source1, options: TestOptions.SigningReleaseDll, assemblyName: "asm1", parseOptions: parseOptions); 2089var comp2 = CreateCompilationWithMscorlib461(source2, new[] { ref1 }, options: TestOptions.SigningReleaseDll, assemblyName: "asm2", parseOptions: parseOptions); 2093var comp3 = CreateCompilationWithMscorlib461(source3, new[] { SystemCoreRef, ref1, ref2 }, options: TestOptions.SigningReleaseDll, assemblyName: "asm3", parseOptions: parseOptions); 2204var comp1 = CreateCompilationWithMscorlib461(source1, options: TestOptions.SigningReleaseDll, assemblyName: "asm1", parseOptions: parseOptions); 2208var comp2 = CreateCompilationWithMscorlib461(source2, new[] { ref1 }, options: TestOptions.SigningReleaseDll, assemblyName: "asm2", parseOptions: parseOptions); 2212var comp3 = CreateCompilationWithMscorlib461(source3, new[] { ref1, ref2 }, options: TestOptions.SigningReleaseDll, assemblyName: "asm3", parseOptions: parseOptions); 2216var comp4 = CreateCompilationWithMscorlib461(source4, new[] { SystemCoreRef, ref1, ref2, ref3 }, options: TestOptions.SigningReleaseDll, assemblyName: "asm4", parseOptions: parseOptions); 2368options: TestOptions.SigningReleaseDll, 2379options: 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); 2511options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), 2540options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), references: new[] { MscorlibRef_v4_0_30316_17626 }, parseOptions: parseOptions); 2569var options = TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile); 2599options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_publicKeyFile).WithDelaySign(true), 2631options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_publicKeyFile).WithDelaySign(true), references: new[] { MscorlibRef_v4_0_30316_17626 }, parseOptions: parseOptions); 2656options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_publicKeyFile).WithDelaySign(true), references: new[] { MscorlibRef_v4_0_30316_17626 }, parseOptions: parseOptions); 2686options: 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); 2723options: TestOptions.SigningReleaseModule, 2752var ca = CreateCompilation(sourceA, options: TestOptions.ReleaseDll, assemblyName: "ClassLibrary2", parseOptions: parseOptions); 2755var cb = CreateCompilation(sourceB, options: TestOptions.ReleaseExe, assemblyName: "X", references: new[] { new CSharpCompilationReference(ca) }, parseOptions: parseOptions); 2780var ca = CreateCompilation(sourceA, options: TestOptions.ReleaseDll, assemblyName: "ClassLibrary2", parseOptions: parseOptions); 2783var cb = CreateCompilation(sourceB, options: TestOptions.ReleaseExe, assemblyName: "X", references: new[] { new CSharpCompilationReference(ca) }, parseOptions: parseOptions); 2813var options = TestOptions.DebugDll; 2825var options = TestOptions.DebugDll.WithCryptoKeyFile(string.Empty); 2836var options = TestOptions.DebugDll.WithPublicSign(true); 2848var options = TestOptions.DebugDll.WithCryptoKeyFile(string.Empty).WithPublicSign(true); 2862var options = TestOptions.ReleaseDll 2870}", options: options, parseOptions: TestOptions.RegularWithLegacyStrongName); 2897var libRef = CreateCompilation(lib_cs, options: TestOptions.SigningReleaseDll, parseOptions: parseOptions).EmitToImageReference(); 2911options: TestOptions.SigningReleaseDll, parseOptions: parseOptions); 2934var libRef = CreateCompilation(lib_cs, options: TestOptions.SigningReleaseDll).EmitToImageReference(); 2948var c2 = CreateCompilation(new[] { source1, source2 }, new[] { libRef }, assemblyName: "WantsIVTAccess", options: TestOptions.SigningReleaseDll);
Diagnostics\DiagnosticAnalyzerTests.cs (27)
144var options = TestOptions.ReleaseDll.WithSpecificDiagnosticOptions( 167var options = TestOptions.ReleaseDll.WithSpecificDiagnosticOptions( 200var options = TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Error); 286var options = TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Error); 320var options = TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions); 336options = TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions); 348options = TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions); 399var options = TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Default); 404options = TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Error); 410options = TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Warn); 417options = TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Info); 424options = TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Hidden); 431options = TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress); 451var options = TestOptions.ReleaseDll; 462options = TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions); 526var options = TestOptions.ReleaseDll; 534options = TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions); 541options = TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions); 1142var options = TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions); 1151options = TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions); 2458var compilation = CreateCompilationWithMscorlib461(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 3140var compilation = CreateCompilation(new[] { source1, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 3385var options = TestOptions.DebugDll.WithSyntaxTreeOptionsProvider( 3428var options = TestOptions.DebugDll.WithSyntaxTreeOptionsProvider( 3480var options = TestOptions.DebugDll.WithSyntaxTreeOptionsProvider( 3532var options = TestOptions.DebugDll.WithSyntaxTreeOptionsProvider( 3553options = TestOptions.DebugDll.WithSyntaxTreeOptionsProvider(
Diagnostics\DiagnosticSuppressorTests.cs (1)
670var options = TestOptions.DebugDll.WithConcurrentBuild(concurrent);
Diagnostics\OperationAnalyzerTests.cs (3)
22private static readonly CSharpParseOptions patternParseOptions = TestOptions.Regular; 187CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe) 1386CreateCompilationWithMscorlib461(source, options: TestOptions.UnsafeReleaseDll)
FieldKeywordTests.cs (33)
682parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 683options: TestOptions.ReleaseExe, 843parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 952parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 1065parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 1066options: TestOptions.ReleaseExe, 1162parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 1163options: TestOptions.ReleaseExe, 1399var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1487parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 4052options: includeStructInitializationWarnings ? TestOptions.ReleaseExe.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings) : TestOptions.ReleaseExe, 4203options: includeStructInitializationWarnings ? TestOptions.ReleaseExe.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings) : TestOptions.ReleaseExe, 4335options: includeStructInitializationWarnings ? TestOptions.ReleaseExe.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings) : TestOptions.ReleaseExe, 4469options: includeStructInitializationWarnings ? TestOptions.ReleaseExe.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings) : TestOptions.ReleaseExe, 4926var comp = CreateCompilation([sourceA, sourceB], options: TestOptions.ReleaseExe); 7973var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8027var parseOptions = TestOptions.RegularNext; 8169var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 8362parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 8363options: TestOptions.ReleaseExe, 8505parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 8594parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 8669parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 10199parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 10200options: TestOptions.ReleaseExe, 10302parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 10303options: TestOptions.ReleaseExe, 10401parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 10402options: TestOptions.ReleaseExe,
FirstClassSpanTests.cs (305)
59CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 78var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 110var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 115comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 156var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe); 168comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext, options: TestOptions.ReleaseExe); 171comp = CreateCompilationWithSpanAndMemoryExtensions(source, TestOptions.ReleaseExe); 192var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 197comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 221var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 257var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 279var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 305CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 314CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics); 339var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 361var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 366comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 392var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 418parseOptions: TestOptions.Regular13); 424parseOptions: TestOptions.RegularNext); 449var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 454comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 479var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 484comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 509var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 514comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 537var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 547CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics); 567var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 590parseOptions: TestOptions.Regular13); 596parseOptions: TestOptions.RegularNext); 620var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 630CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics); 650var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 677var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 711var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 741var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 767var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 797comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90); 823var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 849var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 878comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90); 904var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 931var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 957comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 976var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 1006CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 1025CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 1039var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 1069CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 1088CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 1102var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 1132CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 1151CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 1173CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 1185CreateCompilation(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics); 1204CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 1216CreateCompilation(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics); 1235CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 1250CreateCompilation(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics); 1272CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 1284CreateCompilation(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics); 1306CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 1318CreateCompilation(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics); 1336CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 1348CreateCompilation(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics); 1366CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 1378CreateCompilation(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics); 1832var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 1901var spanDll = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll) 1909options: TestOptions.UnsafeReleaseExe.WithSpecificDiagnosticOptions("CS0436", ReportDiagnostic.Suppress), 1910parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 2068options: TestOptions.UnsafeReleaseExe.WithSpecificDiagnosticOptions("CS0436", ReportDiagnostic.Suppress)); 2306options: TestOptions.UnsafeReleaseExe.WithSpecificDiagnosticOptions("CS0436", ReportDiagnostic.Suppress)); 2539options: TestOptions.UnsafeReleaseExe.WithSpecificDiagnosticOptions("CS0436", ReportDiagnostic.Suppress)); 2809CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 2825CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 2840CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 2863CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)) 2886CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 2902CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 2918CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 2934CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(); 2948CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 2967CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 2983CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 2999CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 3015CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(); 3029CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 3047CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 3070CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), verify: Verification.FailsILVerify) 3102CompileAndVerify(source, parseOptions: TestOptions.Regular13, verify: Verification.FailsILVerify) 3124CompileAndVerify(source, parseOptions: TestOptions.RegularNext, verify: Verification.FailsILVerify) 3142CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 3160CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 3184CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), verify: Verification.FailsILVerify) 3215CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), verify: Verification.FailsILVerify) 3246CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), verify: Verification.FailsILVerify) 3274CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 3290CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 3306CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 3329CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), verify: Verification.FailsILVerify) 3359CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)) 3392CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 3428CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics); 3452CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 3488CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics); 3512CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 3551CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics); 3575CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 3614CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics); 3630CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics(); 3650CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 3671CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics); 3694CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 3721CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics); 3742CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 3776CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 3816CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 3849CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics); 3872CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), targetFramework: TargetFramework.Net90).VerifyDiagnostics( 3903CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 3922CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 3934CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics); 3950CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 4111CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 4179CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 4205var comp = CreateCompilationWithSpanAndMemoryExtensions(source, TestOptions.DebugDll); 4239CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 4264CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 4280CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 4296CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 4314CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 4339CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 4355CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 4371CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 4394var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 4426var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), verify: Verification.FailsILVerify); 4457var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 4489var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 4530var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 4587comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 4610var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 4639CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 4657var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90); 4680CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 4697var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90); 4720CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 4737var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90); 4763CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 4799CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 4823CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 4846CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 4861CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics); 4882CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 4903CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics); 4936CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 4960CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics); 4986CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 5031CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics); 5053CreateCompilationWithSpanAndMemoryExtensions(source, TestOptions.UnsafeReleaseExe, TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 5078var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 5164comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 5188var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 5273var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 5281CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 5295var comp = CreateCompilation([source, source2], parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 5319CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 5342CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 5368CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 5383CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics); 5404CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 5419CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90).VerifyDiagnostics(expectedDiagnostics); 5438var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 5456var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 5488var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 5519CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 5563CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 5575CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics); 5594CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 5599var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 5630CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 5656var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 5681CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 5700var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 5727CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 5744CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 5765CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 5795CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 5819CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 5831CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext).VerifyDiagnostics(expectedDiagnostics); 5909CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 5916var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 5942CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 5949var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 5975CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 5982var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90); 6008CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 6015var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90); 6041CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 6048var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 6082CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 6089var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 6123var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 6179verifyWithMissing(missingRosHelper, TestOptions.Regular13, expectedDiagnostics); 6180verifyWithMissing(missingSpanHelper, TestOptions.Regular13, expectedDiagnostics); 6188verifyWithMissing(missingRosHelper, TestOptions.RegularNext); 6189verifyWithMissing(missingSpanHelper, TestOptions.RegularNext, expectedDiagnostics); 6191verifyWithMissing(missingRosHelper, TestOptions.RegularPreview); 6192verifyWithMissing(missingSpanHelper, TestOptions.RegularPreview, expectedDiagnostics); 6252verifyWithMissing(missingRosHelper, TestOptions.Regular13, expectedDiagnostics); 6253verifyWithMissing(missingSpanHelper, TestOptions.Regular13, expectedDiagnostics); 6261verifyWithMissing(missingRosHelper, TestOptions.RegularNext, expectedDiagnostics); 6262verifyWithMissing(missingSpanHelper, TestOptions.RegularNext); 6264verifyWithMissing(missingRosHelper, TestOptions.RegularPreview, expectedDiagnostics); 6265verifyWithMissing(missingSpanHelper, TestOptions.RegularPreview); 6287CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 6305var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 6328CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 6346var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 6369CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 6388var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90); 6411CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 6429var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90); 6452CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 6470var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 6493CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 6514CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 6535var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 6539comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 6582CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 6598var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 6864var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 6909var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 6938CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 6968CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)).VerifyDiagnostics( 7001var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7087CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 7108var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 7112comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 7172parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7209var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 7251comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 7275CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 7282var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 7304var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7325CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 7332var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 7356var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7376var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7399var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 7404comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 7429var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7449var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7470var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7491var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 7496comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 7520var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7542var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7668var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7687var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 7692comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 7714var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 7719comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 7741var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7760var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7779var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7798var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 7803comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 7827var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7848var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 7853comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 7876var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 7898var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 7903comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 7925CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 7935var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90); 7956CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 7963var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 7985var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 8004CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 8014var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 8036CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 8046var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90); 8068CreateCompilationWithSpanAndMemoryExtensions([source1, source2], parseOptions: TestOptions.Regular13).VerifyDiagnostics( 8075var comp = CreateCompilationWithSpanAndMemoryExtensions([source1, source2], parseOptions: TestOptions.RegularNext); 8092comp = CreateCompilationWithSpanAndMemoryExtensions([source1, source3], parseOptions: TestOptions.Regular13); 8095comp = CreateCompilationWithSpanAndMemoryExtensions([source1, source3], parseOptions: TestOptions.RegularNext); 8121CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 8137var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 8159CreateCompilationWithSpanAndMemoryExtensions([source1, source2], parseOptions: TestOptions.Regular13).VerifyDiagnostics( 8166var comp = CreateCompilationWithSpanAndMemoryExtensions([source1, source2], parseOptions: TestOptions.RegularNext); 8185comp = CreateCompilationWithSpanAndMemoryExtensions([source1, source3], parseOptions: TestOptions.Regular13); 8188comp = CreateCompilationWithSpanAndMemoryExtensions([source1, source3], parseOptions: TestOptions.RegularNext); 8212CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 8219var comp = CreateCompilationWithSpanAndMemoryExtensions(source, targetFramework: TargetFramework.Net90, parseOptions: TestOptions.RegularNext); 8243var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 8248comp = CreateCompilationWithSpanAndMemoryExtensions(source, targetFramework: TargetFramework.Net90, parseOptions: TestOptions.RegularNext); 8284var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 8289comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 8351var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 8356comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext);
FlowAnalysis\FlowDiagnosticTests.cs (24)
926CreateCompilation(program, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 1220CreateCompilation(program, parseOptions: TestOptions.Regular10) 1230var verifier = CompileAndVerify(program, parseOptions: TestOptions.Regular11); 1284CreateCompilation(program, parseOptions: TestOptions.Regular10) 1290var verifier = CompileAndVerify(program, parseOptions: TestOptions.Regular11); 1315var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1343var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1385var comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 1403comp = CreateCompilation(text, parseOptions: TestOptions.Regular11); 1442var comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 1460comp = CreateCompilation(text, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), parseOptions: TestOptions.Regular11); 1478comp = CreateCompilation(text, parseOptions: TestOptions.Regular11); 1750var comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 1781comp = CreateCompilation(text, parseOptions: TestOptions.Regular11); 2340CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, expectedOutput: ""); 2407CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular10); 2420comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular11); 2564CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular10); 2577comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular11); 2695var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 2704comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 2725var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 2737comp = CreateCompilation(source, parseOptions: TestOptions.Regular11);
FlowAnalysis\FlowTestBase.cs (3)
119var comp = CreateCompilation(program, parseOptions: TestOptions.RegularPreview, references: references); 140var comp = CreateCompilation(program, parseOptions: TestOptions.RegularPreview, references: references); 166var comp = CreateCompilation(program, parseOptions: TestOptions.RegularPreview, targetFramework: targetFramework, references: references);
FlowAnalysis\FlowTests.cs (7)
169comp = CreateCompilation(src, parseOptions: TestOptions.Regular7_3); 1640CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1688CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 5510var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 5933CompileAndVerify(source, parseOptions: TestOptions.Regular12, expectedOutput: "c").VerifyDiagnostics(expectedDiagnostic); 5934CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: "c").VerifyDiagnostics(expectedDiagnostic); 5935CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
FlowAnalysis\LocalFunctions.cs (4)
725var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 741comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 1502var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 1512comp = CreateCompilation(source, parseOptions: TestOptions.Regular11);
FlowAnalysis\RegionAnalysisTests.cs (7)
5525var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5566var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5615var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "42"); 6465var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular10); 6473compilation = CreateCompilation(source, parseOptions: TestOptions.Regular11); 9254", options: TestOptions.UnsafeDebugDll); 14139options: TestOptions.UnsafeDebugDll);
FlowAnalysis\StructTests.cs (18)
250options: TestOptions.ReleaseDll.WithWarningLevel(5), 260options: TestOptions.ReleaseDll.WithWarningLevel(5), 270options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel), 277options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel), 339CreateCompilation(source2, references: new MetadataReference[] { sourceReference }, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics( 341CreateCompilation(source2, references: new MetadataReference[] { metadataReference }, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics( 343CreateCompilation(source2, references: new MetadataReference[] { sourceReference }, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics( 348CreateCompilation(source2, references: new MetadataReference[] { metadataReference }, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics( 384CreateCompilation(source2, references: new MetadataReference[] { sourceReference }, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics( 386CreateCompilation(source2, references: new MetadataReference[] { metadataReference }, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics( 388CreateCompilation(source2, references: new MetadataReference[] { sourceReference }, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics( 393CreateCompilation(source2, references: new MetadataReference[] { metadataReference }, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics( 416var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 428CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics( 459var comp1 = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugModule)); 492var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 504CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics( 506CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics(
OverloadResolutionPriorityTests.cs (5)
862CreateCompilation([source, OverloadResolutionPriorityAttributeDefinition], parseOptions: TestOptions.Regular12).VerifyDiagnostics( 873var definingComp = CreateCompilation([source, OverloadResolutionPriorityAttributeDefinition], parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 882CompileAndVerify(consumingSource, references: [definingComp.ToMetadataReference()], parseOptions: TestOptions.Regular12, expectedOutput: "8765").VerifyDiagnostics(); 883CompileAndVerify(consumingSource, references: [definingComp.ToMetadataReference()], parseOptions: TestOptions.Regular13, expectedOutput: "4321").VerifyDiagnostics(); 974var comp = CreateCompilation(source, options: TestOptions.ReleaseExe);
RefReadonlyParameterTests.cs (209)
183CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 258CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 837var verifier = CompileAndVerify(source, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 861var verifier = CompileAndVerify(source, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 914var verifier = CompileAndVerify(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeReleaseDll, 964CreateCompilationWithIL(source, ilSource, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 969var comp = CreateCompilationWithIL(source, ilSource, options: TestOptions.UnsafeDebugDll); 1028CreateCompilationWithIL(new[] { source, RequiresLocationAttributeDefinition }, ilSource, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1051var comp = CreateCompilationWithIL(new[] { source, RequiresLocationAttributeDefinition }, ilSource, options: TestOptions.UnsafeDebugDll); 1115var comp = CreateCompilationWithIL(source, ilSource, options: TestOptions.UnsafeDebugDll); 1169var comp = CreateCompilationWithIL(source, ilSource, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1217var comp = CreateCompilationWithIL(source, ilSource, options: TestOptions.UnsafeDebugDll); 1245var comp = CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugDll); 1269var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1286var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1319var comp2 = CreateCompilation(source2, new[] { comp1Ref }, assemblyName: "Assembly2", options: TestOptions.UnsafeDebugDll); 1331var comp2b = CreateCompilation(source2, new[] { comp1bRef }, assemblyName: "Assembly2", options: TestOptions.UnsafeDebugDll); 1345var comp3 = CreateCompilation(source3, new[] { comp1bRef }, assemblyName: "Assembly3", options: TestOptions.UnsafeDebugDll); 1369var comp1v1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, assemblyName: "Assembly1", options: TestOptions.UnsafeReleaseDll); 1385var comp2 = CreateCompilation(source2, new[] { comp1v1Ref }, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1416var comp1v2 = CreateCompilation(source1, new[] { comp4Ref }, assemblyName: "Assembly1", options: TestOptions.UnsafeReleaseDll); 1430var comp1v3 = CreateCompilation(new[] { source1, source5 }, new[] { comp4Ref }, assemblyName: "Assembly1", options: TestOptions.UnsafeReleaseDll); 1437var comp1v4 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, new[] { comp4Ref }, assemblyName: "Assembly1", options: TestOptions.UnsafeReleaseDll); 1477assemblyName: "Assembly2", options: TestOptions.UnsafeReleaseDll); 1489var comp3 = CreateCompilation(source2, new[] { comp1Ref }, assemblyName: "Assembly3", options: TestOptions.UnsafeReleaseDll); 1522var comp = CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(); 1542var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1558var comp1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugDll); 1574CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1589CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(expectedDiagnostics); 1590CreateCompilation(source2, new[] { comp1Ref }, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(expectedDiagnostics); 1638CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1643CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 1700CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1715CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 1738CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 1739CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 1752CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1767CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 1790CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 1791CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 1804CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1825CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 1845CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 1846CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 1866CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 1867CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 1887CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 1888CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 1901CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1916CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 1936CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 1937CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 1950CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1965CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 1985CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 1986CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 1999CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2014CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 2034CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 2035CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 2048CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2053CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 2073CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 2074CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 2087CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2092CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 2105CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2110CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 2139CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 2140CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 2169CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 2170CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 2199CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 2200CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 2213CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2218CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 2232CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2247CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 2250CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2269CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2284CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 2287CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3181CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 3196CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 3312expectedOutput: "555", options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails); 3334CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics( 3461CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 3473CompileAndVerify(source, expectedOutput: "object5", parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 3692CompileAndVerify(source, expectedOutput: "25 15 15", parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 3701CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 3728CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 3758CompileAndVerify(new[] { source1, source3 }, expectedOutput: "256 256 156 156", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(); 3833CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 3848CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 3908CompileAndVerify(new[] { source1, source2 }, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 3909CompileAndVerify(new[] { source1, source2 }, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 3918CompileAndVerify(new[] { source1, source3 }, expectedOutput: "1", parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 3927CreateCompilation(new[] { source1, source3 }, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 4001CompileAndVerify(source, expectedOutput: "ECC", parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 4010CompileAndVerify(source, expectedOutput: "CCC", parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 4042CompileAndVerify(source, expectedOutput: "YCC", parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 4054CompileAndVerify(source, expectedOutput: "CCC", parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 4133CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics2); 4134CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics2); 4142CreateCompilation(new[] { source1, source3 }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4155CompileAndVerify(new[] { source1, source3 }, expectedOutput: expectedOutput3, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics3); 4166CompileAndVerify(new[] { source1, source4 }, expectedOutput: expectedOutput4, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 4167CompileAndVerify(new[] { source1, source4 }, expectedOutput: expectedOutput4, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 4191CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 4192CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 4216CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 4217CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 4427CompileAndVerify(source, expectedOutput: "E", parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 4436CompileAndVerify(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); 5091expectedOutput: "111", options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails); 5480options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails); 7007CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 7012CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 7032CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 7037CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 7061CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 7066CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 7096var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics( 7124var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics( 7234CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 7238CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 7259CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedWarnings); 7260CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(expectedWarnings); 7277CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 7278CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(expectedDiagnostics); 7664CompileAndVerify(source1, expectedOutput: "12", parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 7673CompileAndVerify(source2, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 7688CreateCompilation(source3, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 7721CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 7739CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 7744CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 7764CompileAndVerify(source2, new[] { comp1Ref }, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 7776CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 7790CompileAndVerify(source3, new[] { comp1Ref }, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 7826CreateCompilation(source2 + Environment.NewLine + source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 7843CompileAndVerify(source2, new[] { comp1Ref }, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 7853CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 7882CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics( 7949expectedOutput: "r i o v i i v v v v v", options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(); 7971var comp1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugDll); 7996CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics( 8023CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); 8024CreateCompilation(source2, new[] { comp1Ref }, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); 8046var comp1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugDll); 8081CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); 8082CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); 8083CreateCompilation(source2, new[] { comp1Ref }, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); 8116CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics( 8176CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics( 8184expectedOutput: "XYYY", options: TestOptions.UnsafeDebugExe).VerifyDiagnostics( 8193expectedOutput: "XYXX", options: TestOptions.UnsafeDebugExe).VerifyDiagnostics( 8212var comp1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugDll); 8230var comp = CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe); 8251CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); 8252CreateCompilation(source2, new[] { comp1Ref }, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); 8276CompileAndVerify(source2, new[] { comp1Ref }, verify: Verification.Fails, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeDebugExe, 8278CompileAndVerify(source2, new[] { comp1Ref }, verify: Verification.Fails, options: TestOptions.UnsafeDebugExe, 8293CompileAndVerify(source3, new[] { comp1Ref }, verify: Verification.Fails, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe, 8308CompileAndVerify(source3, new[] { comp1Ref }, verify: Verification.Fails, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeDebugExe, 8310CompileAndVerify(source3, new[] { comp1Ref }, verify: Verification.Fails, options: TestOptions.UnsafeDebugExe, 8327var comp1 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll); 8342CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics( 8356CompileAndVerify(source2, new[] { comp1Ref }, verify: Verification.Fails, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeDebugExe, 8358CompileAndVerify(source2, new[] { comp1Ref }, verify: Verification.Fails, options: TestOptions.UnsafeDebugExe, 8372CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics( 8384CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); 8385CreateCompilation(source3, new[] { comp1Ref }, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); 8549CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 8569CompileAndVerify(source2, new[] { comp1Ref }, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 8578CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 8596CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 8603CompileAndVerify(source3, new[] { comp1Ref }, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 8615CompileAndVerify(source3, new[] { comp1Ref }, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 8648CreateCompilation(source2 + Environment.NewLine + source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 8671CompileAndVerify(source2, new[] { comp1Ref }, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 8684CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics);
RefStructInterfacesTests.cs (317)
45CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 47CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 78CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 80CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 160CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 162CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 192CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 194CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 277CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 279CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 315CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 317CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 407CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 409CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 439CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 441CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 525CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 527CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 563CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 565CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 809CreateCompilation(src7, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 811CreateCompilation(src7, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 843CreateCompilation(src8, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 845CreateCompilation(src8, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 1032CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 1351CreateCompilation(src7, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 1353comp7 = CreateCompilation(src7, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12); 1404CreateCompilation(src8, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 1406comp8 = CreateCompilation(src8, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12); 1927CreateCompilation(src7, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 1929comp7 = CreateCompilation(src7, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12); 1980CreateCompilation(src8, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 1982comp8 = CreateCompilation(src8, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12); 4386comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 4389CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 4395comp = CreateCompilation(src, targetFramework: TargetFramework.Mscorlib461Extended, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 4402comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 4437CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 4439CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 4445CreateCompilation(src, targetFramework: TargetFramework.Mscorlib461Extended, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 5466CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 5468CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 5599CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 5601CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 5863CreateCompilation(src, targetFramework: TargetFramework.Net70, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 5865CreateCompilation(src, targetFramework: TargetFramework.Net70, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 5984var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 6064var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 6595var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 6731var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 6848var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 6969var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 7108var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 7233var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 7274var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 7277comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 7320var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 7330comp2 = CreateCompilation(src1 + src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 7337comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 7358var comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 7361comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 7386var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 7393comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 7432var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 7622var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 7840var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 8037var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 8230var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 8429var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 8505var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 8686var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 8689comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 8728var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 8738comp2 = CreateCompilation(src1 + src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 8745comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 8762var comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 8765comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 8788var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 8795comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 8827var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 8834comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 8889var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 9093var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 9303var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 9456var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 9668var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 9892var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 10104var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 10338var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 10433var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 10500var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 10697var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 10936var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 11152var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 11379var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 11596var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 11691var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 11756var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 11759comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 11812var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 11819comp2 = CreateCompilation(src1 + src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 11826comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 11841var comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 11844comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 11876var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 11889comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 11939var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 11987var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 12023var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 12231var comp2 = CreateCompilation(src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 12290var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 12498var comp2 = CreateCompilation(src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 12536var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 12746var comp2 = CreateCompilation(src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 12795var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 13065var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 13324var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 13599var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 13664var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 13706var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 13716comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 13764var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 13780comp2 = CreateCompilation(src1 + src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 13793comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 13814var comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 13817comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 13853var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 13869comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 13910var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 13926comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 13966var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 14307var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 14668var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 15019var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 15367var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 15720var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 15797var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16139var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 16142comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 16181var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 16191comp2 = CreateCompilation(src1 + src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 16198comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 16215var comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 16218comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 16242var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 16249comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 16285var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 16292comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 16332var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16374var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16426var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16487var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16554var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16628var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16700var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16746var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16811var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16876var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16960var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 17048var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 17141var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 17238var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 17322var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 17391var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 17398comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 17467var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 17477comp2 = CreateCompilation(src1 + src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 17487comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 17510var comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 17513comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 17550var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 17566comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 17611var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 17808var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 18030var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 18233var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 18434var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 18640var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 18714var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 18903var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 18906comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 18943var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 18950comp2 = CreateCompilation(src1 + src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 18957comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 18974var comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 18977comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 19000var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 19007comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 19039var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 19046comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 19096var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 19267var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 19444var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 19592var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 19777var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 19957var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 20000var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 20036var comp = CreateCompilation([src1, src2], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 20040CreateCompilation([src1, src2], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 20041CreateCompilation([src1, src2], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 20049comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 20053CreateCompilation(src2, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 20054CreateCompilation(src2, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 20060CreateCompilation([src1, src2], targetFramework: TargetFramework.Mscorlib461Extended, options: TestOptions.ReleaseExe).VerifyDiagnostics( 20081comp = CreateCompilation([src1, src3], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 20085CreateCompilation([src1, src3], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 20086CreateCompilation([src1, src3], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 20092comp = CreateCompilation(src3, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 20095CreateCompilation(src3, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 20096CreateCompilation(src3, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(); 20098CreateCompilation([src1, src3], targetFramework: TargetFramework.Mscorlib461Extended, options: TestOptions.ReleaseExe).VerifyDiagnostics( 20106CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Mscorlib461Extended, options: TestOptions.ReleaseExe).VerifyDiagnostics( 20112CreateCompilation(src3, references: [comp1Ref], targetFramework: TargetFramework.Mscorlib461Extended, options: TestOptions.ReleaseExe).VerifyEmitDiagnostics(); 20190var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 20293var comp = CreateCompilation([src1, src2], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 20297CreateCompilation([src1, src2], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 20298CreateCompilation([src1, src2], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 20306comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 20310CreateCompilation(src2, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 20311CreateCompilation(src2, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 20317CreateCompilation([src1, src2], targetFramework: TargetFramework.Mscorlib461Extended, options: TestOptions.ReleaseExe).VerifyDiagnostics( 20338comp = CreateCompilation([src1, src3], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 20342CreateCompilation([src1, src3], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 20343CreateCompilation([src1, src3], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 20349comp = CreateCompilation(src3, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 20352CreateCompilation(src3, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 20353CreateCompilation(src3, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(); 20355CreateCompilation([src1, src3], targetFramework: TargetFramework.Mscorlib461Extended, options: TestOptions.ReleaseExe).VerifyDiagnostics( 20363CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Mscorlib461Extended, options: TestOptions.ReleaseExe).VerifyDiagnostics( 20369CreateCompilation(src3, references: [comp1Ref], targetFramework: TargetFramework.Mscorlib461Extended, options: TestOptions.ReleaseExe).VerifyEmitDiagnostics(); 20401var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 20448var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 20493var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 20538var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 21831var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 22060var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.DebugExe); 22473var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 22529var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 22584var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 22632var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 22676var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.UnsafeReleaseExe); 22725var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe); 22777var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe); 22823var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe); 22892options: TestOptions.UnsafeReleaseExe, 22922options: TestOptions.UnsafeReleaseExe, 22953options: TestOptions.UnsafeReleaseExe, 22984options: TestOptions.UnsafeReleaseExe, 23015options: TestOptions.UnsafeReleaseExe, 23047options: TestOptions.UnsafeReleaseExe, 23078options: TestOptions.UnsafeReleaseExe, 23109options: TestOptions.UnsafeReleaseExe, 23163options: TestOptions.UnsafeReleaseExe, 23194options: TestOptions.UnsafeReleaseExe, 23618var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 23671var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 23733var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 24030var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 24133comp = CreateCompilation(src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 24191var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 24266var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 24365comp = CreateCompilation(src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 24528var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 24647var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 24729var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseDll); 24790var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 24882var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 25026var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 25110var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 25324var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 25510var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseDll); 25574var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 26360comp = CreateCompilation(text, targetFramework: TargetFramework.Net60, parseOptions: TestOptions.Regular10); 26815var comp = CreateCompilation(text, targetFramework: TargetFramework.Net60, parseOptions: TestOptions.Regular10); 26895var comp = CreateCompilation(new[] { text, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net60, parseOptions: TestOptions.Regular10); 27178var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 27288var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 27522var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 27707var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 27817var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 27949var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 28083var comp = CreateCompilation(text, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 28258var comp = CreateCompilation(text, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 28316var comp = CreateCompilation(text, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 28385var comp = CreateCompilation(text, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 28433var comp = CreateCompilation(text, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 28493var comp = CreateCompilation(text, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 28553var comp = CreateCompilation(text, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 28628var comp = CreateCompilation(text, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 28725var comp2 = CreateCompilation(text2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 28738comp2 = CreateCompilation(text2 + text1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 28751comp2 = CreateCompilation(text2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 28766var comp3 = CreateCompilation(text3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 28769comp3 = CreateCompilation(text3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 28806var comp2 = CreateCompilation(text2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 28822comp2 = CreateCompilation(text2 + text1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 28835comp2 = CreateCompilation(text2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular13); 28884var comp = CreateCompilation(text, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 28910var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia", targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 28925var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 28929var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe,
RefUnsafeInIteratorAndAsyncTests.cs (49)
33CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 41CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 61CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 69CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 89CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 97CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 119CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 127CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 154CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(expectedDiagnostics); 155CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 175CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 180CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 206CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(expectedDiagnostics); 207CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 251CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 266CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics); 267CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics); 286CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 301CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics); 302CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics); 324CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 336CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics); 337CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics); 418CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 430CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics); 431CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics); 573CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 588CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics); 589CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics); 741var comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 795var comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 838CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 850CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics); 851CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics); 1132var comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 1206var comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 1305var comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe);
Semantics\CollectionExpressionTests.cs (188)
150var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 837CompileAndVerify([source, s_collectionExtensions], parseOptions: TestOptions.Regular13, expectedOutput: expectedOutput); 838CompileAndVerify([source, s_collectionExtensions], parseOptions: TestOptions.RegularPreview, expectedOutput: expectedOutput); 840CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics( 1044CompileAndVerify([source, s_collectionExtensions], parseOptions: TestOptions.Regular13, 1046CompileAndVerify([source, s_collectionExtensions], parseOptions: TestOptions.RegularPreview, 1048CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics( 1409verify(TestOptions.Regular12, expectedType12); 1410verify(TestOptions.Regular13, expectedType13); 1411verify(TestOptions.RegularPreview, expectedType13); 1437options: TestOptions.ReleaseExe); 1531options: TestOptions.ReleaseExe); 1631options: TestOptions.ReleaseExe); 1735parseOptions: TestOptions.Regular12, 1736options: TestOptions.ReleaseExe); 1815options: TestOptions.ReleaseExe); 1851options: TestOptions.ReleaseExe); 1921parseOptions: TestOptions.Regular13, 1922options: TestOptions.ReleaseExe); 1928parseOptions: TestOptions.RegularPreview, 1929options: TestOptions.ReleaseExe); 1935parseOptions: TestOptions.Regular12, 1936options: TestOptions.ReleaseExe); 1960parseOptions: TestOptions.Regular13, 1966parseOptions: TestOptions.RegularPreview, 1967options: TestOptions.ReleaseExe, 1973parseOptions: TestOptions.Regular12, 2009options: TestOptions.ReleaseExe); 2075var comp = CreateCompilation(new[] { source, s_collectionExtensionsWithSpan }, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80); 2078comp = CreateCompilation(new[] { source, s_collectionExtensionsWithSpan }, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.Net80); 2084parseOptions: TestOptions.Regular12, 2205parseOptions: TestOptions.Regular13, 2212parseOptions: TestOptions.RegularPreview, 2216CreateCompilation(source, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 2241CompileAndVerify(source, parseOptions: TestOptions.Regular13, expectedOutput: expectedOutput).VerifyDiagnostics(); 2242CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: expectedOutput).VerifyDiagnostics(); 2244CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics( 2309CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(version)).VerifyDiagnostics( 2333CompileAndVerify(source, parseOptions: TestOptions.Regular13, expectedOutput: expectedOutput); 2334CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: expectedOutput); 2336CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 2363parseOptions: TestOptions.Regular13, 2369parseOptions: TestOptions.RegularPreview, 2374CreateCompilation(source, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 2408parseOptions: TestOptions.Regular13, 2415parseOptions: TestOptions.RegularPreview, 2422parseOptions: TestOptions.Regular12, 2492parseOptions: TestOptions.Regular13, 2498parseOptions: TestOptions.RegularPreview, 2504parseOptions: TestOptions.Regular12, 2585parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 2589parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(expectedDiagnostics); 2593parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 2661parseOptions: TestOptions.Regular13, 2667parseOptions: TestOptions.RegularPreview, 2673parseOptions: TestOptions.Regular12, 2772parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 2776parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(expectedDiagnostics); 2780parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 2844parseOptions: TestOptions.Regular13, 2850parseOptions: TestOptions.RegularPreview, 2856parseOptions: TestOptions.Regular12, 2938parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 2942parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(expectedDiagnostics); 2946parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 3077options: TestOptions.ReleaseExe); 3115options: TestOptions.ReleaseExe); 3149options: TestOptions.ReleaseExe); 3191options: TestOptions.ReleaseExe); 5012var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute()); 5076var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute()); 5124var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute()); 5967var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute()); 6045var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute()); 6073var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 6100var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 6128var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 6153CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net80, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("0, 2, ")); 6178var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net80); 6224CompileAndVerify(new[] { source, s_collectionExtensions }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net80, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("[0, 2], ")); 6246var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net80, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("1010")); 6338var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net80, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("10200")); 7549var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 7859var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 8284var comp = CreateCompilation(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe); 8347var comp = CreateCompilation(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe); 8432var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 8517var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 9089var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 9319var parseOptions = TestOptions.RegularPreview; 9350var parseOptions = TestOptions.RegularPreview; 9431options: TestOptions.ReleaseExe, 9539options: TestOptions.ReleaseExe, 9658options: TestOptions.ReleaseExe, 10168var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe, expectedOutput: "[1, 2, 3], "); 10396var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe, expectedOutput: "[1, 2, 3], "); 10982var comp = CreateCompilation(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe); 11029var comp = CreateCompilation(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe); 11087var comp = CreateCompilation(new[] { sourceA, sourceB, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe); 11170var comp = CreateCompilation(new[] { sourceA, sourceB, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe); 11242var comp = CreateCompilation(new[] { sourceA, sourceB, s_collectionExtensions }, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 12313var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 12384var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 12446options: TestOptions.UnsafeReleaseExe, 12487var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 12507comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 14956var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 15007var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 15067var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 15454comp = CreateCompilation(new[] { sourceB, s_collectionExtensions }, references: new[] { refA }, targetFramework: targetFramework, options: TestOptions.ReleaseExe); 15578options: TestOptions.ReleaseExe); 15703comp = CreateCompilation(sourceC, references: new[] { refA }, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 20748options: TestOptions.ReleaseExe); 21036var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute()); 21184var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute()); 21421options: TestOptions.ReleaseExe, 21575options: TestOptions.ReleaseExe, 21672options: TestOptions.ReleaseExe, 21786options: TestOptions.ReleaseExe, 21894options: TestOptions.ReleaseExe, 22002options: TestOptions.ReleaseExe, 22655options: useUnsafe ? TestOptions.UnsafeReleaseExe : TestOptions.ReleaseExe); 22763var comp = CreateCompilation(new[] { sourceA, CollectionBuilderAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp10), targetFramework: TargetFramework.Net60); 22790comp = CreateCompilation(new[] { sourceB, s_collectionExtensions }, references: new[] { refA }, targetFramework: TargetFramework.Net60, options: TestOptions.ReleaseExe.WithSpecificDiagnosticOptions(WithSpanAllocWarning)); 22903var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("11")); 22946verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("11")); 23016var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("11")); 23059verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("11")); 23834options: TestOptions.ReleaseExe); 25221var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithSpecificDiagnosticOptions(WithSpanAllocWarning)); 25957var comp = CreateCompilation(new[] { source, s_collectionExtensionsWithSpan }, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 26433var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning)); 28554CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning)).VerifyEmitDiagnostics( 29408var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 30155var comp = CreateCompilation(new[] { sourceA, s_collectionExtensions }, targetFramework: TargetFramework.Net80, options: ExecutionConditionUtil.IsMonoOrCoreClr ? TestOptions.DebugExe : TestOptions.DebugDll); 30359var comp = CreateCompilation([sourceA, s_collectionExtensions], options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 30913var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify: Verification.Skipped, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning)); 31227CreateCompilation(src, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe.WithSpecificDiagnosticOptions(WithSpanAllocWarning)).VerifyEmitDiagnostics( 33512var comp = CreateCompilation(new[] { source, CollectionBuilderAttributeDefinition }, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning)); 34053var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput("[1, 2, 3, 4, 5, 6],"), targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 34284var comp = CreateCompilation(new[] { source, s_collectionExtensionsWithSpan }, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 34820var comp = CreateCompilation(new[] { source, s_collectionExtensionsWithSpan }, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 34876var comp = CreateCompilation([source, s_collectionExtensions], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 34904comp = CreateCompilation([source, s_collectionExtensions], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 34966comp = CreateCompilation([source, s_collectionExtensions], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 35038var comp = CreateCompilation([source, s_collectionExtensions], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 35131var comp = CreateCompilation([source, s_collectionExtensions], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 36163var comp = CreateCompilation([source, s_collectionExtensions], options: TestOptions.ReleaseExe); 36656var comp = CreateCompilation([source, s_collectionExtensions], options: TestOptions.ReleaseExe); 37844var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 37923var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 37964var comp = CreateCompilation([source, s_collectionExtensions], options: TestOptions.ReleaseExe); 38014var comp = CreateCompilation([source, s_collectionExtensions], options: TestOptions.ReleaseExe); 38059var comp = CreateCompilation([source, s_collectionExtensions], options: TestOptions.ReleaseExe); 38108var comp = CreateCompilation([source, s_collectionExtensions], options: TestOptions.ReleaseExe); 38164var comp = CreateCompilation([sourceB1, sourceA, s_collectionExtensions], options: TestOptions.ReleaseExe); 38194comp = CreateCompilation([sourceB2, sourceA, s_collectionExtensions], options: TestOptions.ReleaseExe); 38243var comp = CreateCompilation([sourceB1, sourceA, s_collectionExtensions], options: TestOptions.ReleaseExe); 38273comp = CreateCompilation([sourceB2, sourceA, s_collectionExtensions], options: TestOptions.ReleaseExe); 38326var comp = CreateCompilation([sourceB1, sourceA, s_collectionExtensions], options: TestOptions.ReleaseExe); 38360comp = CreateCompilation([sourceB2, sourceA, s_collectionExtensions], options: TestOptions.ReleaseExe); 38431comp = CreateCompilation([sourceC, s_collectionExtensions], references: [refA2, refB], options: TestOptions.ReleaseExe); 40283var comp = CreateCompilation([source, s_collectionExtensions], options: TestOptions.ReleaseExe); 41295var comp = CreateCompilation([sourceA, sourceB, s_collectionExtensions], options: TestOptions.UnsafeReleaseExe); 41310CompileAndVerify([sourceA, sourceB, sourceC, s_collectionExtensions], options: TestOptions.UnsafeReleaseExe, expectedOutput: "[1, 2, 3], "); 41343var comp = CreateCompilation([sourceA, sourceB1, s_collectionExtensions], options: TestOptions.UnsafeReleaseExe); 41378CompileAndVerify([sourceA, sourceB2, s_collectionExtensions], options: TestOptions.UnsafeReleaseExe, expectedOutput: "[1, 2, 3], "); 42278var comp1 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll); 42291var comp2 = CreateCompilation(source2, references: [comp1Ref], options: TestOptions.UnsafeDebugExe); 42307var comp3 = CreateCompilation(source3, references: [comp1Ref], options: TestOptions.UnsafeDebugExe); 42358var comp1 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll); 42371var comp2 = CreateCompilation(source2, references: [comp1Ref], options: TestOptions.UnsafeDebugExe); 42387var comp3 = CreateCompilation(source3, references: [comp1Ref], options: TestOptions.UnsafeDebugExe); 42413var myCollection_v0 = CreateCompilation(myCollection_v0Source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, assemblyName: "Collection"); 42425var builder = CreateCompilation(builderSource, references: [myCollection_v0.ToMetadataReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 42440var myCollection = CreateCompilation(myCollectionSource, references: [builder.ToMetadataReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, assemblyName: "Collection"); 42458var comp = CreateCompilation(src, references: [myCollectionRef, builder.EmitToImageReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 42465comp = CreateCompilation(src, references: [myCollectionRef], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 42919var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 42974comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 42982comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 43031var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 43086comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 43094comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 43111comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 43245var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe);
Semantics\ExperimentalAttributeTests.cs (3)
236var moduleComp = CreateCompilation(libSrc1, options: TestOptions.DebugModule, references: new[] { attrRef }); 266var moduleComp = CreateCompilation(libSrc1, options: TestOptions.DebugModule, references: new[] { attrRef }); 533var moduleComp = CreateCompilation(libSrc, options: TestOptions.ReleaseModule, references: new[] { attrRef });
Semantics\InlineArrayTests.cs (518)
294comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 360comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 426comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 492comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 556comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 648comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 685var comp = CreateCompilation(src, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 737comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 775var comp = CreateCompilation(src, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 819comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 854var comp = CreateCompilation(src, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 922comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 960var comp = CreateCompilation(src, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1046comp = CreateCompilationWithIL(consumer, ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1136comp = CreateCompilationWithIL(consumer, ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1533var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 2028var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 2095var comp = CreateCompilationWithIL(src, ilSource, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 2113var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 2131var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 2153var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll); 2175var comp2 = CreateCompilation(src2, references: new[] { comp1.ToMetadataReference() }, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 2279var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll); 2299var comp2 = CreateCompilation(src2, references: new[] { comp1.ToMetadataReference() }, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 2324var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll); 2462var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2492comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12); 2495comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 2553var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2590var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2633var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2671var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2703var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2741var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2782var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2824var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2864var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2889var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2914var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2945var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2983var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3015var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3041var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3070var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3100var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3134var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3197var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3260var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3336var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3560var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3792var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4017var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4142var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4271var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4402var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4528var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4678var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4836var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4894var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4950var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4997var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 5027var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 5074var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 5309var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 5527var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 5655var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 5871var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 5988var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6017comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12); 6020comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 6071var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6167var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6183comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12); 6186comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 6247var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6291var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6329var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6362var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6401var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6444var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6487var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6528var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6553var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6584var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6622var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6655var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6681var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6711var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6741var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6757var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 6780var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 6813var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6857var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6907var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6957var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7013var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7063var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7118var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7153var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7187var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7257var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7336var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7472var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7617var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7785var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7947var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8105var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8163var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8205var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8250var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8280var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8313var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8337comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12); 8340comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 8372var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8425var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8480var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8543var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8597var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8659var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8691var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8721var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8753var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8773var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8807var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8885var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8939var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8979var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9016var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9053var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9118var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9159var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9193var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9242var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9289var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9340var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9391var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9430var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9475var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9521var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9558var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9593var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9641var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9693var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9745var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9785var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9825var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9871var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9910var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9950var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9979var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10013var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10060var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10111var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10150var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10187var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10222var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10261var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10304var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10345var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10390var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10431var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10460var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10492var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10528var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10602var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10654var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10706var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10746var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10792var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10838var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10873var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10908var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10947var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10986var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11026var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11060var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11094var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11130var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11176var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11222var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11272var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11346var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11398var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11437var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11472var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11514var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11543var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11569var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11596var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11622var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11650var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11674var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11700var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11723var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11746var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11769var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11790var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11811var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11832var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11858var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11884var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11905var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11931var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11959var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12000var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 12056var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12106var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12140var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12170var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12197var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12260var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 12327var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 12376var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 12411var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12439var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12473var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12496var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12523var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12551var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12585var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12608var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12635var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12662var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12700var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12725var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12748var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12790var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 12835var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12867var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12892var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12914var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12968var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13027var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13080var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13117comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 13154var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13210var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13269var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 13311comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular10); 13342var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 13359comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular10); 13382var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 13396comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular10); 13428var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 13473comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular10); 13524var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13542comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular10); 13585var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13603comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular10); 13653var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13694var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13748var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13806var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13864var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13917var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13968var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 14019var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 14055var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14086var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14116var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14156var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14185var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14235var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14265var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14294var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14338var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14366var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14420var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14445var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14469var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14501var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14538var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14563var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14596var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14635var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 14684var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 14733var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 14781var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 14828var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 14872var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 14929var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14973var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 15023var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 15081var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 15117var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15163var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15192comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12); 15195comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 15247var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15384var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15439var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15500var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15563var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15617var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15645var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15671var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15697var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15893var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15919var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15948var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15977var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16012var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16047var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16084var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16121var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16144var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16182var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16230var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16282var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16317var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16432var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16482var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16533var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16578var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16617var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16670var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16877var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 16940var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16970var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16973comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12); 16976comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 17008var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17034var comp = CreateCompilation(src + Buffer10Definition, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17045comp = CreateCompilation(src + Buffer10Definition, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17048comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17079var comp = CreateCompilation(src + Buffer10Definition, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17095comp = CreateCompilation(src + Buffer10Definition, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17098comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17128var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17162var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17185var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17212var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17234var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17540var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17602var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17658var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17733var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17775var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 17810var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 17846var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 17904var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 17987var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 18010var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18046var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18082var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18118var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18167var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 18274var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 18302var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 18331var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 18370var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 18402var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 18433var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 18463var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 18503var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 18540var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 18638var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 18711var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 18773var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18795var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18818var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18821comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12); 18824comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular11); 18865var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 18950var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19000var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 19064var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19086var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19122var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19157var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19199var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 19287var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19334var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19367var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19422var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19488var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 19525var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19566var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19604var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19642var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19680var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19717var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19746var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19781var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19844var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 19882var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 19923var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 19981var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 20119comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 20168var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 20319comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 20350CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 20357CompileAndVerify(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, 20360CompileAndVerify(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, 20381var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 20441var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 20578comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 20627var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 20778comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 20812CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 20819CompileAndVerify(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, 20822CompileAndVerify(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, 20843var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 20892var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 20995comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 21027CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 21037CompileAndVerify(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, 21040CompileAndVerify(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, 21072CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 21090CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 21123CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 21140CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 21174CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 21189CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 21241CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 21253CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 21281CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 21297CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 21325CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 21337CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 21388var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 21390comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 21418CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 21430CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 21470CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 21488CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 21539var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 21609comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 21656var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 21729comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 21768CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 21775CompileAndVerify(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, 21778CompileAndVerify(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, 21799var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 21858var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 21928comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 21975var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 22048comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 22090CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 22097CompileAndVerify(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, 22100CompileAndVerify(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, 22121var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 22169var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 22232comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 22272CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 22282CompileAndVerify(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, 22285CompileAndVerify(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, 22325CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 22343CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 22384CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 22401CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 22443CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 22458CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 22508CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 22520CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 22548CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 22564CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 22592CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 22604CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 22653var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 22655comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 22681CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 22693CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 22731CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 22749CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics); 22772var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 22805var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 22832var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 22912var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 22935var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 22971var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 22999var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23021var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23054var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23087var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23109var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23131var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23160var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23186var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23222var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23266var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23289CreateCompilation(src, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net80).VerifyDiagnostics( 23316CreateCompilation(src, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80).VerifyDiagnostics(expectedDiagnostics); 23340foreach (var parseOptions in new[] { TestOptions.Regular12, TestOptions.Regular13, TestOptions.RegularPreview })
Semantics\LockTests.cs (24)
1630CreateCompilation(sources, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 1637CompileAndVerify(sources, parseOptions: TestOptions.RegularPreview, expectedOutput: expectedOutput, 1942var verifier = CompileAndVerify([source, LockTypeDefinition], options: TestOptions.DebugExe, 2006verifier = CompileAndVerify([source, LockTypeDefinition], options: TestOptions.ReleaseExe, 2082var verifier = CompileAndVerify([source, LockTypeDefinition], options: TestOptions.DebugExe, 2237verifier = CompileAndVerify([source, LockTypeDefinition], options: TestOptions.ReleaseExe, 2391var verifier = CompileAndVerify([source, LockTypeDefinition], options: TestOptions.DebugExe, 2503verifier = CompileAndVerify([source, LockTypeDefinition], options: TestOptions.ReleaseExe, 2611var verifier = CompileAndVerify([source, LockTypeDefinition], options: TestOptions.DebugExe, 2675verifier = CompileAndVerify([source, LockTypeDefinition], options: TestOptions.ReleaseExe, 2750var verifier = CompileAndVerify([source, LockTypeDefinition], options: TestOptions.DebugExe, 2905verifier = CompileAndVerify([source, LockTypeDefinition], options: TestOptions.ReleaseExe, 3055var verifier = CompileAndVerify([source, LockTypeDefinition], options: TestOptions.DebugExe, 3119verifier = CompileAndVerify([source, LockTypeDefinition], options: TestOptions.ReleaseExe, 3194var verifier = CompileAndVerify([source, LockTypeDefinition], options: TestOptions.DebugExe, 3349verifier = CompileAndVerify([source, LockTypeDefinition], options: TestOptions.ReleaseExe, 3543var verifier = CompileAndVerify([source, LockTypeDefinition], options: TestOptions.ReleaseExe, 3547verifier = CompileAndVerify([source, LockTypeDefinition], options: TestOptions.DebugExe, 3582var verifier = CompileAndVerify([source, LockTypeDefinition], options: TestOptions.ReleaseExe, 3586verifier = CompileAndVerify([source, LockTypeDefinition], options: TestOptions.DebugExe, 3655var comp = CreateCompilationWithTasksExtensions([source, LockTypeDefinition, AsyncStreamsTypes], options: TestOptions.ReleaseExe); 3659comp = CreateCompilationWithTasksExtensions([source, LockTypeDefinition, AsyncStreamsTypes], options: TestOptions.DebugExe); 3696var comp = CreateCompilationWithTasksExtensions([source, LockTypeDefinition, AsyncStreamsTypes], options: TestOptions.DebugExe); 3887comp = CreateCompilationWithTasksExtensions([source, LockTypeDefinition, AsyncStreamsTypes], options: TestOptions.ReleaseExe);
Semantics\OutVarTests.cs (941)
50var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 82var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 110compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular); 155var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 202var compilation = CreateCompilationWithMscorlib40(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 249var compilation = CreateCompilationWithMscorlib40(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 303var compilation = CreateCompilationWithMscorlib40(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 378var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 416var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 454var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 492var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 530var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 568var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 599var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 653var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 690var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 729var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 770var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 809var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 903var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1400var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1458var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1492var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1527var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1561var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1595var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1635var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1673var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1709options: TestOptions.ReleaseExe, 1710parseOptions: TestOptions.Regular); 1745options: TestOptions.ReleaseExe, 1746parseOptions: TestOptions.Regular); 1783var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1820var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1852var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1879var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1916var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1968var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2078var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2189var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2299var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2388var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_1); 2609var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2826var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2944var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2990var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3034var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3081var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3128var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3182var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3284var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3365var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3417var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3456var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3497var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3615var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3806var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3954var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3995var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4047var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4093var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4142var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4198var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4254var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4336var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4368var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4458var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4474compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_3); 4578var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4614var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4656var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4741var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4778var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4884var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5014var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 5057var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5101var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5158var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5253var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular); 5377var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5487var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5566var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5570CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_2).VerifyDiagnostics( 5644var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5677var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5701var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5744var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5875var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 6025var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 6108var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 6142var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 6290var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 6528var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 6763var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 7027var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 7265var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 7509var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 7763var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 7823var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 7885var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 7951var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8014var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8079var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8145var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8200var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8350var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8482var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8622var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8754var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8795var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8858var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8914var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9033var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9091compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_3); 9259var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9321var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9414var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9491var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9570var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9634var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9683var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9750var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9811var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9877options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9972options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10051options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10132options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10202options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10253options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10319options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10382options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10446options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10530options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10686var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10810var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10851var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10902var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10953var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11013var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11150var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11249var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11325var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11329CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_2).VerifyDiagnostics( 11396var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11420var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11463var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11618var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11932var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12074var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12084compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_3); 12224var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12234compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_3); 12344var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12404var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12477var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12622var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12749var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12762compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_3); 12847var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12914var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12954var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13012var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13052var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13160var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13287var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13331var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13382var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13434var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13577var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13689var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13730var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13789var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13841var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14071var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14252var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14299var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14348var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14390var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14432var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14477var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14519var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14562var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14609var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14663var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14722var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14771options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14821options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14916var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 15084var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 15207var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 15251var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 15308var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 15364var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 15496var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 15709var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 15922var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16055var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16145var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16237var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16365var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16488var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16529var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16581var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16635var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16692var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16751var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16812var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16927var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 17043var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 17088var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 17142var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 17197var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 17312var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 17474var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 17524var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 17575var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17634var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17669var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17702var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17735var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17774var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17806var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17851var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17882var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17915var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17947var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17988options: TestOptions.ReleaseExe, 17989parseOptions: TestOptions.Regular); 18018options: TestOptions.ReleaseExe, 18019parseOptions: TestOptions.Regular); 18062options: TestOptions.ReleaseExe, 18063parseOptions: TestOptions.Regular); 18093options: TestOptions.ReleaseExe, 18094parseOptions: TestOptions.Regular); 18132options: TestOptions.ReleaseExe, 18133parseOptions: TestOptions.Regular); 18173options: TestOptions.ReleaseExe, 18174parseOptions: TestOptions.Regular); 18216options: TestOptions.ReleaseExe, 18217parseOptions: TestOptions.Regular); 18259options: TestOptions.ReleaseExe, 18260parseOptions: TestOptions.Regular); 18298options: TestOptions.ReleaseExe, 18299parseOptions: TestOptions.Regular); 18343options: TestOptions.ReleaseExe, 18344parseOptions: TestOptions.Regular); 18374options: TestOptions.ReleaseExe, 18375parseOptions: TestOptions.Regular); 18425var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18438CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_2).VerifyDiagnostics( 18489var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18502CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_2).VerifyDiagnostics( 18537options: TestOptions.ReleaseExe, 18538parseOptions: TestOptions.Regular); 18582options: TestOptions.ReleaseExe, 18583parseOptions: TestOptions.Regular); 18634options: TestOptions.ReleaseExe, 18635parseOptions: TestOptions.Regular); 18679var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18721var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18766var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18788CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular) 18864var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18908var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18950var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18995var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 19048var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 19091var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 19137var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 19196var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 19243var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 19282options: TestOptions.ReleaseExe, 19283parseOptions: TestOptions.Regular); 19323options: TestOptions.ReleaseExe, 19324parseOptions: TestOptions.Regular); 19357options: TestOptions.ReleaseExe, 19358parseOptions: TestOptions.Regular); 19416options: TestOptions.ReleaseExe, 19417parseOptions: TestOptions.Regular); 19459options: TestOptions.ReleaseExe, 19460parseOptions: TestOptions.Regular); 19497options: TestOptions.ReleaseExe, 19498parseOptions: TestOptions.Regular); 19536options: TestOptions.ReleaseExe, 19537parseOptions: TestOptions.Regular); 19577options: TestOptions.ReleaseExe, 19578parseOptions: TestOptions.Regular); 19623options: TestOptions.ReleaseExe, 19624parseOptions: TestOptions.Regular12); 19683options: TestOptions.ReleaseExe, 19684parseOptions: TestOptions.Regular); 19726options: TestOptions.ReleaseExe.WithAllowUnsafe(true), 19727parseOptions: TestOptions.Regular); 19765options: TestOptions.ReleaseExe, 19766parseOptions: TestOptions.Regular); 19806options: TestOptions.ReleaseExe, 19807parseOptions: TestOptions.Regular); 19835options: TestOptions.ReleaseExe, 19836parseOptions: TestOptions.Regular); 19868options: TestOptions.ReleaseExe, 19869parseOptions: TestOptions.Regular); 19901options: TestOptions.ReleaseExe, 19902parseOptions: TestOptions.Regular); 19936options: TestOptions.ReleaseExe, 19937parseOptions: TestOptions.Regular); 19971options: TestOptions.ReleaseExe, 19972parseOptions: TestOptions.Regular); 20002options: TestOptions.ReleaseExe, 20003parseOptions: TestOptions.Regular7_1); 20039var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 20179var comp = CreateCompilation(text, options: TestOptions.DebugDll, references: new[] { CSharpRef }); 20199var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe); 20219var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 20247var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 20539var compilation = CreateCompilation(source2, references: new[] { reference1 }, options: TestOptions.DebugExe); 20611options: TestOptions.ReleaseExe, 20612parseOptions: TestOptions.Regular); 20771options: TestOptions.ReleaseExe, 20772parseOptions: TestOptions.Regular); 20824options: TestOptions.ReleaseDebugDll.WithAllowUnsafe(true), 20825parseOptions: TestOptions.Regular); 20896var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 21006var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 21106var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 21203var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 21287var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 21339var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 21405var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 21564var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 21729var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 21919var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 22071var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 22166var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 22334var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 22500var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 22598var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 22711var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 22804var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 22886var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 22950var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 22988var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 23029var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 23136var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 23220var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 23340var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 23385var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 23412var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 23471var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 23587var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 23681var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 23807var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 23925var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 24025var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 24153var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 24224var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 24314var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 24441var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 24472var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 24587var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 24839var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 25122var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 25210var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 25305var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 25451var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 25496var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 25543var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 25621var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 25668var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 25737var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 25801var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 25855var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 25958var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 26012var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 26098var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 26146var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 26199var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 26258var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 26341var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 26401var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 26482var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 26532var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 26626var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 26676var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 26766var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 26817var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 26867var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 26947var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 26998var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 27087var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 27141var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 27240var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 27294var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 27379var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 27437var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 27501var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 27614var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 27678var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 27772var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 27827var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 27891var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 28005var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 28069var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 28170var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 28229var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 28283var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 28380var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 28434var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 28517var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 28565var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 28621options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 28691options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 28789var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 28848var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 28940var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 28999var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 29080var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 29144var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 29211var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 29320var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 29387var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 29482var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 29532var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 29595options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 29680options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 29796options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 29881options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 29984options: TestOptions.DebugExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 30051var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 30118var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 30223var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 30290var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 30377var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 30430var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 30471var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 30515var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 30560var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 30618var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 30675var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 30789var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 30846var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 30945var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 30998var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 31039var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 31083var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 31143var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 31210var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 31316var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 31383var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 31473var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 31526var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 31567var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 31611var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 31656var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 31700var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 31728var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 31787var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 31815var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 31880var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 31905var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 31966var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), 31967parseOptions: TestOptions.Script); 31995var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 32055var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 32099var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 32139var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 32179var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script, skipUsesIsNullable: true); 32219var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script, skipUsesIsNullable: true); 32259var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script, skipUsesIsNullable: true); 32278compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script, skipUsesIsNullable: true); 32314var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script, skipUsesIsNullable: true); 32331compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script, skipUsesIsNullable: true); 32368var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 32408var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 32496var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 32524var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 32552var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 32578var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 32610var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 32643var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 32784var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 32808var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 32837var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 32870var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 32896var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular); 33008var comp = CreateCompilation(source, options: TestOptions.DebugExe); 33068var comp = CreateCompilation(source, options: TestOptions.DebugExe); 33122var comp = CreateCompilation(source, options: TestOptions.DebugExe); 33180var comp = CreateCompilation(source, options: TestOptions.DebugExe); 33257var comp = CreateCompilation(source, options: TestOptions.DebugExe); 33280var comp = CreateCompilation(source, options: TestOptions.DebugDll); 33324var comp = CreateCompilation(source, options: TestOptions.DebugExe); 33347var comp = CreateCompilation(source, options: TestOptions.DebugExe); 33374var comp = CreateCompilation(source, options: TestOptions.DebugExe); 33396var comp = CreateCompilation(source, options: TestOptions.DebugDll); 33428var comp = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugDll, references: new[] { Net40.References.SystemCore }); 33454var comp = CreateCompilation(source, options: TestOptions.DebugDll); 33712var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 33810var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 33909var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 34007var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 34092var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 34148var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 34189var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 34295var compilation = CreateCompilation(syntaxTree, options: TestOptions.ReleaseExe); 34404var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 34509var compilation = CreateCompilation(syntaxTree, options: TestOptions.DebugExe); 34605var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 35488var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe); 35644var comp = CreateCompilation(source, options: TestOptions.DebugDll); 35685var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 35712var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 35748var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 35789var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular); 35835var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular); 35901var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 35905CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_2).VerifyDiagnostics( 35929var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular); 36069var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular); 36177var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular);
Semantics\ParamsCollectionTests.cs (354)
97var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 199var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 277var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 315var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 459var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 495var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 590var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 643var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 721var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 779var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 828var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 878var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 937var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 978var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 1010var myCollection_v0 = CreateCompilation(myCollection_v0Source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, assemblyName: "Collection"); 1022var builder = CreateCompilation(builderSource, references: [myCollection_v0.ToMetadataReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 1037var myCollection = CreateCompilation(myCollectionSource, references: [builder.ToMetadataReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, assemblyName: "Collection"); 1064var comp = CreateCompilation(src, references: [myCollectionRef, builder.EmitToImageReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 1075comp = CreateCompilation(src, references: [myCollectionRef], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 1130var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 1195var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 1262var comp = CreateCompilation(src, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 1320var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1387var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 1465var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1514var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1563var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 1600var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1648var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1696var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 1738var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1791var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1845var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1897var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1942var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1986var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 2030var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 2070var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 2111var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 2146var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 2197var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 2246var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 2296var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 2354var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 2414var comp = CreateCompilation(src, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 2461var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 2511var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 2602var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 2647var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 2708var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 2735var comp = CreateCompilation(src, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 2772comp = CreateCompilation(src2, options: TestOptions.ReleaseExe); 2786comp = CreateCompilation(src2, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 2937var comp = CreateCompilation(src, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 2970comp = CreateCompilation(src2, options: TestOptions.ReleaseExe); 2981comp = CreateCompilation(src2, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 3182var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 3307var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 3531var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 3848var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 3976var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 3979comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular13); 3982comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12); 4016var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 4023var comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4026comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular13); 4029comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12); 4070var comp = CreateCompilation(src2 + src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4073comp = CreateCompilation(src2 + src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular13); 4076comp = CreateCompilation(src2 + src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12); 4083var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 4090var comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4093comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular13); 4096comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12); 4138var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4141comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular13); 4144comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12); 4185var comp = CreateCompilation(src2 + src1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4188comp = CreateCompilation(src2 + src1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular13); 4191comp = CreateCompilation(src2 + src1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12); 4198var comp1 = CreateCompilation(src1, options: TestOptions.ReleaseDll); 4205var comp2 = CreateCompilation(src2, references: [comp1Ref], options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4242comp2 = CreateCompilation(src2, references: [comp1Ref], options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular13); 4246comp2 = CreateCompilation(src2, references: [comp1Ref], options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12); 4309var comp = CreateCompilation(src2 + src1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4312comp = CreateCompilation(src2 + src1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular13); 4315comp = CreateCompilation(src2 + src1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12); 4322var comp1 = CreateCompilation(src1, options: TestOptions.ReleaseDll); 4329var comp2 = CreateCompilation(src2, references: [comp1Ref], options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4332comp2 = CreateCompilation(src2, references: [comp1Ref], options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular13); 4335comp2 = CreateCompilation(src2, references: [comp1Ref], options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), parseOptions: TestOptions.Regular12); 4398var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 4405var comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview); 4408comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular13); 4411comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12); 4442var comp = CreateCompilation(src1 + src2, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4445var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 4446var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4449var comp3 = CreateCompilation(src1 + ParamCollectionAttributeSource, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 4450var comp4 = CreateCompilation(src2, references: [comp3.ToMetadataReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4453var comp5 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseModule); 4511var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 4514var comp1 = CreateCompilation(ParamCollectionAttributeSource, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 4515var comp2 = CreateCompilation(src, references: [comp1.ToMetadataReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 4619var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 4664var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 4667var comp1 = CreateCompilation(ParamCollectionAttributeSource, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 4668var comp2 = CreateCompilation(src, references: [comp1.ToMetadataReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 4741var comp1 = CreateCompilation(src1, options: TestOptions.ReleaseDll); 4742var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], options: TestOptions.ReleaseExe); 4770var comp1 = CreateCompilation(src1, options: TestOptions.ReleaseDll); 4771var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], options: TestOptions.ReleaseExe); 4808var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 4859var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4897var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 5071options: TestOptions.ReleaseExe); 5181options: TestOptions.ReleaseExe); 5286options: TestOptions.ReleaseExe); 5357options: TestOptions.ReleaseExe); 5393options: TestOptions.ReleaseExe); 5454options: TestOptions.ReleaseExe); 5497options: TestOptions.ReleaseExe); 5672options: TestOptions.ReleaseExe); 5700var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 5787CompileAndVerify(source, parseOptions: TestOptions.Regular13, expectedOutput: "List<byte>"); 5809parseOptions: TestOptions.Regular13, 5843options: TestOptions.ReleaseExe); 6015options: TestOptions.ReleaseExe); 6059options: TestOptions.ReleaseExe); 6129var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 6156var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6186var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6229var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6262var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 6311var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6361var comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6365comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular13); 6369comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12); 6429var comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6439comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular13); 6442comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12); 6480comp = CreateCompilation(src3, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12); 6511var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6540var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6577var comp1 = CreateCompilation(src1, references: [comp0Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6585comp1 = CreateCompilation(src1, references: [comp0Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular13); 6593comp1 = CreateCompilation(src1, references: [comp0Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12); 6618var comp2 = CreateCompilation(src2, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6655var comp1 = CreateCompilation(src1, references: [comp0Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6663comp1 = CreateCompilation(src1, references: [comp0Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular13); 6671comp1 = CreateCompilation(src1, references: [comp0Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12); 6696var comp2 = CreateCompilation(src2, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6733var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6770var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6812var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6854var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6875var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseDll); 6900var comp = CreateCompilation(src, references: new[] { comp1Ref, comp2.EmitToImageReference() }, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6936var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6971var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7002var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7047var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7074var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7103var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7128var comp2 = CreateCompilation(src2, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7155var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7180var comp2 = CreateCompilation(src2, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7228var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7277var comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7281comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular13); 7285comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12); 7342var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7393var comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7397comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular13); 7401comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12); 7464var comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7474comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular13); 7477comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12); 7513comp = CreateCompilation(src3, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12); 7546var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7579var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7620var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7661var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7707var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7753var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7774var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseDll); 7802var comp = CreateCompilation(src, references: new[] { comp1Ref, comp2.EmitToImageReference() }, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7846var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7889var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7938var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7992var comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7996comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular13); 8000comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12); 8068var comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8078comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular13); 8081comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12); 8117comp = CreateCompilation(src3, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12); 8152var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8184var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8221var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8249var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8318var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8383var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8466var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8531var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8565var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8604var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8677options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 8778options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 8875options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 8918options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 8962options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 9273var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9314var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9366var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9420var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9478var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9535var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9605var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9693var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9760var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9801var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9853var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9914var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9961var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10014var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10068var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10124var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10170var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10212var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10254var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10300var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10431comp = CreateCompilationWithIL(src, il, options: TestOptions.ReleaseExe); 10555comp = CreateCompilationWithIL(src, il, options: TestOptions.ReleaseExe); 10679comp = CreateCompilationWithIL(src, il, options: TestOptions.ReleaseExe); 10796comp = CreateCompilationWithIL(src, il, options: TestOptions.ReleaseExe); 10945comp = CreateCompilationWithIL(src, il, options: TestOptions.ReleaseExe); 11093comp = CreateCompilationWithIL(src, il, options: TestOptions.ReleaseExe); 11241comp = CreateCompilationWithIL(src, il, options: TestOptions.ReleaseExe); 11383comp = CreateCompilationWithIL(src, il, options: TestOptions.ReleaseExe); 11531comp = CreateCompilationWithIL(src, il, options: TestOptions.ReleaseExe); 11678comp = CreateCompilationWithIL(src, il, options: TestOptions.ReleaseExe); 11825comp = CreateCompilationWithIL(src, il, options: TestOptions.ReleaseExe); 11966comp = CreateCompilationWithIL(src, il, options: TestOptions.ReleaseExe); 12187var comp = CreateCompilationWithIL(src, il, options: TestOptions.ReleaseExe); 12320var comp = CreateCompilationWithIL(src, il, options: TestOptions.ReleaseExe); 12437var comp = CreateCompilationWithIL(src, il, options: TestOptions.ReleaseExe); 12492CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: "DisposedDisposed").VerifyDiagnostics(); 12523var comp = CreateCompilation(source, options: TestOptions.DebugExe); 12760var comp = CreateCompilation(src1, references, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 12764var comp1 = CreateCompilation(ParamCollectionAttributeSource, options: TestOptions.ReleaseDll); 12766var comp2 = CreateCompilation(src1, references: references.Concat([comp1Ref]), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 12770var comp3 = CreateCompilation(src1, references, options: TestOptions.ReleaseModule); 12774var comp4 = CreateCompilation(src1, references: references.Concat([comp1Ref]), options: TestOptions.ReleaseModule.WithMetadataImportOptions(MetadataImportOptions.All)); 12788var comp5 = CreateCompilation(brokenParamCollectionAttributeSource, options: TestOptions.ReleaseDll); 12790var comp6 = CreateCompilation(src1, references: references.Concat([comp5Ref]), options: TestOptions.ReleaseDll); 12797var comp7 = CreateCompilation(src1, references: references.Concat([comp5Ref]), options: TestOptions.ReleaseModule); 13155var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All); 13215var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All); 13243var comp1 = CreateCompilationWithMscorlib40(ParamCollectionAttributeSource, options: TestOptions.ReleaseDll); 13278var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All); 13344var comp2 = CreateCompilation(src2, references: [image ? comp1.EmitToImageReference() : comp1.ToMetadataReference()], options: TestOptions.ReleaseExe); 13410var comp2 = CreateCompilation(src2, references: [image ? comp1.EmitToImageReference() : comp1.ToMetadataReference()], options: TestOptions.ReleaseExe); 13474var comp2 = CreateCompilation(src2, references: [image ? comp1.EmitToImageReference() : comp1.ToMetadataReference()], options: TestOptions.ReleaseExe); 13507var comp1 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll); 13519var comp2 = CreateCompilation(source2, references: [comp1Ref], options: TestOptions.UnsafeDebugDll); 13539var comp3 = CreateCompilation(source3, references: [comp1Ref], options: TestOptions.DebugDll); 13554var comp4 = CreateCompilation(source4, references: [comp1Ref, comp3.ToMetadataReference()], options: TestOptions.ReleaseExe); 13579var comp5 = CreateCompilation(source5, references: [comp1Ref, comp3.ToMetadataReference()], options: TestOptions.UnsafeReleaseExe); 13608var comp1 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll); 13620var comp2 = CreateCompilation(source2, references: [comp1Ref], options: TestOptions.UnsafeDebugDll); 13640var comp3 = CreateCompilation(source3, references: [comp1Ref], options: TestOptions.DebugDll); 13655var comp4 = CreateCompilation(source4, references: [comp1Ref, comp3.ToMetadataReference()], options: TestOptions.ReleaseExe); 13680var comp5 = CreateCompilation(source5, references: [comp1Ref, comp3.ToMetadataReference()], options: TestOptions.UnsafeReleaseExe); 13724var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 13772var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 13828var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 13870var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 13918var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 13974var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 14016var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 14072var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 14114var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 14186var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 14266var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 14340var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 14390var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 14438var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 14501var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15064var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 15107var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 15179var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15248var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15480var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 15530var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe); 15588var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 16398var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 16435var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 16473var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 16540var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 16567var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 16805var comp = CreateEmptyCompilation([source1, core], options: TestOptions.ReleaseDll.WithAllowUnsafe(true)); 16970comp = CreateEmptyCompilation([source2, core], options: TestOptions.ReleaseDll.WithAllowUnsafe(true));
Semantics\PatternMatchingTestBase.cs (2)
424return CreateCompilation(new[] { source, _iTupleSource }, options: options ?? TestOptions.DebugExe, parseOptions: TestOptions.RegularWithPatternCombinators);
Semantics\PatternMatchingTests.cs (318)
49CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 73CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 112var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 141var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 175var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 212var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 252var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe); 292var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 327var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 363var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 399var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 437var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 465var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 511var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 564var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 606var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 640var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 681var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 731var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 772var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 824var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 883var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 918var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 947var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 975var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe); 979CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_2).VerifyDiagnostics( 1013var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe); 1042var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1068var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe); 1072CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_2).VerifyDiagnostics( 1101var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1145var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe); 1163CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_2).VerifyDiagnostics( 1213var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1263var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1309var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1372var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1422var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1476var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1528var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1584var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1641var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1718var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1777var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1822var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1871var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1924var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1979var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2027var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2071var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2121var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2168var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2224var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2284var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2341var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2400var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2453var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2491var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2536var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2574var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 2607var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2656var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2696var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2740var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 2785var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2835var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2877var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2923var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2964var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3005var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3029var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 3076var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 3112var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3162var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3222var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3254var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3329var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3360var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular6); 3387var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3412var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3438var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3475options: TestOptions.ReleaseDebugDll.WithAllowUnsafe(true), 3476parseOptions: TestOptions.Regular); 3520CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 3641CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 3689CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 3714var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 3736compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3773var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 3795compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3844var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3877var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3910var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3958var compilation = CreateEmptyCompilation(source, options: TestOptions.DebugExe, 3989var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4026var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4064var compilation = CreateCompilation(source, options: TestOptions.DebugExe, 4065parseOptions: TestOptions.Regular6).VerifyDiagnostics( 4084compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4138var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4169var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4220var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4245var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular); 4284var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe); 4339CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 4347CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 4379var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 4418var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe); 4462var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugDll); 4536var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4563var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4593var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4848var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 4864var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 5100var compilation = CreateCompilation(program, options: TestOptions.DebugExe).VerifyDiagnostics( 5221var compilation = CreateCompilation(program, options: TestOptions.DebugExe); 5250CreateCompilation(program, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 5258CreateCompilation(program, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular7_1).VerifyDiagnostics( 5297var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5317var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5596var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5777var compilation = CreateCompilation(source, references: new MetadataReference[] { CSharpRef }, options: TestOptions.ReleaseExe); 5810var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7); 5819compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); 5853var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7); 5862compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); 5896var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7); 5905compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); 5942var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7); 5951compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); 5988var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7); 5997compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); 6072var compilation = CreateCompilation(program, options: TestOptions.DebugExe); 6105var compilation = CreateCompilation(program, options: TestOptions.DebugExe); 6128CreateCompilation(program, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 6133var compilation = CreateCompilation(program, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_1); 6159var compilation = CreateCompilation(program, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 6224var compilation = CreateCompilation(program, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 6277var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 6279compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6298var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 6321var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 6347var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 6368var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 6389var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 6414var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 6438var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 6477var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6521var compilation = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 6547var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6603var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe); 6607CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_2).VerifyDiagnostics( 6659var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6711var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6749CreateCompilationWithMscorlibAndSpan(parseOptions: TestOptions.RegularWithPatternCombinators, 6805CreateCompilationWithMscorlibAndSpan(parseOptions: TestOptions.RegularWithPatternCombinators, text: @" 6832CreateCompilationWithMscorlibAndSpan(parseOptions: TestOptions.RegularWithRecursivePatterns, text: @" 6928CreateCompilationWithMscorlibAndSpan(parseOptions: TestOptions.RegularWithPatternCombinators, text: @" 7024CreateCompilationWithMscorlibAndSpan(parseOptions: TestOptions.RegularWithRecursivePatterns, text: @" 7106CreateCompilationWithMscorlibAndSpan(parseOptions: TestOptions.RegularWithPatternCombinators, text: @" 7248CreateCompilationWithMscorlibAndSpan(parseOptions: TestOptions.RegularWithRecursivePatterns, text: @" 7331comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 7366var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7); 7391var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview) 7440var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview) 7505var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview) 7584var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview) 7669var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, 7670parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 7816compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe); 7986var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, 7987parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 8120compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview) 8263var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview) 8343var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview) 8444var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview) 8490CreateCompilationWithSpan(source, parseOptions: TestOptions.RegularPreview) 8519CreateCompilationWithSpan(source, parseOptions: TestOptions.RegularPreview) 8572comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.RegularPreview); 8606var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular10); 8612comp = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 8648var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular10); 8654comp = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 8692var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview); 8711var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview); 8728var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview); 8748var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview); 8765CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview) 8782var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview); 8798var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview); 8815var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview); 8837CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview) 8873var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview) 8955CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview) 8982var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview) 9033var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview) 9099var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview) 9180var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview) 9267var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, 9268parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 9414compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe); 9585var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, 9586parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 9719compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview) 9863var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview) 9944var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview) 10044var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview) 10090CreateCompilationWithSpan(source, parseOptions: TestOptions.RegularPreview) 10119CreateCompilationWithSpan(source, parseOptions: TestOptions.RegularPreview) 10176comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.RegularPreview); 10209var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular10); 10215comp = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 10250var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular10); 10256comp = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 10293var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview); 10312var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview); 10329var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview); 10349var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview); 10366CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview) 10383var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview); 10399var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview); 10416var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview); 10438CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview) 10476var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview) 10558CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview) 10575var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10606var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10626var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10648var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10676var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10703var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10734var comp = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 10752var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10782var comp = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 10800var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10824var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10854var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10910var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 11008comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview); 11181var comp = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 11343comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview); 11361var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 11385var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 11406var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 11463var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 11589var comp = CreateCompilation(source, options: TestOptions.DebugExe); 11858var comp = CreateCompilation(source, options: TestOptions.DebugExe); 11898var comp = CreateCompilation(source, options: TestOptions.DebugExe); 11941var comp = CreateCompilation(source, options: TestOptions.DebugExe); 12299CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview) 12321CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview) 12339CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview) 12353CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview)
Semantics\PatternMatchingTests_Global.cs (248)
53var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 100var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 175var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 222var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 286var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 345var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 399var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 497var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 551var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 632var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 674var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 722var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 781var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 859var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 919var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 995var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 1045var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1127var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 1177var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1255var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 1301var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 1351var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1426var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 1477var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1561var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 1615var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1709var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 1763var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1843var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 1898var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 1962var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 2069var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 2133var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 2220var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 2272var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 2336var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 2444var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 2508var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 2602var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 2656var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 2710var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 2802var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 2856var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 2934var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 2980var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 3033options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 3101options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 3192var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 3251var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 3338var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 3397var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 3473var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 3532var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 3599var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 3703var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 3770var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 3856var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 3916options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 4001options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4114options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 4199options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4295options: TestOptions.DebugExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 4357var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 4424var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4524var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 4591var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4669var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 4713var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 4749var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 4788var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 4824var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 4877var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 4934var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 5043var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5100var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 5190var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5234var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5270var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5309var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5364var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5431var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 5549var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5616var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 5719var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5768var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5804var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5843var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5884var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5923var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5949var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6008var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 6036var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6095var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 6121var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6177var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), 6178parseOptions: TestOptions.Script); 6207var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6260var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 6289var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 6317var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 6341var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 6370var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 6393var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 6487var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 6571var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6679var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 6719var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 6746var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6796var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 6906var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 7000var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 7120var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 7223var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 7323var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 7445var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 7504var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 7594var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 7703var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 7728var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 7837var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 8089var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 8366var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 8448var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 8543var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 8683var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script);
Semantics\PatternMatchingTests_ListPatterns.cs (66)
63var compilation = CreateCompilationWithIndexAndRangeAndSpan(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 281var verifier = CompileAndVerify(new[] { source, TestSources.Index, TestSources.Range }, parseOptions: TestOptions.RegularWithListPatterns, 282options: TestOptions.ReleaseDll); 451var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.Regular10); 464compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.Regular11); 530var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 718var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 902var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 938var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 970var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithListPatterns); 1002var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 1155var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 1179var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 1224var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 1567var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 1612var compilation = CreateCompilationWithIndexAndRange(source, options: TestOptions.ReleaseExe); 2275var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 2309var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 2334var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 2398var compilation = CreateCompilationWithIndexAndRangeAndSpan(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 2438var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 2510var compilation = CreateCompilationWithIndexAndRangeAndSpan(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 2569var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 2598var compilation = CreateCompilation(new[] { source, TestSources.Index }, options: TestOptions.ReleaseExe); 2918var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 2949var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 3119var comp = CreateCompilationWithIndexAndRangeAndSpan(source, options: TestOptions.ReleaseExe); 3176var comp = CreateCompilationWithIndexAndRangeAndSpan(source, options: TestOptions.ReleaseExe); 3235var comp = CreateCompilationWithIndexAndRangeAndSpan(source, options: TestOptions.ReleaseExe); 3283references: new[] { lib2Ref }, parseOptions: TestOptions.RegularWithListPatterns); 6204var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6246var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6306var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6333var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6391var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 6444var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 6480var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6511var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6566var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6651var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6904var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 7081var compilation = CreateCompilation(new[] { source, TestSources.Index, _iTupleSource }, options: TestOptions.DebugExe); 7228var comp = CreateCompilationWithIndexAndRangeAndSpan(new[] { src, TestSources.GetSubArray }, parseOptions: TestOptions.RegularWithListPatterns); 7251var comp = CreateCompilationWithIndexAndRangeAndSpan(src, parseOptions: TestOptions.RegularWithListPatterns); 7286var comp = CreateCompilationWithIndexAndRangeAndSpan(new[] { source, TestSources.GetSubArray }, options: TestOptions.DebugExe); 7317var compilation = CreateCompilationWithIndexAndRange(source, options: TestOptions.ReleaseExe); 7382var comp = CreateCompilationWithIndexAndRangeAndSpan(src, parseOptions: TestOptions.RegularWithListPatterns); 7412var comp = CreateCompilationWithIndexAndRangeAndSpan(src, parseOptions: TestOptions.RegularWithListPatterns); 7644var verifier = CompileAndVerify(new[] { source, TestSources.Index }, options: TestOptions.DebugDll); 8345var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }, options: TestOptions.ReleaseExe); 8459var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }, options: TestOptions.ReleaseDll);
Semantics\PatternMatchingTests_Scope.cs (179)
66var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 170var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 279var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 325var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 362var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 398var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 441var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 546var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 667var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 703var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 819var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 936var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 972var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1118var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1241var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1276var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1390var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1448compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_3); 1721var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2029var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2165var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2175compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_3); 2301var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2311compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_3); 2409var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2463var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2530var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2669var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2771var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2778compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_3); 2892var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2935compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_3); 3057var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3098var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3225var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3335var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3420var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 3504var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3592var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3677var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3768var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3858var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3959var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4055var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4130var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4165var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4207var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe); 4446var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4831var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5168var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5297var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5332var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5465var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5672var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5879var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6006var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6090var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6173var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6260var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6331var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6404var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6462var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6507var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6574var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 6663options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 6736options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 6811options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 6875options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 6920options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 7050var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7167var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7202var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7348var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7490var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7525var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7684var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7916var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 8145var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 8403var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 8635var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 8873var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 9121var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9266var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 9478var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 9596var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 9631var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 9764var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 9908var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 10043var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 10155var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 10194var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 10337var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 10516var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 10668var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 10710var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 10943var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11125var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11173var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11223var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11266var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11309var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11355var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11398var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11442var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11489var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11539var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11601var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11656options: TestOptions.DebugExe, 11657parseOptions: TestOptions.Regular); 11715options: TestOptions.DebugExe, 11716parseOptions: TestOptions.Regular); 11783var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11874var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11968var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12059var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12137var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12183var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12243var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12396var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12555var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12739var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12885var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12974var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13136var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 13296var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 13383var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13461var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 13549var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13626var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13690var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 13728var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 13865var compilation = CreateCompilation(source, options: TestOptions.DebugExe);
Semantics\PatternMatchingTests2.cs (42)
121var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithRecursivePatterns); 484CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithoutRecursivePatterns).VerifyDiagnostics( 492CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular8).VerifyDiagnostics(); 777var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular8); 1195compilation = CreateCompilation(source, parseOptions: TestOptions.Regular8); 1198compilation = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 1445var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithRecursivePatterns); 1970var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1991var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2015var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2056var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2093var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2145var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2182var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2204var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2399CreateCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics(); 2400CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 2434CreateCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics(); 2435CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(); 2461CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 2519CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 2560CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 2598CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 2636CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 2666CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 2701CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 2733CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 2852var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics(
Semantics\PatternMatchingTests3.cs (150)
385var compilation = CreatePatternCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 420var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 470var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 501var compilation = CreateCompilationWithMscorlibAndSpan(source, options: TestOptions.DebugDll); 522var compilation = CreateCompilationWithMscorlibAndSpan(source, options: TestOptions.DebugDll); 540var compilation = CreateCompilationWithMscorlibAndSpan(source, options: TestOptions.DebugDll); 593var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 636var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 679var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 722var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 746var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 769var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 812var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 854var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 902var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 961var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 989var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 1036var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 1089var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 1142var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 1195var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 1229CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1243CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular8).VerifyDiagnostics(); 1355CompileAndVerify(CreateCompilation(source, options: TestOptions.ReleaseExe).VerifyDiagnostics(), expectedOutput: "0"); 1379CompileAndVerify(CreateCompilation(source, options: TestOptions.ReleaseExe).VerifyDiagnostics(), expectedOutput: "null"); 1608var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 1696var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1997var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2093var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2165var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2237var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2286var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2335var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2366var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.ReleaseExe); 2424var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.ReleaseExe); 2470var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2501var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2541var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2579var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2608var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2650var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2666var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2692var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2720var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2743var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2814var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2873var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2914var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2971var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 3000var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 3071var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 3140var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 3278var compilation = CreateCompilation(source + _iTupleSource, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 3366var compilation = CreateCompilation(source + _iTupleSource, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 3441var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3488var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 3579var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3673var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3707var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3760var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3956var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4058var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4101var compilation = CreatePatternCompilation(source, options: TestOptions.DebugDll); 4328var compilation = CreatePatternCompilation(source, options: TestOptions.DebugDll); 4617var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 4783var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 4875var compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 4969var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 5046var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 5093var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularWithPatternCombinators); 5253var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 5322var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 5536var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 5563var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5585var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5608var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5629var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5654var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5680var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5704var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators, targetFramework: TargetFramework.NetCoreApp); 5725var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5753var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5791var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5820var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5853var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5874var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5909var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5938var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5967var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5988var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 6014var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 6035var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 6076var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 6128var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 6180var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 6723var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 6819var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 6860var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 6901var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 6926var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 6953var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 6986var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7013var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7038var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7067var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7097var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7124var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7158var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7192var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7225var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7249var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7273var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7296var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7315var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7335var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7361var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7389var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7418var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7641var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe);
Semantics\PatternMatchingTests4.cs (39)
90var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 240var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 275var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 866var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 903var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 940var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 3213var compilation = CreatePatternCompilation(source, options: TestOptions.ReleaseExe); 3356var compilation = CreatePatternCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 3383var compilation = CreatePatternCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 3409var compilation = CreatePatternCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 3430var compilation = CreatePatternCompilation(source, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 3465var compilation = CreatePatternCompilation(source, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 3485CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 3503CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 3522CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 3727var compilation = CreatePatternCompilation(source, options: TestOptions.DebugDll); 3747var compilation = CreatePatternCompilation(source, options: TestOptions.DebugDll); 3774var compilation = CreatePatternCompilation(source, options: TestOptions.DebugDll); 3831CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 3859CreateCompilation(source, parseOptions: TestOptions.Regular7, options: TestOptions.ReleaseDll).VerifyDiagnostics( 3861CreatePatternCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics(); 3880CreateCompilation(source, parseOptions: TestOptions.Regular7, options: TestOptions.ReleaseDll).VerifyDiagnostics( 3882CreatePatternCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 3902CreateCompilation(source, parseOptions: TestOptions.Regular7, options: TestOptions.ReleaseDll).VerifyDiagnostics( 3904CreatePatternCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 3924CreateCompilation(source, parseOptions: TestOptions.Regular7, options: TestOptions.ReleaseDll).VerifyDiagnostics( 3926CreatePatternCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 3948CreateCompilation(source, parseOptions: TestOptions.Regular7, options: TestOptions.ReleaseDll).VerifyDiagnostics( 3950CreatePatternCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 3975CreateCompilation(source, parseOptions: TestOptions.Regular7, options: TestOptions.ReleaseDll).VerifyDiagnostics( 3977CreatePatternCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 4155var comp = CreatePatternCompilation(source, TestOptions.DebugDll);
Semantics\PatternMatchingTests5.cs (38)
65var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns, options: TestOptions.ReleaseExe); 172var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns, options: TestOptions.ReleaseExe); 224var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns, options: TestOptions.ReleaseExe); 291var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns, options: TestOptions.ReleaseExe); 339var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 369var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 403var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 422var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 526VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, DiagnosticDescription.None, parseOptions: TestOptions.Regular10); 559var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 688VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.Regular10); 717var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 745var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 786var comp = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 832var comp = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 886var comp = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 975var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1069var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns, options: TestOptions.UnsafeDebugDll); 1427var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1477var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1558var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1595var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1629var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1660var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1695var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1738var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1768var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1800var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1850CompileAndVerify(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns, expectedOutput: @" 1873var comp = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1914var comp = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 3033var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(nullableEnable ? NullableContextOptions.Enable : NullableContextOptions.Disable)); 3130var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(nullableEnable ? NullableContextOptions.Enable : NullableContextOptions.Disable));
Semantics\PatternSwitchTests.cs (92)
39var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 68var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 96var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 125var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 161var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 189var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 218var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe); 245var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe); 273var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 300var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 327var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 348var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 399var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 426var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 452var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 478var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 503var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 531var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 557var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 580var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 603var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 626var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 649var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 669var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 691var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 841var compilation = CreateCompilation(new[] { source, _iTupleSource }, options: TestOptions.DebugExe); 900var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 928var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 954var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 978CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 983CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 1016CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1032var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1078var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1125var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1217var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1348var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1420var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1478var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1558var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1588var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1623var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1688var compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular8); 1862var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1885var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1920var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1966var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2006var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2049var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2080var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2109var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2156var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2218var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2274var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2332var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2381var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2445var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe); 2510var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe); 2570var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 2626var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 2663var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 2706var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2748var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2778var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2809var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2837var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2865var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2894var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2925var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2956var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2987var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3053var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3100var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3138var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3176source, options: TestOptions.ReleaseExe, references: new[] { SystemRuntimeFacadeRef, ValueTupleRef }); 3206source, options: TestOptions.ReleaseDll.WithOptimizationLevel(OptimizationLevel.Release), references: new[] { SystemCoreRef, CSharpRef }); 3229var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular6); 3276var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular6); 3318var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3380var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3439var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3464var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3491var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3521var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3533var comp = CreateCompilation(source, options: TestOptions.DebugExe);
Semantics\PrimaryConstructorTests.cs (303)
59var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 66comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 69comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 85var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 92comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 99comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 114var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 121comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 124comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 156var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 163comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 166comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 181var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 191comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 198comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 217var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 224comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 227comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 242var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 252comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 259comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 279var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 289comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 296comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 313var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 320comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 323comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 334var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 337comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 340comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 351var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 354comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 357comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 985var comp = CreateCompilation(src, options: TestOptions.DebugExe); 2837var comp = CreateCompilation(src, options: TestOptions.DebugExe); 2889var comp = CreateCompilation(src, options: TestOptions.DebugExe); 2914var comp = CreateCompilation(src, options: TestOptions.DebugExe); 2940var comp = CreateCompilation(src, options: TestOptions.DebugExe); 2982var comp = CreateCompilation(src, options: TestOptions.DebugExe); 3006var comp = CreateCompilation(src, options: TestOptions.DebugExe); 3189var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3193comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 3197comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 6047var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6080var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6127var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6164var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6186var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6207var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6230var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6257var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6282var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6320var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6350var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6384var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6418var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6453var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6488var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6528var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6568var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6611var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6652var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6697var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6739var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6805var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 6827var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithFeature("run-nullable-analysis", "never"), targetFramework: TargetFramework.NetCoreApp); 6853var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithFeature("run-nullable-analysis", "never"), targetFramework: TargetFramework.NetCoreApp); 7790var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 8752var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 9158var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 9337var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 9360var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 9415var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 9452var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 9474var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 9516var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 9538var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll); 9572var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 9877var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 9907var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 9937var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 9990var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10013var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10035var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10145var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10184var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10219var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10262var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10304var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10335var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10375var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10407var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10443var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10482var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10521var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10557var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10593var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10632var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10671var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10714var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10746var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10782var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10818var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10869var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10913var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10957var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11000var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11043var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11085var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11130var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11165var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11192var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 11230var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11257var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 11295var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11330var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11362var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 11393var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 11436var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11479var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11511var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 11554var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11597var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11777var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11828var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11905var comp = CreateCompilationWithIL(source, ilSource, options: TestOptions.ReleaseDll); 11941var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseDll); 11988var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 12029var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseExe); 12109var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 12149var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 12192var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12242var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 12315var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 12392var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 12448var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12485var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12517var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12540var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12564var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12596var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12619var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12664var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12687var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12716var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12739var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12778var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12829var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12870var 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( 13014CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13039CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 13058CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13085CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13117CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13149CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13183CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13221CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13265CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13298CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13335CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13396CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expected); 13426CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13489CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expected); 13520CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 13562CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 14007var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 14048var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 14093var verifier = CompileAndVerify(source, expectedOutput: " 0 1 2 3 2 3", options: TestOptions.DebugExe); 14412var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 14560var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 14590var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 14594comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 14658var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, options: TestOptions.ReleaseExe); 14835var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 14852var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 14975var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 15060var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, options: TestOptions.ReleaseExe); 15267var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 15289var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 15432var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 15710var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 15732var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 15753var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 15774var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 15832var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 16062var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16083var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16108var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16126var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16152var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16178var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16196var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16214var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16240var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.NetCoreApp); 16266var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.NetCoreApp); 16292var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16318var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16339var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16370var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16404var comp1 = CreateCompilation(source, options: TestOptions.ReleaseExe); 16586var comp2 = CreateCompilation(source, options: TestOptions.DebugExe); 16818var comp1 = CreateCompilation(source, options: TestOptions.ReleaseExe); 17075var comp2 = CreateCompilation(source, options: TestOptions.DebugExe); 17363var comp1 = CreateCompilation(source, options: TestOptions.ReleaseExe); 17421var comp2 = CreateCompilation(source, options: TestOptions.DebugExe); 17517var comp1 = CreateCompilation(source, options: TestOptions.ReleaseExe); 17606var comp2 = CreateCompilation(source, options: TestOptions.DebugExe); 17737var comp1 = CreateCompilation(source, options: TestOptions.ReleaseExe); 17946var comp2 = CreateCompilation(source, options: TestOptions.DebugExe); 18208var comp1 = CreateCompilation(source, options: TestOptions.ReleaseExe); 18502var comp2 = CreateCompilation(source, options: TestOptions.DebugExe); 18844var comp1 = CreateCompilation(source, options: TestOptions.ReleaseExe); 19014var comp2 = CreateCompilation(source, options: TestOptions.DebugExe); 19237var comp1 = CreateCompilation(source, options: TestOptions.ReleaseExe); 19311var comp2 = CreateCompilation(source, options: TestOptions.DebugExe); 19464var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 19547var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 19596var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 19669var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 19694var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 19724var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 19749var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 19929var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 19952var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20064var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseDll); 20129var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseDll); 20164var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20467var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20501var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20593var comp = CreateCompilation(src1, parseOptions: TestOptions.RegularPreview); 20626var comp = CreateCompilation(src1, parseOptions: TestOptions.RegularPreview); 20667var comp = CreateCompilation(src1, parseOptions: TestOptions.RegularPreview); 20711var comp = CreateCompilation(src1, parseOptions: TestOptions.RegularPreview); 20758var comp = CreateCompilation(src1, parseOptions: TestOptions.RegularPreview); 20814var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20846var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20878var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20910var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20932var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20954var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20983var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21005var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21039var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21076var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21110var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21147var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21182var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21217var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21252var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21285var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21316var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21345var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21385var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21416var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21453var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21502var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21545var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21584var comp = CreateCompilation(source1 + source2 + source3, options: TestOptions.ReleaseDll); 21594comp = CreateCompilation(source2 + source1 + source3, options: TestOptions.ReleaseDll); 21626var comp = CreateCompilation(new[] { source1, source2, source3 }, options: TestOptions.ReleaseDll); 21667var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21732var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.NetCoreApp); 21793var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.NetCoreApp); 21854var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.NetCoreApp); 21890var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 21909var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 21928var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21977var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 22006var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 22021var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 22042var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 22068var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 22094var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 22125var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 22147var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 22192var comp = CreateCompilation(new[] { source1, source2 }, options: TestOptions.ReleaseDll); 22258var comp = CreateCompilation(source, options: TestOptions.ReleaseDll);
Semantics\RecordTests.cs (475)
25parseOptions: TestOptions.RegularPreview); 34parseOptions: TestOptions.RegularPreview, 51var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseDll); 63comp = CreateCompilation(src2, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseDll); 75comp = CreateCompilation(src3, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseDll); 94comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 104comp = CreateCompilation(src2, parseOptions: TestOptions.Regular9); 110comp = CreateCompilation(new[] { src3, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 144var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular8); 157comp = CreateCompilation(src2, parseOptions: TestOptions.Regular8); 167comp = CreateCompilation(src3, parseOptions: TestOptions.Regular8); 200var comp = CreateCompilation(src, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseDll); 228comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 235comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseDll); 780var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 800var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 855var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 1054var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 1190var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1209comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 1249var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1302var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1352var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1411var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugExe); 1448var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1604var verifier = CompileAndVerify(src, expectedOutput: "True", parseOptions: TestOptions.Regular10); 1714var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe); 2423parseOptions: TestOptions.Regular9, 2468var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 2483var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 2618var comp = CreateCompilationWithIL(new[] { src, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 2700var comp = CreateCompilationWithIL(new[] { src, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 2713comp = CreateCompilationWithIL(new[] { src, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular10); 2811comp = CreateCompilation(src, parseOptions: TestOptions.Regular8); 2818comp = CreateCompilation(src, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseDll.WithWarningLevel(6)); 3155var comp = CreateCompilation(src, options: TestOptions.DebugExe); 3414var comp = CreateCompilationWithIL(src, il, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 3633var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 3736var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 3849var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 3962var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 4074var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 4187var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 4211var comp2Ref = CreateCompilation(new[] { source2, IsExternalInitTypeDefinition }, references: new[] { comp1Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4236var comp1Ref = CreateCompilation(new[] { source1, IsExternalInitTypeDefinition }, assemblyName: "Clone_12", parseOptions: TestOptions.Regular9).EmitToImageReference(); 4242var comp2Ref = CreateCompilation(new[] { source2, IsExternalInitTypeDefinition }, references: new[] { comp1Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4256var comp3 = CreateCompilation(new[] { source3, IsExternalInitTypeDefinition }, references: new[] { comp2Ref }, parseOptions: TestOptions.Regular9); 4271var comp1Ref = CreateCompilation(new[] { source1, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4277var comp2Ref = CreateCompilation(new[] { source2, IsExternalInitTypeDefinition }, assemblyName: "Clone_13", references: new[] { comp1Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4283var comp3Ref = CreateCompilation(new[] { source3, IsExternalInitTypeDefinition }, references: new[] { comp1Ref, comp2Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4295var comp4 = CreateCompilation(new[] { source4, IsExternalInitTypeDefinition }, references: new[] { comp1Ref, comp3Ref }, parseOptions: TestOptions.Regular9); 4311var comp5 = CreateCompilation(new[] { source4, IsExternalInitTypeDefinition }, references: new[] { comp3Ref }, parseOptions: TestOptions.Regular9); 4341var comp2Ref = CreateCompilation(new[] { source2, IsExternalInitTypeDefinition }, references: new[] { comp1Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4366var comp1Ref = CreateCompilation(new[] { source1, IsExternalInitTypeDefinition }, assemblyName: "Clone_15", parseOptions: TestOptions.Regular9).EmitToImageReference(); 4372var comp2Ref = CreateCompilation(new[] { source2, IsExternalInitTypeDefinition }, references: new[] { comp1Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4386var comp3 = CreateCompilation(new[] { source3, IsExternalInitTypeDefinition }, references: new[] { comp2Ref }, parseOptions: TestOptions.Regular9); 4428var comp1Ref = CreateCompilation(new[] { source1, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4434var comp2Ref = CreateCompilation(new[] { source2, IsExternalInitTypeDefinition }, assemblyName: "Clone_16", references: new[] { comp1Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4440var comp3Ref = CreateCompilation(new[] { source3, IsExternalInitTypeDefinition }, references: new[] { comp1Ref, comp2Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference(); 4452var comp4 = CreateCompilation(new[] { source4, IsExternalInitTypeDefinition }, references: new[] { comp1Ref, comp3Ref }, parseOptions: TestOptions.Regular9); 4477var comp5 = CreateCompilation(new[] { source4, IsExternalInitTypeDefinition }, references: new[] { comp3Ref }, parseOptions: TestOptions.Regular9); 4595var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 4698var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 4898var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 4916var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 4991var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5068var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5235var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5267var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5302var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe); 5327var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe); 5347var comp = CreateCompilation(src, options: TestOptions.DebugExe); 5374var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe); 5453var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5508var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5547var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5588var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5654var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5717var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5766var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5788var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5883var comp = CreateCompilation(src, parseOptions: usePreview ? TestOptions.Regular10 : TestOptions.Regular9, options: TestOptions.DebugExe); 5914var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 5937var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 5963var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 6006var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 6047var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 6088var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 6128var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 6152var comp = CreateCompilation(new[] { src1, src2, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 6176var comp = CreateCompilation(new[] { src1, src2, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 6336var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 6405var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 6477var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 6549var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 6621var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 6699var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 6761var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 6845var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 6994var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 7004comp = CreateCompilationWithIL(new[] { source2, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 7082var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 7160var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 7187var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 7271parseOptions: usePreview ? TestOptions.Regular10 : TestOptions.Regular9); 7300var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 7320var comp = CreateCompilation(src, parseOptions: usePreview ? TestOptions.Regular10 : TestOptions.Regular9); 7487var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 7587var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 7612var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 8813var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9807comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 9925var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10585comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 10796var comp = CreateCompilation(new[] { sourceA, sourceB, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 10826comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 10874comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 10958var compB = CreateCompilation(new[] { sourceB, IsExternalInitTypeDefinition }, references: new[] { refA }, parseOptions: TestOptions.Regular9); 11029var compB = CreateCompilation(new[] { sourceB, IsExternalInitTypeDefinition }, references: new[] { refA }, parseOptions: TestOptions.Regular9); 11119var compB = CreateCompilation(new[] { sourceB, IsExternalInitTypeDefinition }, references: new[] { refA }, parseOptions: TestOptions.Regular9); 11331var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 11545var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 11781var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 12070var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 12196var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9); 12281var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 12360var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 12465var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 12522var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 12577var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9); 12634var compB = CreateCompilation(RuntimeUtilities.IsCoreClrRuntime ? sourceB : new[] { sourceB, IsExternalInitTypeDefinition }, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.NetLatest); 12686var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 12720var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 12903var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 12946var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 13004var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 13059var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 13181var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 13221var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 13308var compB = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 13321var compC = CreateCompilation(sourceC, references: new[] { refA }, parseOptions: TestOptions.Regular9); 13340var compA = CreateCompilation(new[] { sourceA, IsExternalInitTypeDefinition }, assemblyName: "AssemblyA", parseOptions: TestOptions.Regular9); 13346var compB = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, assemblyName: "AssemblyB"); 13355var compC = CreateCompilation(sourceC, references: new[] { refA }, parseOptions: TestOptions.Regular9, assemblyName: "AssemblyB"); 13358var compB2 = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, assemblyName: "AssemblyB2"); 13500var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 13587var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 13599var comp2 = CreateCompilationWithIL(new[] { source2, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 13672var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 13852parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 13931parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 13980var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 14006var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 14039var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 14072var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 14449var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14462comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 15722var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: usePreview ? TestOptions.Regular10 : TestOptions.Regular9); 15934var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16040var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16140var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16240var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16281var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 16290comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 16472var comp = CreateCompilationWithIL(new[] { source1, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16479comp = CreateCompilationWithIL(new[] { source2, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16486comp = CreateCompilationWithIL(new[] { source1 + source3, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16493comp = CreateCompilationWithIL(new[] { source1 + source4, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16500comp = CreateCompilationWithIL(new[] { source2 + source3, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16507comp = CreateCompilationWithIL(new[] { source2 + source4, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16607var comp = CreateCompilationWithIL(new[] { source1, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16618comp = CreateCompilationWithIL(new[] { source2, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16718var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16729comp = CreateCompilationWithIL(new[] { source2, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16966var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16977comp = CreateCompilationWithIL(new[] { source2, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 17078var comp = CreateCompilationWithIL(new[] { source2, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 17185var comp = CreateCompilationWithIL(new[] { source2, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 17230var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 17240comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 17326var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 17336comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 17422var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 17431comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 17581var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 17681var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 17787var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 17984var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 18038var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18077var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18112var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18147var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18189var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18223var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18259var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18301var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18363var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18390var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18416var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18454var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18483var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18507var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18580var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18613var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18652var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18688var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18790var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18821var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18861var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18905var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18949var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18972var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19020var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: modifiers == "abstract " ? TestOptions.ReleaseDll : TestOptions.ReleaseExe); 19093var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: modifiers == "abstract " ? TestOptions.ReleaseDll : TestOptions.ReleaseExe); 19144var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19161var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19191var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19228var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19301var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19458var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 19499var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19626var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 19745var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 19955var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 20031var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 20062var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 20131var comp = CreateCompilation(src, options: TestOptions.DebugExe); 20283var comp = CreateCompilation(src, options: TestOptions.DebugExe); 22524var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 22693var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 22806var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 22912var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23019var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23366var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23533var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23567var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23714var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23754var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23805comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 23831var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23893var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 23909var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 23929var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 23998var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 24058var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 24116var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 24179var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 24274var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 24282comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 24339var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 24347comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 24409var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 24418comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 24488var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 24502comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 24615var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 24869var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 24914var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 24941var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 24961var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 24998var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 25032var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 25097parseOptions: TestOptions.Regular9, 25100options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 25157parseOptions: TestOptions.Regular9, 25160options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 25234parseOptions: TestOptions.Regular9, 25237options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 25291parseOptions: TestOptions.Regular9, 25294options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 25366parseOptions: TestOptions.Regular9, 25369options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 25450parseOptions: TestOptions.Regular9, 25453options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 25520parseOptions: TestOptions.Regular9, 25523options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 25563var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition, NotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 25588parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe, verify: Verification.Skipped /* init-only */); 25611var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 27691var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9) 27896var compDebug = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe); 27897var compRelease = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.ReleaseExe); 27919var compDebug = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe); 27920var compRelease = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.ReleaseExe); 28109var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe); 28132var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28179var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 28222var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments, assemblyName: "Test"); 28284var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28335var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28370var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28400var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28429var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28460var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28493var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28539var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28577var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28624var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28671var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28719var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28767var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28819var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28872var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28929var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28979var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 29037var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 29094var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 29165var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29190var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29215var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29241var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 29248comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 29280var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29315var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29340var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29368var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29406var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29444var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29475var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 29485comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29548var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 29579var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 29600var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 29613var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 29645var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 29648comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29677var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 29680comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29698var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29725var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29763var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29786var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29823var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29855var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29881var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29910var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29934var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview); 29958var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview); 30193var compB = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions("CS1701", ReportDiagnostic.Suppress), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.NetCoreApp); 30307var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 30366var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "never"), targetFramework: TargetFramework.NetCoreApp); 30390var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "never"), targetFramework: TargetFramework.NetCoreApp);
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (12)
EndToEndTests.cs (12)
167var options = TestOptions.DebugDll.WithConcurrentBuild(false); 248var options = TestOptions.DebugDll.WithConcurrentBuild(false); 323var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithConcurrentBuild(false)); 357var options = TestOptions.DebugDll.WithConcurrentBuild(concurrent); 449var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithConcurrentBuild(false)); 578var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithConcurrentBuild(false)); 677var verifier = CompileAndVerify(files.ToArrayAndFree(), parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "global"), expectedOutput: makeExpectedOutput()); 760var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithConcurrentBuild(false)); 796var parseOptions = TestOptions.RegularPreview; 797Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 813driverOptions: TestOptions.GeneratorDriverOptions); 861var comp = CreateCompilation(source, options: TestOptions.DebugExe.WithConcurrentBuild(false));
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (109)
CodeActions\AbstractCSharpCodeActionTest_NoEditor.cs (1)
14protected override ParseOptions GetScriptOptions() => TestOptions.Script;
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (2)
52=> parameters.WithCompilationOptions((parameters.compilationOptions ?? TestOptions.DebugDll).WithReportSuppressedDiagnostics(true)); 1062var compilationOptions = TestOptions.DebugDll.WithSpecificDiagnosticOptions(
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (2)
456var experimental = TestOptions.Regular.WithFeatures(experimentalFeatures); 506var experimental = TestOptions.Regular.WithFeatures(featuresToEnable);
EncapsulateField\EncapsulateFieldTests.cs (1)
904await TestAllOptionsOffAsync(host, text, expected, new CodeAnalysis.CSharp.CSharpParseOptions(), TestOptions.ReleaseExe);
ExtractMethod\ExtractLocalFunctionTests.cs (17)
747parseOptions: TestOptions.Regular, index: CodeActionIndex); 848parseOptions: 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))); 4119await TestExactActionSetOfferedAsync(code, [FeaturesResources.Extract_method], new TestParameters(parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6))); 4135await TestExactActionSetOfferedAsync(code, [FeaturesResources.Extract_method], new TestParameters(parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5))); 5424await TestAsync(code, expected, TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp9), index: 1); 5576await TestAsync(code, expected, TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp7), index: CodeActionIndex); 5625await TestAsync(code, expected, TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp7), index: CodeActionIndex); 5676await TestAsync(code, expected, TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp7), index: CodeActionIndex); 5713await TestAsync(code, expected, TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp7), index: CodeActionIndex); 5803await TestAsync(code, expected, TestOptions.Regular, index: CodeActionIndex);
ExtractMethod\ExtractMethodTests2.cs (5)
999parseOptions: TestOptions.Regular); 1101parseOptions: 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); 4329new TestParameters(parseOptions: TestOptions.Regular.WithLanguageVersion(version))); 5094await TestMissingInRegularAndScriptAsync(code, new TestParameters(parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp8))); 5691await TestAsync(code, expected, TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 5711await TestAsync(code, expected, TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 5730TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9));
IntroduceVariable\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)); 2051parseOptions: TestOptions.Regular); 5535await TestAsync(code, expected, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 5700await TestActionCountAsync(code, count: 2, parameters: new TestParameters(TestOptions.Regular)); 5787await TestAsync(code, expected, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest)); 5820await TestAsync(code, expected, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest)); 5854await TestAsync(code, expected, index: 1, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest)); 6139""", parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest)); 6169""", parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), index: 0); 6198""", parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), index: 2);
MoveDeclarationNearReference\MoveDeclarationNearReferenceTests.cs (13)
70TestOptions.Regular); 115TestOptions.Regular); 182TestOptions.Regular); 233TestOptions.Regular); 457TestOptions.Regular); 617TestOptions.Regular); 685TestOptions.Regular); 755TestOptions.Regular); 825TestOptions.Regular); 1628TestOptions.Regular); 1711TestOptions.Regular); 1937TestOptions.Regular); 2014TestOptions.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)
3664parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 3694parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 3724parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 3754parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 4944""", parseOptions: TestOptions.Regular);
src\Analyzers\CSharp\Tests\GenerateMethod\GenerateMethodTests.cs (16)
8775parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 8807parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 8839parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 8871parseOptions: TestOptions.Regular.WithLanguageVersion(CodeAnalysis.CSharp.LanguageVersion.CSharp6)); 8905parseOptions: TestOptions.Regular); 8939parseOptions: TestOptions.Regular); 8974parseOptions: TestOptions.Regular); 9008parseOptions: TestOptions.Regular); 9137parseOptions: TestOptions.Regular); 9171parseOptions: TestOptions.Regular); 9277parseOptions: TestOptions.Regular); 9315parseOptions: TestOptions.Regular); 9353parseOptions: TestOptions.Regular); 9391parseOptions: TestOptions.Regular); 9429parseOptions: TestOptions.Regular); 9467parseOptions: TestOptions.Regular);
src\Analyzers\CSharp\Tests\ImplementAbstractClass\ImplementAbstractClassTests.cs (6)
567parseOptions: TestOptions.Regular7); 1798parseOptions: 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)
657var 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)
25private static readonly ParseOptions CSharp9 = TestOptions.RegularPreview.WithLanguageVersion(LanguageVersion.CSharp9); 146await 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)
19return CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9);
IOperation\IOperationTests.cs (6)
257}", options: TestOptions.Regular); 349}", options: TestOptions.Regular); 405var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 505var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script);
IOperation\IOperationTests_IAddressOfOperation.cs (2)
60VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, compilationOptions: TestOptions.UnsafeDebugDll); 140VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, TestOptions.UnsafeDebugDll);
IOperation\IOperationTests_IAnonymousFunctionExpression.cs (1)
482parseOptions: TestOptions.Regular8
IOperation\IOperationTests_IArgument.cs (8)
2456var compilation = CreateEmptyCompilation(source, options: Test.Utilities.TestOptions.ReleaseDll); 2520var compilation = CreateEmptyCompilation(source, options: Test.Utilities.TestOptions.ReleaseDll); 2608var compilation = CreateEmptyCompilation(source, options: Test.Utilities.TestOptions.ReleaseDll); 2664var compilation = CreateEmptyCompilation(source, options: Test.Utilities.TestOptions.ReleaseDll); 2722var compilation = CreateEmptyCompilation(source, options: Test.Utilities.TestOptions.ReleaseDll); 2807var compilation = CreateEmptyCompilation(source, options: Test.Utilities.TestOptions.ReleaseDll); 3861var compilation = CreateEmptyCompilation(source, options: Test.Utilities.TestOptions.ReleaseDll); 3956var compilation = CreateEmptyCompilation(source, options: Test.Utilities.TestOptions.ReleaseDll);
IOperation\IOperationTests_IConversionExpression.cs (6)
550parseOptions: TestOptions.Regular7_1, 2934compilationOptions: TestOptions.UnsafeReleaseDll, 2966compilationOptions: TestOptions.UnsafeReleaseDll, 3002compilationOptions: TestOptions.UnsafeReleaseDll, 3037compilationOptions: TestOptions.UnsafeReleaseDll, 3450comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular12);
IOperation\IOperationTests_IDeconstructionAssignmentOperation.cs (4)
418VerifyOperationTreeAndDiagnosticsForTest<BlockSyntax>(source, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 482VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 552VerifyOperationTreeAndDiagnosticsForTest<BlockSyntax>(source, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 628VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview);
IOperation\IOperationTests_IDelegateCreationExpression.cs (7)
530parseOptions: TestOptions.WithoutImprovedOverloadCandidates); 558}, parseOptions: TestOptions.WithoutImprovedOverloadCandidates); 759parseOptions: TestOptions.WithoutImprovedOverloadCandidates); 787}, parseOptions: TestOptions.WithoutImprovedOverloadCandidates); 1171}, parseOptions: TestOptions.WithoutImprovedOverloadCandidates); 1511parseOptions: TestOptions.WithoutImprovedOverloadCandidates); 2045var comp = CreateCompilation(code, options: TestOptions.UnsafeReleaseExe);
IOperation\IOperationTests_IFieldReferenceExpression.cs (7)
75parseOptions: TestOptions.Script); 101parseOptions: TestOptions.Script); 125parseOptions: TestOptions.Script); 151parseOptions: TestOptions.Script); 176parseOptions: TestOptions.Script); 295VerifyOperationTreeAndDiagnosticsForTest<AssignmentExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, compilationOptions: TestOptions.UnsafeDebugDll); 335VerifyOperationTreeAndDiagnosticsForTest<AssignmentExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, compilationOptions: TestOptions.UnsafeDebugDll);
IOperation\IOperationTests_IFixedStatement.cs (10)
88compilationOptions: TestOptions.UnsafeDebugDll); 168compilationOptions: TestOptions.UnsafeDebugDll); 257compilationOptions: TestOptions.UnsafeDebugDll); 315compilationOptions: TestOptions.UnsafeDebugDll); 383compilationOptions: TestOptions.UnsafeDebugDll); 467VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, compilationOptions: TestOptions.UnsafeDebugDll); 562VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, compilationOptions: TestOptions.UnsafeDebugDll); 688var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 784VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedGraph, expectedDiagnostics, compilationOptions: TestOptions.UnsafeDebugDll); 915VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedGraph, expectedDiagnostics, compilationOptions: TestOptions.UnsafeDebugDll);
IOperation\IOperationTests_IForEachLoopStatement.cs (23)
1514VerifyOperationTreeForTest<ForEachStatementSyntax>(source, expectedOperationTree, parseOptions: TestOptions.Regular9); 1567VerifyOperationTreeForTest<ForEachStatementSyntax>(source, expectedOperationTree, parseOptions: TestOptions.Regular9); 1613VerifyOperationTreeForTest<ForEachStatementSyntax>(source, expectedOperationTree, parseOptions: TestOptions.Regular9); 1672VerifyOperationTreeForTest<ForEachStatementSyntax>(source, expectedOperationTree, parseOptions: TestOptions.Regular9); 1725var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 1780var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 1827var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 1894var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 3123VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source + TestSources.Span, expectedFlowGraph, expectedDiagnostics, TestOptions.ReleaseDll.WithAllowUnsafe(true)); 3212VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source + TestSources.Span, expectedFlowGraph, expectedDiagnostics, TestOptions.ReleaseDll.WithAllowUnsafe(true)); 3301VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source + TestSources.Span, expectedFlowGraph, expectedDiagnostics, TestOptions.ReleaseDll.WithAllowUnsafe(true)); 3390VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source + TestSources.Span, expectedFlowGraph, expectedDiagnostics, TestOptions.ReleaseDll.WithAllowUnsafe(true)); 4680VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.Regular9); 4811VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.Regular9); 4896VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.Regular9); 5066VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.Regular9); 5196var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 5328var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 5414var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 5585var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 6365var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe); 6654var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
IOperation\IOperationTests_IInterpolatedStringOperation.cs (38)
1515VerifyOperationTreeAndDiagnosticsForTest<VariableDeclaratorSyntax>(new[] { code, handler }, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 1584VerifyOperationTreeAndDiagnosticsForTest<VariableDeclaratorSyntax>(new[] { code, handler }, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 1653VerifyOperationTreeAndDiagnosticsForTest<VariableDeclaratorSyntax>(new[] { code, handler }, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 1722VerifyOperationTreeAndDiagnosticsForTest<VariableDeclaratorSyntax>(new[] { code, handler }, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 1790VerifyOperationTreeAndDiagnosticsForTest<VariableDeclaratorSyntax>(new[] { code, InterpolatedStringHandlerAttribute }, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 1875VerifyOperationTreeAndDiagnosticsForTest<VariableDeclaratorSyntax>(new[] { code, InterpolatedStringHandlerAttribute }, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 1930VerifyOperationTreeAndDiagnosticsForTest<VariableDeclaratorSyntax>(new[] { code, InterpolatedStringHandlerAttribute }, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 1999VerifyOperationTreeAndDiagnosticsForTest<VariableDeclaratorSyntax>(new[] { code, handler }, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 2072VerifyOperationTreeAndDiagnosticsForTest<VariableDeclaratorSyntax>(new[] { code, handler }, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 2162expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 2261expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 2355VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, handlerType }, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 2458VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, handlerType }, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 2577VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, handlerType }, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 2701VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, handlerType }, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 2776VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, handlerType }, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 2876VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, handlerType }, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 3022expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 3164expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 3306expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 3456expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 3693expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 3842expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 4026expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 4169expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 4282expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 4369VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, handlerType }, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 4464VerifyOperationTreeAndDiagnosticsForTest<InvocationExpressionSyntax>(new[] { code, InterpolatedStringHandlerAttribute }, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 4554VerifyOperationTreeAndDiagnosticsForTest<InvocationExpressionSyntax>(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 4698VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 4728VerifyOperationTreeAndDiagnosticsForTest<InterpolatedStringExpressionSyntax>(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 4921expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 5012expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 5206VerifyOperationTreeAndDiagnosticsForTest<VariableDeclaratorSyntax>(new[] { code, handler }, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 5262VerifyOperationTreeAndDiagnosticsForTest<CastExpressionSyntax>(new[] { code, handler }, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 5539VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 5645VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 5782VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview);
IOperation\IOperationTests_IIsPatternExpression.cs (8)
1070VerifyOperationTreeAndDiagnosticsForTest<IsPatternExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1138VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1188VerifyOperationTreeAndDiagnosticsForTest<IsPatternExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1244VerifyOperationTreeAndDiagnosticsForTest<IsPatternExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1317var compilation = CreateCompilation(source, new[] { vbCompilation.EmitToImageReference() }, parseOptions: TestOptions.Regular8); 2052VerifyOperationTreeAndDiagnosticsForTest<IsPatternExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularWithPatternCombinators); 2085VerifyOperationTreeAndDiagnosticsForTest<IsPatternExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularWithPatternCombinators); 2535expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns);
IOperation\IOperationTests_INoneOperation.cs (1)
337VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, compilationOptions: TestOptions.UnsafeDebugDll);
IOperation\IOperationTests_INoPiaObjectCreationOperation.cs (7)
43var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 102var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 159var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 209var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 301var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 391var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 458var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll);
IOperation\IOperationTests_IObjectCreationExpression.cs (3)
18private static readonly CSharpParseOptions ImplicitObjectCreationOptions = TestOptions.Regular9; 1399", options: TestOptions.UnsafeReleaseExe); 2227VerifyOperationTreeAndDiagnosticsForTest<InitializerExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.Regular9);
IOperation\IOperationTests_IPatternSwitchCase.cs (2)
746VerifyOperationTreeAndDiagnosticsForTest<CasePatternSwitchLabelSyntax>(source, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularWithPatternCombinators); 781VerifyOperationTreeAndDiagnosticsForTest<CasePatternSwitchLabelSyntax>(source, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularWithPatternCombinators);
IOperation\IOperationTests_IPointerIndirectionReferenceOperation.cs (2)
58VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, compilationOptions: TestOptions.UnsafeDebugDll); 116VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, compilationOptions: TestOptions.UnsafeDebugDll);
IOperation\IOperationTests_ISizeOfExpression.cs (1)
92VerifyOperationTreeAndDiagnosticsForTest<SizeOfExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, compilationOptions: TestOptions.UnsafeReleaseDll);
IOperation\IOperationTests_ISwitchExpression.cs (1)
1689VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularWithPatternCombinators);
IOperation\IOperationTests_ISwitchOperation.cs (6)
3460VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularWithPatternCombinators); 3528VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularWithPatternCombinators); 3623VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularWithPatternCombinators); 3721VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularWithPatternCombinators); 3809VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularWithPatternCombinators); 3880VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularWithPatternCombinators);
IOperation\IOperationTests_ISymbolInitializer.cs (2)
30var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular);
IOperation\IOperationTests_IThrowOperation.cs (2)
2171var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular8); 2276var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()));
IOperation\IOperationTests_IVariableDeclaration.cs (1)
922var tree = Parse(source, options: TestOptions.Regular);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6802)
Semantics\AccessCheckTests.cs (9)
1050compilationOptions: TestOptions.ReleaseDll); 1064compilationOptions: TestOptions.ReleaseDll, 1457comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, assemblyName: null); 1464comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, assemblyName: "B"); 1490comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, assemblyName: null); 1497comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, assemblyName: "B"); 1501comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, assemblyName: "B2"); 1516}", options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9);
Semantics\AmbiguousOverrideTests.cs (1)
1359var verifier = CompileAndVerify(csharp, new[] { reference }, options: TestOptions.ReleaseExe, expectedOutput: @"
Semantics\AnonymousFunctionTests.cs (20)
21=> CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(expected); 25options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 26parseOptions: TestOptions.RegularPreview, 40options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 41parseOptions: TestOptions.RegularPreview, 72CreateCompilation(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1189options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 1190parseOptions: TestOptions.Regular9, 1318var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1357var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1377var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1398var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1446CompileAndVerify(source, expectedOutput: "123456", parseOptions: TestOptions.Regular9); 1560CompileAndVerify(source, expectedOutput: "123456", parseOptions: TestOptions.Regular9); 1581CompileAndVerify(source, expectedOutput: "hello world", parseOptions: TestOptions.Regular9); 1612CompileAndVerify(source, expectedOutput: "12", parseOptions: TestOptions.Regular9);
Semantics\ArglistTests.cs (4)
1543CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1567CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1636options: TestOptions.DebugExe, 1659options: TestOptions.DebugExe,
Semantics\AwaitExpressionTests.cs (6)
214var comp = CreateCompilationWithMscorlib461(text, options: TestOptions.ReleaseDll); 242var comp = CreateCompilationWithMscorlib461(text, options: TestOptions.ReleaseDll); 375CompileAndVerify(text, options: TestOptions.ReleaseExe, expectedOutput: "Passed").VerifyDiagnostics(); 376CompileAndVerify(text, options: TestOptions.DebugExe, expectedOutput: "Passed").VerifyDiagnostics(); 419CompileAndVerify(text, options: TestOptions.ReleaseExe, expectedOutput: "Passed").VerifyDiagnostics(); 420CompileAndVerify(text, options: TestOptions.DebugExe, expectedOutput: "Passed").VerifyDiagnostics();
Semantics\BetterCandidates.cs (67)
28return CreateCompilation(source, options: options, references: references, parseOptions: TestOptions.WithoutImprovedOverloadCandidates); 32Debug.Assert(TestOptions.Regular.LanguageVersion >= MessageID.IDS_FeatureImprovedOverloadCandidates.RequiredVersion()); 33return CreateCompilation(source, options: options, references: references, parseOptions: TestOptions.Regular); 53CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 58var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics(); 80CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 85var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics(); 111CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 116var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics(); 145CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 150var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics(); 178CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 183var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics(); 225CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 230var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics(); 267CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 275var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 302CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 313var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 357CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 362var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 408CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 413var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 449CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 454var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 477CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 482var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 506CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 511var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 536CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 541var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 567CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 572CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 596CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 601CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 626CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 631CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 657CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 662CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 687CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 692var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 718CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 726var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 755CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 760var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 786CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 791var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 817CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 822var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 858CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 863var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics(); 887CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 892var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 916CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 921var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 945CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseExe.WithAllowUnsafe(true)).VerifyDiagnostics( 950var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe.WithAllowUnsafe(true)).VerifyDiagnostics( 1004CreateCompilationWithoutBetterCandidates(source2, references: new[] { reference1 }, options: TestOptions.ReleaseExe.WithAllowUnsafe(true)).VerifyDiagnostics( 1012CreateCompilationWithBetterCandidates(source2, references: new[] { reference1 }, options: TestOptions.ReleaseExe.WithAllowUnsafe(true)).VerifyDiagnostics( 1052CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 1069var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 1153CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 1158var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 1201CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 1206var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 1254CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 1259var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics(
Semantics\BindingAsyncTasklikeMoreTests.cs (9)
106var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe); 916var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll); 1005var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll); 1090var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll); 1117var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.UnsafeDebugExe); 1588var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 1593compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1625var compilation = CreateCompilation(source, parseOptions: useCSharp9 ? TestOptions.Regular9 : TestOptions.Regular10, targetFramework: TargetFramework.Net70);
Semantics\BindingAsyncTests.cs (20)
697CreateCompilationWithMscorlib461(source, null, TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 716CreateCompilationWithMscorlib461(source, null, TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 739CreateCompilationWithMscorlib461(source, null, TestOptions.UnsafeReleaseDll) 766CreateCompilationWithMscorlib461(source, null, TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 985CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5)).VerifyDiagnostics( 993CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics(); 1017CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5)).VerifyDiagnostics( 1022CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics(); 1214CreateCompilationWithMscorlib461(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1253CreateCompilationWithMscorlib461(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1308CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 1505TestOptions.UnsafeReleaseDll); 1546TestOptions.ReleaseDll).VerifyDiagnostics( 3144var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script); 3163syntaxTree: SyntaxFactory.ParseSyntaxTree(source0, options: TestOptions.Script), 3299CreateCompilationWithMscorlib461(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3517CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)).VerifyDiagnostics( 3534var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7));
Semantics\BindingAwaitTests.cs (2)
2762var comp = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, TestOptions.ReleaseExe); 2834var comp = CreateCompilationWithMscorlib461(source, new[] { Net40.References.SystemCore, Net40.References.MicrosoftCSharp }, TestOptions.ReleaseExe);
Semantics\BindingTests.cs (11)
1965CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1987CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 2038CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2188CreateCompilation(source, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 2213CreateCompilation(source, parseOptions: TestOptions.Regular7, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics( 2439CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyDiagnostics( 2506CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyDiagnostics( 2715var compilation = CreateCompilation(sourceText, options: TestOptions.DebugDll); 2771var compilation = CreateCompilation(sourceText, options: TestOptions.DebugDll); 2826var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceText, options: TestOptions.DebugDll); 2875var compilation = CreateCompilationWithMscorlib40(sourceText, new[] { Net40.References.SystemCore }, options: TestOptions.DebugDll);
Semantics\ColorColorTests.cs (8)
1521var comp = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.DebugExe); 1580var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, assemblyName: System.Guid.NewGuid().ToString()); 1621var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, assemblyName: System.Guid.NewGuid().ToString()); 1659var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, assemblyName: System.Guid.NewGuid().ToString()); 1700var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, assemblyName: System.Guid.NewGuid().ToString()); 1738var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 1760CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll) 1809var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll);
Semantics\ConditionalOperatorTests.cs (16)
71TestConditional("true ? T : U", null, parseOptions: TestOptions.Regular8, 74TestConditional("true ? T : U", null, parseOptions: TestOptions.Regular8.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()), 77TestConditional("false ? T : 1", null, parseOptions: TestOptions.Regular8, 79TestConditional("false ? T : 1", null, parseOptions: TestOptions.Regular8.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()), 104TestConditional("false ? GetString : (System.Func<int>)null", null, TestOptions.WithoutImprovedOverloadCandidates, 194TestConditional("1 ? null : null", null, parseOptions: TestOptions.Regular8, 197TestConditional("1 ? null : null", null, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()), 715options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 1174var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 1246TestConditionalCore(conditionalExpression, expectedType, TestOptions.Regular8, expectedDiagnostics); 1247TestConditionalCore(conditionalExpression, expectedType, TestOptions.Regular8.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()), expectedDiagnostics); 1336var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1391var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1438var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 1500var compilation = CreateCompilation(source, options: TestOptions.DebugExe, 1520compilation = CreateCompilation(source, options: TestOptions.ReleaseExe);
Semantics\ConstantTests.cs (16)
185var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1582var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 3280CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics( 3362CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3516var comp = CreateCompilation(source.ToString(), options: TestOptions.ReleaseExe); 3626var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3667var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3688var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3724var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3806var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3834var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3903var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3909comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3977", parseOptions: TestOptions.RegularPreview, expectedOutput: "", symbolValidator: module => 3998", parseOptions: TestOptions.RegularPreview, expectedOutput: "", symbolValidator: module =>
Semantics\DeconstructionTests.cs (27)
799var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1284var comp = CreateCompilation(source, assemblyName: "comp", options: TestOptions.DebugExe); 1606var libComp = CreateCompilation(new string[] { libSource }, references: new[] { libMissingRef }, parseOptions: TestOptions.Regular).VerifyDiagnostics(); 1944var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2223var comp = CreateCompilation(source, parseOptions: TestOptions.Regular6); 4089options: TestOptions.UnsafeDebugDll, 4090parseOptions: TestOptions.RegularPreview); 4332var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 4363var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 4597var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 4619var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 4739var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 4749var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 4886var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 4896var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 4968var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 4978var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 5075var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 5085var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 5290var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 5321var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 5577var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 5599var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 5727var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 5755var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 5943var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 5962var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script);
Semantics\DelegateTypeTests.cs (526)
85var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 100comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 125var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 140comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 175var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 190comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 217var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 308var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 323CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 352var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 367CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 393var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 402CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 426var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 435CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 460var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 535var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 558CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 585var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 600CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 624var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 737var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 783var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 880var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 923var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 981var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 1021var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 1068var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 1199var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 1241var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 1320var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 1366var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 1409var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 1450var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 1542var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseExe); 1622var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe); 1673var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 1723var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 1773var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 1823var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 1873var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 1923var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 1974var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2019var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2068var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2075comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2122var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2132comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2187var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2197comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2250var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2257comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2307var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2310comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2346var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2349comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2389var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2392comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2429var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2439comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2479var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2486comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2527var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2534comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2575var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2582comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2624var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2631comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2677var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2680comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2711var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2721comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2769var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2773comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2798var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 3067CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3072var comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 3100CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3105CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 3129CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3134CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 3211var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3214comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3242var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3273comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3294var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3319comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3340var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3362comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3389CompileAndVerify(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, expectedOutput: "System.Func<System.Object>, System.Action<System.Object, System.Int32>"); 3416CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: 3446CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: 3466var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3494CompileAndVerify(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, expectedOutput: "System.Action<System.Object>"); 3517var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3550var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 3556comp = CreateCompilation(source, parseOptions: TestOptions.Regular13); 3598var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 3646var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 3655comp = CreateCompilation(source, parseOptions: TestOptions.Regular13); 3680var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3706var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3738var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3774CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, references: new[] { CSharpRef }, expectedOutput: "Microsoft.CSharp.RuntimeBinder.RuntimeBinderException"); 3799CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 3855var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 3858comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 3882var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 3885comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 3917var comp = CreateCompilation(new[] { sourceB, s_utils }, new[] { refA }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 3951var comp = CreateCompilation(new[] { sourceB, s_utils }, new[] { refA }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 3983var comp = CreateCompilation(new[] { source, UnmanagedCallersOnlyAttributeDefinition }, parseOptions: TestOptions.RegularPreview); 4017var comp = CreateCompilation(new[] { source, UnmanagedCallersOnlyAttributeDefinition }, parseOptions: TestOptions.RegularPreview); 4077var comp = CreateEmptyCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.RegularPreview); 4178var comp = CreateEmptyCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.RegularPreview); 4252var comp = CreateEmptyCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.RegularPreview); 4343var comp = CreateEmptyCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.RegularPreview); 4587var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 4623var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseExe); 4659var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 4692var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 4722CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 4723CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 4751CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: 4757CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: 4787CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: 4793CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: 4823CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: @"E.M"); 4826CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: @"C.M"); 4860var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4881CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: 4915var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4924CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: 4947var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4956comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4988CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "extension, extension, "); 4989CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: "extension, instance, "); 5016CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "extension, extension, "); 5017CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: "extension, instance, "); 5046CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: "extension, extension, "); 5047CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: "extension, instance, "); 5071var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5096comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5161CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5162CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5187CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5188CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5210CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5211CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5238CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5239CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5266CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: 5296var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5323var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5325comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5355var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5357comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5389var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5391comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5424var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5426comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5454CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5455CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5483CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5484CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5504CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5505CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5527CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5528CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5550CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5551CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5573CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5574CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5597CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5598CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5640CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5641CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5671CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5672CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5693var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5711comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5734CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5735CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5766CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 5767CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5789var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5806CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5828var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5842CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5864var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5878CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5898var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5910CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5930var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5942CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5965var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5980comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 6003var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6015comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 6037var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6044CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 6066var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6084comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 6121CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 6122CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 6152CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: 6167var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 6199CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: 6207CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 6241CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: 6249CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 6279var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6281comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 6303var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6310CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 6361CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 6362CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 6487CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 6526CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 6571CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 6616CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 6661CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 6706CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 6745CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 6784CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 6818CreateCompilation([source1, source2], parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 6819CreateCompilation([source1, source2], parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 6833CompileAndVerify([source1, source3], parseOptions: TestOptions.Regular12, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 6834CompileAndVerify([source1, source3], parseOptions: TestOptions.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 6874CompileAndVerify(source, parseOptions: TestOptions.Regular12, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 6875CompileAndVerify(source, parseOptions: TestOptions.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 6915CompileAndVerify(source, parseOptions: TestOptions.Regular12, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 6916CompileAndVerify(source, parseOptions: TestOptions.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 6956CompileAndVerify(source, parseOptions: TestOptions.Regular12, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 6957CompileAndVerify(source, parseOptions: TestOptions.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 6997CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 7007CompileAndVerify(source, parseOptions: TestOptions.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 7053CompileAndVerify(source, parseOptions: TestOptions.Regular12, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 7054CompileAndVerify(source, parseOptions: TestOptions.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 7100CompileAndVerify(source, parseOptions: TestOptions.Regular12, expectedOutput: expectedOutput).VerifyDiagnostics(); 7101CompileAndVerify(source, parseOptions: TestOptions.Regular13, expectedOutput: expectedOutput).VerifyDiagnostics(); 7135CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 7145CompileAndVerify(source, parseOptions: TestOptions.Regular13, expectedOutput: expectedOutput).VerifyDiagnostics(); 7171CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 7181CompileAndVerify(source, parseOptions: TestOptions.Regular13, expectedOutput: expectedOutput).VerifyDiagnostics(); 7207CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 7217CompileAndVerify(source, parseOptions: TestOptions.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 7256CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 7266CompileAndVerify(source, parseOptions: TestOptions.Regular13, expectedOutput: expectedOutput).VerifyDiagnostics(); 7299CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 7309CompileAndVerify(source, parseOptions: TestOptions.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 7409CompileAndVerify(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 7410CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 7439CompileAndVerify(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 7440CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 7461CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 7484CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 7508var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7517CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 7541var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7550CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 7585var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7611var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7620CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 7642var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7680var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7689CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 7724var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7762var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7789var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7801CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 7833var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7894CompileAndVerify(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 7895CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 7916var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7925CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 7945var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7951CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 7983var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8006CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 8023var comp = CreateCompilation(new[] { source, s_utils }, options: TestOptions.ReleaseExe); 8046var comp = CreateCompilation(new[] { source, s_utils }, options: TestOptions.ReleaseExe); 8078CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 8100CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 8122var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 8150var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 8178var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 8209var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8218CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 8249CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 8286CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 8316var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8325CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 8349var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8358CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 8387var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8399CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 8429var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8444CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 8475CompileAndVerify(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 8476CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 8515var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8538var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8581CompileAndVerify(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 8582CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 8616var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8652var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8683CompileAndVerify(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 8684CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 8718var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8754var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8785var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8791CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 8812var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8858var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8867CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 8889var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8919var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8948var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8977var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9007var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9051var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9085var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9113var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9152var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9199var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9212CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 9234var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9247CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 9270var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9295comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 9322var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9343CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 9365var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9390comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 9513var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9556comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 9789var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9791comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 9821CompileAndVerify(source, parseOptions: TestOptions.Regular9); 9822CompileAndVerify(source, parseOptions: TestOptions.Regular10); 9850CompileAndVerify(source, parseOptions: TestOptions.Regular9); 9851CompileAndVerify(source, parseOptions: TestOptions.Regular10); 9892var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9894comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 9946var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9948comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 9981CompileAndVerify(source, parseOptions: TestOptions.Regular9); 9982CompileAndVerify(source, parseOptions: TestOptions.Regular10); 10006CompileAndVerify(source, parseOptions: TestOptions.Regular9); 10007CompileAndVerify(source, parseOptions: TestOptions.Regular10); 10032CompileAndVerify(source, parseOptions: TestOptions.Regular9); 10033CompileAndVerify(source, parseOptions: TestOptions.Regular10); 10058CompileAndVerify(source, parseOptions: TestOptions.Regular9); 10059CompileAndVerify(source, parseOptions: TestOptions.Regular10); 10081CompileAndVerify(source, parseOptions: TestOptions.Regular9); 10082CompileAndVerify(source, parseOptions: TestOptions.Regular10); 10108CompileAndVerify(source, parseOptions: TestOptions.Regular9); 10109CompileAndVerify(source, parseOptions: TestOptions.Regular10); 10178var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 10190comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.Regular10, options: TestOptions.DebugExe); 10251var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9.WithKind(SourceCodeKind.Script)); 10263comp = CreateCompilation(source, parseOptions: TestOptions.Regular10.WithKind(SourceCodeKind.Script)); 10559CompileAndVerify(new[] { source, s_utils }, options: TestOptions.DebugExe, expectedOutput: 10617var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10619comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10664var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10677CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 10699var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10717comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10741var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10754CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 10777var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10792comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10816var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10826CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 10852CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput); 10853CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 10875var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10887comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10914CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: 10924CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 10947var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 10970var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 11008var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11139var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11193var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11267var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11333var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseExe); 11384var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11410var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11475var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11554var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseExe); 11613var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11650var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 11685var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11718var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11757var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 11798var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 11839var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 11895var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11928var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11959var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11998var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 12029var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseExe); 12070var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseExe); 12106var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 12162CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 12207CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 12237var comp = CreateCompilationWithSpan(source, options: TestOptions.ReleaseExe); 12260var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 12326CompileAndVerify(new[] { sourceA, sourceB, sourceC }, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 12383CompileAndVerify(new[] { sourceA, sourceB, sourceC }, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 12418CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 12455CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 12482CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 12536CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 12602CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 12665CompileAndVerify(sourceB, references: new[] { refA }, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 12722CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 12763CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 13015CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 13059CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: 13162CreateCompilation(source, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics( 13295CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, expectedOutput: $""" 13318CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, expectedOutput: $""" 13434CompileAndVerify(source, parseOptions: TestOptions.Regular12, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 13435CompileAndVerify(source, parseOptions: TestOptions.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 13475CompileAndVerify(source, parseOptions: TestOptions.Regular12, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 13476CompileAndVerify(source, parseOptions: TestOptions.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 13508CompileAndVerify(source, parseOptions: TestOptions.Regular12, expectedOutput: expectedOutput).VerifyDiagnostics(); 13509CompileAndVerify(source, parseOptions: TestOptions.Regular13, expectedOutput: expectedOutput).VerifyDiagnostics(); 13538CompileAndVerify(source, parseOptions: TestOptions.Regular12, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 13539CompileAndVerify(source, parseOptions: TestOptions.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 13605CompileAndVerify(source3, [comp2Ref, comp1b.EmitToImageReference()], parseOptions: TestOptions.Regular12, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 13606CompileAndVerify(source3, [comp2Ref, comp1b.EmitToImageReference()], parseOptions: TestOptions.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 13644CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 13656CompileAndVerify(source, parseOptions: TestOptions.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 13711CreateCompilation(source3, [comp2Ref, comp1bRef], parseOptions: TestOptions.Regular12).VerifyDiagnostics( 13723CompileAndVerify(source3, [comp2Ref, comp1bRef], parseOptions: TestOptions.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 13767CreateCompilation([source1, source2], parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 13774CompileAndVerify([source1, source2], parseOptions: TestOptions.Regular13, expectedOutput: expectedOutput).VerifyDiagnostics(); 13788CompileAndVerify([source1, source3], parseOptions: TestOptions.Regular12, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 13789CompileAndVerify([source1, source3], parseOptions: TestOptions.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 13848CreateCompilation(source3, [comp2Ref, comp1bRef], parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 13855CompileAndVerify(source3, [comp2Ref, comp1bRef], parseOptions: TestOptions.Regular13, expectedOutput: expectedOutput).VerifyDiagnostics(); 13869CompileAndVerify(source4, [comp2Ref, comp1bRef], parseOptions: TestOptions.Regular12, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 13870CompileAndVerify(source4, [comp2Ref, comp1bRef], parseOptions: TestOptions.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 13910CompileAndVerify(source, parseOptions: TestOptions.Regular12, expectedOutput: expectedOutput).VerifyDiagnostics(); 13911CompileAndVerify(source, parseOptions: TestOptions.Regular13, expectedOutput: expectedOutput).VerifyDiagnostics(); 13953CompileAndVerify(source3, [comp2Ref, comp1aRef], parseOptions: TestOptions.Regular12, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 13954CompileAndVerify(source3, [comp2Ref, comp1aRef], parseOptions: TestOptions.Regular13, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics(); 13982CompileAndVerify(source3, [comp2Ref, comp1bRef], parseOptions: TestOptions.Regular12, expectedOutput: expectedOutput).VerifyDiagnostics(); 13983CompileAndVerify(source3, [comp2Ref, comp1bRef], parseOptions: TestOptions.Regular13, expectedOutput: expectedOutput).VerifyDiagnostics(); 14436var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 14820var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14868var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14938var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15027var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15087var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15164var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15201CompileAndVerify(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 15202CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: expectedOutput); 15252var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15317var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15361var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15414var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15618var verifier = CompileAndVerify(source, parseOptions: TestOptions.RegularPreview); 17526CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: "True").VerifyDiagnostics(); 17540CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, expectedOutput: "4").VerifyDiagnostics();
Semantics\DynamicTests.cs (170)
58CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 616CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 831var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll); 1278var comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 1281comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll); 1471}, parseOptions: TestOptions.WithoutImprovedOverloadCandidates); 1891CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2152var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll); 2336CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2366CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2842var comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 2845comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll); 2876CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3037CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(source, options: TestOptions.RegularPreview) }).VerifyDiagnostics( 3107CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(source, options: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5)) }).VerifyDiagnostics( 3224CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(source, options: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5)) }).VerifyDiagnostics( 3255CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugDll).VerifyEmitDiagnostics( 3774CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp4)).VerifyDiagnostics(); 3775CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp3)).VerifyDiagnostics( 3916var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithAllowUnsafe(true), verify: Verification.FailsPEVerify).VerifyDiagnostics(); 3944var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithAllowUnsafe(true), verify: Verification.FailsPEVerify).VerifyDiagnostics(); 3971CreateCompilation(source, options: TestOptions.DebugDll.WithAllowUnsafe(true)).VerifyDiagnostics( 3995var verifier = CompileAndVerify(source, new[] { CSharpRef }, options: TestOptions.DebugDll).VerifyDiagnostics(); 4044var compilation2 = CreateCompilation(source2, new[] { reference.WithEmbedInteropTypes(true), CSharpRef }, options: TestOptions.ReleaseExe); 4067var compilation = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugDll); 4094var compilation = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugDll); 4271var compilation1 = CreateCompilation(consumer1, options: TestOptions.ReleaseExe, 4294var compilation2 = CreateCompilation(consumer2, options: TestOptions.ReleaseExe, 4395var compilation1 = CreateCompilation(consumer1, options: TestOptions.ReleaseExe, 4411var compilation2 = CreateCompilation(consumer2, options: TestOptions.ReleaseExe, 4437var comp = CreateCompilationWithMscorlib461AndCSharp(source, parseOptions: TestOptions.Regular7_2); 4462var comp = CreateCompilationWithMscorlib461AndCSharp(source, parseOptions: TestOptions.Regular7_2); 4492var comp1 = CreateCompilationWithMscorlib461AndCSharp(source1, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4503comp1 = CreateCompilationWithMscorlib461AndCSharp(source1, parseOptions: TestOptions.Regular7_2, options: TestOptions.DebugExe); 4528var comp2 = CreateCompilationWithMscorlib461AndCSharp(source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4535comp2 = CreateCompilationWithMscorlib461AndCSharp(source2, parseOptions: TestOptions.Regular7_2, options: TestOptions.DebugExe); 4564var comp = CreateCompilationWithMscorlib461AndCSharp(source, parseOptions: TestOptions.Regular7_2); 4593var comp = CreateCompilationWithMscorlib461AndCSharp(source, parseOptions: TestOptions.Regular7_2); 4676var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 4948var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.Regular13; 5025var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: parseOptions); 5072var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.Regular13; 5149var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: parseOptions); 5195var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.Regular13; 5272var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: parseOptions); 5319var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.Regular13; 5338var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 5379var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 5423var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithAllowUnsafe(true), targetFramework: TargetFramework.StandardAndCSharp); 5451var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.Regular13; 5467var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 5511var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 5575var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 5613var comp = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), targetFramework: TargetFramework.StandardAndCSharp); 5636var parseOptions = version switch { 12 => TestOptions.Regular12, 13 => TestOptions.Regular13, _ => TestOptions.RegularPreview }; 5652var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 5668var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.Regular13; 5729var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 5774var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithAllowUnsafe(true), targetFramework: TargetFramework.StandardAndCSharp); 5802var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.Regular13; 5819var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 5864var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 5932var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 5971var comp = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), targetFramework: TargetFramework.StandardAndCSharp); 5994var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.Regular13; 6070var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: parseOptions); 6117var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.Regular13; 6193var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: parseOptions); 6313var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 6373var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 6416var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithAllowUnsafe(true), targetFramework: TargetFramework.StandardAndCSharp); 6446var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.Regular13; 6462var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 6506var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 6549var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 6603var comp = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), targetFramework: TargetFramework.StandardAndCSharp); 6668var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 6777var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 6887var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 6988var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7056var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7159var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7272var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7388var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7501var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7578var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7683var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7789var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7892var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7964var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8070var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8175var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8280var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8389var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8498var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8608var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8721var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8790var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8858var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8921var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8980var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 9011var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9070var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 9102var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9161var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 9192var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9248var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9309var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9366var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 9398var comp3 = CreateCompilation(source3, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9430var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9487var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 9519var comp3 = CreateCompilation(source3, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9550var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9606var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 9637var comp3 = CreateCompilation(source3, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9664var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9716var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 9748var comp3 = CreateCompilation(source3, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9775var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9827var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 9859var comp3 = CreateCompilation(source3, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9886var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9937var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 9968var comp3 = CreateCompilation(source3, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10006var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10134var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10262var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10379var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10416var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10550var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10698var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10847var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10887var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 10923var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10968var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 11097var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 11181var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 11259var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 11314var comp1 = CreateCompilation(source1, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.Regular12); 11367var comp1 = CreateCompilation(source1, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.Regular12); 11414var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.Regular12); 11447var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.Regular12); 11491var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.Regular12); 11532var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.Regular12); 11581var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.Regular12); 11633var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.Regular12); 11676var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.Regular12);
Semantics\ExpressionBodiedMemberTests.cs (2)
1043CreateCompilation(source, parseOptions: TestOptions.Regular).VerifyDiagnostics(); 1044CreateCompilation(source, parseOptions: TestOptions.Regular6).VerifyDiagnostics(
Semantics\ForEachTests.cs (11)
285CreateCompilation(text, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 1905var boundNode = GetBoundForEachStatement(text, TestOptions.Regular, 2349var comp = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 3195var boundNode = GetBoundForEachStatement(text, TestOptions.Regular7_3, 3231var boundNode = GetBoundForEachStatement(text, options: TestOptions.Regular9); 3322""", options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(); 3356""", options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(); 3442var comp1 = CreateEmptyCompilation(source1, options: TestOptions.DebugDll, assemblyName: "MissingBaseType1"); 3470var comp2 = CreateEmptyCompilation(source2, new[] { comp1.ToMetadataReference() }, options: TestOptions.DebugDll); 3485var comp3 = CreateEmptyCompilation(source3, options: TestOptions.DebugDll, assemblyName: "MissingBaseType2"); 3646var comp = CreateCompilationWithMscorlibAndSpan(source, options: TestOptions.ReleaseDebugExe).VerifyDiagnostics();
Semantics\FunctionPointerTests.cs (39)
21return CreateCompilation(source, options: options ?? TestOptions.UnsafeReleaseDll, parseOptions: parseOptions, targetFramework: targetFramework ?? TargetFramework.Standard); 40var comp = CreateCompilationWithFunctionPointers(src, parseOptions: TestOptions.Regular8); 47comp = CreateCompilationWithFunctionPointers(src, parseOptions: TestOptions.Regular9); 57var comp = CreateCompilationWithFunctionPointers(src, parseOptions: TestOptions.Regular11); 69comp = CreateCompilationWithFunctionPointers(src, parseOptions: TestOptions.Regular12); 88var comp = CreateCompilationWithFunctionPointers(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 98comp = CreateCompilationWithFunctionPointers(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 105comp = CreateCompilationWithFunctionPointers(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 119var comp = CreateCompilationWithFunctionPointers(src, parseOptions: TestOptions.Regular11); 125comp = CreateCompilationWithFunctionPointers(src, parseOptions: TestOptions.Regular12); 141var comp = CreateCompilationWithFunctionPointers(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 150comp = CreateCompilationWithFunctionPointers(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 237}", options: TestOptions.UnsafeReleaseExe); 2003var comp = CreateCompilationWithIL(source, il, options: TestOptions.UnsafeReleaseDll); 2049var comp = CreateCompilationWithIL(source, il, options: TestOptions.UnsafeReleaseExe); 2082var comp = CreateCompilationWithIL(code, il, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseExe); 2120var 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); 3350var comp = CreateCompilationWithFunctionPointers(source, TestOptions.UnsafeReleaseExe); 3403comp = CreateCompilationWithFunctionPointers(source, parseOptions: TestOptions.Regular7_3); 3846}", options: TestOptions.UnsafeReleaseExe);
Semantics\GenericConstraintsTests.cs (74)
2192CompileAndVerify(code, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 2437options: TestOptions.UnsafeReleaseExe, references: new[] { reference, reference1 }, verify: Verification.Passes, expectedOutput: "123"); 2523options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: string.Join(Environment.NewLine, type, size)).VerifyIL("Test.M<T>", @" 2575options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: "246").VerifyIL("Test.M<T>", @" 2613options: 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( 3042options: TestOptions.UnsafeReleaseExe, 3080options: 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( 3296CreateCompilation(code, options: TestOptions.UnsafeReleaseDll) 3320CreateCompilation(code, options: TestOptions.UnsafeReleaseDll) 3350CreateCompilation(code, options: TestOptions.UnsafeReleaseDll) 3385CreateCompilation(code, options: TestOptions.UnsafeReleaseDll) 3414CreateCompilation(code, options: TestOptions.UnsafeReleaseDll) 3417CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 3457CreateCompilation(code, options: TestOptions.UnsafeReleaseDll) 3464CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 3492CreateCompilation(code, options: TestOptions.UnsafeReleaseDll) 3534CreateCompilation(code, options: TestOptions.UnsafeReleaseDll) 3558var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3578var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3599var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3623var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3654var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3679var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3707var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3735var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3763var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3794var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3830var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3862var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3890var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3929CompileAndVerify(code, options: TestOptions.UnsafeReleaseExe, expectedOutput: "42", verify: Verification.Skipped); 3962CompileAndVerify(code, options: TestOptions.UnsafeReleaseDll, verify: Verification.Skipped) 4001CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 4008CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4031CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 4040CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4057CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 4064CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4081CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 4087CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4104CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 4110CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4127CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 4134CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4154CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 4161CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4184CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 4194CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4221CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3) 4231CreateCompilation(code, options: TestOptions.UnsafeReleaseDll) 4260options: TestOptions.UnsafeReleaseExe, 4284CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 4316options: TestOptions.UnsafeReleaseExe, 4341CreateCompilation(code, options: TestOptions.UnsafeReleaseDll)
Semantics\GlobalUsingDirectiveTests.cs (359)
36CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 47CreateCompilation(source, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 66CreateCompilation(source, parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 86CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(); 108CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 134CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 191var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Regular10, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 234var comp3 = CreateCompilation(source3, parseOptions: TestOptions.Regular10, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 304var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Regular10, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 353var comp3 = CreateCompilation(source3, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 404var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 421var comp3 = CreateCompilation(new[] { source3, source2 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 541var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source, source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 544comp = CreateCompilation(new[] { globalUsings2 + source, globalUsings1 + source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 547comp = CreateCompilation(new[] { globalUsings1 + source1, globalUsings2 + source }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 550comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 + source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 553comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, source }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 556comp = CreateCompilation(new[] { extAlias + source, globalUsings1 + globalUsings2 + source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { extCompRef }); 563comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, extAlias + source }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { extCompRef }); 680var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source, source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 683comp = CreateCompilation(new[] { globalUsings2 + source, globalUsings1 + source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 686comp = CreateCompilation(new[] { globalUsings1 + source1, globalUsings2 + source }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 689comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 + source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 692comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, source }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 695comp = CreateCompilation(new[] { extAlias + source, globalUsings1 + globalUsings2 + source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { extCompRef }); 702comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, extAlias + source }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { extCompRef }); 811var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source, source1, program }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 814comp = CreateCompilation(new[] { globalUsings2 + source, globalUsings1 + source1, program }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 817comp = CreateCompilation(new[] { globalUsings1 + source1, globalUsings2 + source, program }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 820comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 + source1, program }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 823comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, source, program }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 869var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2, source1 }, parseOptions: TestOptions.RegularPreview); 889comp = CreateCompilation(new[] { globalUsings2, globalUsings1 + source1 }, parseOptions: TestOptions.RegularPreview); 892comp = CreateCompilation(new[] { globalUsings1 + source1, globalUsings2 }, parseOptions: TestOptions.RegularPreview); 895comp = CreateCompilation(new[] { globalUsings2 + globalUsings1, source1 }, parseOptions: TestOptions.RegularPreview); 940var comp = CreateCompilation(new[] { globalUsings1 + usings2, source1 }, parseOptions: TestOptions.RegularPreview); 960comp = CreateCompilation(new[] { usings2, globalUsings1 + source1 }, parseOptions: TestOptions.RegularPreview); 963comp = CreateCompilation(new[] { globalUsings1 + source1, usings2 }, parseOptions: TestOptions.RegularPreview); 1020var comp = CreateCompilation(source1, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1061var comp = CreateCompilation(source1, parseOptions: TestOptions.RegularPreview); 1111var comp = CreateCompilation(source1, parseOptions: TestOptions.RegularPreview); 1235var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source, source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1238comp = CreateCompilation(new[] { globalUsings2 + source, globalUsings1 + source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1241comp = CreateCompilation(new[] { globalUsings1 + source1, globalUsings2 + source }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1244comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 + source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1247comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, source }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1250comp = CreateCompilation(new[] { extAlias + source, globalUsings1 + globalUsings2 + source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { extCompRef }); 1257comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, extAlias + source }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { extCompRef }); 1363var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source, source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1366comp = CreateCompilation(new[] { globalUsings2 + source, globalUsings1 + source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1369comp = CreateCompilation(new[] { globalUsings1 + source1, globalUsings2 + source }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1372comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 + source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1375comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, source }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1378comp = CreateCompilation(new[] { extAlias + source, globalUsings1 + globalUsings2 + source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { extCompRef }); 1385comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, extAlias + source }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { extCompRef }); 1483var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source, source1, program }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1486comp = CreateCompilation(new[] { globalUsings2 + source, globalUsings1 + source1, program }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1489comp = CreateCompilation(new[] { globalUsings1 + source1, globalUsings2 + source, program }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1492comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 + source1, program }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1495comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, source, program }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1530var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2, source1 }, parseOptions: TestOptions.RegularPreview); 1550comp = CreateCompilation(new[] { globalUsings2, globalUsings1 + source1 }, parseOptions: TestOptions.RegularPreview); 1553comp = CreateCompilation(new[] { globalUsings1 + source1, globalUsings2 }, parseOptions: TestOptions.RegularPreview); 1556comp = CreateCompilation(new[] { globalUsings2 + globalUsings1, source1 }, parseOptions: TestOptions.RegularPreview); 1590var comp = CreateCompilation(new[] { globalUsings1 + usings2, source1 }, parseOptions: TestOptions.RegularPreview); 1610comp = CreateCompilation(new[] { usings2, globalUsings1 + source1 }, parseOptions: TestOptions.RegularPreview); 1613comp = CreateCompilation(new[] { globalUsings1 + source1, usings2 }, parseOptions: TestOptions.RegularPreview); 1691var comp = CreateCompilation(source1, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1807var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source, source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1810comp = CreateCompilation(new[] { globalUsings2 + source, globalUsings1 + source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1813comp = CreateCompilation(new[] { globalUsings1 + source1, globalUsings2 + source }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1816comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 + source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1819comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source1, source }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1893var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1927var comp = CreateCompilation(source1, parseOptions: TestOptions.RegularPreview); 1963var comp = CreateCompilation(source1, parseOptions: TestOptions.RegularPreview); 2026var comp = CreateCompilation(new[] { source2, source1, source3, source6, source4, "", source5 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 2073var comp2 = CreateCompilation(new[] { source2 + source3, source5, source6 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2083var comp3 = CreateCompilation(new[] { source2 + source3 + source4, source5, source6 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2096var comp4 = CreateCompilation(new[] { source2 + source3 + source5, source6 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2109var comp5 = CreateCompilation(new[] { source2 + source3 + source4 + source5, source6 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2129var comp6 = CreateCompilation(new[] { source2, source3, source5, source6 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2139var comp7 = CreateCompilation(new[] { source2, source3, source4, source5, source6 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2152var comp8 = CreateCompilation(new[] { source2 + source3 + source5, source4, source6 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2155var comp9 = CreateCompilation(new[] { source2 + source5, source3, source6 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2168var comp10 = CreateCompilation(new[] { source2 + source5, source3, source4, source6 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2207var comp2 = CreateCompilation(new[] { source1, source2, source3 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2218comp2 = CreateCompilation(new[] { source1, source3, source2 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2242var comp2 = CreateCompilation(new[] { source3, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2253var comp3 = CreateCompilation(new[] { source3 + source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2267var comp4 = CreateCompilation(new[] { source3 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2270var comp5 = CreateCompilation(new[] { source3 + source4 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2273var comp6 = CreateCompilation(new[] { source3, source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2276var comp7 = CreateCompilation(new[] { source3 + source5, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2279var comp8 = CreateCompilation(new[] { source5, source3, source6 }, parseOptions: TestOptions.RegularPreview); 2282var comp9 = CreateCompilation(new[] { source5, source3, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2300var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2307comp2 = CreateCompilation(new[] { source3, source2 }, parseOptions: TestOptions.RegularPreview); 2329var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2340comp2 = CreateCompilation(new[] { source3, source2 }, parseOptions: TestOptions.RegularPreview); 2343comp2 = CreateCompilation(source2 + source3, parseOptions: TestOptions.RegularPreview); 2384var comp2 = CreateCompilation(new[] { source3, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2398var comp3 = CreateCompilation(new[] { source3 + source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2415var comp4 = CreateCompilation(new[] { source3 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2418var comp5 = CreateCompilation(new[] { source3 + source4 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2421var comp6 = CreateCompilation(new[] { source3, source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2424var comp7 = CreateCompilation(new[] { source3 + source5, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2427var comp8 = CreateCompilation(new[] { source5, source3, source6 }, parseOptions: TestOptions.RegularPreview); 2430var comp9 = CreateCompilation(new[] { source5, source3, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2480var comp2 = CreateCompilation(new[] { source3, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2494var comp3 = CreateCompilation(new[] { source3 + source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2511var comp4 = CreateCompilation(new[] { source3 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2514var comp5 = CreateCompilation(new[] { source3 + source4 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2517var comp6 = CreateCompilation(new[] { source3, source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2520var comp7 = CreateCompilation(new[] { source3 + source5, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2523var comp8 = CreateCompilation(new[] { source5, source3, source6 }, parseOptions: TestOptions.RegularPreview); 2526var comp9 = CreateCompilation(new[] { source5, source3, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2548var comp2 = CreateCompilation(new[] { source3, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2559var comp3 = CreateCompilation(new[] { source3 + source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2570var comp4 = CreateCompilation(new[] { source3 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2577var comp5 = CreateCompilation(new[] { source3 + source4 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2587var comp6 = CreateCompilation(new[] { source3, source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2597var comp7 = CreateCompilation(new[] { source3 + source5, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2607var comp8 = CreateCompilation(new[] { source5, source3, source6 }, parseOptions: TestOptions.RegularPreview); 2610var comp9 = CreateCompilation(new[] { source5, source3, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2634var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2641comp2 = CreateCompilation(new[] { source3, source2 }, parseOptions: TestOptions.RegularPreview); 2662var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2673comp2 = CreateCompilation(new[] { source3, source2 }, parseOptions: TestOptions.RegularPreview); 2676comp2 = CreateCompilation(source2 + source3, parseOptions: TestOptions.RegularPreview); 2702var comp2 = CreateCompilation(new[] { source3, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2713var comp3 = CreateCompilation(new[] { source3 + source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2724var comp4 = CreateCompilation(new[] { source3 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2731var comp5 = CreateCompilation(new[] { source3 + source4 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2741var comp6 = CreateCompilation(new[] { source3, source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2751var comp7 = CreateCompilation(new[] { source3 + source5, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2761var comp8 = CreateCompilation(new[] { source5, source3, source6 }, parseOptions: TestOptions.RegularPreview); 2764var comp9 = CreateCompilation(new[] { source5, source3, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2788var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2795comp2 = CreateCompilation(new[] { source3, source2 }, parseOptions: TestOptions.RegularPreview); 2816var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2827comp2 = CreateCompilation(new[] { source3, source2 }, parseOptions: TestOptions.RegularPreview); 2830comp2 = CreateCompilation(source2 + source3, parseOptions: TestOptions.RegularPreview); 2871var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2905comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2909comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2913comp2 = CreateCompilation(new[] { source3, source2 }, parseOptions: TestOptions.RegularPreview); 2917comp2 = CreateCompilation(source2 + source3, parseOptions: TestOptions.RegularPreview); 2957var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2991comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2995comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2999comp2 = CreateCompilation(new[] { source3, source2 }, parseOptions: TestOptions.RegularPreview); 3003comp2 = CreateCompilation(source2 + source3, parseOptions: TestOptions.RegularPreview); 3043var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 3077comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 3081comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 3085comp2 = CreateCompilation(new[] { source3, source2 }, parseOptions: TestOptions.RegularPreview); 3089comp2 = CreateCompilation(source2 + source3, parseOptions: TestOptions.RegularPreview); 3170var comp2 = CreateCompilation(new[] { source2, source3, source4 }, parseOptions: TestOptions.RegularPreview); 3254comp2 = CreateCompilation(new[] { source2, source3, source4 }, parseOptions: TestOptions.RegularPreview); 3283comp2 = CreateCompilation(new[] { source2, source3, source4 }, parseOptions: TestOptions.RegularPreview); 3300comp2 = CreateCompilation(new[] { source2, source3, source4 }, parseOptions: TestOptions.RegularPreview); 3311comp2 = CreateCompilation(new[] { source2, source3, source4 }, parseOptions: TestOptions.RegularPreview); 3364references: new[] { compWithReferenceToLib.EmitToImageReference(), newCompImageRef }, assemblyName: "lib", parseOptions: TestOptions.RegularPreview); 3369references: new[] { compWithReferenceToLib.ToMetadataReference(), newCompRef }, assemblyName: "lib", parseOptions: TestOptions.RegularPreview); 3373references: new[] { compWithReferenceToLib.EmitToImageReference(), newCompImageRef }, assemblyName: "lib", parseOptions: TestOptions.RegularPreview); 3377references: new[] { compWithReferenceToLib.ToMetadataReference(), newCompRef }, assemblyName: "lib", parseOptions: TestOptions.RegularPreview); 3381references: new[] { compWithReferenceToLib.EmitToImageReference(), newCompImageRef }, assemblyName: "lib", parseOptions: TestOptions.RegularPreview); 3389references: new[] { compWithReferenceToLib.ToMetadataReference(), newCompRef }, assemblyName: "lib", parseOptions: TestOptions.RegularPreview); 3397references: new[] { compWithReferenceToLib.EmitToImageReference(), newCompImageRef }, assemblyName: "lib", parseOptions: TestOptions.RegularPreview); 3405references: new[] { compWithReferenceToLib.ToMetadataReference(), newCompRef }, assemblyName: "lib", parseOptions: TestOptions.RegularPreview); 3413references: new[] { compWithReferenceToLib.EmitToImageReference(), newCompImageRef }, assemblyName: "lib", parseOptions: TestOptions.RegularPreview); 3421references: new[] { compWithReferenceToLib.ToMetadataReference(), newCompRef }, assemblyName: "lib", parseOptions: TestOptions.RegularPreview); 3429references: new[] { compWithReferenceToLib.EmitToImageReference(), newCompImageRef }, assemblyName: "lib", parseOptions: TestOptions.RegularPreview); 3437references: new[] { compWithReferenceToLib.ToMetadataReference(), newCompRef }, assemblyName: "lib", parseOptions: TestOptions.RegularPreview); 3505var parseOptions = TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(); 3701var parseOptions = TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(); 3839var comp = CreateCompilation(new[] { externAlias + globalUsings1 + globalUsings2 + usings, source }, parseOptions: TestOptions.RegularPreview); 3865comp = CreateCompilation(new[] { externAlias + globalUsings1 + usings, globalUsings2, source }, parseOptions: TestOptions.RegularPreview); 3896comp = CreateCompilation(new[] { externAlias + usings, globalUsings1 + globalUsings2, source }, parseOptions: TestOptions.RegularPreview); 3929comp = CreateCompilation(new[] { externAlias + globalUsings1 + globalUsings2, source }, parseOptions: TestOptions.RegularPreview); 3949comp = CreateCompilation(new[] { externAlias + globalUsings1, globalUsings2, source }, parseOptions: TestOptions.RegularPreview); 3974comp = CreateCompilation(new[] { externAlias, globalUsings1 + globalUsings2, source }, parseOptions: TestOptions.RegularPreview); 4001comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + usings, source }, parseOptions: TestOptions.RegularPreview); 4021comp = CreateCompilation(new[] { globalUsings1 + usings, globalUsings2, source }, parseOptions: TestOptions.RegularPreview); 4046comp = CreateCompilation(new[] { usings, globalUsings1 + globalUsings2, source }, parseOptions: TestOptions.RegularPreview); 4073comp = CreateCompilation(new[] { globalUsings1 + globalUsings2, source }, parseOptions: TestOptions.RegularPreview); 4087comp = CreateCompilation(new[] { globalUsings1, globalUsings2, source }, parseOptions: TestOptions.RegularPreview); 4108comp = CreateCompilation(new[] { externAlias + usings, source }, parseOptions: TestOptions.RegularPreview); 4130comp = CreateCompilation(new[] { externAlias, source }, parseOptions: TestOptions.RegularPreview); 4146comp = CreateCompilation(new[] { usings, source }, parseOptions: TestOptions.RegularPreview); 4212var comp = CreateCompilation(new[] { externAlias1 + globalUsings1 + source }, parseOptions: TestOptions.RegularPreview); 4223comp = CreateCompilation(new[] { externAlias1 + source, globalUsings1 }, parseOptions: TestOptions.RegularPreview); 4226comp = CreateCompilation(new[] { externAlias1 + usings1 + source }, parseOptions: TestOptions.RegularPreview); 4240comp = CreateCompilation(new[] { globalUsings1 + usings1 + source }, parseOptions: TestOptions.RegularPreview); 4248comp = CreateCompilation(new[] { usings1 + source, globalUsings1 }, parseOptions: TestOptions.RegularPreview); 4256comp = CreateCompilation(new[] { externAlias1 + globalUsings1 + usings1 + source }, parseOptions: TestOptions.RegularPreview); 4259comp = CreateCompilation(new[] { externAlias1 + usings1 + source, globalUsings1 }, parseOptions: TestOptions.RegularPreview); 4262comp = CreateCompilation(new[] { externAlias1 + externAlias2 + source }, parseOptions: TestOptions.RegularPreview); 4276comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source }, parseOptions: TestOptions.RegularPreview); 4284comp = CreateCompilation(new[] { globalUsings1 + source, globalUsings2 }, parseOptions: TestOptions.RegularPreview); 4292comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 }, parseOptions: TestOptions.RegularPreview); 4300comp = CreateCompilation(new[] { source, globalUsings1, globalUsings2 }, parseOptions: TestOptions.RegularPreview); 4308comp = CreateCompilation(new[] { usings1 + usings2 + source }, parseOptions: TestOptions.RegularPreview); 4366var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source }, parseOptions: TestOptions.RegularPreview); 4377comp = CreateCompilation(new[] { globalUsings1 + source, globalUsings2 }, parseOptions: TestOptions.RegularPreview); 4380comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 }, parseOptions: TestOptions.RegularPreview); 4383comp = CreateCompilation(new[] { source, globalUsings1, globalUsings2 }, parseOptions: TestOptions.RegularPreview); 4386comp = CreateCompilation(new[] { globalUsings1 + usings2 + source }, parseOptions: TestOptions.RegularPreview); 4393comp = CreateCompilation(new[] { usings1 + source, globalUsings2 }, parseOptions: TestOptions.RegularPreview); 4400comp = CreateCompilation(new[] { usings1 + usings2 + source }, parseOptions: TestOptions.RegularPreview); 4462var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source }, parseOptions: TestOptions.RegularPreview); 4473comp = CreateCompilation(new[] { globalUsings1 + source, globalUsings2 }, parseOptions: TestOptions.RegularPreview); 4476comp = CreateCompilation(new[] { source, globalUsings1 + globalUsings2 }, parseOptions: TestOptions.RegularPreview); 4479comp = CreateCompilation(new[] { source, globalUsings1, globalUsings2 }, parseOptions: TestOptions.RegularPreview); 4482comp = CreateCompilation(new[] { globalUsings1 + usings2 + source }, parseOptions: TestOptions.RegularPreview); 4489comp = CreateCompilation(new[] { usings1 + source, globalUsings2 }, parseOptions: TestOptions.RegularPreview); 4496comp = CreateCompilation(new[] { usings1 + usings2 + source }, parseOptions: TestOptions.RegularPreview); 4562var comp2 = CreateCompilation(externAlias + globalUsing1 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 4573comp2 = CreateCompilation(new[] { externAlias + source2, globalUsing1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 4576comp2 = CreateCompilation(globalUsing1 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 4580var comp2 = CreateCompilation(externAlias + globalUsing2 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 4591comp2 = CreateCompilation(new[] { externAlias + source2, globalUsing2 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 4594comp2 = CreateCompilation(globalUsing2 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 4598var comp2 = CreateCompilation(externAlias + using1 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 4605comp2 = CreateCompilation(using1 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 4609var comp2 = CreateCompilation(externAlias + using2 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 4616comp2 = CreateCompilation(using2 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 4678var comp2 = CreateCompilation(globalAlias + globalUsing1 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4689comp2 = CreateCompilation(new[] { globalAlias + source2, globalUsing1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4692comp2 = CreateCompilation(new[] { source2, globalAlias + globalUsing1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4695comp2 = CreateCompilation(new[] { source2, globalAlias, globalUsing1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4698comp2 = CreateCompilation(new[] { source2, globalUsing1, globalAlias }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4701comp2 = CreateCompilation(globalUsing1 + regularAlias + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4704comp2 = CreateCompilation(new[] { regularAlias + source2, globalUsing1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4707comp2 = CreateCompilation(globalUsing1 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4711var comp2 = CreateCompilation(globalAlias + globalUsing2 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4722comp2 = CreateCompilation(new[] { globalAlias + source2, globalUsing2 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4725comp2 = CreateCompilation(new[] { source2, globalAlias + globalUsing2 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4728comp2 = CreateCompilation(new[] { source2, globalAlias, globalUsing2 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4731comp2 = CreateCompilation(new[] { source2, globalUsing2, globalAlias }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4734comp2 = CreateCompilation(globalUsing2 + regularAlias + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4737comp2 = CreateCompilation(new[] { regularAlias + source2, globalUsing2 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4740comp2 = CreateCompilation(globalUsing2 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4744var comp2 = CreateCompilation(globalAlias + using1 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4755comp2 = CreateCompilation(new[] { globalAlias, using1 + source2 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4758comp2 = CreateCompilation(regularAlias + using1 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4761comp2 = CreateCompilation(using1 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4765var comp2 = CreateCompilation(globalAlias + using2 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4776comp2 = CreateCompilation(new[] { globalAlias, using2 + source2 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4779comp2 = CreateCompilation(regularAlias + using2 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4782comp2 = CreateCompilation(using2 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4865CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 4925CreateCompilation(new[] { globalUsing1 + globalUsing2 + regularUsings + source }, parseOptions: TestOptions.RegularPreview). 4928CreateCompilation(new[] { globalUsing1 + regularUsings + source, globalUsing2 }, parseOptions: TestOptions.RegularPreview). 4931CreateCompilation(new[] { regularUsings + source, globalUsing1, globalUsing2 }, parseOptions: TestOptions.RegularPreview). 4944CreateCompilation(new[] { globalUsing1 + globalUsing2 + source }, parseOptions: TestOptions.RegularPreview). 4947CreateCompilation(new[] { globalUsing1 + source, globalUsing2 }, parseOptions: TestOptions.RegularPreview). 4950CreateCompilation(new[] { regularUsings + source }, parseOptions: TestOptions.RegularPreview). 4974var comp = CreateCompilation(new[] { globalUsings1, source }, parseOptions: TestOptions.RegularPreview); 5001CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 5006CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(); 5022CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 5044CreateCompilation(new[] { source1, source2 }, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 5063CreateCompilation(new[] { source1, source2 }, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 5082CreateCompilation(new[] { source1, source2 }, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 5101CreateCompilation(new[] { source1, source2 }, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics();
Semantics\ImplicitlyTypedLocalsTests.cs (3)
55CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Script).VerifyDiagnostics( 152CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp3)).VerifyDiagnostics(); 153CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp2)).VerifyDiagnostics(
Semantics\ImplicitObjectCreationTests.cs (104)
19private static readonly CSharpParseOptions ImplicitObjectCreationTestOptions = TestOptions.Regular9; 49var comp = CreateCompilation(source, options: TestOptions.DebugExe); 93var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular8); 171var comp = CreateCompilation(source, options: TestOptions.DebugExe); 268var comp = CreateCompilation(source, options: TestOptions.DebugExe); 296var comp = CreateCompilation(source, options: TestOptions.DebugExe); 319var comp = CreateCompilation(source, options: TestOptions.DebugExe); 352var comp = CreateCompilation(source, options: TestOptions.DebugExe, references: new[] { CSharpRef }); 373var comp = CreateCompilation(source, options: TestOptions.DebugExe, references: new[] { CSharpRef }); 404var comp = CreateCompilation(source, options: TestOptions.DebugDll); 438var comp = CreateCompilation(source, options: TestOptions.DebugExe); 598var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics(); 699var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics(); 780var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 953var comp = CreateCompilation(source, options: TestOptions.DebugExe); 985var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1010var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1029var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1051var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1074var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1095var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1121var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1141var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1204var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics(); 1229var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics(); 1252var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics(); 1273var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics(); 1298var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics(); 1317var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 1346var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 1370var comp = CreateCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 1405var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics(); 1423var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 1457var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 1491var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 1522var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 1555var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1585var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 1614var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 1646var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 1695var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 1735var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 1762var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1787var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1805_ = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 1839var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 1860var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1890var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1920var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1951var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1973var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2030var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2065var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 2110var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2163var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2401var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2425var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2444var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2465var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2486var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2509var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2559var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2592var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2650var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 2682var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2726var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2746var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2766var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2787var comp = CreateCompilation(source, options: TestOptions.DebugDll); 2807var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2845var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2882var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2911var comp = CreateCompilationWithIndexAndRange(source, options: TestOptions.DebugExe, parseOptions: ImplicitObjectCreationTestOptions); 2952var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2981var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3011var comp = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 3058var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3095var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3114var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3133var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3203var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3248var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3343var comp = CreateCompilation(source, references: new[] { CSharpRef }, options: TestOptions.DebugExe); 3660var comp = CreateCompilation(text, options: TestOptions.DebugExe); 3682var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3709var comp = CreateCompilation(text, options: TestOptions.DebugDll); 3764var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3785var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3820var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 3867var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3912var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3952var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4012var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4055var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4074var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4093var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4112var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4133var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4380var signedDll = TestOptions.ReleaseDll.WithCryptoPublicKey(TestResources.TestKeys.PublicKey_ce65828c82a341f2); 4419parseOptions: TestOptions.Regular9); 4467var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4500var comp = CreateCompilation(source, options: TestOptions.DebugExe);
Semantics\IndexAndRangeTests.cs (12)
79comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.Regular7_3); 241var comp = CreateCompilationWithIndexAndRangeAndSpan(src, TestOptions.ReleaseExe); 999var compilation = CreateCompilationWithIndex(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(expected); 1000compilation = CreateCompilationWithIndex(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics(); 1482CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(expected); 1483CreateCompilationWithIndexAndRange(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)
71CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 163CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 319CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2996new[] { source1 }, TargetFrameworkUtil.GetReferences(TargetFramework.Standard, null).ToArray(), TestOptions.DebugDll.WithPublicSign(true)); 2999new[] { source1 }, TargetFrameworkUtil.GetReferences(TargetFramework.Standard, null).ToArray(), TestOptions.DebugDll.WithPublicSign(true)); 5208CreateCompilation(text, parseOptions: TestOptions.Regular7_2).VerifyDiagnostics( 8750CreateCompilation(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics(); 8752CreateCompilation(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 8813CreateCompilation(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics(); 8815CreateCompilation(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
Semantics\InitOnlyMemberTests.cs (131)
40var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular8); 65var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 77var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, 103var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 114var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, 136var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 148var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, 173var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 186var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, 208var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 216var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, 227comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, 252var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular8); 279var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular8); 300var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular8, assemblyName: "lib"); 312var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, references: new[] { lib.ToMetadataReference() }, assemblyName: "comp"); 334var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 346var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, 367var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 389var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 453var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 494var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 546var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 575var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 604var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 635var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 688var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 745var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 771var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 870var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 945var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 971var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 1003var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 1045var libComp = CreateCompilation(new[] { parent, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1047parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 1050libComp = CreateCompilation(new[] { parent, source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1052parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 1081var libComp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1083parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 1129var libComp = CreateCompilation(new[] { parent, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1131parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 1134libComp = CreateCompilation(new[] { parent, source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1136parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 1149var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1212var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1251var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1281var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1308var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1335var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1362var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1389var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1409var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1442parseOptions: TestOptions.Regular9, 1443options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1523var libComp = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1619parseOptions: TestOptions.Regular9); 1687var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe); 1715var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe); 1764var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1788var libComp = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1813var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, 1866var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1906var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1949var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1995var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2034var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2065var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2086var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2104var libComp = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2125var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, 2157var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2192var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2213var libComp = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2230var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, 2284parseOptions: TestOptions.Regular9); 2377parseOptions: TestOptions.Regular9); 2418var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2448var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2468var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2490var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2514var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2536var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2611var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2680var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2738options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 2786var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 2823var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2876var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2957var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 3009var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 3036var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 3058var libComp = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 3086parseOptions: TestOptions.Regular9); 3181", IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 3257var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 3348var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 3466var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9, 3467options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions( 3565var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9, 3566options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions( 3629var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 3688var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 3738var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 3806var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 3884var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 3972var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 4055var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 4102var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 4136", IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 4194targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 4201targetFramework: TargetFramework.Mscorlib46, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 4483var comp = CreateCompilation(new[] { IsExternalInitTypeDefinition, source }, options: TestOptions.DebugExe); 4536var comp = CreateCompilation(new[] { IsExternalInitTypeDefinition, source }, options: TestOptions.DebugExe); 4562var comp = CreateCompilation(new[] { IsExternalInitTypeDefinition, source }, options: TestOptions.DebugExe); 4594var piaCompilation = CreateCompilationWithMscorlib461(new[] { IsExternalInitTypeDefinition, pia }, options: TestOptions.DebugDll); 4612options: TestOptions.DebugExe); 4715options: TestOptions.DebugDll.WithTopLevelBinderFlags(BinderFlags.IgnoreCorLibraryDuplicatedTypes)); 4736options: TestOptions.DebugDll.WithTopLevelBinderFlags(BinderFlags.IgnoreCorLibraryDuplicatedTypes)); 4761options: TestOptions.DebugDll.WithTopLevelBinderFlags(BinderFlags.IgnoreCorLibraryDuplicatedTypes));
Semantics\InteractiveSemanticModelTests.cs (3)
35parseOptions: TestOptions.Script, 36options: TestOptions.ReleaseExe.WithScriptClassName("Goo.Bar.Script") 357var compilation = CreateCompilation(testSrc, parseOptions: TestOptions.Script);
Semantics\InteractiveUsingTests.cs (10)
53options: TestOptions.DebugDll.WithUsings("System", "System.IO.Path")); 66options: TestOptions.DebugDll.WithUsings("System.Text")); 159var options = TestOptions.DebugDll.WithUsings("System"); 268var options = TestOptions.DebugDll.WithUsings("System"); 292CreateSubmission("typeof(String)", options: TestOptions.DebugDll.WithUsings("System", "System")).VerifyDiagnostics(); 298var options = TestOptions.DebugDll.WithUsings("System"); 325var options = TestOptions.DebugDll.WithUsings("B"); 365options: TestOptions.DebugDll.WithSourceReferenceResolver(resolver)); 436options: TestOptions.DebugDll.WithSourceReferenceResolver(resolver), 486options: TestOptions.DebugDll.WithSourceReferenceResolver(resolver).WithUsings("System.IO", "System.IO.Path"));
Semantics\InterceptorsTests.cs (50)
36private static readonly CSharpParseOptions RegularWithInterceptors = TestOptions.Regular.WithFeature("InterceptorsNamespaces", "global"); 70comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsPreview-experimental")); 73comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsPreview", "false")); 76comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("interceptorspreview")); 79comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsPreview", "Global")); 82comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsPreview", "global.a")); 113var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "NS")); 119comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "NS1.NS2")); 125var verifier = CompileAndVerify(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "NS1"), expectedOutput: "1"); 128verifier = CompileAndVerify(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "NS1;NS2"), expectedOutput: "1"); 135test(TestOptions.Regular.WithFeature("InterceptorsNamespaces", "NS"), expectedOutput: null, 140test(TestOptions.Regular.WithFeature("InterceptorsNamespaces", "NS1.NS2"), expectedOutput: null, 145test(TestOptions.Regular.WithFeature("InterceptorsNamespaces", "NS1"), expectedOutput: "1"); 147test(TestOptions.Regular.WithFeature("InterceptorsNamespaces", "NS1;NS2"), expectedOutput: "1"); 240var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", featureValue)); 249var verifier = CompileAndVerify(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", featureValue), expectedOutput: "1"); 275var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "")); 306var verifier = CompileAndVerify(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "global"), expectedOutput: "1"); 309verifier = CompileAndVerify(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "global"), expectedOutput: "1"); 337var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "global.A")); 1939var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors, options: TestOptions.UnsafeDebugExe); 2043var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors, options: TestOptions.UnsafeDebugExe); 4881options: TestOptions.DebugExe.WithSourceReferenceResolver( 4914options: TestOptions.DebugExe.WithSourceReferenceResolver( 4945options: TestOptions.DebugExe.WithSourceReferenceResolver( 5012options: TestOptions.DebugDll.WithSourceReferenceResolver( 5046options: TestOptions.DebugExe.WithSourceReferenceResolver( 5078options: TestOptions.DebugExe.WithSourceReferenceResolver( 5117options: TestOptions.DebugExe.WithSourceReferenceResolver( 5516options: TestOptions.DebugExe.WithSourceReferenceResolver( 5554options: TestOptions.DebugExe.WithSourceReferenceResolver( 5611options: TestOptions.DebugExe.WithSourceReferenceResolver( 5621options: TestOptions.DebugExe.WithSourceReferenceResolver( 6305var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "Interceptors")); 6350var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "Interceptors")); 6403var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "Interceptors")); 6452var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "Interceptors")); 6508var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "Interceptors")); 6556var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "Interceptors")); 6602var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions: featureExists ? TestOptions.Regular.WithFeature("InterceptorsNamespaces", "") : TestOptions.Regular); 6646var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "Interceptors;Interceptors")); 6674var comp = CreateCompilation(new[] { source, s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "Interceptors")); 6693var comp = CreateCompilation([], parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "Interceptors")); 6733var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", @namespace)); 6775var comp = CreateCompilation(new[] { source, interceptorSource, s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "Interceptors.Nested")); 7433var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe); 7453options: TestOptions.UnsafeDebugExe, 7486var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe); 7506options: TestOptions.UnsafeDebugExe,
Semantics\InterpolationTests.cs (56)
989CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 1035CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe) 1068CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe) 1113var comp = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: Test.Utilities.TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1261var parseOptions = TestOptions.Regular11; 1421var parseOptions = TestOptions.Regular11; 2222var comp = CreateCompilation(new[] { source, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: true, useDefaultParameters: false, useBoolReturns: false) }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.NetCoreApp); 2257var verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: expectedOutput, targetFramework: TargetFramework.Net50, parseOptions: TestOptions.Regular10); 2264var comp2 = CreateCompilation(source, new[] { reference }, targetFramework: TargetFramework.Net50, parseOptions: TestOptions.Regular10); 3660var comp = CreateCompilation(new[] { source, interpolatedStringBuilder }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.NetCoreApp); 3742var comp = CreateCompilation(new[] { source, interpolatedStringBuilder }, parseOptions: TestOptions.Regular9); 4889var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }, parseOptions: TestOptions.Regular10); 4926comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }, parseOptions: TestOptions.Regular9); 5221var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }, parseOptions: TestOptions.Regular10); 5559var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net50); 5569comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 5845var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5851comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 8050InterpolatedStringHandlerArgumentAttribute_MismatchedRefTypes(TestOptions.Regular11, "ref", "in", expression, 9972comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, options: TestOptions.DebugExe); 10025var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 10128var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.DebugExe); 10274var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 10373var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 10471var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 10525var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 10624var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 10723var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 10821var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 10920var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 11005var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 11117var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 11369var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 11554var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 11654var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 14628var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14697var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14737var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14777var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14835var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14869var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14903var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14940var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50); 14978var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14988comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular11, targetFramework: TargetFramework.Net50); 15033var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 15036comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular11, targetFramework: TargetFramework.Net50); 15081var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50); 15158var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50); 15255var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50); 18020var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, parseOptions: TestOptions.Regular11); 18785var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, options: TestOptions.DebugExe); 18898var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, options: TestOptions.DebugExe);
Semantics\IteratorTests.cs (5)
198CompileAndVerify(source, options: TestOptions.ReleaseExe, 442var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Script); 474var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Script); 511var comp = CreateCompilation(text, options: TestOptions.DebugDll); 551var 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); 267var comp = CreateCompilation(src, parseOptions: TestOptions.Regular7_3); 277var comp2 = CreateCompilation(src, parseOptions: TestOptions.Regular8); 284var comp3 = CreateCompilation(src, parseOptions: TestOptions.Regular9); 305}", options: TestOptions.DebugExe); 325}", options: TestOptions.DebugExe); 368var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 378comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 441}", options: TestOptions.DebugExe); 476}", options: TestOptions.DebugExe); 560}", options: TestOptions.DebugExe);
Semantics\LambdaTests.cs (95)
419options: TestOptions.ReleaseDll); 439options: TestOptions.ReleaseExe); 451options: TestOptions.ReleaseExe); 1169var tree = SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.Regular9); 1441}", options: TestOptions.ReleaseExe); 1885var compilation = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.ReleaseExe); 1923var compilation = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.ReleaseExe); 1974var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe); 2788var comp = CreateCompilationWithMscorlib40AndSystemCore(src, options: TestOptions.DebugExe); 2813var comp = CreateCompilation(src, options: TestOptions.DebugDll); 2975var comp = CreateCompilationWithMscorlib40AndSystemCore(src, options: TestOptions.DebugExe); 3078var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3096comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 3122var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3160var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3201var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3239var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3254comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 3279var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3313var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3355var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3388var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3412var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3436var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3463var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3501var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3540var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3609var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseExe); 3677var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3695comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3731var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3734comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3761var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.RegularPreview); 3778var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3813var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3873var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3929var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3972var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 4023var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 4058var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 4088var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 4114var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 4149var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.RegularPreview); 4180var comp = CreateCompilationWithMscorlib40(source, parseOptions: TestOptions.RegularPreview); 4207parseOptions: TestOptions.RegularPreview); 4238var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition, NotNullAttributeDefinition }, parseOptions: TestOptions.RegularPreview); 4725var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }, parseOptions: TestOptions.RegularPreview); 4844var comp = CreateCompilation(new[] { source, UnmanagedCallersOnlyAttributeDefinition }, parseOptions: TestOptions.RegularPreview); 4864var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 4922var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4949var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 4977parseOptions: TestOptions.RegularPreview); 5016var comp = CreateCompilation(new[] { source, NotNullWhenAttributeDefinition }, parseOptions: TestOptions.RegularPreview); 5048var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5060comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5081var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5108var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5136var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5162var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5186var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5212var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5246var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5284var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5325var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5361var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5387var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5413var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5432var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5457var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5485var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5509var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5598var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5680CompileAndVerify(sourceB, references: new[] { refA }, parseOptions: TestOptions.RegularPreview, expectedOutput: 5711var comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.RegularPreview); 5745var comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.RegularPreview); 5963var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5991var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 6035var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6038comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 6063var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6072CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: 6097var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6124comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 6150CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: @"System.Int64"); 6170var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 7008var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 7134CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 7139CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 7158var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 8253CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 8258CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 8270CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
Semantics\LocalFunctionTests.cs (179)
23internal static readonly CSharpParseOptions DefaultParseOptions = TestOptions.Regular; 27var comp = CreateCompilationWithMscorlib461AndCSharp(source, options: TestOptions.ReleaseDll, parseOptions: DefaultParseOptions); 92var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseExe); 149var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseExe); 297var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseExe); 343var tree = SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.Regular9); 438var tree = SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.Regular9); 443var newTree = SyntaxFactory.ParseSyntaxTree(text + " ", options: TestOptions.Regular9); 484var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 532var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 603var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 656var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 710var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 758var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 796var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 843var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 886var comp = CreateCompilation(text, parseOptions: TestOptions.Regular8); 901comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 946var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1016var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1081var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1118var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1202var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1283var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1348var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1379var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1452var compWithUnsafe = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1489var compWithUnsafe = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1518var compWithUnsafe = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1747}", parseOptions: TestOptions.Regular9); 1822}", parseOptions: TestOptions.Regular9); 1898}", options: TestOptions.Regular9); 1954}", options: TestOptions.Regular9); 2023var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2063var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2156var comp = CreateCompilation(src, parseOptions: TestOptions.Regular7_3); 2186comp = CreateCompilation(src, parseOptions: TestOptions.Regular8); 2369var comp = CreateCompilation(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12.WithFeature("run-nullable-analysis", "never")); 2441CreateCompilation(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular13.WithFeature("run-nullable-analysis", "never")).VerifyDiagnostics(expectedDiagnostics); 2442CreateCompilation(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview.WithFeature("run-nullable-analysis", "never")).VerifyDiagnostics(expectedDiagnostics); 2673}", parseOptions: TestOptions.Regular9); 2696CreateCompilationWithMscorlib461AndCSharp(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2844var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 3032var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3038comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 3056var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3065comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 3205var comp = CreateCompilation(source, options: TestOptions.ReleaseExe.WithAllowUnsafe(true)); 3733var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3737comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 3740comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4011var option = TestOptions.ReleaseExe; 4012CreateCompilation(source, options: option, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics( 4265var comp = CreateCompilationWithMscorlib46(source, parseOptions: DefaultParseOptions, options: TestOptions.DebugExe); 4540}", options: TestOptions.UnsafeDebugDll); 4781var comp = CreateCompilationWithMscorlib46(source, parseOptions: DefaultParseOptions, options: TestOptions.DebugExe); 4813var comp = CreateCompilationWithMscorlib46(source, parseOptions: DefaultParseOptions, options: TestOptions.DebugExe); 4846var comp = CreateCompilationWithMscorlib46(source, parseOptions: DefaultParseOptions, options: TestOptions.DebugExe); 4879var comp = CreateCompilationWithMscorlib46(source, parseOptions: DefaultParseOptions, options: TestOptions.DebugExe); 4916var comp = CreateCompilationWithMscorlib46(source, parseOptions: DefaultParseOptions, options: TestOptions.DebugExe); 4952var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 5254var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5257comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 5303var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5321comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 5347var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5410var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5449var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5493var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5541var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5580var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5620var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5693var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5727var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5755var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5946var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithPreprocessorSymbols("MyDefine")); 5949comp = CreateCompilation(source, parseOptions: TestOptions.Regular); 5987var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6027var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6058var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6094var comp = CreateCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6125var comp = CreateCompilation(new[] { MaybeNullWhenAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6163var comp = CreateCompilation(new[] { MaybeNullWhenAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6193var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6222var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6263var comp = CreateCompilation(new[] { MaybeNullWhenAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6290var comp = CreateCompilation(new[] { DoesNotReturnAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6319var comp = CreateCompilation(new[] { DoesNotReturnIfAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6529var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 6891CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: m => 6916CompileAndVerify(source, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "System.Int32", symbolValidator: m => 6946CompileAndVerify(source, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "System.Int32", symbolValidator: m => 7252var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 7282var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 7310var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 7339var parseOptions = useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11; 7413var parseOptions = useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11; 7485var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 7500var attr = parseAttributeSyntax("[My(nameof(TParameter))]", TestOptions.Regular10); 7504attr = parseAttributeSyntax("[My(TParameter)]", TestOptions.Regular10); 7509comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 7525attr = parseAttributeSyntax("[My(TParameter)]", TestOptions.Regular10); 7558var parseOptions = useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11; 7618var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 8512var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 8516comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 8532var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 8536comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11); 8670var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 8728var comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 8767var comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 8808var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 8850var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 8884var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 8914var parseOptions = useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11; 8983var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9004var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9028var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9052var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9076var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9099var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9149var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9166var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9186var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9355var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9383var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9418var parseOptions = useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11; 9434var attr = parseAttributeSyntax("[My(nameof(parameter))]", TestOptions.Regular10); 9438attr = parseAttributeSyntax("[My(parameter)]", TestOptions.Regular10); 9462var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9482var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9574var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9591var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9611var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9631var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9654var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9708var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9736var parseOptions = useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11; 9752var attr = parseAttributeSyntax("[My(nameof(parameter))]", TestOptions.Regular10); 9756attr = parseAttributeSyntax("[My(parameter)]", TestOptions.Regular10); 9777var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11);
Semantics\LockTests.cs (1)
775var strictCompilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithStrictFeature());
Semantics\LookupPositionTests.cs (1)
3115var parseOptions = TestOptions.Regular9.WithDocumentationMode(DocumentationMode.Diagnose);
Semantics\LookupTests.cs (4)
26var parseOptions = TestOptions.Regular; 36var tree = Parse(testSrc, options: isScript ? TestOptions.Script : TestOptions.Regular); 37var compilation = CreateCompilationWithMscorlib461(new[] { tree }, options: TestOptions.ReleaseDll.WithUsings(globalUsings));
Semantics\MultiDimensionalArrayTests.cs (15)
298var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options: TestOptions.ReleaseExe); 333var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options: TestOptions.ReleaseExe); 381var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options: TestOptions.ReleaseExe); 421var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options: TestOptions.ReleaseDll); 441var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options: TestOptions.ReleaseDll); 472var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options: TestOptions.ReleaseExe); 532var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options: TestOptions.ReleaseExe); 601var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options: TestOptions.ReleaseExe); 626var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options: TestOptions.ReleaseExe); 680var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options: TestOptions.ReleaseExe); 712var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options: TestOptions.ReleaseExe); 746var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options: TestOptions.ReleaseDll); 1090var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 1538var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 1678var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, references: new[] { SystemCoreRef }, options: TestOptions.ReleaseExe);
Semantics\NameCollisionTests.cs (6)
834CreateCompilation(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 894CreateCompilation(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1099CreateCompilation(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1168CreateCompilation(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1776CreateCompilation(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1839CreateCompilation(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
Semantics\NamedAndOptionalTests.cs (6)
174CreateCompilation(source, parseOptions: TestOptions.Regular7_1).VerifyDiagnostics( 774var c = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.FailsPEVerify); 1570compilationOptions: TestOptions.ReleaseExe, 1676var libComp = CreateCompilation(library, options: TestOptions.ReleaseDll, assemblyName: "Library"); 1679var exeComp = CreateCompilation(main, new[] { new CSharpCompilationReference(libComp) }, options: TestOptions.ReleaseExe, assemblyName: "Main"); 2439var comp = CreateCompilationWithIL(csharp, il, options: TestOptions.DebugExe);
Semantics\NameLengthTests.cs (5)
404var comp = CreateCompilation(source, options: TestOptions.DebugDll); 407options: TestOptions.NativePdbEmit, 429var comp = CreateCompilation(source, options: TestOptions.DebugDll); 432options: TestOptions.NativePdbEmit, 555var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll);
Semantics\NameOfTests.cs (84)
241var option = TestOptions.ReleaseExe.WithWarningLevel(0); 427var option = TestOptions.ReleaseExe.WithWarningLevel(0); 527", parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5)); 600options: TestOptions.DebugExe, 601parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5)); 624options: TestOptions.DebugExe, 625parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 643options: TestOptions.DebugExe, 644parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics( 665options: TestOptions.DebugExe, 666parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5)).VerifyDiagnostics( 1449var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe); 1505var compilation = CreateCompilationWithMscorlib461(source, null, TestOptions.UnsafeDebugExe); 1544TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1587var compilation = CreateCompilationWithMscorlib461(source, null, TestOptions.UnsafeDebugExe); 1619var compilation = CreateCompilationWithMscorlib461(source, null, TestOptions.UnsafeDebugExe); 1699var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 1714var option = TestOptions.ReleaseDll; 1731var option = TestOptions.ReleaseDll; 1744var option = TestOptions.ReleaseDll; 1759var option = TestOptions.ReleaseDll; 1773var option = TestOptions.ReleaseDll; 1798var option = TestOptions.ReleaseDll; 1821CompileAndVerify(source, parseOptions: TestOptions.Regular11, expectedOutput: expectedOutput).VerifyDiagnostics(); 1822CompileAndVerify(source, parseOptions: TestOptions.Regular12, expectedOutput: expectedOutput).VerifyDiagnostics(); 1823CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: expectedOutput).VerifyDiagnostics(); 1856CompileAndVerify(source, parseOptions: TestOptions.Regular12, expectedOutput: expectedOutput).VerifyDiagnostics(); 1857CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: expectedOutput).VerifyDiagnostics(); 1858CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1912CompileAndVerify(source, parseOptions: TestOptions.Regular12, expectedOutput: expectedOutput).VerifyDiagnostics(); 1913CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: expectedOutput).VerifyDiagnostics(); 1914CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1953CompileAndVerify(source, parseOptions: TestOptions.Regular12, expectedOutput: expectedOutput).VerifyDiagnostics(); 1954CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: expectedOutput).VerifyDiagnostics(); 1955CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1973CompileAndVerify(source, parseOptions: TestOptions.Regular12, expectedOutput: "Length").VerifyDiagnostics(); 1974CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: "Length").VerifyDiagnostics(); 1975CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1998CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 1999CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(expectedDiagnostics); 2000CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2017CompileAndVerify(source, parseOptions: TestOptions.Regular12, expectedOutput: "Length").VerifyDiagnostics(); 2018CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: "Length").VerifyDiagnostics(); 2019CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2043CompileAndVerify(source, parseOptions: TestOptions.Regular12, expectedOutput: "Length").VerifyDiagnostics(); 2044CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: "Length").VerifyDiagnostics(); 2045CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2062CompileAndVerify(source, parseOptions: TestOptions.Regular12, expectedOutput: "StaticProp").VerifyDiagnostics(); 2063CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: "StaticProp").VerifyDiagnostics(); 2064CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2081CompileAndVerify(source, parseOptions: TestOptions.Regular12, expectedOutput: "StaticProp").VerifyDiagnostics(); 2082CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: "StaticProp").VerifyDiagnostics(); 2083CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2102CompileAndVerify(source, parseOptions: TestOptions.Regular12, expectedOutput: "M").VerifyDiagnostics(); 2103CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: "M").VerifyDiagnostics(); 2104CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2121CompileAndVerify(source, parseOptions: TestOptions.Regular12, expectedOutput: "StaticMethod").VerifyDiagnostics(); 2122CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: "StaticMethod").VerifyDiagnostics(); 2123CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 2135CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2149CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2165CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2181CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2201CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2217CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2234CompileAndVerify(source, parseOptions: TestOptions.Regular11, expectedOutput: "StaticMethod").VerifyDiagnostics(); 2235CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: "StaticMethod").VerifyDiagnostics(); 2255CompileAndVerify(source, parseOptions: TestOptions.Regular11, expectedOutput: "Length").VerifyDiagnostics(); 2256CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: "Length").VerifyDiagnostics(); 2277CompileAndVerify(source, parseOptions: TestOptions.Regular12, expectedOutput: "StaticMethod").VerifyDiagnostics(); 2278CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: "StaticMethod").VerifyDiagnostics(); 2279CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2302CompileAndVerify(source, parseOptions: TestOptions.Regular12, expectedOutput: "Prop").VerifyDiagnostics(); 2303CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: "Prop").VerifyDiagnostics(); 2304CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2327CompileAndVerify(source, parseOptions: TestOptions.Regular12, expectedOutput: "Prop").VerifyDiagnostics(); 2328CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: "Prop").VerifyDiagnostics(); 2329CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2351CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 2352CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(expectedDiagnostics); 2353CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 2372CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 2373CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(expectedDiagnostics); 2374CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics);
Semantics\NativeIntegerTests.cs (330)
70var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 85comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 103var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 175var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 181comp = CreateEmptyCompilation(sourceA, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 188comp = CreateEmptyCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 194comp = CreateEmptyCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 695var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 699comp = CreateEmptyCompilation(sourceA, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 704comp = CreateEmptyCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 708comp = CreateEmptyCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 776var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Mscorlib40); 791comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Mscorlib461); 856comp = CreateEmptyCompilation(sourceA, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 895comp = CreateEmptyCompilation(sourceB, references: new[] { ref2, refA }, parseOptions: TestOptions.Regular9); 965comp = CreateEmptyCompilation(sourceA, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 1012comp = CreateEmptyCompilation(sourceB, references: new[] { ref2, refA }, parseOptions: TestOptions.Regular9); 1064comp = CreateCompilation(sourceB, references: new[] { refA1 }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Standard); 1080comp = CreateCompilation(sourceC, references: new[] { refA2, refB }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Standard); 1149comp = CreateEmptyCompilation(sourceA, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 1161comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 1224comp = CreateEmptyCompilation(sourceA, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 1236comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 1293var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 1300var parseOptions = TestOptions.Regular9.WithNoRefSafetyRulesAttribute(); 1510comp = CreateEmptyCompilation(sourceA, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 1590var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular9); 1597comp = CreateEmptyCompilation("", references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 1601comp = CreateEmptyCompilation("", references: new[] { ref2 }, parseOptions: TestOptions.Regular9); 1643var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular9); 1650comp = CreateEmptyCompilation("", references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 1654comp = CreateEmptyCompilation("", references: new[] { ref2 }, parseOptions: TestOptions.Regular9); 1757comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 1893var comp = CreateEmptyCompilation(sourceA, options: TestOptions.UnsafeReleaseDll); 1930comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 2056var comp = CreateEmptyCompilation(sourceA, options: TestOptions.UnsafeReleaseDll); 2112comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 2226comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 2329comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 2461var compB = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 2545var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular9); 2617comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 2719comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 2871var comp = CreateEmptyCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9); 2925var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular8); 2934comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 2972var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular8); 2981comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 3014var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 3112var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 3115comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 3120comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 3123comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9); 3159var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular8); 3164comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 3167comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9); 3194var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 3199comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular8); 3202comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular8); 3253var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 3256comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 3261comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 3264comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9); 3299var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular8); 3320comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 3323comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9); 3358var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 3379comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular8); 3382comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular8); 3402var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3426var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3450var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 3459comp = CreateCompilation(source2, references: new[] { ref1 }, parseOptions: TestOptions.Regular8); 3473comp = CreateCompilation(source3, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 3489var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.Regular9); 3492comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.Regular9); 3527var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 3530comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 3535comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 3538comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9); 3563var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular8); 3568comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9); 3571comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9); 3596var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 3601comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular8); 3604comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular8); 3620var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 3627comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3670var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseExe); 3673comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 3702var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 3709comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3736var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 3743comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3772var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 3786comp = CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3794comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(); 3815var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular8); 3818comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular9); 3821comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.RegularPreview); 3833var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular8); 3842comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 3851comp = CreateCompilation(source1, parseOptions: TestOptions.RegularPreview); 3879var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular8); 3888comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 3897comp = CreateCompilation(source1, parseOptions: TestOptions.RegularPreview); 3933var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 3936comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3965var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular8); 3968comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular9); 4001var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4004comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4023var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular8); 4026comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular9); 4051var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular8); 4054comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular9); 4071var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4106var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4110comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4143var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4152comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4170var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular8); 4179comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4202var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4211comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4231var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4240comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4263var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4266comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4282var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4288comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4309var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4340var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9); 4373CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 4382CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 4401CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 4402CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 4416var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9); 4452var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4488var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.StandardAndCSharp); 4544var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4613comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 4687var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4758var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4762comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4884var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 4887comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 4890comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 4996var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 4999comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 5063comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 5144var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 5147comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5203var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 5206comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5226var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5247comp = CreateCompilation(sourceB, references: new[] { AsReference(comp, useCompilationReference) }, parseOptions: useLatest ? TestOptions.Regular9 : TestOptions.Regular8); 5338var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5357comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 5447comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 5487var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5503comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 5506comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 5535var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5550comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 5553comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 5579var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5606comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 5609comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 5671var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5684comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 5687comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 5713var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5734comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 5737comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 5782var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5823comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 5826comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 5844var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5868comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 5871comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 5889var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 6001comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 6004comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 6019var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 6033comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 6036comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 6057var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6105var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6186var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6286var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6360var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6387comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6410var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6427comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6545var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6592var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6731var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6895var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6916var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6941var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9); 6953comp = CreateCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 6970var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9); 6984comp = CreateCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 7003var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9); 7022comp = CreateCompilation(source1, references: new[] { ref0 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 7042var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7082var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9); 7116var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9); 7214var comp = CreateCompilation(new[] { sourceA, sourceB }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 7217comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 7221comp = CreateCompilation(sourceB, references: new[] { ref1 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 7224comp = CreateCompilation(sourceB, references: new[] { ref2 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 7227comp = CreateCompilation(sourceB, references: new[] { ref1 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular8); 7230comp = CreateCompilation(sourceB, references: new[] { ref2 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular8); 7287var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 7454var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 9490var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithAllowUnsafe(useUnsafeContext), parseOptions: TestOptions.Regular9); 9725var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 10099var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 10326var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 10376var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 10493var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 12376var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithAllowUnsafe(useUnsafeContext), parseOptions: TestOptions.Regular9); 12437var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 12662var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 12865var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 12940var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 13264var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 13282comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 13308var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 13336var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 13366comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 13383comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 13401var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 13431comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 13448comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 13487var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 13516var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 13540var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 13569var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 13605var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 13664var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9); 13727var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9); 13793var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: 13872var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9); 14010var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 14066CompileAndVerify(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, expectedOutput: 14169var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: 14218var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14246var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14301var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14370var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 14419var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14441var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14474var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14510var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14598var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14627var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14650var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14675var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14704var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14729var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15064var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 15312var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 15333var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 15356var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 15384var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 15407var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 15433var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 15832var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe);
Semantics\NonTrailingNamedArgumentsTests.cs (24)
40var verifier = CompileAndVerify(source, expectedOutput: "First 1 2. Second 3 4.", parseOptions: TestOptions.Regular7_2); 86var verifier = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2); 89var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 114var verifier = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2); 138var verifier = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2); 161var verifier = CompileAndVerifyWithMscorlib40(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2, references: new[] { Net40.References.SystemCore }); 164var comp = CreateCompilationWithMscorlib40(source, parseOptions: TestOptions.Regular7_1, references: new[] { Net40.References.SystemCore }); 194var verifier = CompileAndVerify(source, expectedOutput: "1 2. 1 2.", parseOptions: TestOptions.Regular7_2); 197var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 225var verifier = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2); 228var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 261var verifier = CompileAndVerify(source, expectedOutput: "Get 1 2. Set 3 4 5.", parseOptions: TestOptions.Regular7_2); 264var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 300var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_2); 334var lib = CreateCompilation(lib_cs, parseOptions: TestOptions.Regular7); 336var verifier1 = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2, references: new[] { lib.ToMetadataReference() }); 339var verifier2 = CompileAndVerify(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2, references: new[] { lib.EmitToImageReference() }); 388var verifier = CompileAndVerify(source, expectedOutput: "1 hi.", parseOptions: TestOptions.Regular7_2); 558var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 673var comp = CreateCompilation(source, options: TestOptions.DebugExe); 815var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_2); 822var comp2 = CreateCompilation(source, parseOptions: TestOptions.Regular7); 843var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_2); 1009var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1);
Semantics\NullableContextTests.cs (34)
184verify(parseOptions: TestOptions.Regular, expectedAnalyzedKeysDefault); 185verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", null), expectedAnalyzedKeysDefault); 186verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), expectedAnalyzedKeysAll); 187verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "never")); 188verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "ALWAYS"), expectedAnalyzedKeysDefault); // unrecognized value (incorrect case) ignored 189verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "NEVER"), expectedAnalyzedKeysDefault); // unrecognized value (incorrect case) ignored 190verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "true"), expectedAnalyzedKeysDefault); // unrecognized value ignored 191verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "false"), expectedAnalyzedKeysDefault); // unrecognized value ignored 192verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "unknown"), expectedAnalyzedKeysDefault); // unrecognized value ignored 238verify(parseOptions: TestOptions.Regular, expectedAnalyzedKeysDefault); 239verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", null), expectedAnalyzedKeysDefault); 240verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), expectedAnalyzedKeysAll); 241verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "never")); 297verify(parseOptions: TestOptions.Regular, expectedAnalyzedKeysDefault); 298verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", null), expectedAnalyzedKeysDefault); 299verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), expectedAnalyzedKeysAll); 300verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "never")); 339verify(parseOptions: TestOptions.Regular, expectedFlowState: true, expectedAnalyzedKeysAll); 340verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", null), expectedFlowState: true, expectedAnalyzedKeysAll); 341verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), expectedFlowState: true, expectedAnalyzedKeysAll); 342verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "never"), expectedFlowState: false); 378verify(parseOptions: TestOptions.Regular, expectedFlowState: true, expectedAnalyzedKeysAll); 379verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", null), expectedFlowState: true, expectedAnalyzedKeysAll); 380verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), expectedFlowState: true, expectedAnalyzedKeysAll); 381verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "never"), expectedFlowState: false); 413verify(parseOptions: TestOptions.Regular, expectedFlowState: true, expectedAnalyzedKeysAll); 414verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", null), expectedFlowState: true, expectedAnalyzedKeysAll); 415verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), expectedFlowState: true, expectedAnalyzedKeysAll); 416verify(parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "never"), expectedFlowState: false); 558var options = TestOptions.ReleaseDll; 1023var options = TestOptions.ReleaseDll.WithNullableContextOptions(NullableContextOptions.Disable); 1051verify(new[] { source1, source2, source3, source4 }, TestOptions.ReleaseDll.WithNullableContextOptions(NullableContextOptions.Enable), new[] { ".ctor" }, 1735var options = TestOptions.ReleaseExe; 2223var options = TestOptions.ReleaseDll;
Semantics\NullableConversionTests.cs (1)
653var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithWarningLevel(0));
Semantics\NullableReferenceTypesTests.cs (790)
1243var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 1285var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseDll); 1378}", options: TestOptions.UnsafeDebugDll); 1609CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1747var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 1781var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 1952var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 2001CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2087var compilation2 = CreateCompilation(source2, new[] { reference.WithEmbedInteropTypes(true), CSharpRef }, options: TestOptions.ReleaseExe); 2219}", TestOptions.UnsafeReleaseDll); 2237var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 2259var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 2337var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 2370var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 2455var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 2667var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 2693var comp = CreateCompilation(source, options: WithNullable(TestOptions.UnsafeReleaseDll, NullableContextOptions.Enable)); 2815var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 3560CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 4020CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 4138var c = CreateCompilation(source, parseOptions: TestOptions.Regular7); 4148var c2 = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4521var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments, options: WithNullableEnable()); 4554var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments, options: WithNullableEnable()); 4586var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments, options: WithNullableEnable()); 4674CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 5189var comp = CreateCompilation(source, options: TestOptions.DebugDll); 5239var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: TestOptions.DebugDll); 5285var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Disable)); 5331var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5393var comp = CreateCompilation(new[] { source0, source1, source2 }, options: TestOptions.DebugDll); 5406comp = CreateCompilation(new[] { source0, source1, source2 }, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Disable)); 5419comp = CreateCompilation(new[] { source0, source1, source2 }, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5556var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5576var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5598var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5616var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5638var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5667var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5701var comp = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5736var comp = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5814options: TestOptions.DebugDll 6364var comp2 = CreateCompilation(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress)); 6381var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6398var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6418var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6442var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6465var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6487var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6509var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6532var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6554var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6576var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6643var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 7528var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 7620var c = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 7644var c = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 7672var c = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 7724var c = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable()); 7796var c = CreateCompilation(source, parseOptions: TestOptions.Regular8); 7811var c = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 7856c = CreateCompilation(source, parseOptions: TestOptions.Regular8); 7866var c2 = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 8424var c = CreateCompilation(source, parseOptions: TestOptions.Regular8); 8427var c2 = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 8461var c3 = CreateCompilation(new[] { source }, options: WithNullableDisable(), parseOptions: TestOptions.Regular8); 8486CSharpCompilation c = CreateCompilation(source, parseOptions: TestOptions.Regular8); 8582var comp = CreateCompilation("", options: WithNullableDisable(), parseOptions: TestOptions.Regular7); 8589var comp = CreateCompilation("", options: WithNullable(NullableContextOptions.Enable), parseOptions: TestOptions.Regular7_3); 8595comp = CreateCompilation("", options: WithNullable(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular7_3); 8601comp = CreateCompilation("", options: WithNullable(NullableContextOptions.Disable), parseOptions: TestOptions.Regular7_3); 8604comp = CreateCompilation("", options: WithNullable(NullableContextOptions.Enable), parseOptions: TestOptions.Regular8); 8607comp = CreateCompilation("", options: WithNullable(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular8); 8610comp = CreateCompilation("", options: WithNullable(NullableContextOptions.Disable), parseOptions: TestOptions.Regular8); 8613comp = CreateCompilation(new string[] { }, options: WithNullable(NullableContextOptions.Enable), parseOptions: TestOptions.Regular7_3); 8616comp = CreateCompilation(new string[] { }, options: WithNullable(NullableContextOptions.Enable), parseOptions: TestOptions.Regular8); 8619comp = CreateCompilation(new string[] { }, options: WithNullable(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular7_3); 8622comp = CreateCompilation(new string[] { }, options: WithNullable(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular8); 8625comp = CreateCompilation(new string[] { }, options: WithNullable(NullableContextOptions.Disable), parseOptions: TestOptions.Regular7_3); 8628comp = CreateCompilation(new string[] { }, options: WithNullable(NullableContextOptions.Disable), parseOptions: TestOptions.Regular8); 8644var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular7); 8669var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular7); 8705var comp0 = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular7); 8718parseOptions: TestOptions.Regular8); 8811var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 8818var comp1 = CreateCompilation(source1, references: compRefs0, parseOptions: TestOptions.Regular7); 8821comp1 = CreateCompilation(source1, references: metadataRefs0, parseOptions: TestOptions.Regular7); 8841comp1 = CreateCompilation(source1, references: compRefs0, parseOptions: TestOptions.Regular7); 8844comp1 = CreateCompilation(source1, references: metadataRefs0, parseOptions: TestOptions.Regular7); 8871comp1 = CreateCompilation(source1, references: compRefs0, parseOptions: TestOptions.Regular7); 8874comp1 = CreateCompilation(source1, references: metadataRefs0, parseOptions: TestOptions.Regular7); 8928var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 8975var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 9017var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 9043var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 9081var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 9155var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 9246var comp1 = CreateCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular7); 9250var comp2A = CreateCompilation(source2, references: new[] { ref0, ref1 }, parseOptions: TestOptions.Regular7); 9336var comp1 = CreateCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular7); 9372comp1 = CreateCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular7); 9424var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 9548var obliviousComp = CreateCompilation(obliviousLib, parseOptions: TestOptions.Regular7); 9654parseOptions: TestOptions.Regular8, references: new[] { obliviousComp.EmitToImageReference(), libComp.EmitToImageReference() }); 9717var obliviousComp = CreateCompilation(obliviousLib, parseOptions: TestOptions.Regular7); 9805parseOptions: TestOptions.Regular8, references: new[] { obliviousComp.EmitToImageReference(), libComp.EmitToImageReference() }); 9854var obliviousComp = CreateCompilation(obliviousLib, parseOptions: TestOptions.Regular7); 9924parseOptions: TestOptions.Regular8, references: new[] { obliviousComp.EmitToImageReference(), libComp.EmitToImageReference() }); 9956var obliviousComp = CreateCompilation(obliviousLib, parseOptions: TestOptions.Regular7); 10033parseOptions: TestOptions.Regular8, references: new[] { obliviousComp.EmitToImageReference(), libComp.EmitToImageReference() }); 10083var obliviousComp = CreateCompilation(obliviousLib, parseOptions: TestOptions.Regular7); 10162parseOptions: TestOptions.Regular8, references: new[] { obliviousComp.EmitToImageReference(), libComp.EmitToImageReference() }); 10203var obliviousComp = CreateCompilation(obliviousLib, parseOptions: TestOptions.Regular7); 10279parseOptions: TestOptions.Regular8, references: new[] { obliviousComp.EmitToImageReference(), libComp.EmitToImageReference() }); 10315var compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 10316parseOptions: TestOptions.Regular8, references: new[] { obliviousComp.EmitToImageReference() }); 10379var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 10404var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 10407comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular7, skipUsesIsNullable: true); 10427var obliviousComp = CreateCompilation(obliviousLib, parseOptions: TestOptions.Regular7); 10442parseOptions: TestOptions.Regular8, references: new[] { obliviousComp.EmitToImageReference() }); 10611var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: WithNullableEnable()); 10770var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: WithNullableEnable()); 10933var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: WithNullableEnable()); 11123var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: WithNullableEnable()); 11245var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 11816var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 12450var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 13376var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 13449var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 13554var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 13587var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 13851parseOptions: TestOptions.Regular8); 14435var comp = CreateCompilation(source, options: TestOptions.DebugDll); 14485var comp = CreateCompilation(source, options: TestOptions.DebugDll); 16996var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 17071var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 17405var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 17473var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 17554var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 17638var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 17888compilation = CreateCompilation("", references: new[] { compilation.EmitToImageReference() }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 17909var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 17982var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 18034var 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); 23695var c = CreateCompilation(new[] { source, MemberNotNullAttributeDefinition, MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular8); 23714var 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); 32070options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Enable)); 36678", parseOptions: TestOptions.Regular7); 36734", parseOptions: TestOptions.Regular7); 37041var comp = CreateNullableCompilation(new[] { source, DoesNotReturnAttributeDefinition }, parseOptions: TestOptions.Regular9); 37067var comp = CreateNullableCompilation(new[] { source, DoesNotReturnAttributeDefinition }, parseOptions: TestOptions.Regular9); 41620var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 41645var comp = CreateNullableCompilation(source, parseOptions: TestOptions.Regular8); 41881var comp = CreateNullableCompilation(source, parseOptions: TestOptions.Regular8); 47056var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }, parseOptions: TestOptions.Regular8); 48800var 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)); 56662var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 56711var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 56786var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 56850var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 56897var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 56943var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 57304var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 57550var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 57781var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 57809var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 57837var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 57865var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 57893var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 57910var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 57927var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 57944var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 57961var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 57994var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }, options: WithNullableEnable(TestOptions.ReleaseExe)); 58433var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 58826var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 58885var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 59009parseOptions: TestOptions.Regular8); 59046parseOptions: TestOptions.Regular7); 59319parseOptions: TestOptions.Regular8); 59351parseOptions: TestOptions.Regular8); 59391parseOptions: TestOptions.Regular8); 59418parseOptions: TestOptions.Regular8); 59764var c = CreateCompilation(source, parseOptions: TestOptions.Regular7); 60341var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 60466var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 60528var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 60583var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 60661var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 60750var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 60855var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 61142var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 61530var piaCompilation = CreateCompilationWithMscorlib461(pia, options: WithNullableEnable(TestOptions.DebugDll)); 61588var piaCompilation = CreateCompilationWithMscorlib461(pia, options: WithNullableEnable(TestOptions.DebugDll)); 63840", options: TestOptions.DebugDll, parseOptions: TestOptions.Regular7); 64176""", options: WithNullableEnable(TestOptions.ReleaseExe)); 64603var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 64661var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 64734var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 65462parseOptions: TestOptions.Regular8); 65518parseOptions: TestOptions.Regular8); 65546parseOptions: TestOptions.Regular7); 66875var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 68223", GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns, includeTrailingOutConstructorParameter: validityParameter) }, parseOptions: TestOptions.RegularPreview); 68267parseOptions: TestOptions.RegularPreview); 68296parseOptions: TestOptions.RegularPreview); 68332parseOptions: TestOptions.RegularPreview); 68369parseOptions: TestOptions.RegularPreview); 68420parseOptions: TestOptions.RegularPreview); 71187" }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 71244parseOptions: TestOptions.Regular8); 71314parseOptions: TestOptions.Regular8); 71355parseOptions: TestOptions.Regular8); 71392parseOptions: TestOptions.Regular8); 71429parseOptions: TestOptions.Regular8); 71462parseOptions: TestOptions.Regular8); 71494parseOptions: TestOptions.Regular8); 71775var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: WithNullableEnable()); 76905var piaCompilation = CreateCompilationWithMscorlib461(pia, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular7); 76929options: WithNullableEnable(TestOptions.DebugExe)); 77072" }, options: WithNullableEnable(TestOptions.DebugDll)); 77103parseOptions: TestOptions.Regular8, 77108parseOptions: TestOptions.Regular8, 77121" }, options: WithNullableEnable(TestOptions.DebugDll)); 77144parseOptions: TestOptions.Regular8, 77149parseOptions: TestOptions.Regular8, 77314parseOptions: TestOptions.Regular8, 77345parseOptions: TestOptions.Regular8, 77372parseOptions: TestOptions.Regular8, 77378parseOptions: TestOptions.Regular8, 77479parseOptions: TestOptions.Regular8, 77495parseOptions: TestOptions.Regular8, 77507parseOptions: TestOptions.Regular8, 77513parseOptions: TestOptions.Regular8, 77540parseOptions: TestOptions.Regular8, 77546parseOptions: TestOptions.Regular8, 77647parseOptions: TestOptions.Regular8, 77666parseOptions: TestOptions.Regular8, 77679parseOptions: TestOptions.Regular8, 77685parseOptions: TestOptions.Regular8, 77788parseOptions: TestOptions.Regular8, 77807parseOptions: TestOptions.Regular8, 77820parseOptions: TestOptions.Regular8, 77826parseOptions: TestOptions.Regular8, 77934parseOptions: TestOptions.Regular8, 77965parseOptions: TestOptions.Regular8, 77981parseOptions: TestOptions.Regular8, 77997parseOptions: TestOptions.Regular8, 78027parseOptions: TestOptions.Regular8); 78051parseOptions: TestOptions.Regular8); 78087parseOptions: TestOptions.Regular8); 78123parseOptions: TestOptions.Regular8); 78181parseOptions: TestOptions.Regular8, 78869var compA = CreateCompilation(sourceA, parseOptions: TestOptions.Regular7); 78882options: TestOptions.ReleaseExe, 78883parseOptions: TestOptions.Regular8, 78910parseOptions: TestOptions.Regular8); 78946parseOptions: TestOptions.Regular8); 79076parseOptions: TestOptions.Regular8); 79140parseOptions: TestOptions.Regular8); 79196parseOptions: TestOptions.Regular7, skipUsesIsNullable: true); 79222parseOptions: TestOptions.Regular8); 79246parseOptions: TestOptions.Regular8); 79273parseOptions: TestOptions.Regular8); 79300parseOptions: TestOptions.Regular8); 79326parseOptions: TestOptions.Regular8); 79413var comp = CreateCompilation(source, options: TestOptions.DebugExe); 79437var comp = CreateCompilation(source, options: TestOptions.DebugExe); 79479var comp = CreateCompilation(source, options: TestOptions.DebugExe); 79535parseOptions: TestOptions.Regular8); 79833parseOptions: TestOptions.Regular8); 79864parseOptions: TestOptions.Regular8); 79898parseOptions: TestOptions.Regular8); 79932parseOptions: TestOptions.Regular8); 79963parseOptions: TestOptions.Regular8); 79993parseOptions: TestOptions.Regular8, 79994options: WithNullableEnable(TestOptions.ReleaseExe)); 80026parseOptions: TestOptions.Regular8); 80146parseOptions: TestOptions.Regular8); 80190parseOptions: TestOptions.Regular8, 80191options: WithNullableEnable(TestOptions.ReleaseExe)); 80252var comp = CreateCompilation(src, options: WithNullableEnable(TestOptions.DebugDll)); 80281parseOptions: TestOptions.Regular8, 80282options: WithNullableEnable(TestOptions.ReleaseExe)); 80326parseOptions: TestOptions.Regular8); 80620parseOptions: TestOptions.Regular8); 80626parseOptions: TestOptions.Regular8); 80632parseOptions: TestOptions.Regular7); 80715var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 80719comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 80723comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 80838parseOptions: TestOptions.Regular8); 80861parseOptions: TestOptions.Regular8); 80882var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular9, options: WithNullableEnable()); 80913var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular9, options: WithNullableEnable()); 80964parseOptions: TestOptions.Regular8, options: WithNullableEnable()); 80998parseOptions: TestOptions.Regular8); 81101parseOptions: TestOptions.Regular8); 81125var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular9, options: WithNullableEnable()); 81153parseOptions: TestOptions.Regular8.WithFeature("staticNullChecking")); 81164parseOptions: TestOptions.Regular8.WithFeature("staticNullChecking", "0")); 81175parseOptions: TestOptions.Regular8.WithFeature("staticNullChecking", "1")); 81209parseOptions: TestOptions.Regular8); 81218parseOptions: TestOptions.Regular8); 81245parseOptions: TestOptions.Regular8); 81300parseOptions: TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp8)); 81371var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { source }, parseOptions: TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp8)); 81396parseOptions: TestOptions.Regular8); 81415parseOptions: TestOptions.Regular8, 81767comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 81807var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7, skipUsesIsNullable: true); 81874var comp = CreateCompilation(source, references: new[] { libComp.EmitToImageReference() }, parseOptions: TestOptions.Regular7_3); 81951var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 82325parseOptions: TestOptions.Regular8); 82343parseOptions: TestOptions.Regular8); 82563parseOptions: TestOptions.Regular8); 82616parseOptions: TestOptions.Regular8); 82637parseOptions: TestOptions.Regular8); 82652parseOptions: TestOptions.Regular8); 83079var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(TestOptions.UnsafeReleaseDll)); 83260var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 84074var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 84161var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 86874var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 87727var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: WithNullableEnable()); 88883var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 88943var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 89043var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 89056var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 89214var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 90862var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 91227CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)).VerifyDiagnostics( 91696var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91723var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91752var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91790var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91822var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91851var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91881var comp = CreateCompilation(new[] { source, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91908var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91938var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91968var comp = CreateCompilation(new[] { source, DisallowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91995var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92027var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92054var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92088var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92118var comp = CreateCompilation(new[] { source, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92197var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92224var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92253var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92292var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92325var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92355var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92385var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92412var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92442var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, AllowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92472var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, DisallowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92500var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92533var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92561var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92595var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92625var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92649var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92674var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92737parseOptions: TestOptions.Regular8); 92763parseOptions: TestOptions.Regular8); 92798parseOptions: TestOptions.Regular8); 92820var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 92878var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 92920var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 92991var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93035var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93108var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93152var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93253var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93294var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93341var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93478parseOptions: TestOptions.Regular8); 93511parseOptions: TestOptions.Regular8); 93536var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93592var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93665var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93738var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(TestOptions.UnsafeDebugDll)); 93793var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93831var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93917var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 94012parseOptions: TestOptions.Regular8); 94083parseOptions: TestOptions.Regular8); 94129var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 94328parseOptions: TestOptions.Regular8); 94352parseOptions: TestOptions.Regular8); 94376parseOptions: TestOptions.Regular8); 94400parseOptions: TestOptions.Regular8); 94423parseOptions: TestOptions.Regular8); 94444parseOptions: TestOptions.Regular8); 94550parseOptions: TestOptions.Regular8); 94569parseOptions: TestOptions.Regular8); 94590parseOptions: TestOptions.Regular8); 94622parseOptions: TestOptions.Regular8); 97355var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 97590var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 97834comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 97848comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 97856comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8, skipUsesIsNullable: true); 97859comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9, skipUsesIsNullable: true); 97882var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 97915var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 97945var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 97985var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 98047var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 98087var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 98143var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 98177var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 98211var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 98241var comp = CreateCompilation(new[] { source, NullableAttributeDefinition }, parseOptions: TestOptions.Regular9); 98368parseOptions: TestOptions.Regular8).VerifyDiagnostics( 98649var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options: WithNullable(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular8); 98707options: WithNullableEnable(TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All))); 98774options: WithNullableEnable(TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), 98845options: WithNullableEnable(TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), 99131comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 99134comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 99337var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options: WithNullable(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular8); 99462var comp6 = CreateCompilation(new[] { source1 }, options: WithNullableDisable(), parseOptions: TestOptions.Regular8); 99619var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 99702var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 99992var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 100363var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 100407var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7_3); 100428comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 100460var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 100610var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 101861var compilation = CreateCompilation(new[] { Tuple2NonNullable, TupleRestNonNullable, source }, targetFramework: TargetFramework.Mscorlib46, parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 104973parseOptions: TestOptions.Regular8); 105762var comp1 = CreateCompilation(new[] { source1 }, parseOptions: TestOptions.Regular8); 105810var comp1 = CreateCompilation(new[] { source1 }, parseOptions: TestOptions.Regular8); 106109var comp2 = CreateCompilation(new[] { source2 }, references: new[] { reference }, parseOptions: TestOptions.Regular8); 107722var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110087var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110164var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110194var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110228var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110287var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110343var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110415var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110441var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110471var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110494var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110632var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110680var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110717var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110781var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110825var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110986var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular8); 111108var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 111137var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 111175var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 111207var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 111370var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 111406var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 111439var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 111475var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 111508var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 111594var comp0 = CreateCompilation(new[] { source0 }, parseOptions: TestOptions.Regular8); 111745var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 111799var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 111846var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 111888var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 111908var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 111982var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 112082var comp = CreateCompilation(new[] { source }, references: new[] { ref0 }, parseOptions: TestOptions.Regular8); 112125var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 112210var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 112278var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 112630var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular8); 112650comp0 = CreateCompilation(new[] { source0 }, options: WithNullableDisable(), parseOptions: TestOptions.Regular8); 114861var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 115074var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 116544CreateCompilation(text, options: WithNullableEnable(TestOptions.ReleaseDll)).VerifyEmitDiagnostics(); 116545CreateCompilation(text, options: WithNullableEnable(TestOptions.ReleaseDll), parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyEmitDiagnostics(); 116569options: WithNullableEnable(TestOptions.ReleaseExe), 116616var compilation1 = CreateEmptyCompilation(source1, options: WithNullableEnable(TestOptions.ReleaseDll), references: new[] { MinCorlibRef }); 116632var compilation2 = CreateEmptyCompilation(source2, options: WithNullableEnable(TestOptions.ReleaseDll), references: new[] { compilation1.EmitToImageReference(), MinCorlibRef }); 116645var compilation3 = CreateEmptyCompilation(source2, options: WithNullableEnable(TestOptions.ReleaseDll), references: new[] { compilation1.ToMetadataReference(), MinCorlibRef }); 116656var compilation4 = CreateEmptyCompilation(source2, options: WithNullableEnable(TestOptions.ReleaseDll), references: new[] { compilation1.EmitToImageReference() }); 116686var compilation5 = CreateEmptyCompilation(source2, options: WithNullableEnable(TestOptions.ReleaseDll), references: new[] { compilation1.ToMetadataReference() }); 116724var compilation6 = CreateEmptyCompilation(source2, options: WithNullableEnable(TestOptions.ReleaseDll), references: new[] { compilation1.EmitToImageReference(), MscorlibRef }); 116754var compilation7 = CreateEmptyCompilation(source2, options: WithNullableEnable(TestOptions.ReleaseDll), references: new[] { compilation1.ToMetadataReference(), MscorlibRef }); 116795var comp = CreateCompilation(source2, new[] { ref1.WithEmbedInteropTypes(true), CSharpRef }, options: WithNullableEnable(TestOptions.ReleaseExe)); 117097CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117129CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117157CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117190CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117218CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117251CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117274CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117301CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117328CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117517CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117657CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117794CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117815CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117838CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117861CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117932CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 117955CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 118187CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 118231CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 119803CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 120421var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 121384CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 122035CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 122056CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 122078CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 122099CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 122120CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 122142CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 122406CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 122428CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 122449CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 122615CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 122780CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 123174CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 123196CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 123242CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 123264CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 127123var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7, options: WithNullableEnable()); 131919var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 132527var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 135977var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 136642CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7_3) 136672CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7_3) 139819CreateCompilation(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 144959var spanRef = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll) 145310var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 145346var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 146495var compilation1 = CreateCompilation(source, parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 146528var compilation1 = CreateCompilation(source, parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 146557var compilation1 = CreateCompilation(source, parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 147621var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 147712var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 147834var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 148013var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 148121var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 148285var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 148356var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 148440var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 148535var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 148608var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 149889var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 149911var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 149920comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 149934var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular8); 149940comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 149950comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 149960comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 149989var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 150070comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 150155var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 150213var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 150230comp = CreateCompilation(sourceB0, references: new[] { refA }, parseOptions: TestOptions.Regular9); 150246comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular9); 150298comp = CreateCompilation(sourceB2, references: new[] { refA }, parseOptions: TestOptions.Regular9); 150332comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions: TestOptions.Regular9); 150372comp = CreateCompilation(sourceB4, references: new[] { refA }, parseOptions: TestOptions.Regular9); 150449var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 150479var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 150502comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 150545var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 150602var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 150638comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular); 150686comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular9); 150766comp = CreateCompilation(sourceB2, references: new[] { refA }, parseOptions: TestOptions.Regular9); 150846comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions: TestOptions.Regular9); 150926comp = CreateCompilation(sourceB4, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151009comp = CreateCompilation(sourceB5, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151089comp = CreateCompilation(sourceB6, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151181comp = CreateCompilation(sourceB7, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151244var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 151280comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular8); 151382comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151462comp = CreateCompilation(sourceB2, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151554comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151619var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 151644comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151752comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151857comp = CreateCompilation(sourceB5, references: new[] { refA }, parseOptions: TestOptions.Regular9); 151995var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 152020comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular9); 152128comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions: TestOptions.Regular9); 152233comp = CreateCompilation(sourceB5, references: new[] { refA }, parseOptions: TestOptions.Regular9); 152368var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 152389comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular9); 152480comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions: TestOptions.Regular9); 152562comp = CreateCompilation(sourceB5, references: new[] { refA }, parseOptions: TestOptions.Regular9); 152699comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular9); 152813comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions: TestOptions.Regular9); 152918comp = CreateCompilation(sourceB5, references: new[] { refA }, parseOptions: TestOptions.Regular9); 152965var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 153240comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular9); 153281comp = CreateCompilation(sourceB2, references: new[] { refA }, parseOptions: TestOptions.Regular9); 153394comp = CreateCompilation(sourceB3, references: new[] { refA }, parseOptions: TestOptions.Regular9); 153423var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 153529var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153557var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 153581comp = CreateCompilation(source2, parseOptions: TestOptions.Regular9); 153593comp = CreateCompilation(source3, parseOptions: TestOptions.Regular9); 153617comp = CreateCompilation(source4, parseOptions: TestOptions.Regular9); 153655var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153710var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153757var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153794var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153833var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153877var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153942var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153981var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 154006comp = CreateCompilation(source2, parseOptions: TestOptions.Regular9); 154031comp = CreateCompilation(source3, parseOptions: TestOptions.Regular9); 154056comp = CreateCompilation(source4, parseOptions: TestOptions.Regular9); 154082comp = CreateCompilation(source5, parseOptions: TestOptions.Regular9); 154108comp = CreateCompilation(source6, parseOptions: TestOptions.Regular9); 154135var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 154155var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 154188comp = CreateCompilation(source3, parseOptions: TestOptions.Regular9); 154221comp = CreateCompilation(source5, parseOptions: TestOptions.Regular9); 154245var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 154275var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 154297comp = CreateCompilation(source2, parseOptions: TestOptions.Regular9); 154322comp = CreateCompilation(source3, parseOptions: TestOptions.Regular9); 154345comp = CreateCompilation(source4, parseOptions: TestOptions.Regular9); 154368comp = CreateCompilation(source5, parseOptions: TestOptions.Regular9); 154406var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 154456var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 154503var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 154531comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 154581var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 154685comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 154714var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 154781var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 154849var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 154917var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 154986comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular9); 155015comp = CreateCompilation(sourceB2, references: new[] { refA }, parseOptions: TestOptions.Regular9); 155062var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 155123var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 155193var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 155225var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 155249comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 155286var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular8); 155335var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 155359comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular8); 155379var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 155571var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 155583comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 155859options: TestOptions.DebugExe); 156058parseOptions: TestOptions.Regular9); 156285}", parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 156384", parseOptions: TestOptions.Regular8); 156641var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 156674var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 156710var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 156784var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 156806var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 157420var comp = CreateCompilation(src, options: TestOptions.DebugExe); 157446var comp = CreateCompilation(src, options: TestOptions.DebugExe); 157482var comp = CreateCompilation(src, options: TestOptions.DebugExe); 157871var comp = CreateCompilation(src, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Enable)); 160343var piaCompilation = CreateCompilationWithMscorlib461(pia, options: WithNullableEnable(TestOptions.DebugDll)); 160401var piaCompilation = CreateCompilationWithMscorlib461(pia, options: WithNullableEnable(TestOptions.DebugDll)); 160450var piaCompilation = CreateCompilationWithMscorlib461(pia, options: WithNullableEnable(TestOptions.DebugDll)); 160685", options: TestOptions.UnsafeDebugDll); 160713", options: TestOptions.UnsafeDebugDll); 160739", options: TestOptions.UnsafeDebugDll);
Semantics\NullableReferenceTypesVsPatterns.cs (6)
1019var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 2211var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 2497var 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)
66var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 68comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 92var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 209verifier = CompileAndVerify(source: source3, expectedOutput: "1", parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature()); 268CompileAndVerify(source: source4.Replace("TYPE", type), expectedOutput: "0", parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature()); 1795options: TestOptions.ReleaseDll, 1801options: TestOptions.ReleaseExe,
Semantics\NullCoalesceAssignmentTests.cs (4)
31var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 68var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 111var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 152var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8);
Semantics\ObjectAndCollectionInitializerTests.cs (2)
4220var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 4274var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
Semantics\OperatorTests.cs (28)
1686CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 3201var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4767", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 5256var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 5590var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 7130var comp = CreateCompilation(source, new[] { CSharpRef }, TestOptions.ReleaseExe); 7177var comp = CreateCompilation(source, new[] { CSharpRef }, TestOptions.ReleaseExe); 7325var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7483var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithOverflowChecks(true)); 7699var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithOverflowChecks(false)); 7716compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOverflowChecks(true)); 7852var compilation = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib461Extended, options: TestOptions.ReleaseDll.WithOverflowChecks(true)); 8012var compilation = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40Extended, options: TestOptions.ReleaseDll.WithOverflowChecks(true)); 8549var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 8584var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithOverflowChecks(false)); 8599compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOverflowChecks(true)); 8628var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithOverflowChecks(false)); 8647compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOverflowChecks(true)); 8678var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithOverflowChecks(false)); 8697compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOverflowChecks(true)); 8743var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 8808var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 8847CreateCompilation(source1, options: TestOptions.ReleaseDll).VerifyDiagnostics( 8849CreateCompilation(source1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyDiagnostics( 11219var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 11454CreateCompilation(source, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 11497var comp = CreateCompilation(code, options: TestOptions.UnsafeReleaseExe);
Semantics\OverloadResolutionTestBase.cs (1)
33var compilation = CreateEmptyCompilation(source, references, TestOptions.ReleaseDll);
Semantics\OverloadResolutionTests.cs (75)
387CompileAndVerify(source2, parseOptions: TestOptions.Regular9, expectedOutput: @"2"); 608var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.UnsafeDebugDll); 801var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.UnsafeDebugDll); 875var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1375var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 1467CreateCompilation(source, parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyDiagnostics( 2741CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: @"2 4554var compilation = CreateCompilationWithILAndMscorlib40(source2, source1, options: TestOptions.ReleaseExe); 7002CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 7021var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7722var compilation = CreateCompilationWithMscorlib461(source1, options: TestOptions.ReleaseExe); 7755var compilation = CreateCompilationWithMscorlib461(source1, options: TestOptions.ReleaseExe); 7783var compilation = CreateCompilationWithMscorlib461(source1, options: TestOptions.ReleaseExe); 7874var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 7912CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyDiagnostics( 7917CreateCompilation(source1, options: TestOptions.DebugExe).VerifyDiagnostics( 7954var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 7992CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyDiagnostics( 7997CreateCompilation(source1, options: TestOptions.DebugExe).VerifyDiagnostics( 8034CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyDiagnostics( 8039CreateCompilation(source1, options: TestOptions.DebugExe).VerifyDiagnostics( 8076CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyDiagnostics( 8081CreateCompilation(source1, options: TestOptions.DebugExe).VerifyDiagnostics( 8116CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyDiagnostics( 8121CreateCompilation(source1, options: TestOptions.DebugExe).VerifyDiagnostics( 8157var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 8196var compilation = CreateCompilationWithMscorlib40(source1, new[] { Net40.References.SystemCore }, options: TestOptions.DebugExe); 8232var compilation = CreateCompilationWithMscorlib40(source1, new[] { Net40.References.SystemCore }, options: TestOptions.DebugExe); 8265var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 8407CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyDiagnostics( 8493var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 8541var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 8588var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 8627var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 8662var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 8688var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 8718var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 9033var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 9060var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 9468CreateCompilation(code, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 9480CompileAndVerify(code, expectedOutput: "5", parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 9522CreateCompilation(code, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 9523CreateCompilation(code, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 9551CreateCompilation(code, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 9552CreateCompilation(code, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 9590CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 9602CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 9622CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 9634CompileAndVerify(source, expectedOutput: "555", parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 9661CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 9673CompileAndVerify(source, expectedOutput: "555", parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 9694CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 9706CompileAndVerify(source, expectedOutput: "555", options: TestOptions.UnsafeReleaseExe, 9707parseOptions: TestOptions.Regular12, verify: Verification.Fails).VerifyDiagnostics(expectedDiagnostics); 9709CompileAndVerify(source, expectedOutput: "555", options: TestOptions.UnsafeReleaseExe, 9729CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 9741CompileAndVerify(source, expectedOutput: "555", verify: Verification.FailsILVerify, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 9791CompileAndVerify(source, expectedOutput: "string5", parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 9792CompileAndVerify(source, expectedOutput: "string5", parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 9811CompileAndVerify(source, expectedOutput: "string5", parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 9812CompileAndVerify(source, expectedOutput: "string5", parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 9831CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 9843CompileAndVerify(source, expectedOutput: "object5", parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 9862CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 9874CompileAndVerify(source, expectedOutput: "object5", parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 9941CreateCompilation(code, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 9971CreateCompilation(code, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics);
Semantics\QueryTests.cs (9)
2713var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode, parseOptions: TestOptions.Script); 2739var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode, parseOptions: TestOptions.Script); 2805}, parseOptions: TestOptions.WithoutImprovedOverloadCandidates); 3880var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode, options: TestOptions.DebugExe); 3914CreateCompilationWithMscorlib40AndSystemCore(csSource, parseOptions: TestOptions.Regular7_2).VerifyDiagnostics( 3985CreateCompilationWithMscorlib40AndSystemCore(csSource, parseOptions: TestOptions.Regular7_2).VerifyDiagnostics( 4070CreateCompilationWithMscorlib40AndSystemCore(csSource, parseOptions: TestOptions.Regular7_2) 4231VerifyOperationTreeAndDiagnosticsForTest<QueryExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.Regular7_3); 4489", options: TestOptions.ReleaseExe);
Semantics\RawInterpolationTests.cs (7)
1000CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 1035CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe) 1067CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe) 1111var comp = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: Test.Utilities.TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
Semantics\RawInterpolationTests_Handler.cs (10)
590var comp = CreateCompilation(new[] { source, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: true, useDefaultParameters: false, useBoolReturns: false) }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.NetCoreApp); 627var verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: expectedOutput, targetFramework: TargetFramework.Net50, parseOptions: TestOptions.RegularPreview); 634var comp2 = CreateCompilation(source, new[] { reference }, targetFramework: TargetFramework.Net50, parseOptions: TestOptions.RegularPreview); 2023var comp = CreateCompilation(new[] { source, interpolatedStringBuilder }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.NetCoreApp); 2118var comp = CreateCompilation(new[] { source, interpolatedStringBuilder }, parseOptions: TestOptions.Regular9); 3434var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }, parseOptions: TestOptions.RegularPreview); 3774var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net50); 3802comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.NetCoreApp); 4077var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4097comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview);
Semantics\ReadOnlyStructsTests.cs (12)
513var comp = CreateCompilation(csharp, options: TestOptions.UnsafeReleaseDll); 1105var comp = CreateCompilationWithILAndMscorlib40(csharp, ilreadonlyStructWithWriteableFieldIL, options: TestOptions.ReleaseExe); 1128var comp = CreateCompilationWithILAndMscorlib40(csharp, ilreadonlyStructWithWriteableFieldIL, options: TestOptions.ReleaseExe); 1611var moduleMetadata = CreateCompilation(csharp, options: TestOptions.DebugModule, targetFramework: TargetFramework.Mscorlib461).EmitToImageReference(); 1616var dllMetadata = CreateCompilation(csharp, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461).EmitToImageReference(); 1639var moduleMetadata = CreateCompilation(csharp, options: TestOptions.DebugModule, targetFramework: TargetFramework.Mscorlib461).EmitToImageReference(); 1644var dllMetadata = CreateCompilation(csharp, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461).EmitToImageReference(); 1667var moduleComp = CreateCompilation(csharp, options: TestOptions.DebugModule, targetFramework: TargetFramework.Mscorlib461); 1673var dllComp = CreateCompilation(csharp, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461); 1689var moduleComp = CreateCompilation(csharp, options: TestOptions.DebugModule, targetFramework: TargetFramework.Mscorlib461); 1695var dllComp = CreateCompilation(csharp, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461); 2339var comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular7_3);
Semantics\RecordStructTests.cs (141)
28parseOptions: TestOptions.RegularPreview); 37parseOptions: TestOptions.RegularPreview, 209var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 251var comp = CreateCompilation(new[] { src1, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 264comp = CreateCompilation(new[] { src2, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 270comp = CreateCompilation(new[] { src3, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 276comp = CreateCompilation(new[] { src1, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseDll); 289comp = CreateCompilation(new[] { src2, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseDll); 292comp = CreateCompilation(new[] { src3, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseDll); 323var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular9); 336comp = CreateCompilation(new[] { src2, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 342comp = CreateCompilation(new[] { src3, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 348comp = CreateCompilation(src4, parseOptions: TestOptions.Regular9); 571var comp = CreateCompilation(src, options: TestOptions.UnsafeReleaseDll); 659var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview, options: TestOptions.UnsafeDebugDll); 926var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 970var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 1102var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 1136var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 1166var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 1504var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1560var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1613var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1672var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview, options: TestOptions.UnsafeDebugExe); 1710var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1892var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 1902var verifier = CompileAndVerify(src, parseOptions: TestOptions.Regular11); 2156var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 2169var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11, verify: Verification.Skipped); 2297var comp = CreateEmptyCompilation(src, parseOptions: TestOptions.RegularPreview, references: new[] { corlibRef }); 2321var comp = CreateEmptyCompilation(src, parseOptions: TestOptions.RegularPreview, references: new[] { corlibRef }); 2397var comp = CreateEmptyCompilation(src, parseOptions: TestOptions.RegularPreview, references: new[] { corlibRef }); 2423var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 2857var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 2867var verifier = CompileAndVerify(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11, verify: Verification.Skipped); 3196var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 3235var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3276var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 3321var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 3369var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 3995var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4005comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 4053var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 4092var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 4138var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 4511var comp = CreateEmptyCompilation(src, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute()); 4788var comp = CreateEmptyCompilation(src, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute()); 5118var compDebug = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 5119var compRelease = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 6898var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 6979VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 7040VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 7133VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 7219VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 7480VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 7534var comp = CreateCompilation(src, parseOptions: TestOptions.Regular10); 7541var verifier = CompileAndVerify(src, parseOptions: TestOptions.Regular11); 7702var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 7859var comp = CreateCompilation(src, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularPreview); 7941CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 7979var comp = CreateCompilationWithMscorlibAndSpan(new[] { text, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 8013CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(); 8258var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 8265comp = CreateCompilation(src, parseOptions: TestOptions.Regular10); 8416VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 8441var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 8592VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 8616var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 8767VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 8787var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 8964VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 8984var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 9132VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 9153var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 9318VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 9339var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 9515VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 9533var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 9628VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 9646var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 9741VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 9793var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 9901VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 9919var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 10015VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 10040var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 10131VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 10149var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 10182var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 10317VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 10341var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 10432VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview); 10444var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 10459var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 10511parseOptions: TestOptions.RegularPreview, 10514options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 10539var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10548comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10595var comp = CreateCompilation(src, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularPreview); 11195var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11207comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 11237var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 11244comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 11251comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11263var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 11270comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 11277comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11289var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 11296comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 11303comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11315var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 11322comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 11329comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11344var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 11351comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 11358comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11373var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 11380comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 11387comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11402var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 11409comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 11416comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11434var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60);
Semantics\RefEscapingTests.cs (176)
46}", options: TestOptions.Regular7_3); 47var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 113}", options: TestOptions.UnsafeDebugDll); 140}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 189}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 235var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 285CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 335var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10); 351comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular11); 514CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 566CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 612CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 670CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 711CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(); 759CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 799CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 835var comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 885CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 950CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1005var comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1124var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1188var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1241var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1292var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1360var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1450var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1491var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1525var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1587var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1650var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1726CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1794var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10); 1804comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular11); 1863var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1927var comp = CreateCompilationWithMscorlibAndSpan(new[] { text, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1992CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 2038CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 2087CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(); 2138var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10); 2153comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular11); 2221var comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular10); 2231comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 2304CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 2398CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 2470var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10); 2486comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular11); 2569var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10); 2585comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular11); 2631""", options: TestOptions.Regular8); 2633var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 2664""", options: TestOptions.Regular8); 2666var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 2795""", options: TestOptions.Regular.WithLanguageVersion(languageVersion)); 2797var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 2916""", options: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp11)); 2918var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 2946""", TestOptions.Regular.WithLanguageVersion(languageVersion)); 2947var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 3039""", TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp11)); 3041var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 3194""", TestOptions.Regular.WithLanguageVersion(languageVersion)); 3195var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 3276""", TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp11)); 3277var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 3363""", TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp13)); 3364var comp = CreateCompilation(tree, targetFramework: TargetFramework.Net90, options: TestOptions.UnsafeDebugDll); 3446""", TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp11)); 3447var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 3511CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 3579CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 3654CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 3737CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 3782""", TestOptions.Regular.WithLanguageVersion(languageVersion)); 3784var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 3827""", TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp11)); 3829var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 3992""", TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp11)); 3994var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 4182""", TestOptions.Regular.WithLanguageVersion(languageVersion)); 4184var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 4275CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 4313CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(); 4364var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10); 4380comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular11); 4443CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 4445CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4487CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 4564var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 4657var comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 4726CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 4780var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 4838CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 4896CreateCompilationWithMscorlibAndSpan(new[] { text, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 4908CreateCompilationWithMscorlibAndSpan(new[] { text, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 4955CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 4985var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5009var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5033var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5083var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5133var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5185var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5212var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5279CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 5318var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 5368CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 5412CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 5442CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 5470CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 5500var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 5554var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.NetCoreApp); 5589var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.NetCoreApp); 5633CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 5688var compilation = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 5773var compilation = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 5888var compilation = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 5944CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(); 5975var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 6014CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 6052var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 6089var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 6126CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics( 6156CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(); 6199CreateCompilationWithMscorlibAndSpan(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)); 6340var 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( 6671CreateCompilation(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(); 8225var comp = CreateCompilation(new[] { source0, source1 }, parseOptions: TestOptions.Regular11); 8228comp = CreateCompilation(new[] { source0, source1 }, parseOptions: TestOptions.Regular10); 8232var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular10); 8235var comp1 = CreateCompilation(source1, references: new[] { comp0.ToMetadataReference() }, parseOptions: TestOptions.Regular11); 8238comp1 = CreateCompilation(source1, references: new[] { comp0.EmitToImageReference() }, parseOptions: TestOptions.Regular11); 8242comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular11); 8245comp1 = CreateCompilation(source1, references: new[] { comp0.ToMetadataReference() }, parseOptions: TestOptions.Regular10); 8248comp1 = CreateCompilation(source1, references: new[] { comp0.EmitToImageReference() }, parseOptions: TestOptions.Regular10); 9754""", TestOptions.Regular.WithLanguageVersion(languageVersion)); 9755var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 9841""", TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp11)); 9842var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll);
Semantics\RefExtensionMethodsTests.cs (5)
380}", options: TestOptions.ReleaseExe); 550}", options: TestOptions.ReleaseExe); 925}", options: TestOptions.ReleaseExe); 1526var compilation = CreateCompilationWithMscorlib40AndSystemCore(code, options: TestOptions.ReleaseExe); 1582var compilation = CreateCompilationWithMscorlib40AndSystemCore(code, options: TestOptions.ReleaseExe);
Semantics\RefFieldTests.cs (292)
85var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 126comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 150comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular11, targetFramework: TargetFramework.Net70); 167var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 197comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 211comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 236var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 271comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 285comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 564var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 602var comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 726var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 772var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 821var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 904var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1002var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1095var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1160var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1236var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1279comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1316var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1350var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1395var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1440var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1487var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll); 1488var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1543var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll); 1544var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1595var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll); 1596var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1651var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll); 1652var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1689var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 1727var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe); 1763var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 1799var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 1842var comp = CreateCompilation(source, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2056var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 2144var comp = CreateEmptyCompilation(new[] { sourceA }, parseOptions: TestOptions.Regular10); 2147comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular10); 2164comp = CreateEmptyCompilation(source, references: new[] { refA }, parseOptions: TestOptions.Regular10); 2178comp = CreateEmptyCompilation(source, references: new[] { refAB }, parseOptions: TestOptions.Regular10); 2289var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net70); 2503var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 2534var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugDll); 2585var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 2640var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2696var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2732var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2782var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2827var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 2847var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 2895var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3033var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3139var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3400var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3454var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3500var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3618var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3733var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3818var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4004var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4456var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4501var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4934var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 4961var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 4992var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular10); 5037var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5072var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 5346var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugDll); 5484CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(9), targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 5493CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(10), targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics); 6381var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 6786var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 7188comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 7313comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8328var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithFeature("peverify-compat"), targetFramework: TargetFramework.Net70); 8362var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8408var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8565var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8634var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8671var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8708var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8753var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8803var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8872var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8943var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9006var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9080var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9143var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9166var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9189var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9221var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9265var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9311var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9345var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9366var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9415var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9469var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9521var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9569var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9621var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9660var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9699var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9746var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9794var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 10097var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 10134var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 10157var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10, options: TestOptions.UnsafeReleaseDll); 10175comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 10201var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe, targetFramework: TargetFramework.Net70); 10240var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe, targetFramework: TargetFramework.Net70); 10280var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe, targetFramework: TargetFramework.Net70); 10319parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 10320options: (useUnsafe ? TestOptions.UnsafeReleaseExe : null)); 10363parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 10364options: (useUnsafe ? TestOptions.UnsafeReleaseExe : null)); 10417parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), 10418options: (useUnsafe ? TestOptions.UnsafeReleaseExe : null)); 10470var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 10566options: (useUnsafe ? TestOptions.UnsafeReleaseDll : null)); 10597var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10619var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 10633comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 10650var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 10664comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 10684var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 10701comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 10743var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 10760comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 10799var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA), options: TestOptions.UnsafeReleaseDll); 10812comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB), options: TestOptions.UnsafeReleaseDll); 10841var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 10854comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 10874var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10); 10949var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10992var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11063var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular10); 11142var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11180var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, options: TestOptions.UnsafeReleaseExe); 11203comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 11546var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 11644var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 11669var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 11711var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 11739var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp10)); 11785var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp11)); 11835var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 11869var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 11905var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 12030var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 12109var comp = CreateCompilation(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 12177var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 12262var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 12479var comp = CreateCompilation(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 12658var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 12889var comp = CreateCompilation(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 13122var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 13177var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 13239var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 13289var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 13329var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 13353var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 13377var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 13399var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 13432comp = CreateCompilation(source, parseOptions: TestOptions.RegularDefault.WithFeature("run-nullable-analysis", "never")); 13496comp = CreateCompilation(source, parseOptions: TestOptions.RegularDefault.WithFeature("run-nullable-analysis", "never")); 13572comp = CreateCompilation(source, parseOptions: TestOptions.RegularDefault.WithFeature("run-nullable-analysis", "never")); 13643comp = CreateCompilation(source, parseOptions: TestOptions.RegularDefault.WithFeature("run-nullable-analysis", "never")); 14338var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 14380var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 14575var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 14675var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 14727var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 14965var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 15029var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 15072var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 15125comp = CreateCompilation(source, parseOptions: TestOptions.RegularDefault.WithFeature("run-nullable-analysis", "never")); 16813var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugExe); 16911var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 16944var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 16976var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 17858var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 18074var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 18245var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net70); 18827var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugDll); 18849var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 20009var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 20068var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50); 20129var comp = CreateCompilation(sourceB, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 20160var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 20198var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 20229var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 20251var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 20326var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 20333comp = CreateCompilation(source, parseOptions: TestOptions.Regular11, targetFramework: TargetFramework.Net70); 20354var lib = CreateCompilation(lib_cs, parseOptions: TestOptions.Regular11, targetFramework: TargetFramework.Net70); 20356var comp = CreateCompilation(source, references: new[] { lib.EmitToImageReference() }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 20369comp = CreateCompilation(source, references: new[] { lib.EmitToImageReference() }, parseOptions: TestOptions.Regular10); 20415var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 21045var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 21159var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 21211var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 21244var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 21334var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net70); 21456var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net70); 21458comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 21786var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 22195var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 22202comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 22216var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 22219comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 22251var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 22264comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 22284var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 22294comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 22311var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 22318comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 24635var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net50, options: TestOptions.ReleaseDll); 24663var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 24700var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 24706comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 24736var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 24784var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA), options: TestOptions.UnsafeReleaseDll); 24790comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 24826var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 24883var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 24896comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 24934var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 24955comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 25040comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 25061var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 25082comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 25120var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular); 25138comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular10); 25165comp = CreateCompilation(new[] { sourceB2, UnscopedRefAttributeDefinition }, references: new[] { refA }, parseOptions: TestOptions.Regular); 25198var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular); 25216comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 25269var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 25385var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular); 25411comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 25457comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB)); 26532var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: targetFramework); 26591var comp = CreateCompilation(assemblyIdentity, new[] { source0 }, references: null, parseOptions: TestOptions.Regular10); 26599comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 26608comp = CreateEmptyCompilation(source2, references: new[] { ref0, ref1 }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 26648var comp = CreateCompilation(assemblyIdentityLowerVersion, new[] { source0 }, references: null, parseOptions: TestOptions.Regular10); 26652comp = CreateCompilation(assemblyIdentityHigherVersion, new[] { source0 }, references: null, parseOptions: TestOptions.Regular10); 26660comp = CreateEmptyCompilation(source1, references: new[] { refLowerVersion }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 26675comp = CreateEmptyCompilation(source2, references: new[] { refHigherVersion, ref1 }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 26716var comp = CreateCompilation(assemblyIdentity, new[] { source0 }, references: null, parseOptions: TestOptions.Regular10); 26724comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular10); 26781var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, options: TestOptions.ReleaseDll); 26833var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, options: TestOptions.ReleaseDll); 26885var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, options: TestOptions.ReleaseDll); 27012var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 27102var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 27186var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 27287var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 27396comp = CreateCompilation(source, parseOptions: TestOptions.RegularDefault.WithFeature("run-nullable-analysis", "never")); 27456comp = CreateCompilation(source, parseOptions: TestOptions.RegularDefault.WithFeature("run-nullable-analysis", "never")); 27676var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 27724var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 28099var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugExe); 28248var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugDll); 28317var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeReleaseExe); 28550var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe); 28618var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe); 28810var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe); 29763var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 29819var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeReleaseDll); 29851var comp = CreateCompilationWithSpan(source, options: TestOptions.UnsafeReleaseDll); 30019var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 30089var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 30245var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 30296var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 30330options: TestOptions.DebugExe.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), 30384options: TestOptions.DebugExe.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), 30452options: TestOptions.DebugExe.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), 30515options: TestOptions.DebugExe.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings),
Semantics\RefLocalsAndReturnsTests.cs (45)
585var comp = CreateCompilationWithMscorlibAndSpan(new[] { source, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 781var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 835}", options: TestOptions.UnsafeDebugDll); 1091}", options: TestOptions.Regular7_1); 1295CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 1307CreateCompilation(source, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 1336CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 1343CompileAndVerify(source, parseOptions: TestOptions.Regular13, expectedOutput: expectedOutput).VerifyDiagnostics(); 1902var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 2446var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 2529var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 2677var options = TestOptions.Regular; 2719var options = TestOptions.Regular; 3191CreateCompilation(code, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3199CreateCompilation(code, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 3227CreateCompilation(code, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3234CompileAndVerify(code, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 3256CreateCompilation(code, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3268CreateCompilation(code, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 3298CompileAndVerify(code, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net70, verify: Verification.FailsPEVerify).VerifyDiagnostics(); 3299CompileAndVerify(code, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net70, verify: Verification.FailsPEVerify).VerifyDiagnostics(); 3329CreateCompilation(code, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics); 3330CreateCompilation(code, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics); 3352CreateCompilation(code, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3360CreateCompilation(code, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 3386CreateCompilation(code, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3393CompileAndVerify(code, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular13).VerifyDiagnostics(); 3416CreateCompilation(code, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3428CreateCompilation(code, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 3454CreateCompilation(code, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 3461CompileAndVerify(code, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net70, verify: Verification.FailsPEVerify).VerifyDiagnostics(); 3484CreateCompilation(code, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 3496CreateCompilation(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( 4965var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.RegularDefault.WithLanguageVersion(langVersion)); 5018var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.RegularDefault.WithLanguageVersion(langVersion)); 5239var comp = CreateCompilation(code, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5278var comp = CreateCompilation(code, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script);
Semantics\ScriptSemanticsTests.cs (43)
99parseOptions: TestOptions.Script, 100options: TestOptions.DebugExe, 116parseOptions: TestOptions.Script, 117options: TestOptions.DebugExe, 141parseOptions: TestOptions.Script.WithNoRefSafetyRulesAttribute(), 142options: TestOptions.DebugExe.WithUsings("Hidden"), 161parseOptions: TestOptions.Script, 162options: TestOptions.DebugExe.WithUsings("Hidden"), 190parseOptions: TestOptions.Script, 191options: TestOptions.DebugExe, 209parseOptions: TestOptions.Script, 210options: TestOptions.DebugExe.WithUsings("Hidden"), 235var compilation = CreateCompilationWithMscorlib461(test, parseOptions: TestOptions.Script); 263var tree = SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.Script); 265var compilation = CreateCompilationWithMscorlib461(new[] { tree }, options: TestOptions.ReleaseExe.WithScriptClassName("Script")); 286var tree = SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.Script); 288var compilation = CreateCompilationWithMscorlib461(new[] { tree }, options: TestOptions.ReleaseExe.WithScriptClassName("Script")); 298var submission = CSharpCompilation.CreateScriptCompilation("test", syntaxTree: SyntaxFactory.ParseSyntaxTree("1", options: TestOptions.Script), returnType: typeof(int)); 365var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.Script); 369options: TestOptions.ReleaseExe.WithScriptClassName("Goo.Script"), 396var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.Script); 400options: TestOptions.ReleaseExe.WithScriptClassName("Goo.Script"), 443var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.Script); 447options: TestOptions.ReleaseExe.WithScriptClassName("Script")); 485var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp6)); 489options: TestOptions.ReleaseExe.WithScriptClassName("Script")); 519var tree = Parse(source, options: TestOptions.Script); 535var tree = Parse(source, options: TestOptions.Script); 627var compilation = CreateCompilationWithMscorlib461(new[] { Parse(source, options: TestOptions.Script) }); 640var compilation = CreateCompilationWithMscorlib461(new[] { Parse(source, options: TestOptions.Script) }); 652var compilation = CreateCompilationWithMscorlib461(new[] { Parse(source, options: TestOptions.Script) }); 1134var tree = Parse(source, options: TestOptions.Script); 1154var tree = Parse(source, options: TestOptions.Script); 1193compilation = CreateCompilationWithMscorlib461(new[] { syntaxTree }, options: TestOptions.ReleaseExe.WithScriptClassName("Script")); 1208compilation = CreateCompilationWithMscorlib461(new[] { syntaxTree }, options: TestOptions.ReleaseExe); 1217compilation = CreateCompilationWithMscorlib461(new[] { syntaxTree }, options: TestOptions.ReleaseExe.WithScriptClassName("Script")); 1226compilation = CreateCompilationWithMscorlib461(new[] { syntaxTree }, options: TestOptions.ReleaseExe.WithScriptClassName("")); 1238compilation = CreateCompilationWithMscorlib461(new[] { syntaxTree }, options: TestOptions.ReleaseExe.WithScriptClassName(null)); 1250compilation = CreateCompilationWithMscorlib461(new[] { syntaxTree }, options: TestOptions.ReleaseExe.WithScriptClassName("a\0b")); 1322compilation = CreateCompilationWithMscorlib461(new[] { syntaxTree }, options: TestOptions.ReleaseExe.WithScriptClassName("Script1")); 1352compilation = CreateCompilationWithMscorlib461(new[] { syntaxTree }, options: TestOptions.ReleaseExe.WithScriptClassName("Script1")); 1373parseOptions: TestOptions.Script, 1374options: TestOptions.DebugExe,
Semantics\SemanticAnalyzerTests.cs (1)
82CreateCompilation(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
Semantics\SemanticErrorTests.cs (117)
1385new[] { SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.Script) }); 2115var comp = CreateCompilation(text, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(new Dictionary<string, ReportDiagnostic>() 2215CreateCompilation(text, parseOptions: TestOptions.Regular7, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics( 2436}", parseOptions: TestOptions.Regular6) 2729CreateCompilation(test, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2793CreateCompilation(test, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2813CreateCompilation(test, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2929CreateCompilation(source, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 2937CreateCompilation(source, parseOptions: TestOptions.Regular).VerifyDiagnostics( 4002var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7_3); 4293var comp = CreateCompilation(text, parseOptions: TestOptions.Regular6); 4727CreateCompilation(text, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 4755CreateCompilation(text, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 6463var comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 6476var verifier = CompileAndVerify(text, parseOptions: TestOptions.Regular11); 6542CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 6979CreateCompilation(text, parseOptions: TestOptions.Regular10). 6988var verifier = CompileAndVerify(text, parseOptions: TestOptions.Regular11). 7027CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 7035CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 7061CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 7069CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 7100CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 7105var verifier = CompileAndVerify(source, new[] { CSharpRef }, parseOptions: TestOptions.Regular11); 7174CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 7179var verifier = CompileAndVerify(source, new[] { CSharpRef }, parseOptions: TestOptions.Regular11); 7482var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7571CreateCompilation(text, options: TestOptions.ReleaseDll).VerifyDiagnostics( 7576CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyDiagnostics( 7643CreateCompilation(text, options: TestOptions.ReleaseDll.WithNullableContextOptions(nullableContextOptions), parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyDiagnostics(); 7859CreateCompilation(text, parseOptions: TestOptions.Regular.WithTuplesFeature()).VerifyDiagnostics( 7892var comp = CreateCompilation(new[] { Parse(test, options: TestOptions.Regular6) }, new MetadataReference[] { }); 8144CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8194CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8237CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8308CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8333CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8362CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8854CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8890CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8979CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9079CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9103CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9127CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9403CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 10535CreateCompilation(text, parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyDiagnostics( 10565CreateCompilation(text, parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyDiagnostics( 10961CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 11040CreateCompilation(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( 12278CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 12321", parseOptions: TestOptions.Script).VerifyDiagnostics( 12332", parseOptions: TestOptions.Script).VerifyDiagnostics( 12345", parseOptions: TestOptions.Script).VerifyDiagnostics( 12810CreateCompilation(text, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics( 12976CreateCompilation(text, parseOptions: TestOptions.Regular10) 12982var verifier = CompileAndVerify(text, parseOptions: TestOptions.Regular11); 14209CreateCompilation(text, parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyDiagnostics( 15333CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 15361CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 15362CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 15466CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15833CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 16011CreateCompilation(text, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular7_2).VerifyDiagnostics( 16051CreateCompilation(text, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics( 16098var c = CompileAndVerify(text, expectedOutput: "7788", verify: Verification.Fails, options: TestOptions.UnsafeReleaseExe); 16425CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 16455CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 16484CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 16549CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 16741var comp = CreateCompilation(text, parseOptions: TestOptions.Regular6); 16952CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 17473CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 18393CreateCompilation(source, options: TestOptions.DebugExe.WithWarningLevel(5)).VerifyDiagnostics(); 18448var comp = CreateCompilation(text, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 18542var comp = CreateCompilation(text, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 18568var comp = CreateCompilation(text, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 18782var comp = CreateCompilationWithMscorlib40AndSystemCore(source, new[] { CSharpRef }, options: TestOptions.UnsafeReleaseDll); 18830var comp = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll); 20208CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 21091this.CompileAndVerify(source: text, expectedOutput: expected, options: TestOptions.ReleaseExe.WithWarningLevel(4)).VerifyDiagnostics(compatibleExpected); 21579var compilation = CreateCompilation(text, targetFramework: TargetFramework.Mscorlib461, options: TestOptions.DebugExe); 21583var result = compilation.Emit(exebits, pdbbits, options: TestOptions.NativePdbEmit); 21900new[] { Parse(text, options: TestOptions.RegularWithDocumentationComments) }, 21901options: TestOptions.ReleaseDll.WithXmlReferenceResolver(null)); 22579CreateCompilationWithMscorlib40(source, references: new[] { Net40.References.SystemCore }, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 22592CreateCompilationWithMscorlib40(source, references: new[] { Net40.References.SystemCore }, options: TestOptions.ReleaseDll.WithNullableContextOptions(NullableContextOptions.Disable)).VerifyDiagnostics( 22640CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 22663CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 22686CompileAndVerifyWithMscorlib40(source, expectedOutput: "True", references: new[] { Net40.References.SystemCore }, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 23093CreateCompilation(source, parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyDiagnostics( 23172CreateCompilation(source, parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyDiagnostics( 23620CreateCompilation(builder.ToString(), null, TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress)).VerifyEmitDiagnostics( 24132CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5)).VerifyDiagnostics( 24258CreateCompilationWithMscorlib461(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 24290CreateCompilationWithMscorlib461(text, new[] { NetFramework.System, NetFramework.SystemCore, NetFramework.MicrosoftCSharp }, options: TestOptions.ReleaseDll).VerifyDiagnostics( 24492var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe); 24555parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5)).VerifyDiagnostics( 24589parseOptions: TestOptions.Regular).VerifyDiagnostics( 24612CreateCompilationWithMscorlib461(text, options: TestOptions.ReleaseDll).VerifyDiagnostics( 24658CreateCompilationWithMscorlib461(text, options: TestOptions.ReleaseDll).VerifyDiagnostics( 24799CreateCompilationWithMscorlib40AndSystemCore(text, parseOptions: TestOptions.RegularWithRecursivePatterns).VerifyDiagnostics( 24831var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll);
Semantics\SpanStackSafetyTests.cs (43)
529var comp = CreateCompilationWithMscorlibAndSpan(new[] { text, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular10); 728CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.ReleaseExe); 792CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.ReleaseExe); 853CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.ReleaseExe); 911CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.ReleaseExe); 990CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 1006CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 1054CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 1061var comp = CreateCompilationWithMscorlibAndSpan(text, TestOptions.ReleaseExe, TestOptions.Regular13); 1064comp = CreateCompilationWithMscorlibAndSpan(text, TestOptions.ReleaseExe); 1132CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 1147CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(expectedDiagnostics); 1201CreateCompilationWithMscorlibAndSpan(text, TestOptions.ReleaseExe, TestOptions.Regular12).VerifyDiagnostics( 1208var comp = CreateCompilationWithMscorlibAndSpan(text, TestOptions.ReleaseExe, TestOptions.Regular13); 1211comp = CreateCompilationWithMscorlibAndSpan(text, TestOptions.ReleaseExe); 1394comp = CreateCompilationWithMscorlibAndSpan(text, TestOptions.DebugExe); 1755comp = CreateCompilationWithMscorlibAndSpan(text, TestOptions.DebugExe); 1805comp = CreateCompilationWithMscorlibAndSpan(text, TestOptions.DebugExe); 1827CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 1834var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular13); 1930options: TestOptions.ReleaseDll); 1947options: TestOptions.ReleaseExe); 1964options: TestOptions.ReleaseDll); 1981options: TestOptions.ReleaseExe); 2008options: TestOptions.UnsafeReleaseDll); 2025options: TestOptions.ReleaseExe); 2049options: TestOptions.UnsafeReleaseDll); 2066options: TestOptions.ReleaseExe); 2202var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseExe); 2238var 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)); 2621CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.DebugExe); 2646CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.DebugExe); 2671CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.DebugExe); 2701CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.DebugExe); 2724CSharpCompilation 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); 597CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular7_3) 618CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular8) 646CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular7_3) 658CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular8) 695CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular7_3) 707CreateCompilationWithMscorlibAndSpan(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( 1535CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 1564CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 1593CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 1620CreateCompilation(test, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1648CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 1685CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 1716CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1727CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1749CreateCompilationWithMscorlibAndSpan(test, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1769CreateCompilationWithMscorlibAndSpan(test, TestOptions.ReleaseDll).VerifyDiagnostics( 1793CreateCompilationWithMscorlibAndSpan(test, TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1804CreateCompilationWithMscorlibAndSpan(test, TestOptions.UnsafeReleaseExe).VerifyDiagnostics( 1894CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1931CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1942CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1959CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 2010}", TestOptions.ReleaseDll).VerifyDiagnostics(); 2119CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2283CreateCompilation(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(); 345CreateCompilationWithMscorlibAndSpan(source, TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 353CreateCompilationWithMscorlibAndSpan(source, TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 373}", options: TestOptions.UnsafeReleaseDll, parseOptions: parseOptions).VerifyDiagnostics( 393}", options: TestOptions.UnsafeReleaseDll, parseOptions: parseOptions).VerifyDiagnostics( 412}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 432CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 453CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 471CreateCompilation(test, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 490CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 512CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 517CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 540CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 545CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 561CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 566CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 588CreateCompilationWithMscorlibAndSpan(test, TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 593CreateCompilationWithMscorlibAndSpan(test, TestOptions.UnsafeReleaseExe).VerifyDiagnostics( 648CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 653CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 671CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 691CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 722}", TestOptions.ReleaseDll).VerifyDiagnostics(); 781CreateEmptyCompilation(code, references, TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 810CreateCompilationWithMscorlibAndSpan(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 836CreateCompilationWithMscorlibAndSpan(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
Semantics\StructConstructorTests.cs (81)
29var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 247comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 850TestOptions.Regular.WithLanguageVersion(languageVersion.Value); 1325var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 1470var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 1575var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 1661var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 1721var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 1973var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1985var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular11, expectedOutput: 2013var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2025var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular11, expectedOutput: "(, )"); 2074var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2086comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 2168var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 2282var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, options: TestOptions.ReleaseExe, verify: Verification.Skipped, expectedOutput: 2400var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 2464var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, options: TestOptions.ReleaseExe, verify: Verification.Skipped, expectedOutput: 2535var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2568comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 2580comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 2617var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2650comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 2662comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 2700var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 2712comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11); 2753var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 2765var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11, expectedOutput: 2855var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 2876var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11, expectedOutput: 2926var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 2947var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11, expectedOutput: 3004CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10, verify: Verification.Skipped, expectedOutput: expectedOutput); 3035var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 3111CompileAndVerify(source, options: TestOptions.ReleaseExe, verify: Verification.Skipped, expectedOutput: 3179var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: 3235comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Mscorlib461); 3276var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3297comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 3406var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular10); 3418comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11); 3770var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 3870var comp = CreateCompilation(source, parseOptions: TestOptions.Script, targetFramework: TargetFramework.NetCoreApp); 3889CreateCompilation(source, parseOptions: TestOptions.Regular10) 3895CreateCompilation(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), parseOptions: TestOptions.Regular11) 3901CreateCompilation(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(GetIdForErrorCode(ErrorCode.WRN_UnassignedThisSupportedVersion), ReportDiagnostic.Error), parseOptions: TestOptions.Regular11) 3907var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular11); 3940var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe); 3978CreateCompilation(source, parseOptions: TestOptions.Regular10) 3990CreateCompilation(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), parseOptions: TestOptions.Regular11) 4015var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4021var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), parseOptions: TestOptions.Regular11); 4055var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4064var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), parseOptions: TestOptions.Regular11); 4171var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 4202var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings)); 4241var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings)); 4274var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings)); 4309var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings)); 4349var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings)); 4399var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings)); 4443var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings)); 4486var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings)); 4527var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings)); 4549var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings)); 4591var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings)); 4622verifier = CompileAndVerify(source, options: TestOptions.DebugDll); 4699var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular10); 4709var verifier = CompileAndVerify(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular11); 4739var verifier = CompileAndVerify(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 4771var verifier = CompileAndVerify(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 4827var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4870var comp = CreateCompilation(source, options: TestOptions.ReleaseExe);
Semantics\StructsTests.cs (8)
30CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 59CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 86CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 117var comp = CreateCompilation(text, options: TestOptions.DebugExe); 379TestOptions.ReleaseDll); 384TestOptions.ReleaseDll); 638CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 669var 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)
79CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 114CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 150CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 192CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 255CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 331CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 365CreateCompilation(text, parseOptions: TestOptions.Regular7_1).VerifyDiagnostics( 396CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 437CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 462CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 492CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 522CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 550CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 593CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 633CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 675CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 725CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 779CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 832CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 887CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics(); 920CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 959CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1001CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1037CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1083CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1202CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics(); 1243CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics(); 1293CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics(); 1336CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics(); 1374CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics(); 1417CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics(); 1461CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1511CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1562CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1615CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1666CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1717CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1768CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1825CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1883CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1943CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2000CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2067CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2106CompileAndVerify(text, parseOptions: TestOptions.Regular6, expectedOutput: "a1"); 2142CompileAndVerify(text, parseOptions: TestOptions.Regular6, expectedOutput: "a2"); 2179CompileAndVerify(text, parseOptions: TestOptions.Regular6, expectedOutput: 2227CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2267CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2304CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2359CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2395CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions: TestOptions.Script).VerifyDiagnostics( 2419syntaxTree: SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.Script), 2462CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2519CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2579CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2613CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2682CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2714CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2719CreateCompilation(text, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 2724CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics(); 2749CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2753CreateCompilation(text, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(); 2754CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics(); 2780CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2821CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp2)).VerifyDiagnostics(); 2822CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp1)).VerifyDiagnostics( 2912CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2945CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics(); 2946CreateCompilation(text, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics();
Semantics\SyntaxTreeRootTests.cs (1)
73options: TestOptions.Script);
Semantics\TargetTypedConditionalOperatorTests.cs (35)
183source, options: TestOptions.ReleaseExe, 184parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)) 208source, options: TestOptions.ReleaseExe, 209parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)) 230source, options: TestOptions.ReleaseExe, 231parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)) 266source, options: TestOptions.ReleaseExe, 267parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)) 329parseOptions ??= TestOptions.Regular; 333var comp = CreateCompilation(tree, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 412var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.DebugExe) 415comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()), options: TestOptions.DebugExe) 432CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.DebugDll.WithAllowUnsafe(true)) 434CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()), options: TestOptions.DebugDll.WithAllowUnsafe(true)) 451CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.DebugDll) 453CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()), options: TestOptions.DebugDll) 490CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp3), expectedOutput: expectedOutput); 491CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()), expectedOutput: expectedOutput); 525CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp3)).VerifyDiagnostics(expectedDiagnostics); 526CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion())).VerifyDiagnostics(expectedDiagnostics); 556CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp3), expectedOutput: expectedOutput); 557CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()), expectedOutput: expectedOutput); 587CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp3), expectedOutput: expectedOutput); 588CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()), expectedOutput: expectedOutput); 613CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3)).VerifyDiagnostics(); 614CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion())).VerifyDiagnostics(); 639CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3)).VerifyDiagnostics( 647CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion())).VerifyDiagnostics( 707var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8);
Semantics\TargetTypedDefaultTests.cs (193)
31var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 66var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular7); 117var comp = CreateCompilation(source, options: TestOptions.DebugExe); 136var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 167var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 189var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 219var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 236var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 273var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 312var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 353var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 413var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 457var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 487var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 509var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 552var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 595var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.DebugExe); 637var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 660var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular7_1); 692var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 713var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 734var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 778var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 813var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 830var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 859var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 889var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 910var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 928var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 946var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 967var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 994var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 1013var comp2 = CreateCompilation(source, parseOptions: TestOptions.Regular7); 1057var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 1077var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 1107var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 1134var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 1163var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 1192var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 1228var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 1246var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 1362var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 1365var comp2 = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 1468var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 1471var comp2 = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 1571var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 1574var comp2 = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 1593var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 1621var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 1624var comp2 = CreateCompilation(source, parseOptions: TestOptions.Regular7_3, options: TestOptions.DebugExe); 1714validateLangVer(modifier, type, value, equal, semanticType, TestOptions.Regular7_2, diagnostics); 1715validateLangVer(modifier, type, value, equal, semanticType, TestOptions.Regular, diagnostics); 1721var comp = CreateCompilation(source, parseOptions: parseOptions, options: TestOptions.DebugExe); 1787var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3, options: TestOptions.DebugExe); 1858var comp = CreateCompilation(source, parseOptions: TestOptions.Regular, options: TestOptions.DebugExe); 1903var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 1939var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 1968var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2007var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2053var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2079var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2108var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2144var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2177var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2203var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 2227var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 2250var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2270var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 2287var comp = CreateCompilationWithMscorlib40(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe, 2307var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2326var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2359var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 2381var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 2407var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2449var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2477var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 2503var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 2524var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2549var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2575var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 2591var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 2609var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2628var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 2653var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, references: new[] { CSharpRef }, options: TestOptions.DebugExe); 2671var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2696var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3, options: TestOptions.DebugExe); 2722CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_1) 2743var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2768var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular7_1); 2792var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2810var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular7_1); 2833var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2855var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugDll); 2880var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7_1); 2903var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugDll); 2926var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugDll); 2962var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3012var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 3028var comp = CreateCompilationWithMscorlib40AndSystemCore(text, parseOptions: TestOptions.Regular7_1); 3049var comp = CreateCompilationWithMscorlib40AndSystemCore(text, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3078var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3100var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3129var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3161var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3193var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3225var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3254var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3274var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3295var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 3330var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 3369var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 3406var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3428var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3447var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3467var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3487var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3506var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3547var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3568var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3623var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 3705var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3743var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1);
Semantics\TopLevelStatementsTests.cs (273)
29private static CSharpParseOptions DefaultParseOptions => TestOptions.Regular9; 43var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 77var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 105var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 113comp = CreateCompilation(new[] { text1, text2, text3 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 140var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 161var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 164comp = CreateCompilation(new[] { text2, text1 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 177var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 183comp = CreateCompilation(text1, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Enable), parseOptions: DefaultParseOptions); 278var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 293comp = CreateCompilation(new[] { text2, text1 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 308comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Enable), parseOptions: DefaultParseOptions); 434var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 455comp = CreateCompilation(new[] { text2, text1 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 524var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 562var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 611var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular8); 690var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 736var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 780var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 812var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 825var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 838var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 859var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 909var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 930var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 955var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 970var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1002var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1015var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1028var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1055var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1073var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1101var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1116var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1123comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular12); 1130comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular13); 1133comp = CreateCompilation(text, options: TestOptions.DebugExe); 1159var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1186var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1208var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1251var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1269var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1286var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1302var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1316comp = CreateCompilation(new[] { "System.Console.WriteLine();", text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1346var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1360comp = CreateCompilation(new[] { "System.Console.WriteLine();", text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1395var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1413comp = CreateCompilation(new[] { text2, text1 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1446var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1465comp = CreateCompilation(new[] { text2, text1 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1500var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1541var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1587var comp = CreateCompilation(new[] { text1, text2, text3 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1649var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1822var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1976var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1979comp = CreateCompilation(text1 + text2, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1983Parse(text1, filename: "text2", TestOptions.Regular6) }, 1984options: TestOptions.DebugExe)); 1986comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7); 2043var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2207var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2357var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2360comp = CreateCompilation(text1 + text2, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2363comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7); 2409var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2554var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2573var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2604var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2629var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2690var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2775var comp = CreateCompilation(text, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2832var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2860var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2894var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3008var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3070var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3133var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3200var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3264var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3326var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3389var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3456var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3520var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3582var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3645var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3712var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3776var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3844var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3912var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4061var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4161var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4186var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4207var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4289var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4311var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4363var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4451var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4468var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4492var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4531var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4559var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4597var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4611var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4639var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4656var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4672var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4692var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4707var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4725var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4748var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4763var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4777var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4798var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4819var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4840var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4865var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4885var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4917var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4938var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4970var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5003var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5031var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5061var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5093var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5123var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5149var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5185var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5224var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5280var comp = CreateCompilation(new[] { text1, text4 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5317var comp = CreateCompilation(text, options: TestOptions.DebugExe.WithMainTypeName("Program2"), parseOptions: DefaultParseOptions); 5344var comp = CreateCompilation(text, options: TestOptions.DebugExe.WithMainTypeName(""), parseOptions: DefaultParseOptions); 5368var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5388var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5409var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5430var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5454var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5479var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5506var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5534var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5561var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5589var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5613var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5638var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5665var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5679var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5698var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5719var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5743var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5769var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5790var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5811var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5832var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5853var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5873var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5897var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5915var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5939var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5962var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5999var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6078options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 6149options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 6223var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6264var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6307var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6357var comp = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6396var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6407comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6501var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6510comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6558var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6573comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6679var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6690comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6766var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6775comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6824var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6833comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6882var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6891comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6950var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6959comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7029var comp = CreateCompilation(text1 + text2, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7037comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7142var comp = CreateCompilation(text1 + text2 + text3, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7151comp = CreateCompilation(new[] { text1, text2, text3 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7236var comp = CreateCompilation(text1 + text2, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7245comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7309var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7319comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7376var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7386comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7443var comp = CreateEmptyCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7465var comp = CreateCompilation(text, targetFramework: TargetFramework.Minimal, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7488var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7510var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7548var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7574var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7605var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7623var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7670var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7717var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7786var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7851var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7874var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7893var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7912var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7932var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7950var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7972var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7992var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8011var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8029var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8049var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8061var comp = CreateCompilation(text, options: TestOptions.DebugDll, parseOptions: DefaultParseOptions); 8074var comp = CreateCompilation(text, options: TestOptions.ReleaseModule, parseOptions: DefaultParseOptions); 8190var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8208var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8221var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8230var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8244var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8258var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8272var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8299var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8316var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8333var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8350var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8397var comp = CreateCompilation(text, options: TestOptions.DebugExe.WithOverflowChecks(true), parseOptions: DefaultParseOptions); 8442var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugExe, parseOptions: DefaultParseOptions); 8458var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugExe, parseOptions: DefaultParseOptions); 8485var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8515var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8537var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8556var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8571var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8604var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8624var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8636var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8713", options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8733", options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8766var oldTree = Parse(text: text1, options: TestOptions.RegularDefault); 8789using var lexer = new Syntax.InternalSyntax.Lexer(newText, TestOptions.RegularDefault); 8794var tree = CSharpSyntaxTree.Create(compilationUnit, TestOptions.RegularDefault, path: "", Encoding.UTF8, SourceHashAlgorithms.Default); 8798var fullParseTree = Parse(text: text2, options: TestOptions.RegularDefault); 8827", options: TestOptions.ReleaseExe); 8886", options: TestOptions.ReleaseExe); 8951var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8968var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8985var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8997var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 9010var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 9028var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 9046var comp = CreateCompilation(text, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All)); 9101var comp = CreateCompilation(text, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All)); 9495var comp = CreateCompilation(text, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All)); 9534var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 9551var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 9571var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 9675var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 9766var comp = CreateCompilation(new[] { src1, src2 }, options: TestOptions.ReleaseExe); 9769comp = CreateCompilation(new[] { src2, src1 }, options: TestOptions.ReleaseExe); 9794var comp = CreateCompilation(new[] { src1, src2 }, options: TestOptions.ReleaseExe); 9797comp = CreateCompilation(new[] { src2, src1 }, options: TestOptions.ReleaseExe); 9822var comp = CreateCompilation(new[] { src1, src2 }, options: TestOptions.ReleaseExe); 9825comp = CreateCompilation(new[] { src2, src1 }, options: TestOptions.ReleaseExe);
Semantics\TryCatchTests.cs (1)
157CompileAndVerify(source, options: TestOptions.DebugDll).VerifyDiagnostics(
Semantics\UninitializedNonNullableFieldTests.cs (42)
87var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 107var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7, skipUsesIsNullable: true); 265var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 299var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 328var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 362var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 389var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 812var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 856var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular10); 874var verifier = CompileAndVerify(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular11); 983var comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 1052var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 1065var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular11); 1218var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1258var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1283var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1303var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1323var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1350var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1380var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1406var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1436var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1446comp = CreateCompilation(new[] { source }, options: WithNullableDisable(), parseOptions: TestOptions.Regular8); 1457comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 1487var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1521var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1555var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1589var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1612var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1647var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1694var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1734var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1755var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1782var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1797var verifier = CompileAndVerify(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular11); 1846var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1865var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1888var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1903var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 2078var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 2244var comp = CreateCompilation(new[] { source, MemberNotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.RegularPreview); 2313var comp = CreateCompilation(new[] { source, MemberNotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.RegularPreview);
Semantics\UnsafeTests.cs (758)
59options: TestOptions.UnsafeDebugDll); 78options: TestOptions.UnsafeDebugDll); 106CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 123CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 144CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 170CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 186CreateCompilation(text, options: TestOptions.UnsafeReleaseDll.WithAllowUnsafe(false)).VerifyDiagnostics( 190CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 205CreateCompilation(text, options: TestOptions.UnsafeReleaseDll.WithAllowUnsafe(false)).VerifyDiagnostics( 209CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 239compilationOptions: TestOptions.UnsafeReleaseDll.WithAllowUnsafe(false), 246CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 262CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 278CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 283CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 284CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 301CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 306CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 307CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 324CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 329CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 330CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 348CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 353CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 354CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 379CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 397CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 398CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 421CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 445CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 446CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 468CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 492CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 493CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 513CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 535CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 559CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 583CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 610CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics( 619CompileAndVerify(code, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 620CompileAndVerify(code, expectedOutput: expectedOutput, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 639CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 644CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 645CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 664CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 676CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 677CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 702var comp = CreateCompilationWithTasksExtensions(code, options: TestOptions.UnsafeReleaseExe); 754CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 755CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 811CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 812CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 813CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 853CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 873CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 878CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 879CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 900CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 905CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 906CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 924CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 936CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 937CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 955CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(); 964CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 965CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 983CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(); 984CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 985CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 1006CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(); 1015CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 1016CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1034CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(); 1043CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 1044CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1066CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(); 1075CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 1076CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1098CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics(); 1107CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 1108CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1126CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 1138CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 1139CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1157CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1158CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1159CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1179CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1180CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1181CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1202CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1203CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1204CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1227CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1228CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1229CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1245CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1246CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1247CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1263CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1268CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1269CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1292CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1293CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1294CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1309CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1329CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1348CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1366CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1389CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1390CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1415CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1416CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1437CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1438CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1439CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1462CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1463CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1464CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1485CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1486CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1487CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1510CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1511CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1512CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1528CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1529CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1530CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1546CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1551CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1552CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1575CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1576CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1577CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1592CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1611CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1634CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1635CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1657CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1658CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1659CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1683CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1684CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1685CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1707CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1708CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1709CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1736CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1737CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1738CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1755CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1756CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1757CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1774CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1779CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1780CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1804CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1805CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1806CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1822CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1848CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1877CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1878CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1905CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1906CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1928CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1929CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1930CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1954CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1955CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1956CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 1978CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1979CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1980CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2007CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2008CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2009CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2026CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2027CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2028CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2045CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2050CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2051CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2075CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2076CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2077CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2093CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2119CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2148CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2149CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2176CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2177CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 2196CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2197CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2198CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2216CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2217CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2218CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2240CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2241CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2242CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2263CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2264CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2265CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2282CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2283CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2284CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2301CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics( 2306CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2307CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2328CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2329CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2330CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2343CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics( 2363CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2387CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2388CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2401CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2402CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2403CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2423CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2424CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2425CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2441CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2442CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2443CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(); 2463CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2464CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2465CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2488CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2489CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2490CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2516CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2517CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2518CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2541CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2552CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2553CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2576CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2577CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2578CreateCompilation(code, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics); 2595CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 2596CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 2597CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 2620CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2643var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 3181CreateCompilation(withoutUnsafe, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3193CreateCompilation(withUnsafeOnType, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3198CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3213CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 3214CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 3217CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3231CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 3232CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics); 3249CreateCompilation(withoutUnsafe, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3256CreateCompilation(withUnsafeOnType, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 3259CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3265CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 3266CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 3269CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 3275CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 3276CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(); 3293CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3317CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3360CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3373CreateCompilation(text, options: TestOptions.UnsafeReleaseDll.WithAllowUnsafe(false)).VerifyDiagnostics( 3377CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 3395CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3419CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 4171CreateCompilation(withoutUnsafe, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedWithoutUnsafe); 4174CreateCompilation(withUnsafeOnType, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedWithUnsafe); 4177CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedWithUnsafe); 4180CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedWithUnsafe); 5188var compilation = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll); 5312var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 5379var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 5914var libComp = CreateCompilation(libSrc, options: TestOptions.UnsafeDebugDll); 5934var comp = CreateCompilation(src, options: TestOptions.UnsafeDebugDll, references: new[] { libComp.EmitToImageReference() }); 5993var comp = CreateCompilation(src, options: TestOptions.UnsafeDebugDll); 6144CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6170CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6194CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6218CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6248CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6264CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 6366var tree = SyntaxFactory.ParseSyntaxTree(code, TestOptions.Regular); 6367var compilation = CreateCompilation(tree, new[] { metadata }, TestOptions.UnsafeReleaseDll); 6414CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 6432CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 6474CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 6497CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6543CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6640CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6791CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6825CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6870CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6927CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6947CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6967CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 6986CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7007CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7029CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7052CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7073CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7096CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7120CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7147CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7169CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 7187CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7210CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7233CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 7253var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7290var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7319var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7357var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7395var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7436CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 7451CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7470CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7488CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7507CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7531var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7568CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 7585CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 7600CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7618CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7636CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7655CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7673CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7692CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7750CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7795CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7841var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7908var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7967CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7985CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8005CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8025CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8044CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8062CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8086}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 8107}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 8128}", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 8154var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8221var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8279var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8339var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8375var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8416CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8469CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 8519CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 8557CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8667CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8744CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8785CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8817CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 8851var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8905var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8943CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 8987CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9056CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9130CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 9151CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 9167CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9191CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 9211CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9249CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9274CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 9317var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 9374CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 9418CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9513CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9533CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9555CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9581CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9603CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9653CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9687CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9726CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9766CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9801CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9824CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 9828CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9855CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9900CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9936CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9956CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9986CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10008CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10037CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Skipped, expectedOutput: "42"); 10061CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 10091CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10121CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10143CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10173var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 10214var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 10286var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 10353CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10455CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 10456CreateCompilation(text, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 10478CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10509CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10560CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10828CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics); 10829CreateCompilation(text, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics); 10845CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 10927CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11024CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11057CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11080CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11113CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11166CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 11176CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 11197CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 11202CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 11220CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11241CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 11250CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Script).VerifyDiagnostics( 11264CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Script).VerifyDiagnostics( 11277CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Script).VerifyDiagnostics( 11301var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 11368CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(); 11381CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11407CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected); 11408CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected); 11420CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected); 11421CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected); 11455CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected); 11457CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedWithUnsafe); 11459CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected); 11461CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedWithUnsafe); 11465CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedWithUnsafe); 11511CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected); 11512CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected); 11539CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected); 11540CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected); 11568CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 11587CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 11604CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 11623CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 11674CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected); 11675CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected); 11696CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected); 11697CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected); 11721CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 11734CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 11745CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 11758CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 11785var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 11803var comp = CreateCompilation(tree, options: TestOptions.UnsafeReleaseDll); 11825var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseExe); 11851CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11873var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 11900var comp = CreateCompilation(tree, options: TestOptions.UnsafeReleaseDll); 11919var comp = CreateCompilation(text, options: TestOptions.ReleaseExe); 11936CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 11959CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 12041CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 12057CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 12080CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 12133var compilation = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails); 12250var compilation = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails); 12329CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails); 12412var comp1 = CompileAndVerify(s1, options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).Compilation; 12415options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, 12466options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails, 12511CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"246"); 12555CompileAndVerify(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( 12712var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12726var comp = CreateCompilation(csharp, options: TestOptions.DebugDll); 12746var comp = CreateCompilation(csharp, options: TestOptions.DebugDll); 12762var comp = CreateCompilation(csharp, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular11); 12781var comp = CreateCompilation(csharp, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular11); 12800var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 12816var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 12832var comp = CreateCompilation(csharp, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular11); 12851var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 12877var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12900var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12920var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12938var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12962var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12983var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12998var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13011var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13024var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13046var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13065var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13083var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13098var comp = CreateCompilation(csharp, options: TestOptions.DebugDll); 13117var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13136var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13157var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13183var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13203var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13228var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13247var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13265var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13274comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13300var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13309comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13329var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13332comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13348comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 13351comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular12); 13381var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13384comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13403comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 13406comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular12); 13423var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13432comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13444comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 13456comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular12); 13485var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13488comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13500comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 13503comp = CreateCompilation(csharp, parseOptions: TestOptions.RegularPreview); 13520var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13526comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13542comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 13545comp = CreateCompilation(csharp, parseOptions: TestOptions.RegularPreview); 13562var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13565comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13571comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 13577comp = CreateCompilation(csharp, parseOptions: TestOptions.RegularPreview); 13593var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 13599comp = CreateCompilation(csharp, parseOptions: TestOptions.RegularPreview); 13627var comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13660comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13718comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 13721comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 13745var comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13787comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13863comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 13866comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 13888var comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13900comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13906comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 13909comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 13932var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13939comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 13942comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview);
Semantics\UserDefinedConversionTests.cs (4)
1151var comp = CreateCompilation(source1 + source2 + source3 + source4 + source5, options: TestOptions.UnsafeReleaseDll); 1159var verifier = CompileAndVerify(source: source1 + source3 + source5, options: TestOptions.UnsafeReleaseExe, expectedOutput: ""); 1865var comp = CreateCompilation(code, options: TestOptions.UnsafeReleaseExe); 1910var comp = CreateCompilation(code, options: TestOptions.UnsafeReleaseExe);
Semantics\UseSiteErrorTests.cs (29)
1033options: TestOptions.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default)); 1047TestOptions.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default)); 1061TestOptions.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default)); 2260CSharpCompilationOptions options = TestOptions.UnsafeReleaseDll; 2305var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 2306var compilation1 = CreateEmptyCompilation(source1, parseOptions: parseOptions, options: TestOptions.ReleaseDll, references: new[] { MinCorlibRef }); 2322var compilation2 = CreateEmptyCompilation(source2, parseOptions: parseOptions, options: TestOptions.ReleaseDll, references: new[] { compilation1.EmitToImageReference(), MinCorlibRef }); 2333var compilation3 = CreateEmptyCompilation(source2, parseOptions: parseOptions, options: TestOptions.ReleaseDll, references: new[] { compilation1.ToMetadataReference(), MinCorlibRef }); 2344var compilation4 = CreateEmptyCompilation(source2, parseOptions: parseOptions, options: TestOptions.ReleaseDll, references: new[] { compilation1.EmitToImageReference() }); 2374var compilation5 = CreateEmptyCompilation(source2, parseOptions: parseOptions, options: TestOptions.ReleaseDll, references: new[] { compilation1.ToMetadataReference() }); 2389var compilation6 = CreateEmptyCompilation(source2, parseOptions: parseOptions, options: TestOptions.ReleaseDll, references: new[] { compilation1.EmitToImageReference(), MscorlibRef }); 2419var compilation7 = CreateEmptyCompilation(source2, parseOptions: parseOptions, options: TestOptions.ReleaseDll, references: new[] { compilation1.ToMetadataReference(), MscorlibRef }); 2484var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2494comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 }); 2511var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2520comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 }); 2536var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2545comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 }); 2563var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2590comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 }); 2610var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2632comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 }); 2652var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2667comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 }); 2692var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2707comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 }); 2736comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 }); 2750var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2767comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref1, UnmanagedUseSiteError_Ref2 });
Semantics\UsingDeclarationTests.cs (9)
385var compilation = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics(); 409var compilation = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics(); 435var compilation = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics(); 824var compilation = CreateCompilationWithTasksExtensions(source, options: TestOptions.DebugExe).VerifyDiagnostics(); 849CreateCompilation(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(expected); 851CreateCompilation(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics(); 878CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(expected); 880CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, parseOptions: TestOptions.Regular8).VerifyDiagnostics(); 956CreateCompilation(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
Semantics\UsingStatementTests.cs (7)
1079var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.ReleaseExe); 1138var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.ReleaseExe); 1163CreateCompilation(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1169CreateCompilation(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics(); 1192CreateCompilation(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1198CreateCompilation(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1848var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "never"));
Semantics\Utf8StringsLiteralsTests.cs (138)
54var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 83var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 111var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 142var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 175var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 199var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 226var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 255var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 283var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 314var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 338var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 362var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 384var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 416var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 453comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 461comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 487var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 518var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 561var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 821var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 873var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 924var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 981var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1037var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1095var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1151var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1205var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1257var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1308var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1366var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1396var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1420var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1453var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1475var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1515var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1536var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1540comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 1575var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1602var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1605comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 1623var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1649var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1666comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 1672comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 1702var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1719comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 1725comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 1755var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1772comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 1778comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 1817var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1834comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 1840comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 1877var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1916var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1943var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe); 1972var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2002var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2037var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2074var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2102var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2122var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2143var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2169var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2198var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2235var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2276var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2325var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2362var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2399var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2433var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2457var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2461comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 2482var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2513var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2540var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2573var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2606var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2639var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2687var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2732var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2780var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2810var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2852var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2890var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2916var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2942var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2967var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2995var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3023var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3051var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3079var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3107var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3135var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3163var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3191var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3219var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3247var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3275var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3303var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3332var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseDll); 3384var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseDll); 3446var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3494var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3536var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3585var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3634var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3684var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3731var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3772var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3794var comp = CreateCompilation(new[] { source + HelpersSource, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3827var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3853var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3899var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3945var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3989var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4032var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4061var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 4132var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 4155var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 4186var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 4225var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 4250var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 4275var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe);
Semantics\WarningVersionTests.cs (74)
48CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics(); 49CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(3)).VerifyDiagnostics(); 50CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(4)).VerifyDiagnostics(); 51CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics(whenWave5); 52CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6)).VerifyDiagnostics(whenWave5); 78CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics(); 79CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(4)).VerifyDiagnostics(); 80CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics(whenWave5); 117CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics(); 118CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(4)).VerifyDiagnostics(); 119CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics(whenWave5); 131var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 157options: TestOptions.DebugDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel), 158parseOptions: TestOptions.Regular10, 166options: TestOptions.DebugDll.WithWarningLevel(5), 167parseOptions: TestOptions.Regular10, 179options: TestOptions.DebugDll.WithWarningLevel(5), 180parseOptions: TestOptions.Regular11, 188options: TestOptions.DebugDll 191parseOptions: TestOptions.Regular11, 209var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 235options: TestOptions.DebugDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel), 236parseOptions: TestOptions.Regular10, 244options: TestOptions.DebugDll.WithWarningLevel(5), 245parseOptions: TestOptions.Regular10, 257options: TestOptions.DebugDll 259parseOptions: TestOptions.Regular11, 267options: TestOptions.DebugDll 270parseOptions: TestOptions.Regular11, 288var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 321options: TestOptions.DebugDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel), 322parseOptions: TestOptions.Regular10, 330options: TestOptions.DebugDll.WithWarningLevel(5), 331parseOptions: TestOptions.Regular10, 346options: TestOptions.DebugDll.WithWarningLevel(5), 347parseOptions: TestOptions.Regular11, 358options: TestOptions.DebugDll 361parseOptions: TestOptions.Regular11, 382var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 392CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics( 394CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics( 410var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 445options: TestOptions.DebugDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel), 446parseOptions: TestOptions.Regular10, 454options: TestOptions.DebugDll.WithWarningLevel(5), 455parseOptions: TestOptions.Regular10, 467options: TestOptions.DebugDll.WithWarningLevel(5), 468parseOptions: TestOptions.Regular11, 476options: TestOptions.DebugDll 479parseOptions: TestOptions.Regular11, 497var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 532options: TestOptions.DebugDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel), 533parseOptions: TestOptions.Regular10, 541options: TestOptions.DebugDll.WithWarningLevel(5), 542parseOptions: TestOptions.Regular10, 554options: TestOptions.DebugDll.WithWarningLevel(5), 555parseOptions: TestOptions.Regular11, 563options: TestOptions.DebugDll 566parseOptions: TestOptions.Regular11, 584var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 619options: TestOptions.DebugDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel), 620parseOptions: TestOptions.Regular10, 628options: TestOptions.DebugDll.WithWarningLevel(5), 629parseOptions: TestOptions.Regular10, 641options: TestOptions.DebugDll.WithWarningLevel(5), 642parseOptions: TestOptions.Regular11, 650options: TestOptions.DebugDll 653parseOptions: TestOptions.Regular11, 671var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 683CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics( 685CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics( 701var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 713CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics( 715CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics(
SourceGeneration\GeneratorDriverTests.cs (204)
34var parseOptions = TestOptions.Regular; 35Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 54var parseOptions = TestOptions.Regular; 55Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 76var parseOptions = TestOptions.Regular; 77Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 97var parseOptions = TestOptions.Regular; 98Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 126var parseOptions = TestOptions.Regular; 127Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 155var parseOptions = TestOptions.Regular; 158Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 216var parseOptions = TestOptions.Regular; 217Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 248var parseOptions = TestOptions.Regular; 249Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 273var parseOptions = TestOptions.Regular; 274Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 296var parseOptions = TestOptions.Regular; 297Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 317var parseOptions = TestOptions.Regular; 318Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 340var parseOptions = TestOptions.Regular; 341Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 370var parseOptions = TestOptions.Regular; 371Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 401var parseOptions = TestOptions.Regular; 402Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 427var parseOptions = TestOptions.Regular; 428Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 453var parseOptions = TestOptions.Regular; 454Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 482var parseOptions = TestOptions.Regular.WithLanguageVersion(LanguageVersion.Preview); 483Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 521var parseOptions = TestOptions.Regular; 522Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 545GeneratorDriver driver = CSharpGeneratorDriver.Create(ImmutableArray<ISourceGenerator>.Empty, parseOptions: TestOptions.Regular); 558GeneratorDriver driver = CSharpGeneratorDriver.Create([generator], parseOptions: TestOptions.Regular); 581var parseOptions = TestOptions.Regular; 582Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 611var parseOptions = TestOptions.Regular; 612Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 656var parseOptions = TestOptions.Regular; 657Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 703var parseOptions = TestOptions.Regular; 704Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 738var parseOptions = TestOptions.Regular; 739Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 775var parseOptions = TestOptions.Regular; 776Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 797var parseOptions = TestOptions.Regular; 798Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 822var parseOptions = TestOptions.Regular; 823Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 850var parseOptions = TestOptions.Regular; 851Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 881var parseOptions = TestOptions.Regular; 882Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 907var parseOptions = TestOptions.Regular; 908Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 934var parseOptions = TestOptions.Regular; 935Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 962var parseOptions = TestOptions.Regular; 963Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 994var parseOptions = TestOptions.Regular; 995Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1023var parseOptions = TestOptions.Regular; 1024Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1058var parseOptions = TestOptions.Regular; 1059Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1085var parseOptions = TestOptions.Regular; 1086Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1130var parseOptions = TestOptions.Regular; 1131Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1157var parseOptions = TestOptions.Regular; 1158Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1255var parseOptions = TestOptions.Regular; 1257Compilation compilation = CreateCompilation(source, sourceFileName: "sourcefile.cs", options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1346var parseOptions = TestOptions.RegularPreview; 1384var parseOptions = TestOptions.Regular; 1385Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1419var parseOptions = TestOptions.Regular; 1420Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1441var parseOptions = TestOptions.RegularPreview; 1442Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1466var parseOptions = TestOptions.RegularPreview; 1467Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1492var parseOptions = TestOptions.RegularPreview; 1493Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1534var parseOptions = TestOptions.RegularPreview; 1535Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1563var parseOptions = TestOptions.RegularPreview; 1564Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1596var parseOptions = TestOptions.RegularPreview; 1597Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1617var parseOptions = TestOptions.RegularPreview; 1618Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1679var parseOptions = TestOptions.RegularPreview; 1680Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1691GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1723var parseOptions = TestOptions.RegularPreview; 1724Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1740GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, additionalTexts: new[] { text1 }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1942var parseOptions = TestOptions.RegularPreview; 1943Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1978var parseOptions = TestOptions.RegularPreview; 1979Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 2000GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, additionalTexts: texts, driverOptions: TestOptions.GeneratorDriverOptions); 2134var parseOptions = TestOptions.RegularPreview; 2135Compilation compilation = CreateCompilation(source, options: TestOptions.DebugExeThrowing, parseOptions: parseOptions); 2193var parseOptions = TestOptions.RegularPreview; 2194Compilation compilation = CreateCompilation(source, options: TestOptions.DebugExeThrowing, parseOptions: parseOptions); 2240var parseOptions = TestOptions.RegularPreview; 2241Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 2302var parseOptions = TestOptions.RegularPreview; 2303Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugExeThrowing, parseOptions: parseOptions); 2305GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 2383var parseOptions = TestOptions.RegularPreview; 2384Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 2399GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 2455var parseOptions = TestOptions.RegularPreview; 2456Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 2483var parseOptions = TestOptions.RegularPreview; 2484Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 2498driverOptions: TestOptions.GeneratorDriverOptions); 2546var parseOptions = TestOptions.RegularPreview; 2547Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 2577Compilation newCompilation = CreateCompilation(newSource, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 2612var parseOptions = TestOptions.RegularPreview; 2613Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 2633GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, optionsProvider: optionsProvider, driverOptions: TestOptions.GeneratorDriverOptions); 2696var parseOptions = TestOptions.RegularPreview; 2697Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 2711GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, additionalTexts: new[] { additionalText1, additionalText2, additionalText3 }, driverOptions: TestOptions.GeneratorDriverOptions); 2883var parseOptions = TestOptions.RegularPreview; 2884Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 2901GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, additionalTexts: new[] { additionalText }, driverOptions: TestOptions.GeneratorDriverOptions); 3078var parseOptions = TestOptions.RegularPreview; 3079Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 3144var parseOptions = TestOptions.RegularPreview; 3145Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 3159GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { generator.AsSourceGenerator() }, parseOptions: parseOptions, additionalTexts: new[] { new InMemoryAdditionalText("text.txt", "") }, driverOptions: TestOptions.GeneratorDriverOptions); 3190var parseOptions = TestOptions.RegularPreview; 3191Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 3206GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { generator1.AsSourceGenerator(), generator2.AsSourceGenerator() }, parseOptions: parseOptions, additionalTexts: new[] { additionalText }, driverOptions: TestOptions.GeneratorDriverOptions); 3220var parseOptions = TestOptions.RegularPreview; 3227Compilation compilation = CreateEmptyCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions, references: metadataRefs); 3278var parseOptions = TestOptions.RegularPreview; 3279Compilation compilation = CreateCompilation(builder.ToString(), options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 3293GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { generator.AsSourceGenerator() }, parseOptions: parseOptions, additionalTexts: new[] { new InMemoryAdditionalText("text.txt", "") }, driverOptions: TestOptions.GeneratorDriverOptions); 3304var parseOptions = TestOptions.RegularPreview; 3305Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 3322driverOptions: TestOptions.GeneratorDriverOptions); 3337var parseOptions = TestOptions.RegularPreview; 3338Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 3361driverOptions: TestOptions.GeneratorDriverOptions); 3383var parseOptions = TestOptions.RegularPreview; 3384Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 3395GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 3411var parseOptions = TestOptions.RegularPreview; 3412Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 3424GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 3442var parseOptions = TestOptions.RegularPreview; 3443Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 3464GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { generator, generator2 }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 3490var parseOptions = TestOptions.RegularPreview; 3491Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 3503GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 3534var parseOptions = TestOptions.RegularPreview; 3535Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 3546GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 3565var parseOptions = TestOptions.RegularPreview; 3566Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 3574GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 3581compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 3597compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 3609var parseOptions = TestOptions.RegularPreview; 3610Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 3641var parseOptions = TestOptions.RegularPreview; 3642Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 3675var parseOptions = TestOptions.RegularPreview; 3676Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 3704var parseOptions = TestOptions.RegularPreview; 3705Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 3735var parseOptions = TestOptions.RegularPreview; 3736Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions, sourceFileName: "/original"); 3767var parseOptions = TestOptions.RegularPreview; 3768Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions, sourceFileName: "/original"); 3800var parseOptions = TestOptions.RegularPreview; 3801Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions, sourceFileName: "/original"); 3829var parseOptions = TestOptions.RegularPreview; 3830Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions, sourceFileName: "/original"); 3859var parseOptions = TestOptions.RegularPreview; 3860Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 3891var parseOptions = TestOptions.RegularPreview; 3892Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 3925Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing); 3971Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing); 4005var parseOptions = TestOptions.RegularPreview; 4006Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 4067var parseOptions = TestOptions.RegularPreview; 4076Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 4149var parseOptions = TestOptions.RegularPreview.WithFeature("InterceptorsNamespaces", "global"); 4170Compilation compilation = CreateCompilation([source1], options: TestOptions.DebugExe, parseOptions: parseOptions);
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.cs (137)
67var parseOptions = TestOptions.RegularPreview; 68Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 78GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 109var parseOptions = TestOptions.RegularPreview; 110Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 120GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 146var parseOptions = TestOptions.RegularPreview; 147Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 157GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 176var parseOptions = TestOptions.RegularPreview; 177Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 187GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 206var parseOptions = TestOptions.RegularPreview; 207Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 217GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 235var parseOptions = TestOptions.RegularPreview; 236Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 244GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 262var parseOptions = TestOptions.RegularPreview; 263Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 271GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 290var parseOptions = TestOptions.RegularPreview; 291Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 299GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 319var parseOptions = TestOptions.RegularPreview; 320Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 330GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 355var parseOptions = TestOptions.RegularPreview; 356Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 366GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 394var parseOptions = TestOptions.RegularPreview; 395Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 405GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 423var parseOptions = TestOptions.RegularPreview; 424Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 434GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 456var parseOptions = TestOptions.RegularPreview; 457Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 467GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 489var parseOptions = TestOptions.RegularPreview; 490Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 500GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 521var parseOptions = TestOptions.RegularPreview; 522Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 532GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 553var parseOptions = TestOptions.RegularPreview; 554Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 564GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 584var parseOptions = TestOptions.RegularPreview; 585Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 595GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 615var parseOptions = TestOptions.RegularPreview; 616Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 626GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 648var parseOptions = TestOptions.RegularPreview; 649Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 659GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 679var parseOptions = TestOptions.RegularPreview; 680Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 690GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 708var parseOptions = TestOptions.RegularPreview; 709Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 719GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 742var parseOptions = TestOptions.RegularPreview; 743Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 753GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 771var parseOptions = TestOptions.RegularPreview; 772Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 782GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 808var parseOptions = TestOptions.RegularPreview; 809Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 819GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 845var parseOptions = TestOptions.RegularPreview; 846Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 856GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 882var parseOptions = TestOptions.RegularPreview; 883Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 893GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 919var parseOptions = TestOptions.RegularPreview; 920Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 930GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 956var parseOptions = TestOptions.RegularPreview; 957Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 967GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 992var parseOptions = TestOptions.RegularPreview; 993Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1003GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1019var parseOptions = TestOptions.RegularPreview; 1020Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1038GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1056var parseOptions = TestOptions.RegularPreview; 1057Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1075GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1094var parseOptions = TestOptions.RegularPreview; 1095Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1113GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1132var parseOptions = TestOptions.RegularPreview; 1133Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1151GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1170var parseOptions = TestOptions.RegularPreview; 1171Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1189GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1208var parseOptions = TestOptions.RegularPreview; 1209Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1227GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1250var parseOptions = TestOptions.RegularPreview; 1263Compilation compilation = CreateCompilation(new[] { source1, source2 }, new[] { comp0 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1329var parseOptions = TestOptions.RegularPreview; 1330var compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1340var driver = CSharpGeneratorDriver.Create([generator], parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1375var parseOptions = TestOptions.RegularPreview; 1376var compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1386var driver = CSharpGeneratorDriver.Create([generator], parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1413var parseOptions = TestOptions.RegularPreview; 1414Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1424GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1460var parseOptions = TestOptions.RegularPreview; 1461Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1471GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1507var parseOptions = TestOptions.RegularPreview; 1508Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1518GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1550var parseOptions = TestOptions.RegularPreview; 1551Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1561GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1598var parseOptions = TestOptions.RegularPreview; 1599Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1609GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1653var parseOptions = TestOptions.RegularPreview; 1654Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1662GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1710var parseOptions = TestOptions.RegularPreview; 1711Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1721GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1764var parseOptions = TestOptions.RegularPreview; 1765Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1773GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
SourceGeneration\GeneratorDriverTests_Attributes_SimpleName.cs (138)
38var parseOptions = TestOptions.RegularPreview; 39Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 49GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 70var parseOptions = TestOptions.RegularPreview; 71Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 81GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 96var parseOptions = TestOptions.RegularPreview; 97Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 107GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 121var parseOptions = TestOptions.RegularPreview; 122Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 132GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 146var parseOptions = TestOptions.RegularPreview; 147Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 157GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 174var parseOptions = TestOptions.RegularPreview; 175Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 185GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 206var parseOptions = TestOptions.RegularPreview; 207Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 217GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 238var parseOptions = TestOptions.RegularPreview; 239Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 249GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 272var parseOptions = TestOptions.RegularPreview; 273Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 283GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 305var parseOptions = TestOptions.RegularPreview; 306Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 316GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 331var parseOptions = TestOptions.RegularPreview; 332Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 342GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 357var parseOptions = TestOptions.RegularPreview; 358Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 368GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 383var parseOptions = TestOptions.RegularPreview; 384Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 394GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 416var parseOptions = TestOptions.RegularPreview; 417Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 427GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 444var parseOptions = TestOptions.RegularPreview; 445Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 455GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 472var parseOptions = TestOptions.RegularPreview; 473Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 483GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 499var parseOptions = TestOptions.RegularPreview; 500Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 510GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 530var parseOptions = TestOptions.RegularPreview; 531Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 541GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 563var parseOptions = TestOptions.RegularPreview; 564Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 574GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 595var parseOptions = TestOptions.RegularPreview; 596Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 606GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 627var parseOptions = TestOptions.RegularPreview; 628Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 638GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 655var parseOptions = TestOptions.RegularPreview; 656Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 666GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 683var parseOptions = TestOptions.RegularPreview; 684Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 694GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 711var parseOptions = TestOptions.RegularPreview; 712Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 722GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 740var parseOptions = TestOptions.RegularPreview; 741Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 749GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 767var parseOptions = TestOptions.RegularPreview; 768Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 776GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 794var parseOptions = TestOptions.RegularPreview; 795Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 805GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 825var parseOptions = TestOptions.RegularPreview; 826Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 836GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 857var parseOptions = TestOptions.RegularPreview; 858Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 866GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 886var parseOptions = TestOptions.RegularPreview; 887Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 895GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 914var parseOptions = TestOptions.RegularPreview; 915Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 923GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 942var parseOptions = TestOptions.RegularPreview; 943Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 951GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 971var parseOptions = TestOptions.RegularPreview; 972Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 980GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1001var parseOptions = TestOptions.RegularPreview; 1002Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1012GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1041var parseOptions = TestOptions.RegularPreview; 1042Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1052GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1089var parseOptions = TestOptions.RegularPreview; 1090Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1098GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1142var parseOptions = TestOptions.RegularPreview; 1143Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1151GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1193var parseOptions = TestOptions.RegularPreview; 1194Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1202GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1248var parseOptions = TestOptions.RegularPreview; 1249Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1257GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1301var parseOptions = TestOptions.RegularPreview; 1302Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1310GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1359var parseOptions = TestOptions.RegularPreview; 1360Compilation compilation = CreateCompilation(new[] { source0, source1, source2, source3 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1368GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1407var parseOptions = TestOptions.RegularPreview; 1408Compilation compilation = CreateCompilation(new[] { source2, source3 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1416GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1452var parseOptions = TestOptions.RegularPreview; 1453Compilation compilation = CreateCompilation(new[] { source3 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1461GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1503var parseOptions = TestOptions.RegularPreview; 1504Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1512GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1554var parseOptions = TestOptions.RegularPreview; 1555Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1563GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1615var parseOptions = TestOptions.RegularPreview; 1616Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1624GeneratorDriver driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
SourceGeneration\SyntaxAwareGeneratorTests.cs (91)
32var parseOptions = TestOptions.Regular; 33Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 58var parseOptions = TestOptions.Regular; 59Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 83var parseOptions = TestOptions.Regular; 84Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 109var parseOptions = TestOptions.Regular; 110Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 134var parseOptions = TestOptions.Regular; 135Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 161var parseOptions = TestOptions.Regular; 162Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 233var parseOptions = TestOptions.Regular; 234Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 272var parseOptions = TestOptions.Regular; 273Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 313var parseOptions = TestOptions.Regular; 314Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 369var parseOptions = TestOptions.Regular; 370Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 411var parseOptions = TestOptions.Regular; 412Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 453var parseOptions = TestOptions.Regular; 454Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDll, parseOptions: parseOptions); 495var parseOptions = TestOptions.Regular; 496Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 549var parseOptions = TestOptions.Regular; 550Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 579var parseOptions = TestOptions.Regular; 580Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 617var parseOptions = TestOptions.Regular; 618Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 671var parseOptions = TestOptions.Regular; 672Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 728var parseOptions = TestOptions.Regular; 729Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 771var parseOptions = TestOptions.Regular; 772Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 816var parseOptions = TestOptions.Regular; 817Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 851var parseOptions = TestOptions.RegularPreview; 852Compilation compilation = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: parseOptions); 891var parseOptions = TestOptions.RegularPreview; 892Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDll, parseOptions: parseOptions); 933var parseOptions = TestOptions.RegularPreview; 934Compilation compilation = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: parseOptions); 1010var parseOptions = TestOptions.RegularPreview; 1011Compilation compilation = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: parseOptions); 1023GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { new IncrementalGeneratorWrapper(testGenerator) }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1085var parseOptions = TestOptions.RegularPreview; 1086Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDll, parseOptions: parseOptions); 1098GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { new IncrementalGeneratorWrapper(testGenerator) }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1166var parseOptions = TestOptions.RegularPreview; 1167Compilation compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDll, parseOptions: parseOptions); 1216var parseOptions = TestOptions.RegularPreview; 1217Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options: TestOptions.DebugDll, parseOptions: parseOptions); 1231GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { new IncrementalGeneratorWrapper(testGenerator) }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1299var parseOptions = TestOptions.RegularPreview; 1300Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options: TestOptions.DebugDll, parseOptions: parseOptions); 1376var parseOptions = TestOptions.RegularPreview; 1377Compilation compilation = CreateCompilation(new[] { source1, source2, source3 }, options: TestOptions.DebugDll, parseOptions: parseOptions); 1405driverOptions: TestOptions.GeneratorDriverOptions); 1509var parseOptions = TestOptions.RegularPreview; 1510Compilation compilation = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: parseOptions); 1525driverOptions: TestOptions.GeneratorDriverOptions); 1564var parseOptions = TestOptions.RegularPreview; 1565Compilation compilation = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: parseOptions); 1613var parseOptions = TestOptions.RegularPreview; 1614Compilation compilation = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: parseOptions); 1674var parseOptions = TestOptions.RegularPreview; 1675Compilation compilation = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: parseOptions); 1694GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { new IncrementalGeneratorWrapper(testGenerator) }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1733var parseOptions = TestOptions.RegularPreview; 1734Compilation compilation = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: parseOptions); 1753GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { new IncrementalGeneratorWrapper(testGenerator) }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1786var parseOptions = TestOptions.RegularPreview; 1787Compilation compilation = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: parseOptions); 1807GeneratorDriver driver = CSharpGeneratorDriver.Create(new[] { new IncrementalGeneratorWrapper(testGenerator) }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions); 1849var parseOptions = TestOptions.Regular.WithLanguageVersion(LanguageVersion.Preview); 1850Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 1890var parseOptions = TestOptions.Regular.WithLanguageVersion(LanguageVersion.Preview); 1891Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 1931var parseOptions = TestOptions.Regular.WithLanguageVersion(LanguageVersion.Preview); 1932Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 1980var parseOptions = TestOptions.RegularPreview; 1981Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 2006var parseOptions = TestOptions.RegularPreview; 2007Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 2044var parseOptions = TestOptions.Regular; 2045Compilation compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: parseOptions); 2079Compilation 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"); 935var lib4 = CreateCompilation(lib4Def, new[] { lib1Ref, lib3Ref }, TestOptions.ReleaseDll); 1006lib4 = CreateCompilation(lib4Def, new[] { lib1Ref, lib2Ref, lib3Ref }, TestOptions.ReleaseDll); 1010lib4 = 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"); 1155var lib4 = CreateCompilation(lib4Def, new[] { lib1Ref, lib3Ref }, TestOptions.ReleaseDll); 1238lib4 = CreateCompilation(lib4Def, new[] { lib1Ref, lib2Ref, lib3Ref }, TestOptions.ReleaseDll); 1249lib4 = 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"); 1377var lib4 = CreateCompilation(lib4Def, new[] { lib1Ref, lib3Ref }, TestOptions.ReleaseDll); 1424lib4 = CreateCompilation(lib4Def, new[] { lib1Ref, lib2Ref, lib3Ref }, TestOptions.ReleaseDll); 1428lib4 = CreateCompilation(lib4Def, new[] { lib1.EmitToImageReference(), lib3.EmitToImageReference() }, TestOptions.ReleaseDll);
Compilation\CompilationAPITests.cs (119)
40=> TestOptions.DebugDll.WithSyntaxTreeOptionsProvider(new TestSyntaxTreeOptionsProvider(tree, options)); 71var options = TestOptions.DebugDll 167var options = TestOptions.DebugDll.WithSyntaxTreeOptionsProvider( 194var options = TestOptions.DebugDll.WithSyntaxTreeOptionsProvider( 204options = TestOptions.DebugDll.WithSyntaxTreeOptionsProvider( 230CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(0)).VerifyDiagnostics( 239var options = TestOptions.DebugDll 254CreateCompilation("", options: TestOptions.ReleaseDll.WithPublicSign(true).WithCryptoKeyFile("")).VerifyDiagnostics( 263CreateCompilation("", options: TestOptions.ReleaseDll.WithPublicSign(true).WithCryptoKeyFile("\"\"")).VerifyDiagnostics( 288var compilationOptions = TestOptions.DebugDll.WithWarningLevel(0); 358var ops = TestOptions.ReleaseExe; 371var ops1 = TestOptions.DebugExe; 444var comp = CSharpCompilation.Create("Compilation", options: TestOptions.ReleaseDll); 487var opt = TestOptions.DebugExe; 489var 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); 589var c = CreateCompilationWithMscorlib461(new[] { t1, t2 }, options: TestOptions.ReleaseDll.WithMetadataReferenceResolver( 613options: TestOptions.ReleaseDll, 621options: TestOptions.ReleaseDll, 632options: TestOptions.ReleaseDll, 645options: TestOptions.ReleaseExe, 648options: TestOptions.Regular9) }, 681options: TestOptions.ReleaseDll, 682syntaxTrees: new SyntaxTree[] { SyntaxFactory.ParseSyntaxTree("public class C {}", options: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)) }, 689options: TestOptions.ReleaseDll, 692options: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)) }, 700options: TestOptions.ReleaseDll, 703options: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)) }, 713options: TestOptions.ReleaseExe, 716options: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)) }, 791var comp = CSharpCompilation.Create("Compilation", syntaxTrees: new[] { SyntaxFactory.ParseSyntaxTree(s1) }, options: TestOptions.ReleaseDll); 938CSharpCompilation comp = CSharpCompilation.Create(options: TestOptions.ReleaseDll, assemblyName: "Compilation", references: null, syntaxTrees: null); 964CSharpCompilation comp1 = CSharpCompilation.Create(assemblyName: "Compilation", syntaxTrees: null, options: TestOptions.ReleaseDll, references: null); 981options: TestOptions.ReleaseModule, 987options: TestOptions.ReleaseModule, 1001options: TestOptions.ReleaseExe, 1016options: TestOptions.ReleaseExe, 1037options: TestOptions.ReleaseModule, 1043options: TestOptions.ReleaseModule, 1057options: TestOptions.ReleaseModule, 1071options: TestOptions.ReleaseExe, 1092options: TestOptions.ReleaseModule, 1107options: TestOptions.ReleaseExe, 1126options: TestOptions.ReleaseModule, 1132options: TestOptions.ReleaseModule, 1146options: TestOptions.ReleaseExe, 1377var opt = TestOptions.ReleaseDll; 1636var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 1657var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1673var compilation = CreateCompilation(source, options: TestOptions.ReleaseModule); 1690var compilation = CSharpCompilation.Create(assemblyName: null, options: TestOptions.ReleaseModule, syntaxTrees: new[] { Parse(source) }, references: new[] { MscorlibRef }); 1698compilation = CSharpCompilation.Create(assemblyName: null, options: TestOptions.ReleaseDll, syntaxTrees: new[] { Parse(source) }, references: new[] { MscorlibRef }); 1706compilation = CSharpCompilation.Create(assemblyName: "ModuleAssemblyName", options: TestOptions.ReleaseModule, syntaxTrees: new[] { Parse(source) }, references: new[] { MscorlibRef }); 1742syntaxTree: Parse("true", options: TestOptions.Script) 1750syntaxTree: Parse("false", options: TestOptions.Script)) 1768var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Script); 1789var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script); 1812syntaxTree: Parse(source, options: TestOptions.Script)); 1836syntaxTree: Parse(source, options: TestOptions.Script)); 1869var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("B")); 1967var c1 = CSharpCompilation.Create("c", options: TestOptions.ReleaseDll); 1969var c2 = c1.WithOptions(TestOptions.ReleaseExe); 1972c2 = c1.WithOptions(TestOptions.ReleaseDll.WithOutputKind(OutputKind.WindowsApplication)); 1975c2 = c1.WithOptions(TestOptions.ReleaseDll); 1978c2 = c1.WithOptions(TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule)); 1981c1 = CSharpCompilation.Create("c", options: TestOptions.ReleaseModule); 1983c2 = c1.WithOptions(TestOptions.ReleaseExe); 1986c2 = c1.WithOptions(TestOptions.ReleaseDll); 1989c2 = c1.WithOptions(TestOptions.CreateTestOptions(OutputKind.WindowsApplication, OptimizationLevel.Debug)); 1992c2 = c1.WithOptions(TestOptions.DebugModule.WithAllowUnsafe(true)); 1999var c1 = CSharpCompilation.Create("c", options: TestOptions.ReleaseDll); 2001var c2 = c1.WithOptions(TestOptions.ReleaseDll.WithMetadataReferenceResolver(new TestMetadataReferenceResolver())); 2005var c3 = c1.WithOptions(TestOptions.ReleaseDll.WithMetadataReferenceResolver(c1.Options.MetadataReferenceResolver)); 2012var c1 = CSharpCompilation.Create("c", options: TestOptions.ReleaseDll); 2014var c2 = c1.WithOptions(TestOptions.ReleaseDll.WithXmlReferenceResolver(new XmlFileResolver(null))); 2017var c3 = c1.WithOptions(TestOptions.ReleaseDll.WithXmlReferenceResolver(c1.Options.XmlReferenceResolver)); 2066var ta = Parse("class C { }", options: TestOptions.Regular10); 2069class C { }", options: TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp10)); 2073class D { }", options: TestOptions.Regular10); 2077class C { }", options: TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp10)); 2081class C { }", options: TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp10)); 2209var c4 = c3.WithOptions(TestOptions.DebugModule); 2237var c = CSharpCompilation.Create("Goo", references: new[] { MscorlibRef, mdModule.GetReference(display: "ModuleCS00") }, options: TestOptions.ReleaseDll); 2258options: TestOptions.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default)); 2279options: TestOptions.ReleaseDll.WithAssemblyIdentityComparer(comparer)); 2294options: TestOptions.ReleaseDll); 2315options: TestOptions.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default)); 2340options: TestOptions.ReleaseDll.WithAssemblyIdentityComparer(comparer)); 2384var compilationOptions = TestOptions.DebugDll; 2416Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseExe)); 2417Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule))); 2418Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.WindowsRuntimeMetadata))); 2419Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.WindowsRuntimeApplication))); 2420Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.WindowsApplication))); 2421Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithCryptoKeyContainer("goo"))); 2422Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithCryptoKeyFile("goo.snk"))); 2423Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithDelaySign(true))); 2424Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithDelaySign(false))); 2431Assert.True(CreateSubmission("1", parseOptions: TestOptions.Script).HasSubmissionResult()); 2432Assert.False(CreateSubmission("1;", parseOptions: TestOptions.Script).HasSubmissionResult()); 2433Assert.False(CreateSubmission("void goo() { }", parseOptions: TestOptions.Script).HasSubmissionResult()); 2434Assert.False(CreateSubmission("using System;", parseOptions: TestOptions.Script).HasSubmissionResult()); 2435Assert.False(CreateSubmission("int i;", parseOptions: TestOptions.Script).HasSubmissionResult()); 2436Assert.False(CreateSubmission("System.Console.WriteLine();", parseOptions: TestOptions.Script).HasSubmissionResult()); 2437Assert.False(CreateSubmission("System.Console.WriteLine()", parseOptions: TestOptions.Script).HasSubmissionResult()); 2438Assert.True(CreateSubmission("null", parseOptions: TestOptions.Script).HasSubmissionResult()); 2439Assert.True(CreateSubmission("System.Console.WriteLine", parseOptions: TestOptions.Script).HasSubmissionResult()); 2903}", options: TestOptions.ReleaseDll.WithOverflowChecks(true)); 3094var module = CreateCompilation(string.Empty, options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule)); 3134var module = CreateCompilation(string.Empty, options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule)); 336342", returnType: typeof(int), options: TestOptions.DebugDll.WithSourceReferenceResolver(resolver)); 339342", parseOptions: TestOptions.Script); 3602var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 3637var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 3662var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute();
Compilation\CSharpCompilationOptionsTests.cs (7)
252Assert.Null(TestOptions.ReleaseDll.WithModuleName(null).ModuleName); 253TestOptions.ReleaseDll.WithModuleName("").VerifyErrors( 258TestOptions.ReleaseDll.WithModuleName("a\0a").VerifyErrors( 263TestOptions.ReleaseDll.WithModuleName("a\uD800b").VerifyErrors( 268TestOptions.ReleaseDll.WithModuleName("a\\b").VerifyErrors( 273TestOptions.ReleaseDll.WithModuleName("a/b").VerifyErrors( 278TestOptions.ReleaseDll.WithModuleName("a:b").VerifyErrors(
Compilation\GetSemanticInfoTests.cs (1)
1129var tree = Parse(text, options: TestOptions.Script);
Compilation\GetUnusedImportDirectivesTests.cs (8)
223options: TestOptions.ReleaseDll.WithStrongNameProvider(new DesktopStrongNameProvider()), 244options: TestOptions.ReleaseDll.WithStrongNameProvider(new DesktopStrongNameProvider()), 291comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(3)); 317var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(0)); 379var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Error)); 389var tree = Parse("using System;", options: TestOptions.Script); 398var tree = Parse("using System;", options: TestOptions.Script); 487var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithDocumentationMode(documentationMode));
Compilation\LoadDirectiveTests.cs (19)
21var options = TestOptions.DebugDll.WithSourceReferenceResolver(TestSourceReferenceResolver.Default); 22var compilation = CreateCompilationWithMscorlib461(code, options: options, parseOptions: TestOptions.Script); 34var options = TestOptions.DebugDll.WithSourceReferenceResolver(TestSourceReferenceResolver.Default); 35var compilation = CreateCompilationWithMscorlib461(code, options: options, parseOptions: TestOptions.Script); 53var options = TestOptions.DebugDll.WithSourceReferenceResolver(resolver); 54var compilation = CreateCompilationWithMscorlib461(code, options: options, parseOptions: TestOptions.Script); 78var options = TestOptions.DebugDll.WithSourceReferenceResolver(resolver); 79var compilation = CreateCompilationWithMscorlib461(code, sourceFileName: "external1.csx", options: options, parseOptions: TestOptions.Script); 81var external2 = Parse(code, "external2.csx", TestOptions.Script); 92#load ""a.csx""", filename: "external3.csx", options: TestOptions.Script); 104var external4 = Parse("#load \"a.csx\"", "external4.csx", TestOptions.Script); 129var compilation = CreateCompilationWithMscorlib461(code, parseOptions: TestOptions.Script); 145var compilation = CreateCompilationWithMscorlib461(code, parseOptions: TestOptions.Script); 156var options = TestOptions.DebugDll.WithSourceReferenceResolver(resolver); 157var compilation = CreateCompilationWithMscorlib461(code, options: options, parseOptions: TestOptions.Script); 162var newTree = Parse(code, "a.csx", TestOptions.Script); 176options = TestOptions.DebugDll.WithSourceReferenceResolver(resolver); 177compilation = CreateCompilationWithMscorlib461(code, options: options, parseOptions: TestOptions.Script); 182newTree = Parse(code, "a.csx", TestOptions.Script);
Compilation\ReferenceManagerTests.cs (63)
27TestOptions.ReleaseDll.WithCryptoPublicKey(TestResources.TestKeys.PublicKey_ce65828c82a341f2); 36}", options: TestOptions.DebugWinMD, assemblyName: "ITest"); 52options: TestOptions.DebugExe); 690options: TestOptions.ReleaseDll); 708options: TestOptions.ReleaseExe); 745var compilation = CreateEmptyCompilation(tree, new[] { MscorlibRef, r1, r2_SysCore }, TestOptions.DebugExe, assemblyName: "Test"); 864t1 = Parse($"#r \"{p2}\"", options: TestOptions.Script), 865t2 = Parse($"#r \"{p3}\"", options: TestOptions.Script), 866t3 = Parse("#r \"Lib\"", options: TestOptions.Script), 869options: TestOptions.ReleaseDll.WithMetadataReferenceResolver( 930var compilation = CSharpCompilation.Create("goo", options: TestOptions.ReleaseDll, 1019new[] { SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.Regular) }, 1021TestOptions.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default)); 1035var peImage = CreateCompilation(libSource, options: TestOptions.ReleaseDll, assemblyName: "CS1704").EmitToArray(); 1277Parse("#r \"1\"", options: TestOptions.Script), 1278Parse("#r \"2.dll\"", options: TestOptions.Script), 1280options: TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolver)); 1319var options = TestOptions.ReleaseDll.WithMetadataReferenceResolver(new ErroneousReferenceResolver()); 1323Parse("#r \"throw\"", options: TestOptions.Script), 1351", filename: @"C:\A\a.csx", options: TestOptions.Script); 1357", filename: @"C:\B\b.csx", options: TestOptions.Script); 1361var c = CreateCompilationWithMscorlib461(new[] { t1, t2 }, options: TestOptions.ReleaseDll.WithMetadataReferenceResolver( 1448var withCircularReference2 = withCircularReference1.WithOptions(TestOptions.ReleaseDll); 1706var b = CreateCompilation(srcB, references: new[] { aRef }, options: TestOptions.ReleaseModule.WithModuleName("mod.netmodule"), assemblyName: "B"); 1764var moduleRef = CreateCompilation("public class TypeFromModule : TypeDependedOnByModule { }", new[] { assemblyRef }, options: TestOptions.ReleaseModule, assemblyName: "lib2").EmitToImageReference(); 1815var moduleRef = CreateCompilation("public class C { }", options: TestOptions.ReleaseModule, assemblyName: "lib").EmitToImageReference(); 1836var cPublic = CreateCompilation("class C { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Public)); 1837var cInternal = CreateCompilation("class D { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 1838var cAll = CreateCompilation("class E { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1840var cPublic2 = CreateCompilation("class C { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Public)); 1841var cInternal2 = CreateCompilation("class D { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 1842var cAll2 = CreateCompilation("class E { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1864var module = CreateCompilation(moduleSource, options: TestOptions.ReleaseModule); 1868var mainAll = CreateCompilation(mainSource, new[] { moduleRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1873var mainInternal = CreateCompilation(mainSource, new[] { moduleRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 1878var mainPublic = CreateCompilation(mainSource, new[] { moduleRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Public)); 1894var main = CreateEmptyCompilation(mainSource, new MetadataReference[] { r1, MscorlibFacadeRef }, options: TestOptions.ReleaseDll); 2168options: TestOptions.ReleaseDll.WithCryptoPublicKey(TestResources.TestKeys.PublicKey_b03f5f7f11d50a3a), 2175options: TestOptions.ReleaseDll.WithCryptoPublicKey(TestResources.TestKeys.PublicKey_b03f5f7f11d50a3a), 2185options: TestOptions.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default)); 2195options: TestOptions.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default)); 2327TestOptions.ReleaseDll.WithMetadataReferenceResolver( 2356TestOptions.ReleaseDll.WithMetadataReferenceResolver( 2399}, TestOptions.ReleaseDll); 2435}, TestOptions.ReleaseDll); 2473}, TestOptions.ReleaseDll); 2512}, TestOptions.ReleaseDll); 2535var c = CreateCompilationWithMscorlib46("public class C : A { }", new[] { aRef }, TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolver)); 2564", new[] { aRef }, TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolver)); 2602TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolver)); 2646TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolver)); 2682TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolver)); 2709TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolver)); 2725TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolver)); 2753TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolver)); 2778TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolver)); 2798var mRef = CreateCompilationWithMscorlib46("public interface M : B { }", new[] { bRef }, options: TestOptions.ReleaseModule.WithModuleName("M.netmodule")).EmitToImageReference(); 2799var nRef = CreateCompilationWithMscorlib46("public interface N : D { }", new[] { dRef }, options: TestOptions.ReleaseModule.WithModuleName("N.netmodule")).EmitToImageReference(); 2810TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolver)); 3017TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolverC)); 3129TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolverC)); 3171var options = TestOptions.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default); 3214var options = TestOptions.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default);
Compilation\SemanticModelAPITests.cs (18)
87var comp1 = CreateCompilation(src, parseOptions: TestOptions.Regular8); 89var comp2 = CreateCompilation(src2, parseOptions: TestOptions.Regular8, 94comp2 = CreateCompilation(src2, parseOptions: TestOptions.Regular7_3, 2016var comp = CreateCompilation(source, parseOptions: TestOptions.Regular); 3901var comp = (Compilation)CreateCompilation(source, options: TestOptions.ReleaseExe); 4103var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4140var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4183var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4207var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4235var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4273var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4325var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4365var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular7_2); 4421var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 4469var options = WithNullable(TestOptions.DebugExe, nullableContextOption); 4470var comp = CreateCompilation(source, options: options, parseOptions: TestOptions.Regular9); 4524var options = WithNullable(TestOptions.DebugExe, nullableContextOption); 4525var comp = CreateCompilation(source, options: options, parseOptions: TestOptions.Regular9);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (5)
2754options: TestOptions.DebugExe.WithScriptClassName("Script"), 3681var parseOptions = TestOptions.Script; 3784", parseOptions: TestOptions.Script 3803var compilation = CreateCompilation(code, parseOptions: TestOptions.Script); 3844var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode, parseOptions: TestOptions.Script);
Compilation\SemanticModelGetSemanticInfoTests.cs (12)
5634var semanticInfo = GetSemanticInfoForTest<ExpressionSyntax>(text, parseOptions: TestOptions.Regular9); 8018parseOptions: TestOptions.WithoutImprovedOverloadCandidates); 8071parseOptions: TestOptions.WithoutImprovedOverloadCandidates); 8642var semanticInfo = GetSemanticInfoForTest<ParenthesizedLambdaExpressionSyntax>(sourceCode, parseOptions: TestOptions.Regular6); 8682var semanticInfo = GetSemanticInfoForTest<IdentifierNameSyntax>(sourceCode, parseOptions: TestOptions.Regular6); 8723var semanticInfo = GetSemanticInfoForTest<LiteralExpressionSyntax>(sourceCode, parseOptions: TestOptions.Regular6); 11039var semanticInfo = GetSemanticInfoForTest<LiteralExpressionSyntax>(sourceCode, parseOptions: TestOptions.Regular6); 11105var semanticInfo = GetSemanticInfoForTest<LiteralExpressionSyntax>(sourceCode, parseOptions: TestOptions.Regular6); 12607var semanticInfo = GetSemanticInfoForTest<IdentifierNameSyntax>(sourceCode, parseOptions: TestOptions.Regular6); 12641var semanticInfo = GetSemanticInfoForTest<IdentifierNameSyntax>(sourceCode, parseOptions: TestOptions.Regular6); 14965", options: TestOptions.ReleaseDll); 15303", parseOptions: TestOptions.Regular);
Compilation\UsedAssembliesTests.cs (61)
35var comp1 = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 56var comp1 = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 294options ??= TestOptions.ReleaseDll; 300parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Diagnose)); 378var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 419var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 589var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }, options: TestOptions.DebugModule); 1097Compilation comp2 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)); 1102Compilation comp3 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)); 1105Compilation comp4 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Diagnose)); 2339AssertUsedAssemblyReferences(CreateCompilation(Parse(source, options: TestOptions.Script), references: new[] { reference }, options: TestOptions.DebugDll.WithUsings(@using)), 3692Compilation comp = CreateCompilation(source, parseOptions: TestOptions.Regular11, references: references); 3834Compilation comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, references: references, options: TestOptions.UnsafeDebugDll); 3841AssertUsedAssemblyReferences(source, references, references, parseOptions: TestOptions.RegularPreview, options: TestOptions.UnsafeDebugDll); 4012parseOptions: TestOptions.Script.WithDocumentationMode(DocumentationMode.None), 4013options: TestOptions.DebugDll.WithUsings("C0")), 4016parseOptions: TestOptions.Script.WithDocumentationMode(DocumentationMode.Parse), 4017options: TestOptions.DebugDll.WithUsings("C0")), 4023Compilation comp2 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)); 4028Compilation comp3 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)); 4031Compilation comp4 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Diagnose)); 4126Compilation comp2 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)); 4129Compilation comp3 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)); 4549AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)), 4551AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)), 4578AssertUsedAssemblyReferences(CreateCompilation(source4, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)), 4580AssertUsedAssemblyReferences(CreateCompilation(source4, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)), 4607parseOptions: TestOptions.Script.WithDocumentationMode(DocumentationMode.None), 4608options: TestOptions.DebugDll.WithUsings("N1.N2")), 4611parseOptions: TestOptions.Script.WithDocumentationMode(DocumentationMode.Parse), 4612options: TestOptions.DebugDll.WithUsings("N1.N2")), 4615parseOptions: TestOptions.Script.WithDocumentationMode(DocumentationMode.None), 4616options: TestOptions.DebugDll.WithUsings("N1")), 4619parseOptions: TestOptions.Script.WithDocumentationMode(DocumentationMode.Parse), 4620options: TestOptions.DebugDll.WithUsings("N1")), 4627Compilation comp2 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)); 4630Compilation comp3 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)); 4633Compilation comp4 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Diagnose)); 4769AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)), 4771AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)), 4798parseOptions: TestOptions.Script.WithDocumentationMode(DocumentationMode.None), 4799options: TestOptions.DebugDll.WithUsings("N1.N2.E0")), 4802parseOptions: TestOptions.Script.WithDocumentationMode(DocumentationMode.Parse), 4803options: TestOptions.DebugDll.WithUsings("N1.N2.E0")), 4809Compilation comp2 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)); 4812Compilation comp3 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)); 4815Compilation comp4 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Diagnose)); 4834CreateCompilation(source1, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)).VerifyDiagnostics( 4851CreateCompilation(source2, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)).VerifyDiagnostics( 4872CreateCompilation(source1, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)).VerifyDiagnostics( 4889CreateCompilation(source2, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)).VerifyDiagnostics( 5458var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 5617var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 5650CompileWithUsedAssemblyReferences(source2, options: TestOptions.DebugModule, comp1Ref); 5939AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)), 5941AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)), 5960AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None)), 5962AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)),
DeclarationTests.cs (7)
61var decl1 = DeclarationTreeBuilder.ForTree(tree1, TestOptions.DebugExe.ScriptClassName, isSubmission: false); 62var decl2 = DeclarationTreeBuilder.ForTree(tree2, TestOptions.DebugExe.ScriptClassName, isSubmission: false); 230var decl1 = Lazy(DeclarationTreeBuilder.ForTree(tree1, TestOptions.DebugExe.ScriptClassName, isSubmission: false)); 231var decl2 = Lazy(DeclarationTreeBuilder.ForTree(tree2, TestOptions.DebugExe.ScriptClassName, isSubmission: false)); 263options: TestOptions.ReleaseDll); 290var compilation = CreateCompilation(new SyntaxTree[] { underlyingTree, countedTree }, skipUsesIsNullable: true, options: TestOptions.ReleaseDll); 337var compilation = CreateCompilation(new SyntaxTree[] { underlyingTree, countedTree }, skipUsesIsNullable: true, options: TestOptions.ReleaseDll);
DocumentationComments\CrefTests.cs (31)
247var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments); 277var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments); 4417var tree1 = Parse(source1, options: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Diagnose).WithLanguageVersion(LanguageVersion.Latest)); 4418var tree2 = Parse(source2, options: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None).WithLanguageVersion(LanguageVersion.Latest)); 4968var compilation = (Compilation)CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.RegularWithDocumentationComments); 5122var tree = Parse(source, options: TestOptions.RegularWithDocumentationComments); 5228SyntaxTree tree = Parse(source, options: TestOptions.RegularWithDocumentationComments); 5873new[] { Parse(source, options: TestOptions.RegularWithDocumentationComments) }, 5875TestOptions.ReleaseDll.WithXmlReferenceResolver(XmlFileResolver.Default)); 6700var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments).VerifyDiagnostics(); 6731verify(CreateCompilation(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics( 6739verify(CreateCompilation(source, parseOptions: TestOptions.Regular12.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics()); 6740verify(CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics()); 6775verify(CreateCompilation(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics( 6796verify(CreateCompilation(source, parseOptions: TestOptions.Regular12.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics)); 6797verify(CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics)); 6838verify(CreateCompilation(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics)); 6839verify(CreateCompilation(source, parseOptions: TestOptions.Regular12.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics)); 6840verify(CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics)); 6868verify(CreateCompilation(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics( 6889verify(CreateCompilation(source, parseOptions: TestOptions.Regular12.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics)); 6890verify(CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics)); 6917var parseOptions = TestOptions.RegularWithDocumentationComments; 6918var options = TestOptions.ReleaseDll.WithXmlReferenceResolver(XmlFileResolver.Default); 6941var parseOptions = TestOptions.RegularWithDocumentationComments; 6942var options = TestOptions.ReleaseDll.WithXmlReferenceResolver(XmlFileResolver.Default); 6968var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.NetCoreApp); 6993var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp10), targetFramework: TargetFramework.NetCoreApp); 7017var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.NetCoreApp); 7038var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp10), targetFramework: TargetFramework.NetCoreApp); 7057var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.NetCoreApp);
DocumentationComments\DocumentationCommentCompilerTests.cs (67)
36options: (options ?? TestOptions.ReleaseDll).WithXmlReferenceResolver(XmlFileResolver.Default), 37parseOptions: TestOptions.RegularWithDocumentationComments, 759var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularWithDocumentationComments); 760var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options: TestOptions.RegularWithDocumentationComments); 887var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularWithDocumentationComments); 888var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options: TestOptions.RegularWithDocumentationComments); 926var tree = SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.RegularWithDocumentationComments); 968var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularWithDocumentationComments); 969var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options: TestOptions.RegularWithDocumentationComments); 1017var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularWithDocumentationComments); 1018var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options: TestOptions.RegularWithDocumentationComments); 1068var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularWithDocumentationComments); 1069var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options: TestOptions.RegularWithDocumentationComments); 1118var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularWithDocumentationComments); 1119var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options: TestOptions.RegularWithDocumentationComments); 1173var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularWithDocumentationComments); 1174var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options: TestOptions.RegularWithDocumentationComments); 1221var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularWithDocumentationComments); 1222var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options: TestOptions.RegularWithDocumentationComments); 1276var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularWithDocumentationComments); 1277var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options: TestOptions.RegularWithDocumentationComments); 1333var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularWithDocumentationComments); 1334var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options: TestOptions.RegularWithDocumentationComments); 1396var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularWithDocumentationComments); 1397var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options: TestOptions.RegularWithDocumentationComments); 1459var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularWithDocumentationComments); 1460var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options: TestOptions.RegularWithDocumentationComments); 1512var tree = SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.RegularWithDocumentationComments); 1555var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularPreviewWithDocumentationComments); 1556var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options: TestOptions.RegularPreviewWithDocumentationComments); 1606var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularPreviewWithDocumentationComments); 1607var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options: TestOptions.RegularPreviewWithDocumentationComments); 1650var tree = SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.RegularWithDocumentationComments); 1693var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularPreviewWithDocumentationComments); 1694var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options: TestOptions.RegularPreviewWithDocumentationComments); 1745var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularPreviewWithDocumentationComments); 1746var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options: TestOptions.RegularPreviewWithDocumentationComments); 1796var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularPreviewWithDocumentationComments); 1797var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options: TestOptions.RegularPreviewWithDocumentationComments); 1852var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularPreviewWithDocumentationComments); 1853var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options: TestOptions.RegularPreviewWithDocumentationComments); 1901var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularPreviewWithDocumentationComments); 1902var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options: TestOptions.RegularPreviewWithDocumentationComments); 1957var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularPreviewWithDocumentationComments); 1958var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options: TestOptions.RegularPreviewWithDocumentationComments); 2015var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularPreviewWithDocumentationComments); 2016var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options: TestOptions.RegularPreviewWithDocumentationComments); 2079var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularPreviewWithDocumentationComments); 2080var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options: TestOptions.RegularPreviewWithDocumentationComments); 2143var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularPreviewWithDocumentationComments); 2144var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options: TestOptions.RegularPreviewWithDocumentationComments); 3162var tree1 = Parse(source1, options: TestOptions.RegularWithDocumentationComments); 3163var tree2 = Parse(source2, options: TestOptions.RegularWithDocumentationComments); 3658var tree = Parse(source, options: TestOptions.RegularWithDocumentationComments); 3660var comp = CSharpCompilation.Create("Test", new[] { tree }, new[] { MscorlibRef }, TestOptions.ReleaseDll.WithXmlReferenceResolver(resolver)); 4520var tree = Parse(source, options: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)); 5318var tree1 = SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularWithDocumentationComments); 5319var tree2 = SyntaxFactory.ParseSyntaxTree(source2, options: TestOptions.RegularWithDocumentationComments); 5758var tree = Parse(source, options: TestOptions.RegularWithDocumentationComments); 5760var comp = CreateCompilation(tree, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(warnDict), assemblyName: "Test"); 6010SyntaxTree tree = Parse(source, options: TestOptions.RegularWithDocumentationComments); 6959var comp = CreateCompilationUtil(source, options: TestOptions.ReleaseModule); 7115var tree = Parse(source, options: TestOptions.RegularWithDocumentationComments); 7116var compOptions = TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Error); 7356Parse(source, options: TestOptions.RegularWithDocumentationComments, filename: sourcePath), 7357options: TestOptions.ReleaseDll.WithSourceReferenceResolver(SourceFileResolver.Default).WithXmlReferenceResolver(XmlFileResolver.Default), 7579var comp = CreateCompilationUtil(source, options: TestOptions.ReleaseExe);
DocumentationComments\DocumentationCommentIDTests.cs (3)
270var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 415var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(nullableContextOptions)); 435var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(nullableContextOptions));
DocumentationComments\DocumentationModeTests.cs (2)
385options: TestOptions.ReleaseDll.WithXmlReferenceResolver(XmlFileResolver.Default), 397return TestOptions.Regular.WithDocumentationMode(mode);
DocumentationComments\MethodDocumentationCommentTests.cs (6)
237var compilation = CreateEmptyCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Diagnose)); 242compilation = CreateEmptyCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Parse)); 247compilation = CreateEmptyCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.None));
DocumentationComments\PartialTypeDocumentationCommentTests.cs (2)
35}", options: TestOptions.RegularWithDocumentationComments); 47}", options: TestOptions.RegularWithDocumentationComments);
SymbolDisplay\SymbolDisplayTests.cs (20)
2851var tree = SyntaxFactory.ParseSyntaxTree(text, TestOptions.Script); 4706var comp = CreateEmptyCompilation(source, WinRtRefs, TestOptions.ReleaseWinMD); 5180TestOptions.Regular, 5208var comp = CreateCompilation(text, parseOptions: TestOptions.Regular); 5244TestOptions.Regular, 5274TestOptions.Regular, 5312TestOptions.Regular, 5363TestOptions.Regular, 5921var comp = (Compilation)CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable()); 5993var comp = (Compilation)CreateCompilation(source, parseOptions: TestOptions.Regular8); 6062var comp = (Compilation)CreateCompilation(source, parseOptions: TestOptions.Regular8); 6181var comp = (Compilation)CreateCompilation(source, parseOptions: TestOptions.Regular8); 6220var comp = (Compilation)CreateCompilation(source, parseOptions: TestOptions.Regular8); 7485var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithFileScopedNamespaces).VerifyDiagnostics(); 7956var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular9); 8043TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), 8064TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), 8085TestOptions.Regular10, 8108TestOptions.Regular10, 8632var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll);
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (1)
827options: TestOptions.ReleaseDll);
Symbols\AnonymousTypesSemanticsTests.cs (6)
1899var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe); 1917var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1934var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1955var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 2085options: TestOptions.ReleaseDll, 2086parseOptions: TestOptions.Regular);
Symbols\AnonymousTypesSymbolTests.cs (3)
583var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 1452var compilation = CreateCompilationWithMscorlib40(new string[] { source1, source2, source3 }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), parseOptions: TestOptions.Regular);
Symbols\AssemblyAndNamespaceTests.cs (21)
117var comp1 = CSharpCompilation.Create(assemblyName: "Test", options: TestOptions.DebugExe, 121var comp = CSharpCompilation.Create(assemblyName: "Test1", options: TestOptions.DebugExe, 164var comp = CSharpCompilation.Create(assemblyName: "Test1", options: TestOptions.DebugExe, 251var comp1 = CSharpCompilation.Create(assemblyName: "Test1", options: TestOptions.DebugExe, syntaxTrees: new SyntaxTree[] { SyntaxFactory.ParseSyntaxTree(text1) }, references: new MetadataReference[] { }); 252var comp2 = CSharpCompilation.Create(assemblyName: "Test2", options: TestOptions.DebugExe, syntaxTrees: new SyntaxTree[] { SyntaxFactory.ParseSyntaxTree(text2) }, references: new MetadataReference[] { }); 257var comp = CSharpCompilation.Create(assemblyName: "Test3", options: TestOptions.DebugExe, 458CreateCompilationWithMscorlib461(test, parseOptions: TestOptions.RegularWithFileScopedNamespaces).VerifyDiagnostics( 481CreateCompilationWithMscorlib461(test, parseOptions: TestOptions.RegularWithFileScopedNamespaces).VerifyDiagnostics(); 490CreateCompilationWithMscorlib461(test, parseOptions: TestOptions.RegularWithFileScopedNamespaces).VerifyDiagnostics(); 500CreateCompilationWithMscorlib461(test, parseOptions: TestOptions.RegularWithFileScopedNamespaces).VerifyDiagnostics( 515CreateCompilationWithMscorlib461(test, parseOptions: TestOptions.RegularWithFileScopedNamespaces).VerifyDiagnostics( 530CreateCompilationWithMscorlib461(test, parseOptions: TestOptions.RegularWithFileScopedNamespaces).VerifyDiagnostics( 545CreateCompilationWithMscorlib461(test, parseOptions: TestOptions.RegularWithFileScopedNamespaces).VerifyDiagnostics( 558CreateCompilationWithMscorlib461(test, parseOptions: TestOptions.RegularWithFileScopedNamespaces).VerifyDiagnostics( 571CreateCompilationWithMscorlib461(test, parseOptions: TestOptions.RegularWithFileScopedNamespaces).VerifyDiagnostics( 584CreateCompilationWithMscorlib461(test, parseOptions: TestOptions.RegularWithFileScopedNamespaces).VerifyDiagnostics( 597CreateCompilationWithMscorlib461(test, parseOptions: TestOptions.RegularWithFileScopedNamespaces).VerifyDiagnostics(); 608CreateCompilationWithMscorlib461(test, parseOptions: TestOptions.RegularWithFileScopedNamespaces).VerifyDiagnostics( 622CreateCompilationWithMscorlib461(test, parseOptions: TestOptions.RegularWithFileScopedNamespaces).VerifyDiagnostics( 663CreateCompilationWithMscorlib461(new[] { source1, source2 }, parseOptions: TestOptions.RegularWithFileScopedNamespaces).VerifyDiagnostics(); 674CreateCompilationWithMscorlib461(test, parseOptions: TestOptions.RegularWithFileScopedNamespaces).VerifyDiagnostics(
Symbols\CheckedUserDefinedOperatorsTests.cs (374)
34var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 37compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular10); 45compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular11); 78var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 112var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 142var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 187var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 208var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 227var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 249var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 311var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 347var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 372var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 398var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 427var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 445var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 472var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 511var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 519compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 537compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 570var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 601var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 633var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 640compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 657compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 683var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 691compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 709compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 742var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 774var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 806var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 814compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 822compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 855var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 863compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 871compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 893foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 895var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: options); 924foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 926var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: options); 969var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1005var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1054var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 1061compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 1075compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 1104var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 1111compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 1125compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 1157var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 1164compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 1178compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 1207var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 1214compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 1227compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 1251var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1254compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular10); 1262compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular11); 1296var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1331var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1362var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1395var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1418var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1481var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1517var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1544var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1571var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1605var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1623var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1650var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1691var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 1699compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 1718compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 1752var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 1784var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 1807var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 1822compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 1840compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 1880var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 1888compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 1896compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 1924var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 1932compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 1950compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 1984var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2017var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2049var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2057compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 2075compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 2108var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2116compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 2124compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 2156foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 2158var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: options); 2160if (op == ">>>" && options == TestOptions.Regular10) 2214var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2272var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2280compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 2316compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 2366var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2374compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 2410compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 2429var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2456var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2485var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2488compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular10); 2496compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular11); 2532var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2572var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2605var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2637var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2656var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2715var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2749var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2772var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2795var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2821var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2850var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2858compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 2876compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 2906var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2935var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2964var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2993var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3016var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3024compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 3042compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 3072var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3101var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3130var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3159var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3177foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 3179var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: options); 3208var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 3251var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3258compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 3272compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 3301var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3308compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 3322compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 3422var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 3432compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 3442var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 3443var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 3614var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 3694var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 3771var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 3821var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 3828compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 3835var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 3836var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 3880var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 3931var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 4035var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 4197var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 4207compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 4217var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 4218var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 4396var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 4478var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 4557var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 4658var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 4668compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 4678var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 4679var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 4728var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 4779var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 4788compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 4797var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 4798var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 4840var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 4891var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 5001var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 5110var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 5204var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 5216compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 5228var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 5229var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 5290var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 5328var compilation2 = CreateCompilation(source1 + source3, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 5485var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 5574var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 5620var compilation2 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 5682var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 5689compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 5696var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 5697var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 5769var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6037var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6153var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6306var compilation1 = CreateCompilationWithCSharp(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6316compilation1 = CreateCompilationWithCSharp(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 6326var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 6327var compilation3 = CreateCompilationWithCSharp(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 6411var compilation1 = CreateCompilationWithCSharp(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6421compilation1 = CreateCompilationWithCSharp(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 6431var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 6432var compilation3 = CreateCompilationWithCSharp(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 6526var compilation1 = CreateCompilationWithCSharp(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6538compilation1 = CreateCompilationWithCSharp(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 6550var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 6551var compilation3 = CreateCompilationWithCSharp(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 6604var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6607var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 6608var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview, references: new[] { compilation2.EmitToImageReference() }); 6709var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6754var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6757var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 6758var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview, references: new[] { compilation2.EmitToImageReference() }); 6803var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6806var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 6807var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview, references: new[] { compilation2.EmitToImageReference() }); 6852var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6855var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 6856var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview, references: new[] { compilation2.EmitToImageReference() }); 6962var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7003var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7006var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 7007var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview, references: new[] { compilation2.EmitToImageReference() }); 7048var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7051var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 7052var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview, references: new[] { compilation2.EmitToImageReference() }); 7155var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7201var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7273var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7344var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7417var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7481var 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) 2703options: TestOptions.ReleaseDll.WithMetadataReferenceResolver(new Resolver(data, core, system))); 2731", options: TestOptions.Script), 2734", TestOptions.Regular) 2739options: TestOptions.ReleaseDll.WithMetadataReferenceResolver(new Resolver(data, core, system))); 2783new[] { Parse(source, options: TestOptions.Script) }, 2784options: TestOptions.ReleaseDll.WithMetadataReferenceResolver(new DummyReferenceResolver(csClasses01))); 2793new[] { SyntaxFactory.ParseSyntaxTree(@"#r ""bar""", TestOptions.Script, "a.csx", Encoding.UTF8) }, 2794options: TestOptions.ReleaseDll.WithMetadataReferenceResolver(null)); 2810", options: TestOptions.Script), 2816", TestOptions.Regular) 2821options: TestOptions.ReleaseDll.WithUsings(ImmutableArray.Create("System.Console", "System"))); 2838", options: TestOptions.Script) 2843options: TestOptions.ReleaseDll.WithUsings("System.Console!", "Blah")); 2972var lib1 = CreateCompilation(source1, assemblyName: "Lib1", options: TestOptions.ReleaseModule);
Symbols\ConversionTests.cs (5)
1041CreateCompilation(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1679var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 1889CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyDiagnostics( 1995CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2031options: 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)
288var comp = CreateCompilation(source, options: TestOptions.DebugExe); 301comp = CreateCompilation(source, options: TestOptions.DebugExe); 353parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 390var comp = CreateCompilation(source2, references: [corLib_v2_Comp.ToMetadataReference(), typeLib_v2_Comp.ToMetadataReference(), comp1Ref], options: TestOptions.DebugExe); 395parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 425var comp = CreateCompilation(source, options: TestOptions.DebugExe); 432comp = CreateCompilation(source, options: TestOptions.DebugExe); 534parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 575var comp = CreateCompilation(source2, references: [corLib_v2_Comp.ToMetadataReference(), typeLib_v2_Comp.ToMetadataReference(), comp1Ref], options: TestOptions.DebugExe); 580parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 617var comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40AndSystemCore, options: TestOptions.DebugExe); 627comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40AndSystemCore, options: TestOptions.DebugExe); 635comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40AndSystemCore, options: TestOptions.DebugExe); 663var comp = CreateCompilation(source, options: TestOptions.DebugExe); 673comp = CreateCompilation(source, options: TestOptions.DebugExe); 807parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 856var comp = CreateCompilation(source2, references: [corLib_v2_Comp.ToMetadataReference(), typeLib_v2_Comp.ToMetadataReference(), comp1Ref], options: TestOptions.DebugExe); 864parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 1002parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 1050var comp = CreateCompilation(source2, references: [corLib_v2_Comp.ToMetadataReference(), typeLib_v2_Comp.ToMetadataReference(), comp1Ref], options: TestOptions.DebugExe); 1058parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
Symbols\CovariantReturnTests.cs (51)
403parseOptions ??= TestOptions.WithCovariantReturns; 408parseOptions: parseOptions ?? TestOptions.Regular9, 422parseOptions ??= TestOptions.WithoutCovariantReturns; 427parseOptions: parseOptions ?? TestOptions.Regular8, 515options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions("CS1701", ReportDiagnostic.Suppress), 542parseOptions: TestOptions.WithCovariantReturns, 639CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns) 701var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 716comp = CreateCompilationWithoutCovariantReturns(source, parseOptions: TestOptions.WithCovariantReturns).VerifyDiagnostics( 775var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 834var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 896var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 956var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 964comp = CreateCompilationWithoutCovariantReturns(source, parseOptions: TestOptions.WithCovariantReturns).VerifyDiagnostics( 1025var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 1089var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 1151var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 1213var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 1280var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 1430var comp = CreateCompilationWithCovariantReturns(source, references: new[] { baseMetadata }, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 1493var comp = CreateCompilationWithCovariantReturns(source, references: references, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 1557var comp = CreateCompilationWithCovariantReturns(source, references: references, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 1622var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 1819var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 1896var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 2088var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 2222var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 2287var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 2342var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 2396var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 2514var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 2864var comp = CreateCompilationWithCovariantReturns(s2, references, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 2930var comp = CreateCompilationWithCovariantReturns(s2, references, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 2997var comp = CreateCompilationWithCovariantReturns(s2, references, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 3097var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 3139var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 3181var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 3569var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 3748var comp = CreateCompilationWithCovariantReturns(cSharpSource, references, parseOptions: TestOptions.WithoutCovariantReturns); 3823var parseOptions = withCovariantReturnFeatureEnabled ? TestOptions.WithCovariantReturns : TestOptions.WithoutCovariantReturns; 3942var parseOptions = withCovariantReturnFeatureEnabled ? TestOptions.WithCovariantReturns : TestOptions.WithoutCovariantReturns; 4066var parseOptions = withCovariantReturnFeatureEnabled ? TestOptions.WithCovariantReturns : TestOptions.WithoutCovariantReturns; 4181var parseOptions = withCovariantReturnFeatureEnabled ? TestOptions.WithCovariantReturns : TestOptions.WithoutCovariantReturns; 4302var parseOptions = withCovariantReturnFeatureEnabled ? TestOptions.WithCovariantReturns : TestOptions.WithoutCovariantReturns; 4408var parseOptions = withCovariantReturnFeatureEnabled ? TestOptions.WithCovariantReturns : TestOptions.WithoutCovariantReturns;
Symbols\CustomModifiersTests.cs (40)
63var compilation = (Compilation)CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 133var compilation = (Compilation)CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 218var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 288var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 373var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 446var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 519var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 593var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 698var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 808var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 918var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 1028var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 1122var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 1229var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 1304var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 1371var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 1457var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 1514var compilation1 = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseDll); 1564var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseDll); 1603var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseDll); 1642var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseDll); 1674var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseDll); 1713var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseDll); 1755var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseDll); 1830var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Mscorlib40, references: new[] { SystemCoreRef }); 1975var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 2039var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 2110var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 2181var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 2254var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 2284options: TestOptions.ReleaseExe); 2330options: TestOptions.ReleaseExe); 2387var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 2425var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 2473var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 2594var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Standard); 2708var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Standard); 2802var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Standard); 2905var compilation = CreateCompilationWithIL(source, ilSource, options: TestOptions.ReleaseExe); 2997var compilation = CreateCompilationWithIL(source, ilSource, options: TestOptions.ReleaseExe);
Symbols\DefaultInterfaceImplementationTests.cs (2099)
117var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net60, 118parseOptions: TestOptions.RegularPreview); 168var compilation2 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 169parseOptions: TestOptions.RegularPreview, 287var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 288parseOptions: TestOptions.RegularPreview, 345var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 361var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 427var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 428parseOptions: TestOptions.RegularPreview, 485var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 501var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 578var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 579parseOptions: TestOptions.RegularPreview, 676var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 677parseOptions: TestOptions.RegularPreview, 778var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 779parseOptions: TestOptions.RegularPreview, 880var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 881parseOptions: TestOptions.RegularPreview, 967var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 968parseOptions: TestOptions.RegularPreview, 1042var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1043parseOptions: TestOptions.RegularPreview, 1121var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1122parseOptions: TestOptions.RegularPreview, 1200var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1201parseOptions: TestOptions.RegularPreview, 1279var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1280parseOptions: TestOptions.RegularPreview, 1363var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1364parseOptions: TestOptions.RegularPreview, 1451var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1452parseOptions: TestOptions.RegularPreview, 1539var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1540parseOptions: TestOptions.RegularPreview, 1585var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, 1586parseOptions: TestOptions.RegularPreview); 1623options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 1624parseOptions: isStatic ? TestOptions.Regular11 : TestOptions.Regular8); 1666var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60, 1667parseOptions: TestOptions.RegularPreview); 1679options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 1680parseOptions: isStatic ? TestOptions.Regular11 : TestOptions.Regular8); 1723var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1724parseOptions: TestOptions.Regular11, 1744var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugDll, 1746parseOptions: TestOptions.Regular7_3); 1776var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, 1777parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3, skipUsesIsNullable: true); 1820options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 1821parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3); 1871var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1872parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3, 1910var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 1911parseOptions: TestOptions.Regular11, 1928var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 1929parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3, 1971var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, 1972parseOptions: TestOptions.Regular11); 2015var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2016parseOptions: TestOptions.Regular7_3, 2038var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 2039parseOptions: TestOptions.Regular, 2102var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 2103parseOptions: TestOptions.Regular11, 2181var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 2182parseOptions: TestOptions.Regular11, 2203var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 2204parseOptions: TestOptions.Regular11, 2260var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2261parseOptions: TestOptions.Regular, 2267var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 2268parseOptions: TestOptions.Regular, 2329var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2330parseOptions: TestOptions.Regular, 2336var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 2337parseOptions: TestOptions.Regular, 2402var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2403parseOptions: TestOptions.Regular, 2409var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 2410parseOptions: TestOptions.Regular, 2475var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2476parseOptions: TestOptions.Regular, 2482var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 2483parseOptions: TestOptions.Regular, 2579var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 2580parseOptions: TestOptions.RegularPreview, 2633var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 2634parseOptions: TestOptions.RegularPreview, 2650var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 2651parseOptions: TestOptions.RegularPreview, 2970var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2971parseOptions: TestOptions.Regular, 3006var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3007parseOptions: TestOptions.RegularPreview, 3042var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3043parseOptions: TestOptions.Regular11, 3083var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3084parseOptions: TestOptions.Regular, 3108var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3109parseOptions: TestOptions.RegularPreview, 3133var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3134parseOptions: TestOptions.RegularPreview, 3163var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3164parseOptions: TestOptions.Regular, 3197var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3198parseOptions: TestOptions.RegularPreview, 3231var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3232parseOptions: TestOptions.RegularPreview, 3270var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3271parseOptions: TestOptions.Regular, 3295var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3296parseOptions: TestOptions.RegularPreview, 3320var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3321parseOptions: TestOptions.RegularPreview, 3359var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3360parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview, 3448var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3449parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview, 3514var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3515parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview, 3599var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3600parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview, 3722var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 3723parseOptions: TestOptions.RegularPreview, 3864var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 3865parseOptions: TestOptions.RegularPreview, 3982var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 3983parseOptions: TestOptions.RegularPreview, 4134var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 4135parseOptions: TestOptions.RegularPreview, 4225var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, 4226parseOptions: TestOptions.RegularPreview, skipUsesIsNullable: true); 4278options: TestOptions.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, 4279parseOptions: TestOptions.RegularPreview); 4393var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4394parseOptions: TestOptions.RegularPreview, 4406options: TestOptions.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, 4407parseOptions: TestOptions.RegularPreview); 4470var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4471parseOptions: TestOptions.RegularPreview, 4490targetFramework: TargetFramework.Mscorlib461Extended, options: TestOptions.DebugDll, 4491parseOptions: TestOptions.Regular); 4534var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 4535parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 4580options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 4581parseOptions: TestOptions.Regular7_3); 4634var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net50, 4635parseOptions: TestOptions.Regular10, skipUsesIsNullable: true); 4676options: TestOptions.DebugDll, targetFramework: TargetFramework.Net50, 4677parseOptions: TestOptions.Regular10); 4735var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4736parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3, 4786var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 4787parseOptions: TestOptions.RegularPreview, 4802var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 4803parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3, 4867var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4868parseOptions: TestOptions.Regular7_3, 5103var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5104parseOptions: TestOptions.Regular, 5140var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5141parseOptions: TestOptions.Regular, 5168var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5169parseOptions: TestOptions.Regular, 5205var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5206parseOptions: TestOptions.Regular, 5244var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5245parseOptions: TestOptions.Regular, 5297var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5298parseOptions: TestOptions.Regular, 5383var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 5384parseOptions: TestOptions.Regular, 5500var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 5501parseOptions: TestOptions.Regular, 5591var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 5592parseOptions: TestOptions.Regular, 5736var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 5737parseOptions: TestOptions.Regular, 5826var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 5827parseOptions: TestOptions.Regular, skipUsesIsNullable: true); 5856options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 5857parseOptions: TestOptions.Regular); 5953var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5954parseOptions: TestOptions.Regular, 5966options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 5967parseOptions: TestOptions.Regular); 6011var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6012parseOptions: TestOptions.Regular, 6030var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 6032parseOptions: TestOptions.Regular); 6081var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 6082parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 6127options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 6128parseOptions: TestOptions.Regular7_3); 6189var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6190parseOptions: TestOptions.Regular7_3, 6220var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 6221parseOptions: TestOptions.Regular, 6236var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 6237parseOptions: TestOptions.Regular7_3, 6283var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6284parseOptions: TestOptions.Regular7_3, 6354var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6355parseOptions: TestOptions.RegularPreview, 6368var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 6369parseOptions: TestOptions.RegularPreview, 6541var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 6542parseOptions: TestOptions.RegularPreview, 6598var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 6599parseOptions: TestOptions.RegularPreview, 6619var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 6620parseOptions: TestOptions.RegularPreview, 6943var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 6944parseOptions: TestOptions.RegularPreview, 7046var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 7047parseOptions: TestOptions.RegularPreview, 7137var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 7138parseOptions: TestOptions.RegularPreview, 7244var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 7245parseOptions: TestOptions.RegularPreview, 7309var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, 7310parseOptions: TestOptions.RegularPreview, skipUsesIsNullable: true); 7344options: TestOptions.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, 7345parseOptions: TestOptions.RegularPreview); 7417var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7418parseOptions: TestOptions.RegularPreview, 7430targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, options: TestOptions.DebugDll, 7431parseOptions: TestOptions.RegularPreview); 7477var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7478parseOptions: TestOptions.RegularPreview, 7496var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 7498parseOptions: TestOptions.RegularPreview); 7532var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 7533parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 7560options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 7561parseOptions: TestOptions.Regular7_3); 7597var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net50, 7598parseOptions: TestOptions.Regular10, skipUsesIsNullable: true); 7621options: TestOptions.DebugDll, targetFramework: TargetFramework.Net50, 7622parseOptions: TestOptions.Regular10); 7663var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7664parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3, 7696var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 7697parseOptions: TestOptions.RegularPreview, 7712var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 7713parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3, 7760var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7761parseOptions: TestOptions.Regular7_3, 7812var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7813parseOptions: TestOptions.Regular, 7969var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 7970parseOptions: TestOptions.Regular, 8085var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8086parseOptions: TestOptions.Regular, 8245var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 8246parseOptions: TestOptions.Regular, 8363var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8364parseOptions: TestOptions.Regular, 8399var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8400parseOptions: TestOptions.Regular, 8612var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8613parseOptions: TestOptions.Regular7_3, 8678var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 8679parseOptions: TestOptions.Regular, 8770var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 8771parseOptions: TestOptions.Regular); 8812var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8813parseOptions: TestOptions.Regular7_3); 8871var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 8872parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 8937var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8938parseOptions: TestOptions.Regular9, 9041var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 9042parseOptions: TestOptions.Regular, 9092var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9093parseOptions: TestOptions.Regular, 9230var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 9231parseOptions: TestOptions.Regular9, 9257compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 9258parseOptions: isStatic ? TestOptions.Regular11 : TestOptions.Regular10, 9265var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 9266parseOptions: TestOptions.RegularPreview, 9282var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 9283parseOptions: TestOptions.Regular9, 9295compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 9296parseOptions: TestOptions.Regular10, 9308var compilation5 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugDll, 9309parseOptions: TestOptions.Regular, 9447var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 9448parseOptions: TestOptions.Regular9, 9455compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 9456parseOptions: TestOptions.RegularPreview, 9462var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 9463parseOptions: TestOptions.RegularPreview, 9472var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 9473parseOptions: TestOptions.Regular9, 9481compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 9482parseOptions: TestOptions.RegularPreview, 9529var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 9530parseOptions: TestOptions.Regular); 9536var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 9537parseOptions: TestOptions.Regular); 9543var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 9544parseOptions: TestOptions.Regular); 9554var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 9555parseOptions: TestOptions.Regular); 9828var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 9829parseOptions: TestOptions.Regular); 9835var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 9836parseOptions: TestOptions.Regular); 9842var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 9843parseOptions: TestOptions.Regular); 9849var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 9850parseOptions: TestOptions.Regular); 9887var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 9888parseOptions: TestOptions.Regular, 9899var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 9900parseOptions: TestOptions.Regular, 9907var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 9908parseOptions: TestOptions.Regular, 9919var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 9920parseOptions: TestOptions.Regular, 9964var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 9965parseOptions: TestOptions.Regular9, 9976compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 9977parseOptions: TestOptions.Regular, 9984var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 9985parseOptions: TestOptions.Regular, 9994foreach (var parseOptions in new[] { TestOptions.Regular9, TestOptions.Regular }) 9996var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 10043var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 10044parseOptions: TestOptions.Regular, 10050var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 10051parseOptions: TestOptions.Regular9, 10058compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 10059parseOptions: TestOptions.Regular, 10081var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10082parseOptions: TestOptions.Regular); 10133var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 10134parseOptions: TestOptions.Regular, 10192var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10193parseOptions: TestOptions.Regular, 10303var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10304parseOptions: TestOptions.Regular, 10371var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 10372parseOptions: TestOptions.Regular, 10456var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 10457parseOptions: TestOptions.Regular7_3, 10507var compilation3 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 10508parseOptions: TestOptions.Regular, skipUsesIsNullable: true); 10574var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10575parseOptions: TestOptions.Regular, 10676var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10677parseOptions: TestOptions.Regular9, 10827var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 10828parseOptions: TestOptions.Regular, 10881var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 10882parseOptions: TestOptions.Regular, 10915var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 10916parseOptions: TestOptions.Regular, 10927var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 10928parseOptions: TestOptions.Regular, 10938var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 10939parseOptions: TestOptions.Regular, 10977var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 10978parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 11000options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 11001parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 11054var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 11055parseOptions: TestOptions.Regular, 11160var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 11161parseOptions: TestOptions.Regular, 11233var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11234parseOptions: TestOptions.Regular7_3); 11256var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11257parseOptions: TestOptions.Regular7_3, 11298var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11299parseOptions: TestOptions.RegularWithExtendedPartialMethods, 11353var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 11354parseOptions: TestOptions.RegularWithExtendedPartialMethods, 11455var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11456parseOptions: TestOptions.RegularWithExtendedPartialMethods, 11522var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11523parseOptions: TestOptions.Regular, 11552var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11553parseOptions: TestOptions.Regular, 11579var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 11580parseOptions: TestOptions.Regular, 11606var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11607parseOptions: TestOptions.Regular, 11633var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11634parseOptions: TestOptions.Regular, 11646var compilation2 = CreateCompilation(source1 + source2, options: TestOptions.DebugDll, 11647parseOptions: TestOptions.Regular, 11692var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 11693parseOptions: TestOptions.Regular, 11716var compilation2 = CreateCompilation(source0 + source2, options: TestOptions.DebugExe, 11717parseOptions: TestOptions.Regular, 11724var compilation3 = CreateCompilation(source0, options: TestOptions.DebugDll, 11725parseOptions: TestOptions.Regular, 11757var compilation4 = CreateCompilation(source3, options: TestOptions.DebugExe, 11759parseOptions: TestOptions.Regular, 11767var compilation5 = CreateCompilation(source4, options: TestOptions.DebugExe, 11769parseOptions: TestOptions.Regular, 11784var compilation6 = CreateCompilation(source1, options: TestOptions.DebugExe, 11786parseOptions: TestOptions.Regular, 11847var compilation1 = CreateCompilation(source21 + source1, options: TestOptions.DebugExe, 11848parseOptions: TestOptions.Regular9, 11881compilation1 = CreateCompilation(source22 + source1, options: TestOptions.DebugExe, 11882parseOptions: TestOptions.Regular, 11890var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 11891parseOptions: TestOptions.Regular, 11907var compilation3 = CreateCompilation(source21, new[] { reference }, options: TestOptions.DebugExe, 11908parseOptions: TestOptions.Regular9, 11915compilation3 = CreateCompilation(source22, new[] { reference }, options: TestOptions.DebugExe, 11916parseOptions: TestOptions.Regular, 11923var compilation5 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugDll, 11924parseOptions: TestOptions.Regular, 11983var compilation1 = CreateCompilation(source21 + source1, options: TestOptions.DebugExe, 11984parseOptions: TestOptions.Regular9, 11996compilation1 = CreateCompilation(source21 + source1, options: TestOptions.DebugExe, 11997parseOptions: TestOptions.Regular, 12005var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 12006parseOptions: TestOptions.Regular, 12022var compilation3 = CreateCompilation(source21, new[] { reference }, options: TestOptions.DebugExe, 12023parseOptions: TestOptions.Regular9, 12037compilation3 = CreateCompilation(source22, new[] { reference }, options: TestOptions.DebugExe, 12038parseOptions: TestOptions.Regular, 12044var compilation5 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugDll, 12045parseOptions: TestOptions.Regular, 12103var compilation1 = CreateCompilation(source21 + source1, options: TestOptions.DebugExe, 12104parseOptions: TestOptions.Regular9, 12119compilation1 = CreateCompilation(source22 + source1, options: TestOptions.DebugExe, 12120parseOptions: TestOptions.Regular, 12128var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 12129parseOptions: TestOptions.Regular, 12145var compilation3 = CreateCompilation(source21, new[] { reference }, options: TestOptions.DebugExe, 12146parseOptions: TestOptions.Regular9, 12160compilation3 = CreateCompilation(source22, new[] { reference }, options: TestOptions.DebugExe, 12161parseOptions: TestOptions.Regular, 12173var compilation5 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugDll, 12174parseOptions: TestOptions.Regular, 12216var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 12217parseOptions: TestOptions.Regular, 12226var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 12227parseOptions: TestOptions.Regular, 12237var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 12238parseOptions: TestOptions.Regular, 12278var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 12279parseOptions: TestOptions.Regular, 12288var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 12289parseOptions: TestOptions.Regular, 12299var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 12300parseOptions: TestOptions.Regular, 12340var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 12341parseOptions: TestOptions.Regular, 12350var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 12351parseOptions: TestOptions.Regular, 12360var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 12361parseOptions: TestOptions.Regular, 12612var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 12613parseOptions: TestOptions.Regular, 12623var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 12624parseOptions: TestOptions.Regular, 12637var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 12638parseOptions: TestOptions.Regular, 12700var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 12701parseOptions: TestOptions.Regular, 12711var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 12712parseOptions: TestOptions.Regular, 12725var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 12726parseOptions: TestOptions.Regular, 12788var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 12789parseOptions: TestOptions.Regular, 12799var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 12800parseOptions: TestOptions.Regular, 12813var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 12814parseOptions: TestOptions.Regular, 12892var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12893parseOptions: TestOptions.Regular, 12947var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12948parseOptions: TestOptions.Regular, 13020var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13021parseOptions: TestOptions.Regular, 13077var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13078parseOptions: TestOptions.Regular, 13567var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13568parseOptions: TestOptions.Regular7_3, 13657var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 13658parseOptions: TestOptions.Regular, 13897var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13898parseOptions: TestOptions.Regular, 13991var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 13992parseOptions: TestOptions.Regular); 14065var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14066parseOptions: TestOptions.Regular7_3); 14212var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 14213parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 14230var compilation2 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 14231parseOptions: TestOptions.Regular, targetFramework: TargetFramework.Mscorlib461Extended); 14359var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14360parseOptions: TestOptions.Regular9, 14606var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 14607parseOptions: TestOptions.Regular, 14705var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14706parseOptions: TestOptions.Regular, 14912var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 14913parseOptions: TestOptions.Regular9, 14920compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 14921parseOptions: TestOptions.Regular, 14932var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 14933parseOptions: TestOptions.Regular, 14958var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 14959parseOptions: TestOptions.Regular9, 14966compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 14967parseOptions: TestOptions.Regular, 14985var compilation5 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugDll, 14986parseOptions: TestOptions.Regular, 15110var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 15111parseOptions: TestOptions.Regular9, 15118compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 15119parseOptions: TestOptions.Regular, 15129var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 15130parseOptions: TestOptions.Regular, 15137var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 15138parseOptions: TestOptions.Regular9, 15145compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 15146parseOptions: TestOptions.Regular, 15245var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 15247parseOptions: TestOptions.Regular); 15255var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 15257parseOptions: TestOptions.Regular); 15263var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 15265parseOptions: TestOptions.Regular); 15660var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 15661parseOptions: TestOptions.Regular); 15669var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 15670parseOptions: TestOptions.Regular); 15674var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 15675parseOptions: TestOptions.Regular); 15683var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 15684parseOptions: TestOptions.Regular); 15743var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 15744parseOptions: TestOptions.Regular); 15750var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 15751parseOptions: TestOptions.Regular); 15755var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 15756parseOptions: TestOptions.Regular); 15762var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 15763parseOptions: TestOptions.Regular); 15837var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 15838parseOptions: TestOptions.Regular9, 15845compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 15846parseOptions: TestOptions.Regular, 15856var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 15857parseOptions: TestOptions.Regular, 15864var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugDll, 15865parseOptions: TestOptions.Regular9, 15872compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 15873parseOptions: TestOptions.Regular, 15955var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 15956parseOptions: TestOptions.Regular9, 15962compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 15963parseOptions: TestOptions.Regular, 15969var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 15970parseOptions: TestOptions.Regular, 16002var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16003parseOptions: TestOptions.Regular); 16175var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 16176parseOptions: TestOptions.Regular, 16307var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16308parseOptions: TestOptions.Regular, 16579var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16580parseOptions: TestOptions.Regular, 16767var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 16768parseOptions: TestOptions.Regular, 16917var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 16918parseOptions: TestOptions.Regular7_3, 16925var compilation3 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 16926parseOptions: TestOptions.Regular, skipUsesIsNullable: true); 17015var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17016parseOptions: TestOptions.Regular, 17265var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17266parseOptions: TestOptions.Regular9, 17456var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 17457parseOptions: TestOptions.Regular, 17510var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 17511parseOptions: TestOptions.Regular, 17527var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 17528parseOptions: TestOptions.Regular, 17541var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 17542parseOptions: TestOptions.Regular, 17588var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17589parseOptions: TestOptions.Regular, 17620options: TestOptions.DebugDll, 17621parseOptions: TestOptions.Regular, 17726var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 17727parseOptions: TestOptions.Regular, 18282var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe.WithMetadataImportOptions(metadataImportOptions), 18283parseOptions: TestOptions.Regular, 18315var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(metadataImportOptions), 18316parseOptions: TestOptions.Regular, 18329options: TestOptions.DebugExe.WithMetadataImportOptions(metadataImportOptions), 18330parseOptions: TestOptions.Regular, 18457var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 18458parseOptions: TestOptions.Regular9, 18465compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 18466parseOptions: TestOptions.Regular, 18484var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 18485parseOptions: TestOptions.Regular, 18495options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 18496parseOptions: TestOptions.Regular9, 18504options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 18505parseOptions: TestOptions.Regular, 19837var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 19838parseOptions: TestOptions.Regular, 19891var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 19892parseOptions: TestOptions.Regular, 19908var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 19909parseOptions: TestOptions.Regular, 19922var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 19923parseOptions: TestOptions.Regular, 19969var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 19970parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 20000options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 20001parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 20038var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 20039parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 20170var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 20171parseOptions: TestOptions.Regular, 20315options: TestOptions.DebugExe, 20317parseOptions: TestOptions.Regular); 20353var compilation2 = CreateCompilation(source0 + source2, options: TestOptions.DebugExe, 20354parseOptions: TestOptions.Regular, 20367var compilation3 = CreateCompilation(source0, options: TestOptions.DebugDll, 20368parseOptions: TestOptions.Regular, 20426var compilation4 = CreateCompilation(source3, options: TestOptions.DebugExe, 20428parseOptions: TestOptions.Regular, 20444var compilation5 = CreateCompilation(source4, options: TestOptions.DebugExe, 20446parseOptions: TestOptions.Regular, 20456var compilation6 = CreateCompilation(source5, options: TestOptions.DebugExe, 20458parseOptions: TestOptions.Regular, 20491var compilation7 = CreateCompilation(source1, options: TestOptions.DebugExe, 20493parseOptions: TestOptions.Regular, 21552var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 21553parseOptions: TestOptions.Regular, 22041var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22042parseOptions: TestOptions.Regular7_3, 22131var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 22132parseOptions: TestOptions.Regular, 22370var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22371parseOptions: TestOptions.Regular, 22447var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22448parseOptions: TestOptions.Regular7_3); 22625var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22626parseOptions: TestOptions.Regular, 23381var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 23382parseOptions: TestOptions.Regular); 23688var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 23689parseOptions: TestOptions.Regular, 23754var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 23755parseOptions: TestOptions.Regular, 23871var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 23872parseOptions: TestOptions.Regular, 23937var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 23938parseOptions: TestOptions.Regular, 24507var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 24508parseOptions: TestOptions.Regular, 24539options: TestOptions.DebugDll, 24540parseOptions: TestOptions.Regular, 26531var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 26532parseOptions: TestOptions.Regular, 26568options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 26569parseOptions: TestOptions.Regular, 26607var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 26608parseOptions: TestOptions.Regular, 26743var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 26744parseOptions: TestOptions.Regular, 26799var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 26800parseOptions: TestOptions.Regular, 27133var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 27134parseOptions: TestOptions.Regular7_3, 27223var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 27224parseOptions: TestOptions.Regular, 27619var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 27620parseOptions: TestOptions.Regular); 27693var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 27694parseOptions: TestOptions.Regular7_3); 27789var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 27790parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 27863var compilation2 = CreateCompilation(source2, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 27864parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 27883var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 27884parseOptions: TestOptions.Regular, targetFramework: TargetFramework.Mscorlib461Extended); 27940var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 27941parseOptions: TestOptions.Regular9, 28117var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 28118parseOptions: TestOptions.Regular, 28195var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28196parseOptions: TestOptions.Regular, 28418var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 28419parseOptions: TestOptions.Regular9, 28426compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 28427parseOptions: TestOptions.Regular, 28478var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 28479parseOptions: TestOptions.Regular, 28501var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 28502parseOptions: TestOptions.Regular9, 28509compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 28510parseOptions: TestOptions.Regular, 28528var compilation5 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugDll, 28529parseOptions: TestOptions.Regular, 28615var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 28616parseOptions: TestOptions.Regular9, 28623compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 28624parseOptions: TestOptions.Regular, 28634var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 28635parseOptions: TestOptions.Regular, 28642var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 28643parseOptions: TestOptions.Regular9, 28650compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 28651parseOptions: TestOptions.Regular, 28751var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, targetFramework: targetFramework, 28752parseOptions: TestOptions.Regular); 28760var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: targetFramework, 28761parseOptions: TestOptions.Regular); 28767var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 28768parseOptions: TestOptions.Regular, targetFramework: targetFramework); 29169var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 29170parseOptions: TestOptions.Regular); 29178var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 29179parseOptions: TestOptions.Regular); 29183var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 29184parseOptions: TestOptions.Regular); 29192var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 29193parseOptions: TestOptions.Regular); 29255var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 29256parseOptions: TestOptions.Regular); 29262var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 29263parseOptions: TestOptions.Regular); 29267var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 29268parseOptions: TestOptions.Regular); 29274var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 29275parseOptions: TestOptions.Regular); 29349var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 29350parseOptions: TestOptions.Regular9, 29357compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 29358parseOptions: TestOptions.Regular, 29368var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 29369parseOptions: TestOptions.Regular, 29376var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugDll, 29377parseOptions: TestOptions.Regular9, 29384compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 29385parseOptions: TestOptions.Regular, 29460var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 29461parseOptions: TestOptions.Regular9, 29467compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 29468parseOptions: TestOptions.Regular, 29474var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 29475parseOptions: TestOptions.Regular, 29500var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 29501parseOptions: TestOptions.Regular); 29578var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 29579parseOptions: TestOptions.Regular, 29696var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 29697parseOptions: TestOptions.Regular, 29992var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 29993parseOptions: TestOptions.Regular, 30103var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 30104parseOptions: TestOptions.Regular, 30265var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 30266parseOptions: TestOptions.Regular7_3, 30319var compilation3 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 30320parseOptions: TestOptions.Regular, skipUsesIsNullable: true); 30438var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30439parseOptions: TestOptions.Regular, 30659var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30660parseOptions: TestOptions.Regular9, 30861var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 30862parseOptions: TestOptions.Regular, 30915var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 30916parseOptions: TestOptions.Regular, 30930var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 30931parseOptions: TestOptions.Regular, 30944var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 30945parseOptions: TestOptions.Regular, 30990var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30991parseOptions: TestOptions.Regular, 31021options: TestOptions.DebugDll, 31022parseOptions: TestOptions.Regular, 31095options: TestOptions.DebugExe, 31096parseOptions: TestOptions.Regular, 31121var compilation2 = CreateCompilation(source0 + source2, options: TestOptions.DebugExe, 31122parseOptions: TestOptions.Regular, 31130var compilation3 = CreateCompilation(source0, options: TestOptions.DebugDll, 31131parseOptions: TestOptions.Regular, 31168var compilation4 = CreateCompilation(source3, options: TestOptions.DebugExe, 31170parseOptions: TestOptions.Regular, 31180var compilation5 = CreateCompilation(source4, options: TestOptions.DebugExe, 31182parseOptions: TestOptions.Regular, 31206var compilation6 = CreateCompilation(source1, options: TestOptions.DebugExe, 31208parseOptions: TestOptions.Regular, 31750var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 31751parseOptions: TestOptions.Regular, 31809var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 31810parseOptions: TestOptions.Regular7_3); 31932var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 31933parseOptions: TestOptions.Regular, 31983var compilation2 = CreateCompilation(source2 + source0, options: TestOptions.DebugExe, 31984parseOptions: TestOptions.Regular, 32016var compilation3 = CreateCompilation(source0, options: TestOptions.DebugDll, 32017parseOptions: TestOptions.Regular, 32024var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 32026parseOptions: TestOptions.Regular, 32038var compilation5 = CreateCompilation(source2, options: TestOptions.DebugExe, 32040parseOptions: TestOptions.Regular, 32123var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 32124parseOptions: TestOptions.Regular, 32150var compilation3 = CreateCompilation(source0, options: TestOptions.DebugDll, 32151parseOptions: TestOptions.Regular, 32158var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 32160parseOptions: TestOptions.Regular, 32172var compilation5 = CreateCompilation(source2, options: TestOptions.DebugExe, 32174parseOptions: TestOptions.Regular, 32254var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32255parseOptions: TestOptions.Regular); 32257var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe); 32287var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe); 32381var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32382parseOptions: TestOptions.Regular); 32481var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 32482parseOptions: TestOptions.Regular, 32508var compilation2 = CreateCompilation(source2 + source0, options: TestOptions.DebugExe, 32509parseOptions: TestOptions.Regular, 32541var compilation3 = CreateCompilation(source0, options: TestOptions.DebugDll, 32542parseOptions: TestOptions.Regular, 32549var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 32551parseOptions: TestOptions.Regular, 32556var compilation5 = CreateCompilation(source2, options: TestOptions.DebugExe, 32558parseOptions: TestOptions.Regular, 32687var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32688parseOptions: TestOptions.Regular, 32764var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32765parseOptions: TestOptions.Regular); 32801var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32828var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32870var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32959var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 32960parseOptions: TestOptions.RegularPreview, 32975var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 32976parseOptions: TestOptions.RegularPreview, 32991var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 32992parseOptions: TestOptions.RegularPreview, 33117var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33118parseOptions: TestOptions.Regular7_3, 33141var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 33142parseOptions: TestOptions.Regular7_3, 33193var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33194parseOptions: TestOptions.Regular10, 33214CreateCompilation(source1, options: TestOptions.DebugDll, 33215parseOptions: TestOptions.RegularPreview, 33227var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 33228parseOptions: TestOptions.Regular10, 33243CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 33244parseOptions: TestOptions.RegularPreview, 33283var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 33284parseOptions: TestOptions.Regular, skipUsesIsNullable: true); 33308options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 33309parseOptions: TestOptions.Regular); 33357var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net50, 33358parseOptions: TestOptions.RegularPreview, skipUsesIsNullable: true); 33387options: TestOptions.DebugDll, targetFramework: TargetFramework.Net50, 33388parseOptions: TestOptions.RegularPreview); 33433var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33434parseOptions: TestOptions.RegularPreview, 33481var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33482parseOptions: TestOptions.RegularPreview, 33530var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33531parseOptions: TestOptions.RegularPreview, 33588var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33589parseOptions: TestOptions.RegularPreview, 33650var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33651parseOptions: TestOptions.RegularPreview, 33714var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33715parseOptions: TestOptions.RegularPreview, 33760var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33761parseOptions: TestOptions.RegularPreview, 33799var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 33800parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3, 33832var compilation3 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, 33833parseOptions: TestOptions.RegularPreview, skipUsesIsNullable: true); 33884var compilation4 = CreateCompilation(source2, options: TestOptions.DebugDll, 33885parseOptions: TestOptions.RegularPreview, 33980var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 33981parseOptions: TestOptions.RegularPreview, 34141var compilation1 = CreateCompilation(source1 + source2 + source3, options: TestOptions.DebugExe, 34142parseOptions: TestOptions.RegularPreview, 34157var compilation2 = CreateCompilation(source3, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 34158parseOptions: TestOptions.RegularPreview, 34173var compilation3 = CreateCompilation(source3, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 34174parseOptions: TestOptions.RegularPreview, 34188var compilation4 = CreateCompilation(source1, options: TestOptions.DebugDll, 34189parseOptions: TestOptions.RegularPreview, 34194var compilation5 = CreateCompilation(source2 + source3, new[] { compilation4.ToMetadataReference() }, options: TestOptions.DebugDll, 34195parseOptions: TestOptions.RegularPreview, 34210var compilation6 = CreateCompilation(source2 + source3, new[] { compilation4.EmitToImageReference() }, options: TestOptions.DebugDll, 34211parseOptions: TestOptions.RegularPreview, 34282var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 34283parseOptions: TestOptions.RegularPreview, 34463var compilation2 = CreateCompilation(source2, new[] { ref1 }, options: TestOptions.DebugDll, 34464parseOptions: TestOptions.RegularPreview, 34489compilation2 = CreateCompilation(source2, new[] { ref1 }, options: TestOptions.DebugDll, 34490parseOptions: TestOptions.Regular7_3, 34501var compilation4 = CreateCompilation(source4, new[] { ref1 }, options: TestOptions.DebugExe, 34502parseOptions: TestOptions.RegularPreview, 34540var compilation3 = CreateCompilation(source3, new[] { ref1, ref2 }, options: TestOptions.DebugDll, 34541parseOptions: TestOptions.RegularPreview, 34585var compilation5 = CreateCompilation(source5, new[] { ref1, ref2 }, options: TestOptions.DebugExe, 34586parseOptions: TestOptions.RegularPreview, 34683var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 34684parseOptions: TestOptions.RegularPreview, 34689var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 34690parseOptions: TestOptions.RegularPreview, 34703var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 34704parseOptions: TestOptions.RegularPreview, 34797var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 34798parseOptions: TestOptions.RegularPreview, 34894var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 34895parseOptions: TestOptions.RegularPreview, 34912var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 34913parseOptions: TestOptions.RegularPreview, 34968var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 34969parseOptions: TestOptions.RegularPreview, 34973var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 34974parseOptions: TestOptions.RegularPreview, 34997var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 34998parseOptions: TestOptions.RegularPreview, 35059var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 35060parseOptions: TestOptions.RegularPreview, 35064var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 35065parseOptions: TestOptions.RegularPreview, 35092var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 35093parseOptions: TestOptions.RegularPreview, 35160var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 35161parseOptions: TestOptions.RegularPreview, 35165var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 35166parseOptions: TestOptions.RegularPreview, 35190var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 35191parseOptions: TestOptions.RegularPreview, 35256var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 35257parseOptions: TestOptions.RegularPreview, 35261var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 35262parseOptions: TestOptions.RegularPreview, 35285var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 35286parseOptions: TestOptions.RegularPreview, 35351var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 35352parseOptions: TestOptions.RegularPreview, 35366var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 35367parseOptions: TestOptions.RegularPreview, 35462var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 35463parseOptions: TestOptions.RegularPreview, 35469var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 35470parseOptions: TestOptions.RegularPreview, 35571var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 35572parseOptions: TestOptions.RegularPreview, 35578var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 35579parseOptions: TestOptions.RegularPreview, 35684var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 35685parseOptions: TestOptions.RegularPreview, 35691var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 35692parseOptions: TestOptions.RegularPreview, 35797var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 35798parseOptions: TestOptions.RegularPreview, 35804var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 35805parseOptions: TestOptions.RegularPreview, 35899var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 35900parseOptions: TestOptions.RegularPreview, 35910var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 35911parseOptions: TestOptions.RegularPreview, 36008var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 36009parseOptions: TestOptions.RegularPreview, 36015var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 36016parseOptions: TestOptions.RegularPreview, 36102var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 36103parseOptions: TestOptions.RegularPreview, 36113var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 36114parseOptions: TestOptions.RegularPreview, 36220var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 36221parseOptions: TestOptions.RegularPreview, 36227var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 36228parseOptions: TestOptions.RegularPreview, 36386var compilation1 = CreateCompilation(source1 + source2 + source3, options: TestOptions.DebugExe, 36387parseOptions: TestOptions.RegularPreview, 36404var compilation2 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugExe, 36405parseOptions: TestOptions.RegularPreview, 36421var compilation4 = CreateCompilation(source1, options: TestOptions.DebugDll, 36422parseOptions: TestOptions.RegularPreview, 36429var compilation5 = CreateCompilation(source2 + source3, new[] { reference }, options: TestOptions.DebugExe, 36430parseOptions: TestOptions.RegularPreview, 36574var compilation1 = CreateCompilation(source1 + source2 + source3, options: TestOptions.DebugExe, 36575parseOptions: TestOptions.RegularPreview, 36592var compilation2 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugExe, 36593parseOptions: TestOptions.RegularPreview, 36609var compilation4 = CreateCompilation(source1, options: TestOptions.DebugDll, 36610parseOptions: TestOptions.RegularPreview, 36617var compilation5 = CreateCompilation(source2 + source3, new[] { reference }, options: TestOptions.DebugExe, 36618parseOptions: TestOptions.RegularPreview, 36762var compilation1 = CreateCompilation(source1 + source2 + source3, options: TestOptions.DebugExe, 36763parseOptions: TestOptions.RegularPreview, 36780var compilation2 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugExe, 36781parseOptions: TestOptions.RegularPreview, 36797var compilation4 = CreateCompilation(source1, options: TestOptions.DebugDll, 36798parseOptions: TestOptions.RegularPreview, 36805var compilation5 = CreateCompilation(source2 + source3, new[] { reference }, options: TestOptions.DebugDll, 36806parseOptions: TestOptions.RegularPreview, 36859var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 36860parseOptions: TestOptions.RegularPreview, 36887var comp = CreateCompilation(source1, options: TestOptions.DebugDll, 36888parseOptions: TestOptions.Regular, 36984foreach (var options in new[] { TestOptions.DebugExe, TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All) }) 36987parseOptions: TestOptions.RegularPreview, 37003parseOptions: TestOptions.RegularPreview, 37019parseOptions: TestOptions.RegularPreview, 37274var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 37275parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3, 37291var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 37292parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3, 37375var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, 37376parseOptions: TestOptions.RegularPreview, skipUsesIsNullable: true); 37392options: TestOptions.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, 37393parseOptions: TestOptions.RegularPreview); 37522var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 37523parseOptions: TestOptions.RegularPreview, 37605var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 37606parseOptions: TestOptions.RegularPreview, 37649var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 37650parseOptions: TestOptions.RegularPreview, 37715var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 37716parseOptions: TestOptions.RegularPreview, 37952var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 37953parseOptions: TestOptions.RegularPreview, 37987var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 37988parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3, 37995var compilation3 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, 37996parseOptions: TestOptions.RegularPreview, skipUsesIsNullable: true); 38002var compilation4 = CreateCompilation(source2, options: TestOptions.DebugDll, 38003parseOptions: TestOptions.RegularPreview, 38401var compilation1 = CreateCompilation(source1 + source2 + source3, options: TestOptions.DebugExe, 38402parseOptions: TestOptions.RegularPreview, 38420var compilation2 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugExe, 38421parseOptions: TestOptions.RegularPreview, 38438var compilation4 = CreateCompilation(source1, options: TestOptions.DebugDll, 38439parseOptions: TestOptions.RegularPreview, 38446var compilation5 = CreateCompilation(source2 + source3, new[] { reference }, options: TestOptions.DebugExe, 38447parseOptions: TestOptions.RegularPreview, 38741var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 38742parseOptions: TestOptions.RegularPreview, 38800var compilation2 = CreateCompilation(source2, new[] { ref1 }, options: TestOptions.DebugDll, 38801parseOptions: TestOptions.RegularPreview, 38826compilation2 = CreateCompilation(source2, new[] { ref1 }, options: TestOptions.DebugDll, 38827parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3, 38838var compilation4 = CreateCompilation(source4, new[] { ref1 }, options: TestOptions.DebugExe, 38839parseOptions: TestOptions.RegularPreview, 38880var compilation3 = CreateCompilation(source3, new[] { ref1, ref2 }, options: TestOptions.DebugDll.WithConcurrentBuild(false), 38881parseOptions: TestOptions.RegularPreview, 38909var compilation5 = CreateCompilation(source5, new[] { ref1, ref2 }, options: TestOptions.DebugExe, 38910parseOptions: TestOptions.RegularPreview, 39002var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 39003parseOptions: TestOptions.RegularPreview, 39008var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 39009parseOptions: TestOptions.RegularPreview, 39015var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 39016parseOptions: TestOptions.RegularPreview, 39106var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 39107parseOptions: TestOptions.RegularPreview, 39175var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 39176parseOptions: TestOptions.RegularPreview, 39193var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 39194parseOptions: TestOptions.RegularPreview, 39492var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 39493parseOptions: TestOptions.RegularPreview, 39510var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 39511parseOptions: TestOptions.RegularPreview, 40014var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 40015parseOptions: TestOptions.RegularPreview, 40032var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 40033parseOptions: TestOptions.RegularPreview, 40050var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 40051parseOptions: TestOptions.RegularPreview, 40212var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 40213parseOptions: TestOptions.Regular7_3, 40242var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 40243parseOptions: TestOptions.Regular7_3, 40303var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 40304parseOptions: TestOptions.Regular10, 40333var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 40334parseOptions: TestOptions.Regular10, 40393var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 40394parseOptions: TestOptions.Regular, skipUsesIsNullable: true); 40424options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 40425parseOptions: TestOptions.Regular); 40482var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net50, 40483parseOptions: TestOptions.RegularPreview, skipUsesIsNullable: true); 40512options: TestOptions.DebugDll, targetFramework: TargetFramework.Net50, 40513parseOptions: TestOptions.RegularPreview); 40572var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 40573parseOptions: TestOptions.RegularPreview, 40615var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 40616parseOptions: TestOptions.RegularPreview, 40663var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 40664parseOptions: TestOptions.RegularPreview, 40723var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 40724parseOptions: TestOptions.RegularPreview, 40787var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 40788parseOptions: TestOptions.RegularPreview, 40853var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 40854parseOptions: TestOptions.RegularPreview, 40927var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 40928parseOptions: TestOptions.RegularPreview, 41069var compilation1 = CreateCompilation(source1 + source2 + source3, options: TestOptions.DebugExe, 41070parseOptions: TestOptions.RegularPreview, 41087var compilation2 = CreateCompilation(source3, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 41088parseOptions: TestOptions.RegularPreview, 41105var compilation3 = CreateCompilation(source3, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 41106parseOptions: TestOptions.RegularPreview, 41122var compilation4 = CreateCompilation(source1, options: TestOptions.DebugDll, 41123parseOptions: TestOptions.RegularPreview, 41128var compilation5 = CreateCompilation(source2 + source3, new[] { compilation4.ToMetadataReference() }, options: TestOptions.DebugDll, 41129parseOptions: TestOptions.RegularPreview, 41141var compilation6 = CreateCompilation(source2 + source3, new[] { compilation4.EmitToImageReference() }, options: TestOptions.DebugDll, 41142parseOptions: TestOptions.RegularPreview, 41238var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 41239parseOptions: TestOptions.RegularPreview, 41462var compilation2 = CreateCompilation(source2, new[] { ref1 }, options: TestOptions.DebugDll, 41463parseOptions: TestOptions.RegularPreview, 41488compilation2 = CreateCompilation(source2, new[] { ref1 }, options: TestOptions.DebugDll, 41489parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3, 41500var compilation4 = CreateCompilation(source4, new[] { ref1 }, options: TestOptions.DebugExe, 41501parseOptions: TestOptions.RegularPreview, 41542var compilation3 = CreateCompilation(source3, new[] { ref1, ref2 }, options: TestOptions.DebugDll.WithConcurrentBuild(false), 41543parseOptions: TestOptions.RegularPreview, 41587var compilation5 = CreateCompilation(source5, new[] { ref1, ref2 }, options: TestOptions.DebugExe, 41588parseOptions: TestOptions.RegularPreview, 41668var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 41669parseOptions: TestOptions.RegularPreview, 41674var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 41675parseOptions: TestOptions.RegularPreview, 41688var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 41689parseOptions: TestOptions.RegularPreview, 41782var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 41783parseOptions: TestOptions.RegularPreview, 41851var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 41852parseOptions: TestOptions.RegularPreview, 41869var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 41870parseOptions: TestOptions.RegularPreview, 42019var compilation1 = CreateCompilation(source1 + source2 + source3, options: TestOptions.DebugExe, 42020parseOptions: TestOptions.RegularPreview, 42039var compilation2 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugExe, 42040parseOptions: TestOptions.RegularPreview, 42058var compilation4 = CreateCompilation(source1, options: TestOptions.DebugDll, 42059parseOptions: TestOptions.RegularPreview, 42066var compilation5 = CreateCompilation(source2 + source3, new[] { reference }, options: TestOptions.DebugExe, 42067parseOptions: TestOptions.RegularPreview, 42223var compilation1 = CreateCompilation(source1 + source2 + source3, options: TestOptions.DebugExe, 42224parseOptions: TestOptions.RegularPreview, 42243var compilation2 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugExe, 42244parseOptions: TestOptions.RegularPreview, 42262var compilation4 = CreateCompilation(source1, options: TestOptions.DebugDll, 42263parseOptions: TestOptions.RegularPreview, 42270var compilation5 = CreateCompilation(source2 + source3, new[] { reference }, options: TestOptions.DebugExe, 42271parseOptions: TestOptions.RegularPreview, 42427var compilation1 = CreateCompilation(source1 + source2 + source3, options: TestOptions.DebugExe, 42428parseOptions: TestOptions.RegularPreview, 42447var compilation2 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugExe, 42448parseOptions: TestOptions.RegularPreview, 42466var compilation4 = CreateCompilation(source1, options: TestOptions.DebugDll, 42467parseOptions: TestOptions.RegularPreview, 42474var compilation5 = CreateCompilation(source2 + source3, new[] { reference }, options: TestOptions.DebugDll, 42475parseOptions: TestOptions.RegularPreview, 43590parseOptions: TestOptions.RegularPreview, 43627parseOptions: TestOptions.RegularPreview, 43670parseOptions: TestOptions.RegularPreview, 43696var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 43697parseOptions: TestOptions.Regular, 43720var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 43721parseOptions: TestOptions.Regular, 43789var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 43790parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 43834var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 43835parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 43839var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 43840parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 43844var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 43845parseOptions: TestOptions.Regular7_3, 43868var compilation5 = CreateCompilation(source1, options: TestOptions.DebugExe, 43869parseOptions: TestOptions.Regular, 43919var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 43920parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 43971var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 43972parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 43976var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 43977parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 43981var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 43982parseOptions: TestOptions.Regular7_3, targetFramework: TargetFramework.NetCoreApp); 44004var compilation5 = CreateCompilation(source1, options: TestOptions.DebugExe, 44005parseOptions: TestOptions.Regular, targetFramework: TargetFramework.Mscorlib461Extended); 44054var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 44055parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 44101var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 44102parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 44106var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 44107parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 44111var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 44112parseOptions: TestOptions.Regular7_3, targetFramework: TargetFramework.NetCoreApp); 44134var compilation5 = CreateCompilation(source1, options: TestOptions.DebugExe, 44135parseOptions: TestOptions.Regular, targetFramework: TargetFramework.Mscorlib461Extended); 44192var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 44193parseOptions: TestOptions.Regular, 44222var compilation2 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 44223parseOptions: TestOptions.Regular, 44242var compilation3 = CreateCompilation(source0 + source3, options: TestOptions.DebugExe, 44243parseOptions: TestOptions.Regular, 44268var compilation2 = CreateCompilation(source3 + source4, new[] { reference }, options: TestOptions.DebugExe, 44269parseOptions: TestOptions.Regular, 44288var compilation4 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 44289parseOptions: TestOptions.Regular7_3, 44343var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 44344parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 44389var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 44390parseOptions: TestOptions.Regular7_3, 44420var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 44421parseOptions: TestOptions.Regular, 44544var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 44545parseOptions: TestOptions.Regular, 44642var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 44643parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 44689var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 44690parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 44723var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 44724parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 44747var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 44748parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 44797var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 44798parseOptions: TestOptions.Regular); 44838var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 44839parseOptions: TestOptions.Regular, 44883var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 44884parseOptions: TestOptions.Regular, 44919var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 44920parseOptions: TestOptions.Regular, 44964var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 44965parseOptions: TestOptions.Regular, 44982var compilation2 = CreateCompilation(source0 + source2, options: TestOptions.DebugExe, 44983parseOptions: TestOptions.Regular, 45002var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 45003parseOptions: TestOptions.Regular, 45056var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 45057parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45101var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 45102parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45106var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 45107parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45111var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 45112parseOptions: TestOptions.Regular7_3, 45144var compilation5 = CreateCompilation(source1, options: TestOptions.DebugExe, 45145parseOptions: TestOptions.Regular, 45207var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 45208parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45254var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 45255parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45259var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 45260parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45264var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 45265parseOptions: TestOptions.Regular7_3, 45297var compilation5 = CreateCompilation(source1, options: TestOptions.DebugExe, 45298parseOptions: TestOptions.Regular, 45350var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 45351parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45393var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 45394parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45398var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 45399parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45403var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 45404parseOptions: TestOptions.Regular7_3, 45439var compilation5 = CreateCompilation(source1, options: TestOptions.DebugExe, 45440parseOptions: TestOptions.Regular, 45478var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 45479parseOptions: TestOptions.Regular); 45540var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 45541parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45585var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 45586parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45590var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 45591parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45595var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 45596parseOptions: TestOptions.Regular7_3, targetFramework: TargetFramework.NetCoreApp); 45627var compilation5 = CreateCompilation(source1, options: TestOptions.DebugExe, 45628parseOptions: TestOptions.Regular, targetFramework: TargetFramework.Mscorlib461Extended); 45680var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 45681parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45722var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 45723parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45727var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 45728parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 45732var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 45733parseOptions: TestOptions.Regular7_3, targetFramework: TargetFramework.NetCoreApp); 45764var compilation5 = CreateCompilation(source1, options: TestOptions.DebugExe, 45765parseOptions: TestOptions.Regular, targetFramework: TargetFramework.Mscorlib461Extended); 45838var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 45839parseOptions: TestOptions.Regular, 45844var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 45845parseOptions: TestOptions.Regular, 45902var compilation2 = CreateCompilation(source2, options: TestOptions.DebugExe, 45903parseOptions: TestOptions.Regular, 45920var compilation3 = CreateCompilation(source3, options: TestOptions.DebugExe, 45921parseOptions: TestOptions.Regular, 45936var compilation4 = CreateCompilation(source4, options: TestOptions.DebugExe, targetFramework: TargetFramework.Mscorlib461Extended, 45937parseOptions: TestOptions.Regular); 46001var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 46002parseOptions: TestOptions.Regular, 46034var compilation2 = CreateCompilation(source2, options: TestOptions.DebugExe, 46037parseOptions: TestOptions.Regular); 46112var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 46113parseOptions: TestOptions.Regular, 46160var compilation3 = CreateCompilation(source3, options: TestOptions.DebugExe, 46163parseOptions: TestOptions.Regular); 46198var compilation4 = CreateCompilation(source4, options: TestOptions.DebugExe, 46201parseOptions: TestOptions.Regular); 46256var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 46257parseOptions: TestOptions.Regular, 46303var compilation3 = CreateCompilation(source3, options: TestOptions.DebugExe, 46306parseOptions: TestOptions.Regular); 46317var compilation4 = CreateCompilation(source4, options: TestOptions.DebugDll, 46320parseOptions: TestOptions.Regular); 46346var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 46347parseOptions: TestOptions.Regular, 46372var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMainTypeName("I2"), 46373parseOptions: TestOptions.Regular, 46588var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 46590parseOptions: TestOptions.RegularPreview); 46598var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 46600parseOptions: TestOptions.RegularPreview); 46605var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 46606parseOptions: TestOptions.RegularPreview); 46611var compilation6 = CreateCompilation(source1 + source2, options: TestOptions.DebugDll, 46613parseOptions: TestOptions.Regular7_3); 46690var compilation61 = CreateCompilation(source1 + source2, options: TestOptions.DebugDll, 46692parseOptions: TestOptions.RegularPreview); 46766var compilation7 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 46768parseOptions: TestOptions.Regular7_3); 46844var compilation8 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 46846parseOptions: TestOptions.Regular7_3); 46864var compilation9 = CreateCompilation(source3, new[] { compilationReference }, options: TestOptions.DebugExe, 46866parseOptions: TestOptions.Regular7_3); 46879var compilation10 = CreateCompilation(source3, new[] { metadataReference }, options: TestOptions.DebugExe, 46880parseOptions: TestOptions.Regular7_3); 46949var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp); 46952var compilation2 = CreateCompilation(source1 + source3, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp, 46953parseOptions: TestOptions.Regular); 46995var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp, 46996parseOptions: TestOptions.Regular9); 47012CreateCompilation(source1 + source2, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp, 47013parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 47024var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 47025parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.NetCoreApp); 47028CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 47029parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics( 47082var compilation3 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 47088CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 47111var compilation4 = CreateCompilationWithIL(source3, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 47120CreateCompilationWithIL(source3, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 47156var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp, 47157parseOptions: TestOptions.Regular); 47222var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp, 47223parseOptions: TestOptions.Regular); 47231var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 47232parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47237var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 47238parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47256var compilation9 = CreateCompilation(source3, new[] { compilationReference }, options: TestOptions.DebugExe, 47257parseOptions: TestOptions.Regular7_3, targetFramework: TargetFramework.NetCoreApp); 47267var compilation10 = CreateCompilation(source3, new[] { metadataReference }, options: TestOptions.DebugExe, 47268parseOptions: TestOptions.Regular7_3, targetFramework: TargetFramework.NetCoreApp); 47314var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 47315parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47323var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 47324parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47329var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 47330parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47390var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 47391parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47399var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 47400parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47405var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 47406parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47463var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 47464parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47470var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 47471parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47520var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 47521parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47529var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 47530parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47535var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 47536parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47601var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 47602parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47610var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 47611parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47616var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 47617parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47676var compilation0 = CreateCompilation(source0 + source1 + source2, options: TestOptions.DebugDll, 47677parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47684var compilation1 = CreateCompilation(source3, new[] { compilationReference0 }, options: TestOptions.DebugExe, 47685parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47689var compilation2 = CreateCompilation(source3, new[] { metadataReference0 }, options: TestOptions.DebugExe, 47690parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47708var compilation3 = CreateCompilation(source4 + source1 + source2, options: TestOptions.DebugDll, 47709parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47716var compilation4 = CreateCompilation(source3, new[] { compilationReference3 }, options: TestOptions.DebugExe, 47717parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47721var compilation5 = CreateCompilation(source3, new[] { metadataReference3 }, options: TestOptions.DebugExe, 47722parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47737var compilation6 = CreateCompilation(source4 + source1 + source5, options: TestOptions.DebugDll, 47738parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47745var compilation7 = CreateCompilation(source3, new[] { compilationReference6 }, options: TestOptions.DebugExe, 47746parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47750var compilation8 = CreateCompilation(source3, new[] { metadataReference6 }, options: TestOptions.DebugExe, 47751parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47809var compilation0 = CreateCompilation(source0 + source1 + source2, options: TestOptions.DebugDll, 47810parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47817var compilation1 = CreateCompilation(source3, new[] { compilationReference0 }, options: TestOptions.DebugExe, 47818parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47822var compilation2 = CreateCompilation(source3, new[] { metadataReference0 }, options: TestOptions.DebugExe, 47823parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47841var compilation3 = CreateCompilation(source4 + source1 + source2, options: TestOptions.DebugDll, 47842parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47849var compilation4 = CreateCompilation(source3, new[] { compilationReference3 }, options: TestOptions.DebugExe, 47850parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47854var compilation5 = CreateCompilation(source3, new[] { metadataReference3 }, options: TestOptions.DebugExe, 47855parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47870var compilation6 = CreateCompilation(source4 + source1 + source5, options: TestOptions.DebugDll, 47871parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47878var compilation7 = CreateCompilation(source3, new[] { compilationReference6 }, options: TestOptions.DebugExe, 47879parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47883var compilation8 = CreateCompilation(source3, new[] { metadataReference6 }, options: TestOptions.DebugExe, 47884parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47937var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 47938parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47945var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 47946parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 47950var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 47951parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48004var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 48005parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48012var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48013parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48017var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48018parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48079var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48080parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48088var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48089parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48094var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48095parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48136var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48137parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48145var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48146parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48151var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48152parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48203var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48204parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48212var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48213parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48218var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48219parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48238var compilation9 = CreateCompilation(source3, new[] { compilationReference }, options: TestOptions.DebugExe, 48239parseOptions: TestOptions.Regular7_3, targetFramework: TargetFramework.NetCoreApp); 48252var compilation10 = CreateCompilation(source3, new[] { metadataReference }, options: TestOptions.DebugExe, 48253parseOptions: TestOptions.Regular7_3, targetFramework: TargetFramework.NetCoreApp); 48300var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48301parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48309var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48310parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48315var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48316parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48370var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48371parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48379var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48380parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48385var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48386parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48434var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48435parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48443var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48444parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48449var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48450parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48513var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48514parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48522var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48523parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48528var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48529parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48585var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48586parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48594var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48595parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48600var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48601parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48658var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 48659parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48666var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48667parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48671var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48672parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48728var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 48729parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48736var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48737parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48741var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48742parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48798var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 48799parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48805var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48806parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48890var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48891parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48899var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48900parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48905var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48906parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48956var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48957parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48965var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48966parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 48971var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48972parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 49063var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 49064parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 49072var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 49073parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 49078var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 49079parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 49118var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 49119parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.NetCoreApp); 49222var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 49223parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.NetCoreApp); 49295var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 49296parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 49304var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 49305parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 49310var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 49311parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 49528var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 49530parseOptions: TestOptions.RegularPreview); 49544var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 49546parseOptions: TestOptions.RegularPreview); 49550var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 49551parseOptions: TestOptions.RegularPreview); 49576var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 49578parseOptions: TestOptions.Regular); 49606var compilation1 = CreateCompilation("", options: TestOptions.DebugDll, 49617var compilation1 = CreateCompilation("", options: TestOptions.DebugDll, 49651var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 49652var compilation1 = CreateCompilation(source, parseOptions: parseOptions, options: TestOptions.DebugDll, 49660var compilation2 = CreateCompilation("", parseOptions: parseOptions, options: TestOptions.DebugDll, 49767var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 49768var compilation1 = CreateCompilation(source, parseOptions: parseOptions, options: TestOptions.DebugDll, 49776var compilation2 = CreateCompilation("", parseOptions: parseOptions, options: TestOptions.DebugDll, 49917var compilation1 = CreateCompilation(source, options: TestOptions.DebugDll, 49955var compilation0 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp); 49981var compilation1 = CreateCompilation(source0 + source2, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp); 50010var compilation2 = CreateCompilation(source0 + source3, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); 50044var compilation0 = CreateCompilation(source0, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp); 50083var compilation0 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp); 50109var compilation1 = CreateCompilation(source0 + source2, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp); 50129var compilation2 = CreateCompilation(source0 + source3, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); 50164var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); 50202var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); 50246var compilation0 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp); 50262var compilation2 = CreateCompilation(source0 + source3, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); 50306var compilation0 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp); 50361var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50369var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50); 50397var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50409var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50); 50438var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50450var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50); 50478var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50490var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50); 50518var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50530var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50); 50562var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50577var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { reference }, targetFramework: TargetFramework.Net50); 50606var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50622var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { reference }, targetFramework: TargetFramework.Net50); 50658var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50670var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50); 50683var attributes = CreateCompilation(NoPiaAttributes, options: TestOptions.ReleaseDll, references: baseReferences, targetFramework: TargetFramework.Empty); 50711var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, references: baseReferences, targetFramework: TargetFramework.Empty); 50749var pia2Compilation = CreateCompilation(pia2, baseReferences, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Empty); 50753var compilation1 = CreateCompilation(consumer1, options: TestOptions.ReleaseDll, references: baseReferences.Concat(new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }), targetFramework: TargetFramework.Empty); 50757var compilation2 = CreateCompilation(consumer2, options: TestOptions.ReleaseExe, references: baseReferences.Concat(new[] { reference2, pia2Reference }), targetFramework: TargetFramework.Empty); 50791var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50807var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { reference }, targetFramework: TargetFramework.Net50); 50843var compilation0 = CreateCompilation(source0, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net50); 50896var compilation0 = CreateCompilation(source0, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net50); 50949var compilation0 = CreateCompilation(source0, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net50); 50994var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); 51042var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 51043parseOptions: TestOptions.RegularPreview, 51063var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 51064parseOptions: TestOptions.RegularPreview, 51070var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 51071parseOptions: TestOptions.RegularPreview, 51220var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 51221parseOptions: TestOptions.RegularPreview, 51230var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 51231parseOptions: TestOptions.RegularPreview, 51237var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, references: new[] { reference }, 51238parseOptions: TestOptions.RegularPreview, 51360var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 51361parseOptions: TestOptions.RegularPreview, 51374var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 51375parseOptions: TestOptions.RegularPreview, 51381var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 51382parseOptions: TestOptions.RegularPreview, 51501var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 51502parseOptions: TestOptions.RegularPreview, 51511var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 51512parseOptions: TestOptions.RegularPreview, 51518var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, references: new[] { reference }, 51519parseOptions: TestOptions.RegularPreview, 51644var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 51645parseOptions: TestOptions.RegularPreview, 51658var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 51659parseOptions: TestOptions.RegularPreview, 51665var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 51666parseOptions: TestOptions.RegularPreview, 51784var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 51785parseOptions: TestOptions.RegularPreview, 51798var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 51799parseOptions: TestOptions.RegularPreview, 51805var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 51806parseOptions: TestOptions.RegularPreview, 51894var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 51895parseOptions: TestOptions.RegularPreview, 51904var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 51905parseOptions: TestOptions.RegularPreview, 51911var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, references: new[] { reference }, 51912parseOptions: TestOptions.RegularPreview, 51959var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 51960parseOptions: TestOptions.RegularPreview, 52014var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 52015parseOptions: TestOptions.RegularPreview, 52079var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 52080parseOptions: TestOptions.RegularPreview, 52137var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 52138parseOptions: TestOptions.RegularPreview, 52202var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 52203parseOptions: TestOptions.RegularPreview, 52257var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 52258parseOptions: TestOptions.RegularPreview, 52338var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 52339parseOptions: TestOptions.RegularPreview, 52408var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 52409parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3, 52432var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 52433parseOptions: TestOptions.RegularPreview, 52497var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 52498parseOptions: TestOptions.RegularPreview, 52503var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 52504parseOptions: TestOptions.RegularPreview, 52510var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 52511parseOptions: TestOptions.RegularPreview, 52689var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 52690parseOptions: TestOptions.RegularPreview, 52699var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 52700parseOptions: TestOptions.RegularPreview, 52706var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, references: new[] { reference }, 52707parseOptions: TestOptions.RegularPreview, 52854var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 52855parseOptions: TestOptions.RegularPreview, 52860var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 52861parseOptions: TestOptions.RegularPreview, 52867var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 52868parseOptions: TestOptions.RegularPreview, 53017var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 53018parseOptions: TestOptions.RegularPreview, 53027var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 53028parseOptions: TestOptions.RegularPreview, 53034var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, references: new[] { reference }, 53035parseOptions: TestOptions.RegularPreview, 53192var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 53193parseOptions: TestOptions.RegularPreview, 53198var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 53199parseOptions: TestOptions.RegularPreview, 53206var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 53207parseOptions: TestOptions.RegularPreview, 53354var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 53355parseOptions: TestOptions.RegularPreview, 53360var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 53361parseOptions: TestOptions.RegularPreview, 53368var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 53369parseOptions: TestOptions.RegularPreview, 53486var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 53487parseOptions: TestOptions.RegularPreview, 53496var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 53497parseOptions: TestOptions.RegularPreview, 53503var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, references: new[] { reference }, 53504parseOptions: TestOptions.RegularPreview, 53593var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 53594parseOptions: TestOptions.RegularPreview, 53725var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 53726parseOptions: TestOptions.RegularPreview, 53871var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 53872parseOptions: TestOptions.RegularPreview, 54193var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 54194parseOptions: TestOptions.RegularPreview, 54200var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 54201parseOptions: TestOptions.RegularPreview, 54376var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 54449var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 54549var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 54620var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 54688var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 54782var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 54876var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 54964var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 57029var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 57030parseOptions: TestOptions.RegularPreview, 57219var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 57220parseOptions: TestOptions.Regular7_3, 57231var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57232parseOptions: TestOptions.Regular, 57260var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 57261parseOptions: TestOptions.Regular10, 57272var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57273parseOptions: TestOptions.RegularPreview, 57304var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 57305parseOptions: TestOptions.Regular7_3, 57313var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57314parseOptions: TestOptions.Regular, 57339var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 57340parseOptions: TestOptions.Regular10, 57351var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57352parseOptions: TestOptions.RegularPreview, 57380var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 57381parseOptions: TestOptions.Regular7_3, 57389var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57390parseOptions: TestOptions.Regular, 57415var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 57416parseOptions: TestOptions.Regular10, 57427var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57428parseOptions: TestOptions.RegularPreview, 57475var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 57476parseOptions: TestOptions.RegularPreview, 57481var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57482parseOptions: TestOptions.RegularPreview, 57488var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 57489parseOptions: TestOptions.RegularPreview, 57647var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 57648parseOptions: TestOptions.RegularPreview, 57657var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57658parseOptions: TestOptions.RegularPreview, 57664var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, references: new[] { reference }, 57665parseOptions: TestOptions.RegularPreview, 57805var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 57806parseOptions: TestOptions.RegularPreview, 57811var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57812parseOptions: TestOptions.RegularPreview, 57818var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 57819parseOptions: TestOptions.RegularPreview, 57956var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 57957parseOptions: TestOptions.RegularPreview, 57966var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57967parseOptions: TestOptions.RegularPreview, 57973var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, references: new[] { reference }, 57974parseOptions: TestOptions.RegularPreview, 58119var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 58120parseOptions: TestOptions.RegularPreview, 58125var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 58126parseOptions: TestOptions.RegularPreview, 58132var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 58133parseOptions: TestOptions.RegularPreview, 58268var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 58269parseOptions: TestOptions.RegularPreview, 58274var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 58275parseOptions: TestOptions.RegularPreview, 58281var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 58282parseOptions: TestOptions.RegularPreview, 58388var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 58389parseOptions: TestOptions.RegularPreview, 58398var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 58399parseOptions: TestOptions.RegularPreview, 58405var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, references: new[] { reference }, 58406parseOptions: TestOptions.RegularPreview, 58481var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 58482parseOptions: TestOptions.RegularPreview, 58673var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 58674parseOptions: TestOptions.RegularPreview, 59245var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 59246parseOptions: TestOptions.RegularPreview, 59252var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 59253parseOptions: TestOptions.RegularPreview, 59313var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 59314parseOptions: TestOptions.RegularPreview, 59413var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 59414parseOptions: TestOptions.Regular7_3, 59422var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 59423parseOptions: TestOptions.Regular, 59448var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 59449parseOptions: TestOptions.Regular10, 59460var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 59461parseOptions: TestOptions.RegularPreview, 62197var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 62198parseOptions: TestOptions.Regular7_3, 62209var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 62210parseOptions: TestOptions.Regular, 62238var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 62239parseOptions: TestOptions.Regular7_3, 62247var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 62248parseOptions: TestOptions.Regular, 62273var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 62274parseOptions: TestOptions.Regular7_3, 62282var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 62283parseOptions: TestOptions.Regular, 62375var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp); 62468var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp); 62513var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.NetCoreApp); 62528compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 62555var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 62556parseOptions: TestOptions.Regular9, 62567compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 62568parseOptions: TestOptions.Regular, 62705foreach (var options in new[] { TestOptions.DebugDll, TestOptions.DebugWinMD }) 62780var comp = CreateCompilation(source, options: TestOptions.DebugWinMD, targetFramework: TargetFramework.NetCoreApp, references: new[] { CompilationExtensions.CreateWindowsRuntimeMetadataReference() }); 62833var comp = CreateCompilation(source, options: TestOptions.DebugWinMD, targetFramework: TargetFramework.NetCoreApp, references: new[] { CompilationExtensions.CreateWindowsRuntimeMetadataReference() }); 63101var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 63325var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 63491var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 63667var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 63858var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net60); 64039var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 64200var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 64316var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 64437var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 64527var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 64607var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net60); 64678var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 64757var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net60); 64787var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 64788parseOptions: TestOptions.Regular, 64813var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 64814parseOptions: TestOptions.Regular, 64843var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 64844parseOptions: TestOptions.Regular, 64873var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 64874parseOptions: TestOptions.Regular, 64903var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 64904parseOptions: TestOptions.Regular, 64922var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 64923parseOptions: TestOptions.Regular, 64941var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 64942parseOptions: TestOptions.Regular, 64967var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 64968parseOptions: TestOptions.Regular, 64989var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 64990parseOptions: TestOptions.Regular, 65019var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65020parseOptions: TestOptions.Regular, 65051var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65052parseOptions: TestOptions.Regular, 65077var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65078parseOptions: TestOptions.Regular, 65111var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65112parseOptions: TestOptions.Regular, 65158var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 65159parseOptions: TestOptions.Regular, 65202var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 65203parseOptions: TestOptions.Regular, 65246var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 65247parseOptions: TestOptions.Regular, 65299var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 65300parseOptions: TestOptions.Regular); 65351var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 65352parseOptions: TestOptions.Regular); 65380var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65381parseOptions: TestOptions.Regular, 65425var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65426parseOptions: TestOptions.Regular, 65475var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65476parseOptions: TestOptions.Regular); 65520var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65521parseOptions: TestOptions.Regular); 65560var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65561parseOptions: TestOptions.Regular); 65606var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65607parseOptions: TestOptions.Regular); 65644var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65645parseOptions: TestOptions.Regular); 65689var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65690parseOptions: TestOptions.Regular); 65727var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65728parseOptions: TestOptions.Regular); 65772var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65773parseOptions: TestOptions.Regular); 65805var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65806parseOptions: TestOptions.Regular, 65846var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65847parseOptions: TestOptions.Regular, 65881var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65882parseOptions: TestOptions.Regular, 65923var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65924parseOptions: TestOptions.Regular, 65958var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65959parseOptions: TestOptions.Regular, 66000var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66001parseOptions: TestOptions.Regular, 66040var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66041parseOptions: TestOptions.Regular); 66079var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66080parseOptions: TestOptions.Regular); 66131var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66132parseOptions: TestOptions.Regular); 66175var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66176parseOptions: TestOptions.Regular, 66220var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66221parseOptions: TestOptions.Regular, 66256var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66257parseOptions: TestOptions.Regular, 66299var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66300parseOptions: TestOptions.Regular, 66331var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66332parseOptions: TestOptions.Regular, 66379var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66380parseOptions: TestOptions.Regular, 66410var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66411parseOptions: TestOptions.Regular, 66452var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66453parseOptions: TestOptions.Regular, 66523var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66524parseOptions: TestOptions.Regular, 66634var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66635parseOptions: TestOptions.Regular, 66745var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66746parseOptions: TestOptions.Regular, 66751var compilation2 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 66752parseOptions: TestOptions.Regular, 66804var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 66805parseOptions: TestOptions.Regular, 66839var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 66840parseOptions: TestOptions.Regular, 66870var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 66871parseOptions: TestOptions.Regular, 66925var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66926parseOptions: TestOptions.Regular, 66931var compilation2 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 66932parseOptions: TestOptions.Regular, 66954var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66955parseOptions: TestOptions.Regular, 66991var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 66992parseOptions: TestOptions.Regular8, 67003compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 67004parseOptions: TestOptions.Regular9, 67032var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 67033parseOptions: TestOptions.Regular8, 67044compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 67045parseOptions: TestOptions.Regular9, 67096var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 67097parseOptions: TestOptions.Regular8, 67108compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 67109parseOptions: TestOptions.Regular9, 67129var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67130parseOptions: TestOptions.Regular, 67163var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67164parseOptions: TestOptions.Regular, 67199var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67200parseOptions: TestOptions.Regular, 67233var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67234parseOptions: TestOptions.Regular, 67274var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67275parseOptions: TestOptions.Regular, 67311var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67312parseOptions: TestOptions.Regular, 67347var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67348parseOptions: TestOptions.Regular, 67383var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67384parseOptions: TestOptions.Regular, 67420var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67421parseOptions: TestOptions.Regular, 67461var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67462parseOptions: TestOptions.Regular, 67499var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67500parseOptions: TestOptions.Regular, 67537var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67538parseOptions: TestOptions.Regular, 67574var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67575parseOptions: TestOptions.Regular, 67613var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67614parseOptions: TestOptions.Regular, 67655var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67656parseOptions: TestOptions.Regular, 67692var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67693parseOptions: TestOptions.Regular, 67710var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67711parseOptions: TestOptions.Regular, 67750var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67751parseOptions: TestOptions.Regular, 67792var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67793parseOptions: TestOptions.Regular, 67825var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67826parseOptions: TestOptions.Regular, 67864var compilation1 = CreateEmptyCompilation(source1, options: TestOptions.DebugDll, 67865parseOptions: TestOptions.Regular); 67895var compilation1 = CreateEmptyCompilation(source1, options: TestOptions.DebugDll, 67896parseOptions: TestOptions.Regular); 67930var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 67931parseOptions: TestOptions.Regular, 67994foreach (var parseOptions in new[] { TestOptions.Regular8, TestOptions.Regular9, TestOptions.Regular }) 67996var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 68061var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 68062parseOptions: TestOptions.Regular, 68159var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net60, 68160parseOptions: TestOptions.RegularPreview); 68191var compilation2 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 68192parseOptions: TestOptions.RegularPreview, 68485var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 68486parseOptions: TestOptions.Regular10, 68529var compilation3 = CreateCompilation(source3, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 68530parseOptions: TestOptions.Regular10, 68548var compilation4 = CreateCompilation(source4, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 68549parseOptions: TestOptions.Regular10, 68554compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net50, 68555parseOptions: TestOptions.RegularPreview, skipUsesIsNullable: true); 68593options: TestOptions.DebugDll, targetFramework: TargetFramework.Net50, 68594parseOptions: TestOptions.RegularPreview); 68606options: TestOptions.DebugDll, targetFramework: TargetFramework.Net50, 68607parseOptions: TestOptions.RegularPreview); 68682var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 68683parseOptions: TestOptions.RegularPreview, 68688var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 68689parseOptions: TestOptions.RegularPreview, 68699var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 68700parseOptions: TestOptions.RegularPreview, 68843var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 68844parseOptions: TestOptions.RegularPreview, 68859var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 68860parseOptions: TestOptions.RegularPreview, 68866var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 68867parseOptions: TestOptions.RegularPreview, 68925var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 68926parseOptions: TestOptions.RegularPreview, 68944var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 68945parseOptions: TestOptions.RegularPreview, 68951var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 68952parseOptions: TestOptions.RegularPreview, 69045var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 69321var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 69323parseOptions: TestOptions.RegularPreview); 69389var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 69391parseOptions: TestOptions.RegularPreview);
Symbols\EnumTests.cs (2)
388comp = CreateCompilation(sourceC, references: new[] { refB }, options: TestOptions.ReleaseExe); 395comp = CreateCompilation(sourceC, references: new[] { refB }, options: TestOptions.DebugExe);
Symbols\ExtendedPartialMethodsTests.cs (171)
29var comp = CreateCompilation(text, parseOptions: TestOptions.Regular8); 39comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 52var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 71var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 87var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 115var verifier = CompileAndVerify(new[] { text1, text2 }, parseOptions: TestOptions.RegularWithExtendedPartialMethods, expectedOutput: "42"); 128var comp = CreateCompilation(text, parseOptions: TestOptions.Regular8); 138comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 151var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 170var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 186var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 215var verifier = CompileAndVerify(new[] { text1, text2 }, parseOptions: TestOptions.RegularWithExtendedPartialMethods, expectedOutput: "42"); 241var verifier = CompileAndVerify(new[] { text1, text2 }, parseOptions: TestOptions.RegularWithExtendedPartialMethods, expectedOutput: "42"); 265var comp = CreateCompilation(text, parseOptions: TestOptions.Regular8); 275comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 288var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 305var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 322var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 339var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 355var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 367var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 380var comp = CreateCompilation(text1, parseOptions: TestOptions.Regular8); 390comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 403var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 422var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 439var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 456var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 491CompileAndVerify(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods, expectedOutput: "12").VerifyDiagnostics(); 512var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 538var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 564var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 586var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 608var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 629var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 642var comp = CreateCompilation(text1, parseOptions: TestOptions.Regular8); 654comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 669var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 692var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 713var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 742var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 765var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 791var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 812var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 839var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 867var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 894var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 911var comp = CreateCompilation(text1, parseOptions: TestOptions.Regular8); 920comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 937var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 964var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 985var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1006var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1023var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1040var comp = CreateCompilation(text1, parseOptions: TestOptions.Regular8); 1049comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1066var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1092var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1138parseOptions: TestOptions.RegularWithExtendedPartialMethods, 1146parseOptions: TestOptions.RegularWithExtendedPartialMethods, 1212parseOptions: TestOptions.RegularWithExtendedPartialMethods, 1222parseOptions: TestOptions.RegularWithExtendedPartialMethods, 1282var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1314var verifier = CompileAndVerify(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods, expectedOutput: "1"); 1338var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1364var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1387var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1416var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1440var comp = CreateCompilation(text1, parseOptions: TestOptions.Regular8); 1449comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1466var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1488var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1513var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1535var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1576parseOptions: TestOptions.RegularWithExtendedPartialMethods, 1577options: TestOptions.DebugExe, 1612parseOptions: TestOptions.RegularWithExtendedPartialMethods, 1613options: TestOptions.DebugExe, 1644var comp = CreateCompilation(new[] { text, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1678var comp = CreateCompilation(new[] { text, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1714var comp = CreateCompilation(new[] { text, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1735var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods, targetFramework: TargetFramework.NetCoreApp); 1755var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods, targetFramework: TargetFramework.NetCoreApp); 1782var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods, targetFramework: TargetFramework.NetCoreApp); 1812var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods, targetFramework: TargetFramework.NetCoreApp); 1856var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods, targetFramework: TargetFramework.NetCoreApp); 1913var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1939var comp = CreateCompilation(text, parseOptions: TestOptions.Regular8); 1948comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1970var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2005var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2027var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2057parseOptions: TestOptions.RegularWithExtendedPartialMethods, 2084parseOptions: TestOptions.RegularWithExtendedPartialMethods, 2088var comp1 = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2097parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2125var comp = CreateCompilation(new[] { text1, text2 }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2154parseOptions: TestOptions.RegularWithExtendedPartialMethods, 2179var comp = CreateCompilation(new[] { text1, text2 }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2208parseOptions: TestOptions.RegularWithExtendedPartialMethods, 2233var comp1 = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2243parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2273parseOptions: TestOptions.RegularWithExtendedPartialMethods, 2277var comp1 = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2286parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2316parseOptions: TestOptions.RegularWithExtendedPartialMethods, 2320var comp1 = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2329parseOptions: TestOptions.RegularWithExtendedPartialMethods, 2357parseOptions: TestOptions.RegularWithExtendedPartialMethods, 2361var comp1 = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2370parseOptions: TestOptions.RegularWithExtendedPartialMethods, 2388parseOptions: TestOptions.RegularWithExtendedPartialMethods, 2389options: TestOptions.DebugExe); 2415parseOptions: TestOptions.RegularWithExtendedPartialMethods, 2416options: TestOptions.DebugExe, 2436parseOptions: TestOptions.RegularWithExtendedPartialMethods, 2437options: TestOptions.DebugExe); 2464parseOptions: TestOptions.RegularWithExtendedPartialMethods, 2465options: TestOptions.DebugExe, 2496var verifier = CompileAndVerify(source2, references: new[] { reference }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2556options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 2557parseOptions: TestOptions.RegularWithExtendedPartialMethods, 2579var comp = CreateCompilation(csharp, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2632var comp = CreateCompilationWithIL(source, il, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2696var comp = CreateCompilationWithIL(source, il, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2726var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2732comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2748var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2770var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2773comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2798var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2807comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2834var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2861var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2891var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2937var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3001var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3029var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3054var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3067var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3083var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3102var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3105comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3129var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3132comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3154var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3210var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3234comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3274var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3293var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3317var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5)); 3320comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6)); 3355var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5)); 3373comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6)); 3416var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5)); 3419comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6)); 3457var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5)); 3460comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6)); 3490var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods);
Symbols\ExtensionMethodTests.cs (17)
57CompileAndVerify(source, validator: validator, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 1009parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyDiagnostics( 1138var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1440var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2258var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: "orange, apple"); 2423var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp6)); 2427options: TestOptions.DebugExe.WithScriptClassName("Script"), 2476options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 2522var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 2591", options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All)); 2842var compilation2 = CreateCompilation(source2, references: new[] { new CSharpCompilationReference(compilation1) }, parseOptions: TestOptions.Regular8); 2861compilation2 = CreateCompilation(source2, references: new[] { new CSharpCompilationReference(compilation1) }, parseOptions: TestOptions.Regular7); 3447var compilation = CreateEmptyCompilation(source, new[] { MscorlibRef_v20 }, TestOptions.ReleaseDll); 3800var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script); 3807var parseOptions = TestOptions.Script; 4044CompileAndVerify(source, validator: validator, options: TestOptions.ReleaseDll); 4074CompileAndVerify(source, validator: validator, options: TestOptions.ReleaseDll);
Symbols\FunctionPointerTypeSymbolTests.cs (9)
23return CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll, targetFramework: targetFramework); 1053var comp = CreateCompilationWithIL("", ilSource, parseOptions: TestOptions.Regular9); 1387var 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)
340CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 681CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods).VerifyDiagnostics( 1012CreateCompilation(source, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1099CreateCompilationWithMscorlib40(text, references: new[] { Net40.References.SystemCore }, parseOptions: TestOptions.WithoutImprovedOverloadCandidates).VerifyDiagnostics( 5633CreateCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics(); 5657CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 5689compilationOptions: TestOptions.DebugDll); 5809CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 5833CreateCompilation(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 5841CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 6475CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 6477CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 6498CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 6500CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 6525CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 6540CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 6863options: TestOptions.ReleaseExe); 6933CompileAndVerify(source, options: TestOptions.DebugDll).VerifyDiagnostics( 6967var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular11); 6974compilation = CreateCompilation(source, parseOptions: TestOptions.Regular12); 7005var compilation = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 7011compilation = CreateCompilation(source, parseOptions: TestOptions.Regular12); 7329TestOptions.ReleaseDll.WithPublicSign(true)); 7335TestOptions.ReleaseDll.WithPublicSign(true));
Symbols\ImplicitClassTests.cs (2)
58", parseOptions: TestOptions.Script); 84", parseOptions: TestOptions.Script);
Symbols\IndexedPropertyTests.cs (4)
2505var comp = CreateCompilationWithILAndMscorlib40(source, il, parseOptions: TestOptions.Regular10); 2585var compilation = CreateCompilationWithILAndMscorlib40(source, il, options: TestOptions.ReleaseExe); 2706var compilation2 = CreateCompilationWithMscorlib40AndSystemCore(source2, new[] { reference1, CSharpRef }, TestOptions.ReleaseExe); 2765var compilation2 = CreateCompilationWithMscorlib40AndSystemCore(source2, new[] { reference1, CSharpRef }, TestOptions.ReleaseExe);
Symbols\IndexerTests.cs (4)
70options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 846CreateCompilation(source, parseOptions: TestOptions.Regular7_1).VerifyDiagnostics( 1788CreateCompilation(source, parseOptions: TestOptions.Regular7, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics( 1903CreateCompilation(source, parseOptions: TestOptions.Regular7, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics(
Symbols\InterfaceImplementationTests.cs (7)
969options: TestOptions.ReleaseDll); 975options: TestOptions.ReleaseDll); 1892var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, assemblyName: "asm1"); 1896var comp2 = CreateCompilation(source2, new[] { ref1 }, options: TestOptions.ReleaseDll, assemblyName: "asm2"); 2205var comp = CreateCompilationWithILAndMscorlib40(source, il, options: TestOptions.ReleaseExe); 2449var comp = CreateCompilationWithILAndMscorlib40(source, il, options: TestOptions.DebugExe); 2703comp = CreateCompilation(new[] { source2, source3 }, references: new[] { ref0, ref1 }, options: TestOptions.ReleaseExe);
Symbols\Metadata\MetadataMemberTests.cs (11)
619var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll); 659var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll); 691var options = TestOptions.DebugDll; 733options = TestOptions.DebugDll; 773var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.Internal); 776options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All); 779options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.Public); 782options = TestOptions.DebugDll.WithMetadataImportOptions((MetadataImportOptions)byte.MaxValue); 796var compilation = CreateCompilation("", options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.Internal), references: new[] { compilation0.EmitToImageReference() }); 803compilation = compilation.WithOptions(TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 810compilation = compilation.WithOptions(TestOptions.DebugDll.WithMetadataImportOptions((MetadataImportOptions)byte.MaxValue));
Symbols\Metadata\MetadataTypeTests.cs (3)
117var compilation = CreateEmptyCompilation(text, new[] { MscorlibRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 217options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 284options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
Symbols\Metadata\PE\BaseTypeResolution.cs (3)
337var compilation1 = CreateCompilation(compilationDef1, new MetadataReference[] { crossRefLib }, TestOptions.ReleaseDll); 357var compilation2 = CreateCompilation(compilationDef2, new MetadataReference[] { crossRefModule1, crossRefModule2 }, TestOptions.ReleaseDll); 369var compilation3 = CreateCompilation(compilationDef2, new MetadataReference[] { crossRefModule2 }, TestOptions.ReleaseDll);
Symbols\Metadata\PE\DynamicTransformsTests.cs (1)
554var compilation = CreateCompilationWithILAndMscorlib40(source, il, options: TestOptions.ReleaseExe);
Symbols\Metadata\PE\LoadingEvents.cs (3)
468var comp = CreateCompilation("", new[] { reference }, TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 521var comp = CreateCompilation("", new[] { ilRef }, TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 581var comp = CreateCompilation("", new[] { ilRef }, TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
Symbols\Metadata\PE\LoadingFields.cs (2)
29options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 140var compilation = CreateCompilationWithILAndMscorlib40(text, il, options: TestOptions.DebugExe);
Symbols\Metadata\PE\LoadingMetadataTokens.cs (1)
40parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
Symbols\Metadata\PE\LoadingMethods.cs (1)
36options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
Symbols\Metadata\PE\NoPia.cs (6)
1382var compilationPIA = CreateCompilation(sourcePIA, options: TestOptions.DebugDll); 1388var compilationBase = CreateCompilation(sourceBase, new[] { referencePIASource }, TestOptions.DebugDll); 1403var compilationDerived1 = CreateCompilation(sourceDerived, new[] { referencePIASource, referenceBaseSource }, TestOptions.DebugDll); 1406var compilationDerived2 = CreateCompilation(sourceDerived, new[] { referencePIAImage, referenceBaseSource }, TestOptions.DebugDll); 1409var compilationDerived3 = CreateCompilation(sourceDerived, new[] { referencePIASource, referenceBaseImage }, TestOptions.DebugDll); 1412var compilationDerived4 = CreateCompilation(sourceDerived, new[] { referencePIAImage, referenceBaseImage }, TestOptions.DebugDll);
Symbols\Metadata\PE\TypeForwarders.cs (24)
1462var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, assemblyName: "Asm1"); 1466var comp2 = CreateCompilation(source2, new[] { ref1 }, options: TestOptions.ReleaseDll, assemblyName: "Asm2"); 1537var bitsA = CreateCompilation(moduleA, options: TestOptions.ReleaseDll, assemblyName: "asm2").EmitToArray(); 1541var bitsB = CreateCompilation(moduleB, new[] { refA }, TestOptions.ReleaseExe, assemblyName: "test").EmitToArray(); 1544var bits0 = CreateCompilation(module0, options: TestOptions.ReleaseModule, assemblyName: "asm0").EmitToArray(); 1548var bits1 = CreateCompilation(module1, new[] { ref0 }, options: TestOptions.ReleaseDll, assemblyName: "asm1").EmitToArray(); 1552var bits2 = CreateCompilation(module2, new[] { ref1 }, options: TestOptions.ReleaseDll, assemblyName: "asm2").EmitToArray(); 1611var forwardedTypesCompilation = CreateCompilation(forwardedTypes, options: TestOptions.ReleaseDll, assemblyName: "ForwarderTargetAssembly"); 1618var modCompilation = CreateCompilation(mod, references: new[] { new CSharpCompilationReference(forwardedTypesCompilation) }, options: TestOptions.ReleaseModule); 1628var appCompilation = CreateCompilation(app, references: new[] { modRef1, new CSharpCompilationReference(forwardedTypesCompilation) }, options: TestOptions.ReleaseDll); 1684appCompilation = CreateCompilation(app, references: new MetadataReference[] { modRef2, new CSharpCompilationReference(forwardedTypesCompilation) }, options: TestOptions.ReleaseDll); 1706appCompilation = CreateCompilation(app, references: new[] { modRef1, new CSharpCompilationReference(forwardedTypesCompilation) }, options: TestOptions.ReleaseModule); 1715appCompilation = CreateCompilation(app, references: new[] { modRef1 }, options: TestOptions.ReleaseDll); 1727var comp0 = CreateCompilation(source0, options: TestOptions.ReleaseModule, assemblyName: "asm0"); 1731var comp1 = CreateCompilation(source1, new[] { ref0 }, options: TestOptions.ReleaseDll, assemblyName: "asm1"); 1738var 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"); 1857var cA_v3 = CreateCompilation(@"", new[] { cD_ImageRef, new CSharpCompilationReference(cC_v1) }, options: TestOptions.ReleaseDll, assemblyName: "A"); 1863", options: TestOptions.ReleaseDll, assemblyName: "C"); 1891var context = CreateCompilation("", new[] { r1, r2, r3 }, options: TestOptions.ReleaseDll);
Symbols\MissingSpecialMember.cs (8)
37var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 69var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 101var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 124var comp = CreateEmptyCompilation(source, new[] { Net40.References.mscorlib }, options: TestOptions.ReleaseDll); 485var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 508var parseOptions = TestOptions.Regular.WithNoRefSafetyRulesAttribute(); 1134var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe); 2386var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe);
Symbols\ModuleInitializers\AccessibilityTests.cs (1)
17private static readonly CSharpParseOptions s_parseOptions = TestOptions.Regular9;
Symbols\ModuleInitializers\GenericsTests.cs (1)
16private static readonly CSharpParseOptions s_parseOptions = TestOptions.Regular9;
Symbols\ModuleInitializers\IgnoredTests.cs (11)
36options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 62options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 88options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 113options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 138options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 163options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 188options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 213options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 234options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 255options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 288options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All),
Symbols\ModuleInitializers\ModuleInitializersTests.cs (15)
23private static readonly CSharpParseOptions s_parseOptions = TestOptions.Regular9; 39var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular8); 62var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular9); 90options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 125options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 219options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 502options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 552options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 598options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 651options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 778options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 815var moduleOptions = TestOptions.ReleaseModule.WithMetadataImportOptions(MetadataImportOptions.All); 852var exeOptions = TestOptions.ReleaseExe 1066var exeOptions = TestOptions.ReleaseExe 1154options: TestOptions.ReleaseExe,
Symbols\ModuleInitializers\SignatureTests.cs (1)
17private static readonly CSharpParseOptions s_parseOptions = TestOptions.Regular9;
Symbols\ModuleInitializers\TargetsTests.cs (1)
16private static readonly CSharpParseOptions s_parseOptions = TestOptions.Regular9;
Symbols\OverriddenOrHiddenMembersTests.cs (15)
1186options: TestOptions.ReleaseDll); 1227options: TestOptions.ReleaseDll); 1255CreateCompilation(text1, references: refs, options: TestOptions.ReleaseDll).VerifyDiagnostics(); 1269CreateCompilation(text1, references: refs, options: TestOptions.ReleaseDll).VerifyDiagnostics( 1317CreateCompilation(text1, references: refs, options: TestOptions.ReleaseDll).VerifyDiagnostics( 1416CreateCompilation(text1, references: refs, options: TestOptions.ReleaseDll).VerifyDiagnostics( 1551CreateCompilation(text1, references: refs, options: TestOptions.ReleaseDll).VerifyDiagnostics(); 1565CreateCompilation(text1, references: refs, options: TestOptions.ReleaseDll).VerifyDiagnostics( 1615CreateCompilation(text1, references: refs, options: TestOptions.ReleaseDll).VerifyDiagnostics( 2828var comp = CreateCompilation(csharp, new[] { ref1 }, options: TestOptions.ReleaseExe); 3681var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe); 3753var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe); 3813var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe); 3879var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe); 3937var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe);
Symbols\PartialPropertiesTests.cs (10)
832CompileAndVerify(source, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), assemblyValidator: (assembly) => 1143var comp1 = CreateCompilation([], options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), references: [reference]); 1190var comp1 = CreateCompilation([], options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), references: [reference]); 1624var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 1639comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Annotations)); 2004var verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: "1"); 2036var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 2075var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 4852var comp = CreateCompilation(source, parseOptions: TestOptions.Regular13); 4855comp = CreateCompilation(source, parseOptions: TestOptions.Regular12);
Symbols\PEParameterSymbolTests.cs (2)
92var compilation = CreateCompilationWithMscorlib461(source, new[] { vbComp }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular);
Symbols\RelaxedShiftOperatorTests.cs (20)
47var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 48parseOptions: TestOptions.RegularPreview); 51var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 52parseOptions: TestOptions.RegularPreview); 54var compilation2 = CreateCompilation(source1, options: TestOptions.DebugExe, references: new[] { compilation0.ToMetadataReference() }, 55parseOptions: TestOptions.RegularPreview); 59var compilation3 = CreateCompilation(source1, options: TestOptions.DebugExe, references: new[] { compilation0.EmitToImageReference() }, 60parseOptions: TestOptions.RegularPreview); 92var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 93parseOptions: TestOptions.RegularPreview); 136var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp, 137parseOptions: TestOptions.RegularPreview); 180var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp, 181parseOptions: TestOptions.RegularPreview); 224var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp, 225parseOptions: TestOptions.RegularPreview); 268var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp, 269parseOptions: TestOptions.RegularPreview); 312var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp, 313parseOptions: TestOptions.RegularPreview);
Symbols\RequiredMembersTests.cs (9)
203", options: TestOptions.UnsafeReleaseDll); 235var comp = CreateCompilationWithRequiredMembers(code, parseOptions: TestOptions.Regular10); 246comp = CreateCompilationWithRequiredMembers(code, parseOptions: TestOptions.Regular11); 315var comp = CreateCompilationWithRequiredMembers(code, parseOptions: use10 ? TestOptions.Regular10 : TestOptions.Regular11); 376comp = CreateCompilationWithRequiredMembers(code, parseOptions: use10 ? TestOptions.Regular10 : TestOptions.Regular11); 6276""", new[] { reference }, parseOptions: TestOptions.Script.WithLanguageVersion(LanguageVersion.Preview)); 6295""", new[] { reference }, parseOptions: TestOptions.Script.WithLanguageVersion(LanguageVersion.Preview));
Symbols\Retargeting\NoPia.cs (74)
283var LocalTypes1 = CreateEmptyCompilation(s_sourceLocalTypes1_IL, new[] { MscorlibRef }, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes1"); 286var LocalTypes2 = CreateEmptyCompilation(s_sourceLocalTypes2_IL, new[] { MscorlibRef }, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2"); 352var LocalTypes1 = CreateCompilationWithMscorlib40(s_sourceLocalTypes1_IL, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes1"); 355var LocalTypes2 = CreateCompilationWithMscorlib40(s_sourceLocalTypes2_IL, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2"); 649var LocalTypes1 = CreateCompilation(s_sourceLocalTypes1, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes1", 654var LocalTypes2 = CreateCompilation(s_sourceLocalTypes2, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2", 950var Pia1 = CreateCompilation(s_sourcePia1, options: TestOptions.ReleaseDll, assemblyName: "Pia1", targetFramework: TargetFramework.Standard); 953var LocalTypes1 = CreateCompilation(s_sourceLocalTypes1, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes1", 958var LocalTypes2 = CreateCompilation(s_sourceLocalTypes2, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2", 1258var LocalTypes1 = CreateCompilation(s_sourceLocalTypes1_IL, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes1"); 1283var LocalTypes1 = CreateCompilation(s_sourceLocalTypes1, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes1", 1308var Pia1 = CreateCompilation(s_sourcePia1, options: TestOptions.ReleaseDll, assemblyName: "Pia1"); 1313var LocalTypes1 = CreateCompilation(s_sourceLocalTypes1, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes1", 1335var LocalTypes3 = CreateCompilation(s_sourceLocalTypes3_IL, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes3"); 1405var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseDll, assemblyName: "comp"); 1451var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseDll, assemblyName: "comp"); 1490var pia = CreateCompilationWithMscorlib46(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1532var comp1 = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseDll, 1536var comp2 = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseDll, 1571var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1586var comp1 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1590var comp2 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1624var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1639var comp1 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1643var comp2 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1668var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1681var comp1 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1685var comp2 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1718var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1736var comp1 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1740var comp2 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1773var pia = CreateCompilationWithMscorlib46(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1776var lib = CreateCompilationWithMscorlib46(libSource, options: TestOptions.ReleaseDll, references: new[] { pia.ToMetadataReference() }); 1804var comp1 = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseDll, 1808var comp2 = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseDll, 1826var pia = CreateCompilationWithMscorlib46(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1849var comp1 = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseDll, 1866var comp2 = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseDll, 1887var LocalTypes3 = CreateCompilation(s_sourceLocalTypes3, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes3", 1934var Pia1 = CreateCompilation(s_sourcePia1, options: TestOptions.ReleaseDll, assemblyName: "Pia1"); 1937var LocalTypes3 = CreateCompilation(s_sourceLocalTypes3, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes3", 2015var localTypes2 = CreateCompilation(source, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2"); 2041var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2046var compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2061compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2076compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2091compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2140var localTypes2 = CreateCompilation(source, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2"); 2166var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2171var compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2186compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2201compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2216compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2265var localTypes2 = CreateCompilation(source, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2"); 2291var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2296var compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2311compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2326compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2341compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2381var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2403var localTypes2 = CreateCompilation(source, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2", 2408var compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2423compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2473var localTypes2 = CreateCompilation(source, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2"); 2499var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2504var compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2519compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2534compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2549compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2586var pia1 = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "Pia1"); 2599var module1 = CreateCompilation(moduleSource, options: TestOptions.ReleaseModule, assemblyName: "Module1", 2602var multiModule = CreateCompilation("", options: TestOptions.ReleaseDll, 2617var consumer = CreateCompilation(consumerSource, options: TestOptions.ReleaseDll, 2641var piaCompilation = CreateEmptyCompilation(pia, references: [Net40.References.mscorlib], options: TestOptions.DebugDll, assemblyName: "Pia");
Symbols\Retargeting\RetargetCustomAttributes.cs (8)
69var compilation1 = CSharpCompilation.Create("C1", new[] { Parse(source) }, new[] { OldMsCorLib }, TestOptions.ReleaseDll); 338var comp1 = CreateCompilation(source1, options: TestOptions.DebugDll); 346var comp2 = CreateCompilation(source2, references: new[] { comp1.ToMetadataReference() }, options: TestOptions.DebugDll); 347var comp3 = CreateCompilation("", references: new[] { comp2.ToMetadataReference() }, options: TestOptions.DebugDll); 368var comp1_1 = CreateCompilation(source1_1, options: TestOptions.DebugDll, assemblyName: "Lib65048"); 376var comp2 = CreateCompilation(source2, references: new[] { comp1_1.ToMetadataReference() }, options: TestOptions.DebugDll); 387var comp1_2 = CreateCompilation(source1_2, options: TestOptions.DebugDll, assemblyName: "Lib65048"); 389var comp3 = CreateCompilation("", references: new[] { comp2.ToMetadataReference(), comp1_2.ToMetadataReference() }, options: TestOptions.DebugDll);
Symbols\Retargeting\RetargetingTests.cs (8)
730var comp1 = CreateEmptyCompilation(source, new[] { MscorlibRef_v20 }, TestOptions.ReleaseDll); 735var 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); 980options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9, 1065var finalComp = CreateEmptyCompilation(@"C.M(1);", options: TestOptions.ReleaseExe, references: new[] { afterRetargeting.ToMetadataReference(), unmanagedCallersOnlyAssembly.ToMetadataReference() }); 1142var finalComp = CreateEmptyCompilation(@"C.M(1);", options: TestOptions.ReleaseExe, references: new[] { afterRetargeting.ToMetadataReference(), unmanagedCallersOnlyAssembly.ToMetadataReference() });
Symbols\Source\BaseClassTests.cs (4)
2281var comp = CreateCompilation(text, parseOptions: TestOptions.Regular11); 2318var comp = CreateCompilation(text, parseOptions: TestOptions.Regular12); 2339comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12);
Symbols\Source\ClsComplianceTests.cs (54)
397CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 405CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 442CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 495var lib1 = CreateCompilation(libSource1, assemblyName: "lib1", parseOptions: TestOptions.Regular11).EmitToImageReference(); 496var lib2 = CreateCompilation(libSource2, assemblyName: "lib2", parseOptions: TestOptions.Regular11).EmitToImageReference(); 497var lib3 = CreateCompilation(libSource3, assemblyName: "lib3", parseOptions: TestOptions.Regular11).EmitToImageReference(); 499CreateCompilation(source, new[] { lib1, lib2, lib3 }, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 561var lib1 = CreateCompilation(libSource1, assemblyName: "lib1", options: TestOptions.UnsafeDebugDll).EmitToImageReference(); 562var lib2 = CreateCompilation(libSource2, assemblyName: "lib2", options: TestOptions.UnsafeDebugDll).EmitToImageReference(); 563var lib3 = CreateCompilation(libSource3, assemblyName: "lib3", options: TestOptions.UnsafeDebugDll).EmitToImageReference(); 565CreateCompilation(source, new[] { lib1, lib2, lib3 }, TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 586CreateCompilation(source, new[] { lib1, lib2, lib3 }, TestOptions.ReleaseDll).VerifyDiagnostics( 644var compCompliant = CreateCompilationWithMscorlib46(source, new[] { libCompliant }, TestOptions.ReleaseDll); 652var compNotCompliant = CreateCompilationWithMscorlib46(source, new[] { libNotCompliant }, TestOptions.ReleaseDll); 689CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 736CreateCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 762CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 810CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 840CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 849CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(); 1181CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1228CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1271CreateCompilation(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 1364CreateCompilation(source, options: TestOptions.ReleaseDll.WithNullableContextOptions(nullableContextOptions)).VerifyDiagnostics( 2366var trueModuleRef = CreateCompilation("[assembly:System.CLSCompliant(true)][module:System.CLSCompliant(true)]", options: TestOptions.ReleaseModule, assemblyName: "true").EmitToImageReference(); 2367var falseModuleRef = CreateCompilation("[assembly:System.CLSCompliant(false)][module:System.CLSCompliant(false)]", options: TestOptions.ReleaseModule, assemblyName: "false").EmitToImageReference(); 2368var noneModuleRef = CreateCompilation("", options: TestOptions.ReleaseModule, assemblyName: "none").EmitToImageReference(); 2401var trueModuleRef = CreateCompilation("[assembly:System.CLSCompliant(true)]", options: TestOptions.ReleaseModule, assemblyName: "true").EmitToImageReference(); 2402var falseModuleRef = CreateCompilation("[assembly:System.CLSCompliant(false)]", options: TestOptions.ReleaseModule, assemblyName: "false").EmitToImageReference(); 2403var noneModuleRef = CreateCompilation("", options: TestOptions.ReleaseModule, assemblyName: "none").EmitToImageReference(); 2434var trueModuleRef = CreateCompilation("[assembly:System.CLSCompliant(true)][module:System.CLSCompliant(true)]", options: TestOptions.ReleaseModule, assemblyName: "true").EmitToImageReference(); 2435var falseModuleRef = CreateCompilation("[assembly:System.CLSCompliant(false)][module:System.CLSCompliant(false)]", options: TestOptions.ReleaseModule, assemblyName: "false").EmitToImageReference(); 2935CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2996CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3017CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3038CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3314var comp = CreateEmptyCompilation(source, WinRtRefs, options: TestOptions.ReleaseWinMD); 3496var parseOptions = TestOptions.Regular7; 3866var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseModule); 3879var comp2 = CreateCompilation(source2, new[] { comp1.EmitToImageReference() }, TestOptions.ReleaseDll.WithConcurrentBuild(false)); 3885comp2.WithOptions(TestOptions.ReleaseDll.WithConcurrentBuild(true)).VerifyDiagnostics( 3890var comp3 = comp2.WithOptions(TestOptions.ReleaseModule.WithConcurrentBuild(false)); 3896comp3.WithOptions(TestOptions.ReleaseModule.WithConcurrentBuild(true)).VerifyDiagnostics(
Symbols\Source\CustomModifierCopyTests.cs (1)
881options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All),
Symbols\Source\DelegateTests.cs (2)
321CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 822var tree = SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.Regular);
Symbols\Source\EventTests.cs (2)
1348CreateCompilation(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1356CreateCompilation(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)
37var comp = CreateCompilation(src, assemblyName: "Goo1", options: TestOptions.ReleaseDll); 62var comp = CreateCompilation(src, assemblyName: "Goo2", options: TestOptions.ReleaseDll); 100var comp = CreateCompilationWithMscorlib461(src, options: TestOptions.DebugExe, parseOptions: TestOptions.Script); 112syntaxTree: SyntaxFactory.ParseSyntaxTree(src, options: TestOptions.Script), 214var comp = CreateCompilation(src, assemblyName: "Baz.dll", options: TestOptions.ReleaseDll); 229comp = CreateCompilation(src, assemblyName: "Bar.dll", options: TestOptions.ReleaseDll); 316var comp = CreateCompilation(src, options: TestOptions.ReleaseDll);
Symbols\Source\FieldTests.cs (4)
28CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 44var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 276CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular).VerifyDiagnostics( 341CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics(
Symbols\Source\FileModifierTests.cs (33)
35var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 55var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 81var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 114var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 730var verifier = CompileAndVerify(SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.RegularPreview, path: "path/to/MyFile.cs", encoding: Encoding.Default), expectedOutput: "1", symbolValidator: symbolValidator); 773var verifier = CompileAndVerify(SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.RegularPreview, path: "path/to/My<>File.cs", encoding: Encoding.Default), expectedOutput: "1", symbolValidator: symbolValidator); 804var verifier = CompileAndVerify(SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.RegularPreview, path: "path/to/MyGeneratedFile.g.cs", encoding: Encoding.Default), expectedOutput: "1", symbolValidator: symbolValidator); 834var options = TestOptions.DebugDll.WithDeterministic(true); 874""", options: TestOptions.RegularPreview, path: path, encoding: Encoding.Default); 875var 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); 957var source2 = SyntaxFactory.ParseSyntaxTree("", options: TestOptions.RegularPreview, path: path, encoding: Encoding.Default); 990""", options: TestOptions.RegularPreview, path: "path/to/file.cs", encoding: Encoding.Default); 991var source2 = SyntaxFactory.ParseSyntaxTree("", options: TestOptions.RegularPreview, path: "path/to/File.cs", encoding: Encoding.Default); 1086var comp = CreateCompilation(SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.RegularPreview, path: $"path/to/My{badChar}File.cs", encoding: Encoding.Default)); 1113var comp = CreateCompilation(SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularPreview, path: "\uD800.cs")); 1148var verifier = CompileAndVerify(SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.RegularPreview, path: "path/to/My+File.cs", encoding: Encoding.Default), expectedOutput: "1", symbolValidator: validateSymbols); 1857var comp = CreateCompilation(new[] { (source1 + main, "file1.cs"), (source2, "file2.cs") }, options: TestOptions.DebugExe); 1865comp = CreateCompilation(new[] { (source1, "file1.cs"), (source2 + main, "file2.cs") }, options: TestOptions.DebugExe); 2896var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 3325var compilation = CreateCompilation(new[] { (source, "file1.cs"), (IsExternalInitTypeDefinition, "file2.cs") }, options: TestOptions.DebugExe.WithUsings("NS")); 3853var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3880var compilation = CreateCompilation(new[] { (source, "file1.cs"), (main, "file2.cs") }, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 4061SyntaxFactory.ParseSyntaxTree(source1, TestOptions.RegularPreview), 4062SyntaxFactory.ParseSyntaxTree(source2, TestOptions.RegularPreview, path: "path/to/FileB.cs") 4089var comp = CreateSubmission(source1, parseOptions: TestOptions.Script.WithLanguageVersion(LanguageVersion.Preview)); 4330var comp = CreateCompilation(SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularPreview, path: "path/to/SomeFile.cs")); 4502var comp0 = CreateCompilation((fileTypeSource, filePath), options: TestOptions.SigningReleaseDll); 4526options: TestOptions.SigningReleaseDll); 4544var comp0 = CreateCompilation((fileTypeSource, filePath), options: TestOptions.SigningReleaseDll); 4565options: TestOptions.SigningReleaseDll);
Symbols\Source\MethodTests.cs (2)
51var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 2247var parseOptions = TestOptions.Regular;
Symbols\Source\ModifierTests.cs (1)
111var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Script);
Symbols\Source\NullablePublicAPITests.cs (15)
441var comp3 = CreateCompilation(source, parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 473var comp6 = CreateCompilation("", references: new[] { comp1Emit }, parseOptions: TestOptions.Regular7_3); 1043var comp3 = CreateCompilation(source, parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 1059var comp6 = CreateCompilation("", references: new[] { comp1Emit }, parseOptions: TestOptions.Regular7_3); 1373var newCoalesce = (AssignmentExpressionSyntax)SyntaxFactory.ParseExpression(@"s3 ??= s1", options: TestOptions.Regular8); 1737var featureFlagOff = TestOptions.Regular8.WithFeature("run-nullable-analysis", "never"); 1817var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 2623var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8.WithFeature("run-nullable-analysis", flagState)); 4031var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 4763var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4930var comp = CreateCompilation(code, options: TestOptions.ReleaseExe.WithNullableContextOptions(NullableContextOptions.Enable)); 5062var comp = CreateCompilation(@"string s = """" switch { _ => string.Empty };", options: WithNullableEnable(TestOptions.ReleaseExe)); 5184var comp = CreateCompilation(source, parseOptions: runNullableAnalysisAlways ? TestOptions.RegularPreview.WithFeature("run-nullable-analysis", "always") : TestOptions.RegularPreview); 5222var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithFeature("run-nullable-analysis", "never"));
Symbols\Source\PropertyTests.cs (24)
122", parseOptions: TestOptions.Regular9).VerifyDiagnostics( 155CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 208var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 233var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 265var comp = CreateCompilation(text, parseOptions: TestOptions.Regular); 280var comp = CreateCompilation(text, parseOptions: TestOptions.Regular); 294var comp = CreateCompilation(text, parseOptions: TestOptions.Regular); 312var comp = CreateCompilation(text, parseOptions: TestOptions.Regular); 789var compilation = CompileWithCustomPropertiesAssembly(source, TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 1870TestOptions.ReleaseExe); 2581return CreateCompilation(source, new[] { s_propertiesDll }, options ?? TestOptions.ReleaseDll); 2605options: TestOptions.DebugDll, 2697options: TestOptions.DebugDll, 2780options: winmd ? TestOptions.ReleaseWinMD : TestOptions.ReleaseDll); 2822var comp = CreateCompilation(libSrc, options: TestOptions.ReleaseDll); 2828comp = CreateCompilation(libSrc, options: TestOptions.ReleaseWinMD); 2854CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp3)).VerifyDiagnostics(); 2855CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp2)).VerifyDiagnostics( 2896CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 2960var comp = CreateCompilation(source, parseOptions: TestOptions.Regular5); 2967comp = CreateCompilation(source, parseOptions: TestOptions.Regular6); 2991var comp = CreateCompilation(source, parseOptions: TestOptions.Regular5); 2997comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview);
Symbols\Source\RecordTests.cs (6)
17=> CSharpTestBase.CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 22parseOptions: TestOptions.Regular9, 1214var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 1353parseOptions: TestOptions.Regular9, 1469parseOptions: TestOptions.Regular9, 1470options: TestOptions.ReleaseExe);
Symbols\Source\UsingAliasTests.cs (11)
773CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 778CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 803CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 830CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 844CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 875CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 890CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected); 915CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(); 936""", options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1003""", options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1022""", options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(
Symbols\StaticAbstractMembersInInterfacesTests.cs (1276)
68var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 69parseOptions: TestOptions.Regular10, 309var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 310parseOptions: TestOptions.Regular10, 420var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 421parseOptions: TestOptions.RegularPreview, 507var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 508parseOptions: TestOptions.RegularPreview, 588var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 589parseOptions: TestOptions.Regular7_3, 708var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 709parseOptions: TestOptions.Regular7_3, 814var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 815parseOptions: TestOptions.RegularPreview, 899var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 900parseOptions: TestOptions.RegularPreview, 972var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 973parseOptions: TestOptions.RegularPreview, 1012var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1013parseOptions: TestOptions.RegularPreview, 1049var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1050parseOptions: TestOptions.RegularPreview, 1105var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1106parseOptions: TestOptions.RegularPreview, 1126var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1127parseOptions: TestOptions.RegularPreview, 1143var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1144parseOptions: TestOptions.RegularPreview, 1180var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1181parseOptions: TestOptions.RegularPreview, 1217var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1218parseOptions: TestOptions.RegularPreview, 1258var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1259parseOptions: TestOptions.RegularPreview, 1319var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1320parseOptions: TestOptions.RegularPreview, 1370var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1371parseOptions: TestOptions.RegularPreview, 1425var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1426parseOptions: TestOptions.RegularPreview, 1483var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1484parseOptions: TestOptions.RegularPreview, 1538var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1539parseOptions: TestOptions.RegularPreview, 1610var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1611parseOptions: TestOptions.RegularPreview, 1668var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1669parseOptions: TestOptions.Regular10, 1995var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1996parseOptions: TestOptions.Regular10, 2106var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2107parseOptions: TestOptions.RegularPreview, 2175var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2176parseOptions: TestOptions.RegularPreview, 2256var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2257parseOptions: TestOptions.Regular7_3, 2358var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2359parseOptions: TestOptions.Regular7_3, 2474var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2475parseOptions: TestOptions.Regular10, 2809var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2810parseOptions: TestOptions.Regular10, 2922var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2923parseOptions: TestOptions.RegularPreview, 2992var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2993parseOptions: TestOptions.RegularPreview, 3075var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3076parseOptions: TestOptions.Regular7_3, 3178var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3179parseOptions: TestOptions.Regular7_3, 3292var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3293parseOptions: TestOptions.Regular10, 3530var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3531parseOptions: TestOptions.Regular10, 3635var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3636parseOptions: TestOptions.RegularPreview, 3722var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3723parseOptions: TestOptions.RegularPreview, 3800var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3801parseOptions: TestOptions.Regular7_3, 3917var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3918parseOptions: TestOptions.Regular7_3, 4013var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4014parseOptions: TestOptions.Regular7_3, 4058compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4059parseOptions: TestOptions.Regular10, 4103compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4104parseOptions: TestOptions.RegularPreview, 4205var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4206parseOptions: TestOptions.Regular7_3, 4268compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4269parseOptions: TestOptions.Regular10, 4331compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4332parseOptions: TestOptions.RegularPreview, 4451var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4452parseOptions: TestOptions.Regular7_3, 4496compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4497parseOptions: TestOptions.Regular10, 4541compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4542parseOptions: TestOptions.RegularPreview, 4637var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4638parseOptions: TestOptions.Regular7_3, 4700compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4701parseOptions: TestOptions.Regular10, 4763compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4764parseOptions: TestOptions.RegularPreview, 4865var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4866parseOptions: TestOptions.RegularPreview, 4907var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4908parseOptions: TestOptions.RegularPreview, 4940var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4941parseOptions: TestOptions.RegularPreview, 4973var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4974parseOptions: TestOptions.RegularPreview, 5009var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5010parseOptions: TestOptions.RegularPreview, 5047var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5048parseOptions: TestOptions.RegularPreview, 5067var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5068parseOptions: TestOptions.RegularPreview, 5109var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5110parseOptions: TestOptions.RegularPreview, 5151var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5152parseOptions: TestOptions.RegularPreview, 5184var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5185parseOptions: TestOptions.RegularPreview, 5226var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5227parseOptions: TestOptions.RegularPreview, 5268var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5269parseOptions: TestOptions.RegularPreview, 5298var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5299parseOptions: TestOptions.RegularPreview, 5334var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5335parseOptions: TestOptions.RegularPreview, 5370var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5371parseOptions: TestOptions.RegularPreview, 5385var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 5386parseOptions: TestOptions.RegularPreview, 5411var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5412parseOptions: TestOptions.RegularPreview, 5426var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 5427parseOptions: TestOptions.RegularPreview, 5488var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5489parseOptions: TestOptions.RegularPreview, 5556var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5557parseOptions: TestOptions.RegularPreview, 5595var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5596parseOptions: TestOptions.RegularPreview, 5639var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5640parseOptions: TestOptions.RegularPreview, 5700var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5701parseOptions: TestOptions.RegularPreview, 5747var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5748parseOptions: TestOptions.RegularPreview, 5777var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5778parseOptions: TestOptions.RegularPreview, 5826var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5827parseOptions: TestOptions.RegularPreview, 5870var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5871parseOptions: TestOptions.RegularPreview, 5909var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5910parseOptions: TestOptions.RegularPreview, 5951var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5952parseOptions: TestOptions.RegularPreview, 5978var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5979parseOptions: TestOptions.RegularPreview, 6023var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6024parseOptions: TestOptions.RegularPreview, 6068var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6069parseOptions: TestOptions.RegularPreview, 6092var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6093parseOptions: TestOptions.RegularPreview, 6116var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6117parseOptions: TestOptions.RegularPreview, 6162var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6163parseOptions: TestOptions.RegularPreview, 6207var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6208parseOptions: TestOptions.RegularPreview, 6228var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6229parseOptions: TestOptions.RegularPreview, 6260var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6261parseOptions: TestOptions.RegularPreview, 6335var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 6336parseOptions: TestOptions.RegularPreview, 6384compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 6385parseOptions: TestOptions.RegularPreview, 6415var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6416parseOptions: TestOptions.RegularPreview, 6467var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 6468parseOptions: TestOptions.RegularPreview, 6485compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 6486parseOptions: TestOptions.RegularPreview, 6523var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6524parseOptions: TestOptions.RegularPreview, 6598var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 6599parseOptions: TestOptions.RegularPreview, 6614compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 6615parseOptions: TestOptions.RegularPreview, 6641var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6642parseOptions: TestOptions.RegularPreview, 6716var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 6717parseOptions: TestOptions.RegularPreview, 6750compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 6751parseOptions: TestOptions.RegularPreview, 6782var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6783parseOptions: TestOptions.RegularPreview, 6857var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 6858parseOptions: TestOptions.RegularPreview, 6879compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 6880parseOptions: TestOptions.RegularPreview, 6911var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6912parseOptions: TestOptions.RegularPreview, 6986var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 6987parseOptions: TestOptions.RegularPreview, 7008compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 7009parseOptions: TestOptions.RegularPreview, 7040var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7041parseOptions: TestOptions.RegularPreview, 7068var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7069parseOptions: TestOptions.RegularPreview, 7098var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7099parseOptions: TestOptions.RegularPreview, 7128var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7129parseOptions: TestOptions.RegularPreview, 7160var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7161parseOptions: TestOptions.RegularPreview, 7239var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7240parseOptions: TestOptions.RegularPreview, 7333var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7334parseOptions: TestOptions.RegularPreview, 7438var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7439parseOptions: TestOptions.RegularPreview, 7544var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7545parseOptions: TestOptions.RegularPreview, 7638var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7639parseOptions: TestOptions.RegularPreview, 7737var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7738parseOptions: TestOptions.RegularPreview, 7854var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7855parseOptions: TestOptions.RegularPreview, 7974var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7975parseOptions: TestOptions.RegularPreview, 8071var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8072parseOptions: TestOptions.RegularPreview, 8168var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8169parseOptions: TestOptions.RegularPreview, 8249var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8250parseOptions: TestOptions.RegularPreview, 8338var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8339parseOptions: TestOptions.RegularPreview, 8390var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8391parseOptions: TestOptions.RegularPreview, 8424compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 8425parseOptions: TestOptions.RegularPreview, 8502var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8503parseOptions: TestOptions.RegularPreview, 8506var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 8507parseOptions: TestOptions.RegularPreview, 8517var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 8518parseOptions: TestOptions.RegularPreview, 8550var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8551parseOptions: TestOptions.RegularPreview, 8587var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8588parseOptions: TestOptions.RegularPreview, 8591var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 8592parseOptions: TestOptions.Regular10, 8602var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 8603parseOptions: TestOptions.Regular10, 8672var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8673parseOptions: TestOptions.RegularPreview, 8767var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8768parseOptions: TestOptions.RegularPreview, 8773compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 8774parseOptions: TestOptions.RegularPreview, 8906compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 8907parseOptions: TestOptions.RegularPreview, 9112var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9113parseOptions: TestOptions.RegularPreview, 9116var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 9117parseOptions: TestOptions.RegularPreview, 9127var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 9128parseOptions: TestOptions.RegularPreview, 9180var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9181parseOptions: TestOptions.RegularPreview, 9184var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 9185parseOptions: TestOptions.Regular10, 9209var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 9210parseOptions: TestOptions.Regular10, 9272var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9273parseOptions: TestOptions.RegularPreview, 9314var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9315parseOptions: TestOptions.RegularPreview, 9335compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 9336parseOptions: TestOptions.RegularPreview, 9397var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9398parseOptions: TestOptions.RegularPreview, 9401var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 9402parseOptions: TestOptions.RegularPreview, 9412var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 9413parseOptions: TestOptions.RegularPreview, 9450var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9451parseOptions: TestOptions.RegularPreview, 9454var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 9455parseOptions: TestOptions.Regular10, 9465var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 9466parseOptions: TestOptions.Regular10, 9525var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9526parseOptions: TestOptions.RegularPreview, 9605var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9606parseOptions: TestOptions.RegularPreview, 9680compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 9681parseOptions: TestOptions.RegularPreview, 9802var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9803parseOptions: TestOptions.RegularPreview, 9806var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 9807parseOptions: TestOptions.RegularPreview, 9817var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 9818parseOptions: TestOptions.RegularPreview, 9864var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9865parseOptions: TestOptions.RegularPreview, 9868var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 9869parseOptions: TestOptions.Regular10, 9879var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 9880parseOptions: TestOptions.Regular10, 9948var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9949parseOptions: TestOptions.RegularPreview, 10077var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10078parseOptions: TestOptions.RegularPreview, 10291var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10292parseOptions: TestOptions.RegularPreview, 10411var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10412parseOptions: TestOptions.RegularPreview, 10534var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10535parseOptions: TestOptions.RegularPreview, 10540compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 10541parseOptions: TestOptions.RegularPreview, 10645compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 10646parseOptions: TestOptions.RegularPreview, 10817var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10818parseOptions: TestOptions.RegularPreview, 10882compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 10883parseOptions: TestOptions.RegularPreview, 10989var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10990parseOptions: TestOptions.RegularPreview, 11063compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 11064parseOptions: TestOptions.RegularPreview, 11202var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11203parseOptions: TestOptions.RegularPreview, 11267compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 11268parseOptions: TestOptions.RegularPreview, 11367var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11368parseOptions: TestOptions.RegularPreview, 11478compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 11479parseOptions: TestOptions.RegularPreview, 11704var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11705parseOptions: TestOptions.RegularPreview, 11710compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 11711parseOptions: TestOptions.RegularPreview, 11834compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 11835parseOptions: TestOptions.RegularPreview, 11997var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11998parseOptions: TestOptions.RegularPreview, 12068compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 12069parseOptions: TestOptions.RegularPreview, 12181var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12182parseOptions: TestOptions.RegularPreview, 12185var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 12186parseOptions: TestOptions.RegularPreview, 12196var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 12197parseOptions: TestOptions.RegularPreview, 12244var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12245parseOptions: TestOptions.RegularPreview, 12248var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 12249parseOptions: TestOptions.RegularPreview, 12266var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 12267parseOptions: TestOptions.RegularPreview, 12331var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12332parseOptions: TestOptions.RegularPreview, 12335var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 12336parseOptions: TestOptions.RegularPreview, 12346var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 12347parseOptions: TestOptions.RegularPreview, 12381var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12382parseOptions: TestOptions.RegularPreview, 12385var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 12386parseOptions: TestOptions.RegularPreview, 12396var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 12397parseOptions: TestOptions.RegularPreview, 12438var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12439parseOptions: TestOptions.RegularPreview, 12442var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 12443parseOptions: TestOptions.Regular10, 12478var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 12479parseOptions: TestOptions.Regular10, 12551var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12552parseOptions: TestOptions.RegularPreview, 12555var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 12556parseOptions: TestOptions.Regular10, 12573var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 12574parseOptions: TestOptions.Regular10, 12638var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12639parseOptions: TestOptions.RegularPreview, 12642var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 12643parseOptions: TestOptions.Regular10, 12678var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 12679parseOptions: TestOptions.Regular10, 12738var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12739parseOptions: TestOptions.RegularPreview, 12742var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 12743parseOptions: TestOptions.Regular10, 12753var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 12754parseOptions: TestOptions.Regular10, 12817var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12818parseOptions: TestOptions.RegularPreview, 12908var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12909parseOptions: TestOptions.RegularPreview, 13002var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13003parseOptions: TestOptions.RegularPreview, 13100var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13101parseOptions: TestOptions.RegularPreview, 13141var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13142parseOptions: TestOptions.RegularPreview, 13160compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 13161parseOptions: TestOptions.RegularPreview, 13226var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13227parseOptions: TestOptions.RegularPreview, 13246compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 13247parseOptions: TestOptions.RegularPreview, 13317var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13318parseOptions: TestOptions.RegularPreview, 13355compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 13356parseOptions: TestOptions.RegularPreview, 13436var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13437parseOptions: TestOptions.RegularPreview, 13440var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 13441parseOptions: TestOptions.RegularPreview, 13451var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 13452parseOptions: TestOptions.RegularPreview, 13488var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13489parseOptions: TestOptions.RegularPreview, 13492var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 13493parseOptions: TestOptions.RegularPreview, 13503var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 13504parseOptions: TestOptions.RegularPreview, 13540var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13541parseOptions: TestOptions.RegularPreview, 13544var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 13545parseOptions: TestOptions.RegularPreview, 13558var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 13559parseOptions: TestOptions.RegularPreview, 13595var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13596parseOptions: TestOptions.RegularPreview, 13599var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 13600parseOptions: TestOptions.Regular10, 13610var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 13611parseOptions: TestOptions.Regular10, 13647var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13648parseOptions: TestOptions.RegularPreview, 13651var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 13652parseOptions: TestOptions.Regular10, 13662var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 13663parseOptions: TestOptions.Regular10, 13699var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13700parseOptions: TestOptions.RegularPreview, 13703var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 13704parseOptions: TestOptions.Regular10, 13714var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 13715parseOptions: TestOptions.Regular10, 13778var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13779parseOptions: TestOptions.RegularPreview, 13875var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13876parseOptions: TestOptions.RegularPreview, 13970var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13971parseOptions: TestOptions.RegularPreview, 14017var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14018parseOptions: TestOptions.RegularPreview, 14056compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 14057parseOptions: TestOptions.RegularPreview, 14146var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14147parseOptions: TestOptions.RegularPreview, 14150var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 14151parseOptions: TestOptions.RegularPreview, 14161var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 14162parseOptions: TestOptions.RegularPreview, 14195var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14196parseOptions: TestOptions.RegularPreview, 14199var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 14200parseOptions: TestOptions.RegularPreview, 14210var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 14211parseOptions: TestOptions.RegularPreview, 14244var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14245parseOptions: TestOptions.RegularPreview, 14248var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 14249parseOptions: TestOptions.Regular10, 14259var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 14260parseOptions: TestOptions.Regular10, 14296var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14297parseOptions: TestOptions.RegularPreview, 14300var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 14301parseOptions: TestOptions.Regular10, 14311var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 14312parseOptions: TestOptions.Regular10, 14401var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 14402parseOptions: TestOptions.RegularPreview, 14429var compilation2 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugDll, 14430parseOptions: TestOptions.RegularPreview, 14496var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 14497parseOptions: TestOptions.RegularPreview, 14519var compilation2 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugDll, 14520parseOptions: TestOptions.RegularPreview, 14595var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14596parseOptions: TestOptions.RegularPreview, 14657var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14658parseOptions: TestOptions.RegularPreview, 14687compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 14688parseOptions: TestOptions.RegularPreview, 14748var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14749parseOptions: TestOptions.RegularPreview, 14752var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 14753parseOptions: TestOptions.RegularPreview, 14763var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 14764parseOptions: TestOptions.RegularPreview, 14797var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14798parseOptions: TestOptions.RegularPreview, 14801var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 14802parseOptions: TestOptions.Regular10, 14812var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 14813parseOptions: TestOptions.Regular10, 14887var compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseExe, 14888parseOptions: TestOptions.RegularPreview, 14953var compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseExe, 14954parseOptions: TestOptions.RegularPreview, 15013var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15014parseOptions: TestOptions.RegularPreview, 15075var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15076parseOptions: TestOptions.RegularPreview, 15099compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 15100parseOptions: TestOptions.RegularPreview, 15154var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15155parseOptions: TestOptions.RegularPreview, 15158var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 15159parseOptions: TestOptions.RegularPreview, 15169var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 15170parseOptions: TestOptions.RegularPreview, 15203var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15204parseOptions: TestOptions.RegularPreview, 15207var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 15208parseOptions: TestOptions.Regular10, 15218var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 15219parseOptions: TestOptions.Regular10, 15282var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithAllowUnsafe(true), 15283parseOptions: TestOptions.RegularPreview, 15347var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithAllowUnsafe(true), 15348parseOptions: TestOptions.RegularPreview, 15369compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), 15370parseOptions: TestOptions.RegularPreview, 15422var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15423parseOptions: TestOptions.RegularPreview, 15426var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll.WithAllowUnsafe(true), 15427parseOptions: TestOptions.RegularPreview, 15437var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll.WithAllowUnsafe(true), 15438parseOptions: TestOptions.RegularPreview, 15471var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15472parseOptions: TestOptions.RegularPreview, 15475var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll.WithAllowUnsafe(true), 15476parseOptions: TestOptions.Regular10, 15486var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll.WithAllowUnsafe(true), 15487parseOptions: TestOptions.Regular10, 15548var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15549parseOptions: TestOptions.RegularPreview, 15628var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15629parseOptions: TestOptions.RegularPreview, 15690var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15691parseOptions: TestOptions.RegularPreview, 15766var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15767parseOptions: TestOptions.RegularPreview, 15843var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15844parseOptions: TestOptions.RegularPreview, 15904var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15905parseOptions: TestOptions.RegularPreview, 15908var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 15909parseOptions: TestOptions.Regular10, 15922var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 15923parseOptions: TestOptions.Regular10, 15960var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15961parseOptions: TestOptions.RegularPreview, 15964var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 15965parseOptions: TestOptions.RegularPreview, 15975var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 15976parseOptions: TestOptions.RegularPreview, 16007var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16008parseOptions: TestOptions.RegularPreview, 16011var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 16012parseOptions: TestOptions.RegularPreview, 16022var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 16023parseOptions: TestOptions.RegularPreview, 16059var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16060parseOptions: TestOptions.RegularPreview, 16121var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16122parseOptions: TestOptions.RegularPreview, 16177var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16178parseOptions: TestOptions.RegularPreview, 16192foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 16194var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 16293var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 16294parseOptions: TestOptions.RegularPreview, 16320compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 16321parseOptions: TestOptions.Regular10, 16354var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 16355parseOptions: TestOptions.RegularPreview, 16367compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 16368parseOptions: TestOptions.Regular10, 16385var compilation2 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugDll, 16386parseOptions: TestOptions.RegularPreview, 16431var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 16432parseOptions: TestOptions.RegularPreview, 16472var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16473parseOptions: TestOptions.RegularPreview, 16557var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 16558parseOptions: TestOptions.RegularPreview, 16658var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16659parseOptions: TestOptions.RegularPreview, 16673foreach (var parseOptions in new[] { TestOptions.RegularPreview, TestOptions.Regular10 }) 16675var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 16746var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16747parseOptions: TestOptions.RegularPreview, 16761var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 16762parseOptions: TestOptions.RegularPreview, 16836var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16837parseOptions: TestOptions.RegularPreview, 16853foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 16855var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 16918var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16919parseOptions: TestOptions.RegularPreview, 16935foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 16937var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 17000var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17001parseOptions: TestOptions.RegularPreview, 17017foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 17019var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 17070var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17071parseOptions: TestOptions.RegularPreview, 17088foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 17090var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 17145var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17146parseOptions: TestOptions.RegularPreview, 17162foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 17164var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 17232var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17233parseOptions: TestOptions.RegularPreview, 17249foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 17251var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 17322var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17323parseOptions: TestOptions.RegularPreview, 17348var compilation2 = CreateCompilation(source2, options: TestOptions.DebugExe, 17349parseOptions: TestOptions.RegularPreview, 17428var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17429parseOptions: TestOptions.RegularPreview, 17454var compilation2 = CreateCompilation(source2, options: TestOptions.DebugExe, 17455parseOptions: TestOptions.RegularPreview, 17606var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17607parseOptions: TestOptions.RegularPreview, 17749var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17750parseOptions: TestOptions.RegularPreview, 17885var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17886parseOptions: TestOptions.RegularPreview, 18028var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 18029parseOptions: TestOptions.RegularPreview, 18137var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 18138parseOptions: TestOptions.RegularPreview, 18284var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 18285parseOptions: TestOptions.RegularPreview, 18437var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 18438parseOptions: TestOptions.RegularPreview, 18623var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 18624parseOptions: TestOptions.RegularPreview, 18771var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 18772parseOptions: TestOptions.RegularPreview, 18775var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 18776parseOptions: TestOptions.Regular10, 18813var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 18814parseOptions: TestOptions.Regular10, 18899var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 18900parseOptions: TestOptions.RegularPreview, 18903var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 18904parseOptions: TestOptions.Regular10, 18957var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 18958parseOptions: TestOptions.Regular10, 19059var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19060parseOptions: TestOptions.RegularPreview, 19063var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 19064parseOptions: TestOptions.RegularPreview, 19074var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 19075parseOptions: TestOptions.RegularPreview, 19111var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19112parseOptions: TestOptions.RegularPreview, 19115var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 19116parseOptions: TestOptions.RegularPreview, 19126var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 19127parseOptions: TestOptions.RegularPreview, 19163var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19164parseOptions: TestOptions.RegularPreview, 19167var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 19168parseOptions: TestOptions.RegularPreview, 19178var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 19179parseOptions: TestOptions.RegularPreview, 19218var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19219parseOptions: TestOptions.RegularPreview, 19222var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 19223parseOptions: TestOptions.RegularPreview, 19233var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 19234parseOptions: TestOptions.RegularPreview, 19293var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19294parseOptions: TestOptions.RegularPreview, 19374var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19375parseOptions: TestOptions.RegularPreview, 19466var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19467parseOptions: TestOptions.RegularPreview, 19554var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19555parseOptions: TestOptions.RegularPreview, 19637var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19638parseOptions: TestOptions.RegularPreview, 19729var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19730parseOptions: TestOptions.RegularPreview, 19818var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19819parseOptions: TestOptions.RegularPreview, 19905var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19906parseOptions: TestOptions.RegularPreview, 19920foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 19922var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 19977var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19978parseOptions: TestOptions.RegularPreview, 19994foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 19996var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 20062var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 20063parseOptions: TestOptions.RegularPreview, 20077foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 20079var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 20142var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 20143parseOptions: TestOptions.RegularPreview, 20157foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 20159var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 20270var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 20271parseOptions: TestOptions.RegularPreview, 20303compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 20304parseOptions: TestOptions.Regular10, 20405var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 20406parseOptions: TestOptions.RegularPreview, 20438compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 20439parseOptions: TestOptions.Regular10, 20483var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 20484parseOptions: TestOptions.RegularPreview, 20497compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 20498parseOptions: TestOptions.Regular10, 20515var compilation2 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugDll, 20516parseOptions: TestOptions.RegularPreview, 20563var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 20564parseOptions: TestOptions.RegularPreview, 20577compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 20578parseOptions: TestOptions.Regular10, 20595var compilation2 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugDll, 20596parseOptions: TestOptions.RegularPreview, 20653var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 20654parseOptions: TestOptions.RegularPreview, 20718var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 20719parseOptions: TestOptions.RegularPreview, 20788var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 20789parseOptions: TestOptions.RegularPreview, 20905var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 20906parseOptions: TestOptions.RegularPreview, 21016var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 21017parseOptions: TestOptions.RegularPreview, 21151var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 21152parseOptions: TestOptions.RegularPreview, 21270var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 21271parseOptions: TestOptions.RegularPreview, 21285foreach (var parseOptions in new[] { TestOptions.RegularPreview, TestOptions.Regular10 }) 21287var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 21330var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 21331parseOptions: TestOptions.RegularPreview, 21345foreach (var parseOptions in new[] { TestOptions.RegularPreview, TestOptions.Regular10 }) 21347var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 21433var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 21434parseOptions: TestOptions.RegularPreview, 21448foreach (var parseOptions in new[] { TestOptions.RegularPreview, TestOptions.Regular10 }) 21450var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 21553var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 21554parseOptions: TestOptions.RegularPreview, 21568var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 21569parseOptions: TestOptions.RegularPreview, 21674var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 21675parseOptions: TestOptions.RegularPreview, 21691foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 21693var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 21783var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 21784parseOptions: TestOptions.RegularPreview, 21800foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 21802var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 21885var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 21886parseOptions: TestOptions.RegularPreview, 21902foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 21904var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 22042var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithAllowUnsafe(true), 22043parseOptions: TestOptions.RegularPreview, 22192var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithAllowUnsafe(true), 22193parseOptions: TestOptions.RegularPreview, 22262var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22263parseOptions: TestOptions.RegularPreview, 22307var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22308parseOptions: TestOptions.RegularPreview, 22378var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22379parseOptions: TestOptions.RegularPreview, 22458var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22459parseOptions: TestOptions.RegularPreview, 22520var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22521parseOptions: TestOptions.RegularPreview, 22596var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22597parseOptions: TestOptions.RegularPreview, 22677var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22678parseOptions: TestOptions.RegularPreview, 22748var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22749parseOptions: TestOptions.RegularPreview, 22752var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 22753parseOptions: TestOptions.Regular10, 22772var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 22773parseOptions: TestOptions.Regular10, 22810var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22811parseOptions: TestOptions.RegularPreview, 22814var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 22815parseOptions: TestOptions.RegularPreview, 22831var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 22832parseOptions: TestOptions.RegularPreview, 22866var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22867parseOptions: TestOptions.RegularPreview, 22870var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 22871parseOptions: TestOptions.RegularPreview, 22881var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 22882parseOptions: TestOptions.RegularPreview, 22921var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22922parseOptions: TestOptions.RegularPreview, 23016var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 23017parseOptions: TestOptions.RegularPreview, 23107var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 23108parseOptions: TestOptions.RegularPreview, 23195var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 23196parseOptions: TestOptions.RegularPreview, 23210foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 23212var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 23374var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 23375parseOptions: TestOptions.RegularPreview, 23415compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 23416parseOptions: TestOptions.Regular10, 23475var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 23476parseOptions: TestOptions.RegularPreview, 23492compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 23493parseOptions: TestOptions.Regular10, 23513var compilation2 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugDll, 23514parseOptions: TestOptions.RegularPreview, 23543var compilation3 = CreateCompilationWithIL(source3, ilSource, options: TestOptions.DebugDll, 23544parseOptions: TestOptions.RegularPreview, 23605var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 23606parseOptions: TestOptions.RegularPreview, 23634var compilation2 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugDll, 23635parseOptions: TestOptions.RegularPreview, 23695var compilation3 = CreateCompilationWithIL(source3, ilSource, options: TestOptions.DebugDll, 23696parseOptions: TestOptions.RegularPreview, 23775var compilation4 = CreateCompilationWithIL(source4, ilSource, options: TestOptions.DebugDll, 23776parseOptions: TestOptions.RegularPreview, 23805var compilation5 = CreateCompilationWithIL(source5, ilSource, options: TestOptions.DebugDll, 23806parseOptions: TestOptions.RegularPreview, 23865var compilation6 = CreateCompilationWithIL(source6, ilSource, options: TestOptions.DebugDll, 23866parseOptions: TestOptions.RegularPreview, 23895var compilation7 = CreateCompilationWithIL(source7, ilSource, options: TestOptions.DebugDll, 23896parseOptions: TestOptions.RegularPreview, 23957var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 23958parseOptions: TestOptions.RegularPreview, 23986var compilation2 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugDll, 23987parseOptions: TestOptions.RegularPreview, 24047var compilation3 = CreateCompilationWithIL(source3, ilSource, options: TestOptions.DebugDll, 24048parseOptions: TestOptions.RegularPreview, 24127var compilation4 = CreateCompilationWithIL(source4, ilSource, options: TestOptions.DebugDll, 24128parseOptions: TestOptions.RegularPreview, 24157var compilation5 = CreateCompilationWithIL(source5, ilSource, options: TestOptions.DebugDll, 24158parseOptions: TestOptions.RegularPreview, 24217var compilation6 = CreateCompilationWithIL(source6, ilSource, options: TestOptions.DebugDll, 24218parseOptions: TestOptions.RegularPreview, 24247var compilation7 = CreateCompilationWithIL(source7, ilSource, options: TestOptions.DebugDll, 24248parseOptions: TestOptions.RegularPreview, 24338var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 24339parseOptions: TestOptions.RegularPreview, 24386var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 24387parseOptions: TestOptions.RegularPreview, 24575var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 24576parseOptions: TestOptions.RegularPreview, 24756var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 24757parseOptions: TestOptions.RegularPreview, 24771foreach (var parseOptions in new[] { TestOptions.RegularPreview, TestOptions.Regular10 }) 24773var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 24871var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 24872parseOptions: TestOptions.RegularPreview, 24886var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 24887parseOptions: TestOptions.RegularPreview, 24996var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 24997parseOptions: TestOptions.RegularPreview, 25013foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 25015var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 25066var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25067parseOptions: TestOptions.RegularPreview, 25084foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 25086var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 25157var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25158parseOptions: TestOptions.RegularPreview, 25237var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25238parseOptions: TestOptions.RegularPreview, 25299var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25300parseOptions: TestOptions.RegularPreview, 25375var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25376parseOptions: TestOptions.RegularPreview, 25457var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25458parseOptions: TestOptions.RegularPreview, 25526var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25527parseOptions: TestOptions.RegularPreview, 25530var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 25531parseOptions: TestOptions.Regular10, 25553var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 25554parseOptions: TestOptions.Regular10, 25594var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25595parseOptions: TestOptions.RegularPreview, 25598var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 25599parseOptions: TestOptions.RegularPreview, 25615var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 25616parseOptions: TestOptions.RegularPreview, 25647var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25648parseOptions: TestOptions.RegularPreview, 25651var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 25652parseOptions: TestOptions.RegularPreview, 25662var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 25663parseOptions: TestOptions.RegularPreview, 25699var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25700parseOptions: TestOptions.RegularPreview, 25794var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25795parseOptions: TestOptions.RegularPreview, 25882var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25883parseOptions: TestOptions.RegularPreview, 25897foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 25899var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 26066var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 26067parseOptions: TestOptions.RegularPreview, 26107compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 26108parseOptions: TestOptions.Regular10, 26168var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 26169parseOptions: TestOptions.RegularPreview, 26185compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 26186parseOptions: TestOptions.Regular10, 26206var compilation2 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugDll, 26207parseOptions: TestOptions.RegularPreview, 26232var compilation3 = CreateCompilationWithIL(source3, ilSource, options: TestOptions.DebugDll, 26233parseOptions: TestOptions.RegularPreview, 26287var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 26288parseOptions: TestOptions.RegularPreview, 26316var compilation2 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugDll, 26317parseOptions: TestOptions.RegularPreview, 26345var compilation3 = CreateCompilationWithIL(source3, ilSource, options: TestOptions.DebugDll, 26346parseOptions: TestOptions.RegularPreview, 26418var compilation4 = CreateCompilationWithIL(source4, ilSource, options: TestOptions.DebugDll, 26419parseOptions: TestOptions.RegularPreview, 26444var compilation5 = CreateCompilationWithIL(source5, ilSource, options: TestOptions.DebugDll, 26445parseOptions: TestOptions.RegularPreview, 26471var compilation6 = CreateCompilationWithIL(source6, ilSource, options: TestOptions.DebugDll, 26472parseOptions: TestOptions.RegularPreview, 26501var compilation7 = CreateCompilationWithIL(source7, ilSource, options: TestOptions.DebugDll, 26502parseOptions: TestOptions.RegularPreview, 26561var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 26562parseOptions: TestOptions.RegularPreview, 26590var compilation2 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugDll, 26591parseOptions: TestOptions.RegularPreview, 26619var compilation3 = CreateCompilationWithIL(source3, ilSource, options: TestOptions.DebugDll, 26620parseOptions: TestOptions.RegularPreview, 26692var compilation4 = CreateCompilationWithIL(source4, ilSource, options: TestOptions.DebugDll, 26693parseOptions: TestOptions.RegularPreview, 26718var compilation5 = CreateCompilationWithIL(source5, ilSource, options: TestOptions.DebugDll, 26719parseOptions: TestOptions.RegularPreview, 26745var compilation6 = CreateCompilationWithIL(source6, ilSource, options: TestOptions.DebugDll, 26746parseOptions: TestOptions.RegularPreview, 26775var compilation7 = CreateCompilationWithIL(source7, ilSource, options: TestOptions.DebugDll, 26776parseOptions: TestOptions.RegularPreview, 26866var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 26867parseOptions: TestOptions.RegularPreview, 26914var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 26915parseOptions: TestOptions.RegularPreview, 27115var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 27116parseOptions: TestOptions.RegularPreview, 27421var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 27422parseOptions: TestOptions.RegularPreview, 27436foreach (var parseOptions in new[] { TestOptions.RegularPreview, TestOptions.Regular10 }) 27438var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 27536var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 27537parseOptions: TestOptions.RegularPreview, 27551var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 27552parseOptions: TestOptions.RegularPreview, 27662var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 27663parseOptions: TestOptions.RegularPreview, 27679foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 27681var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 27732var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 27733parseOptions: TestOptions.RegularPreview, 27750foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 27752var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 27891var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 27892parseOptions: TestOptions.RegularPreview, 28034var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28035parseOptions: TestOptions.RegularPreview, 28143var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28144parseOptions: TestOptions.RegularPreview, 28300var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28301parseOptions: TestOptions.RegularPreview, 28418var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28419parseOptions: TestOptions.RegularPreview, 28422var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 28423parseOptions: TestOptions.Regular10, 28456var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 28457parseOptions: TestOptions.Regular10, 28519var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28520parseOptions: TestOptions.RegularPreview, 28523var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 28524parseOptions: TestOptions.RegularPreview, 28534var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 28535parseOptions: TestOptions.RegularPreview, 28571var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28572parseOptions: TestOptions.RegularPreview, 28575var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 28576parseOptions: TestOptions.RegularPreview, 28586var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 28587parseOptions: TestOptions.RegularPreview, 28650var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28651parseOptions: TestOptions.RegularPreview, 28767var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28768parseOptions: TestOptions.RegularPreview, 28869var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28870parseOptions: TestOptions.RegularPreview, 28884foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 28886var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 29009var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 29010parseOptions: TestOptions.RegularPreview, 29042compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 29043parseOptions: TestOptions.Regular10, 29088var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 29089parseOptions: TestOptions.RegularPreview, 29102compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 29103parseOptions: TestOptions.Regular10, 29120var compilation2 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugDll, 29121parseOptions: TestOptions.RegularPreview, 29182var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 29183parseOptions: TestOptions.RegularPreview, 29247var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 29248parseOptions: TestOptions.RegularPreview, 29363var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 29364parseOptions: TestOptions.RegularPreview, 29494var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 29495parseOptions: TestOptions.RegularPreview, 29509foreach (var parseOptions in new[] { TestOptions.RegularPreview, TestOptions.Regular10 }) 29511var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 29609var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 29610parseOptions: TestOptions.RegularPreview, 29626foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 29628var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 29715var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 29716parseOptions: TestOptions.RegularPreview, 29732foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 29734var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 29854var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithAllowUnsafe(true), 29855parseOptions: TestOptions.RegularPreview, 29921var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 29922parseOptions: TestOptions.RegularPreview, 29986var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 29987parseOptions: TestOptions.RegularPreview, 30054var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30055parseOptions: TestOptions.RegularPreview, 30140var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30141parseOptions: TestOptions.RegularPreview, 30146compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 30147parseOptions: TestOptions.RegularPreview, 30212compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 30213parseOptions: TestOptions.RegularPreview, 30325var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30326parseOptions: TestOptions.RegularPreview, 30398compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 30399parseOptions: TestOptions.RegularPreview, 30516var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30517parseOptions: TestOptions.RegularPreview, 30520var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 30521parseOptions: TestOptions.RegularPreview, 30531var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 30532parseOptions: TestOptions.RegularPreview, 30574var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30575parseOptions: TestOptions.RegularPreview, 30578var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 30579parseOptions: TestOptions.RegularPreview, 30589var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 30590parseOptions: TestOptions.RegularPreview, 30631var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30632parseOptions: TestOptions.RegularPreview, 30635var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 30636parseOptions: TestOptions.Regular10, 30660var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 30661parseOptions: TestOptions.Regular10, 30717var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30718parseOptions: TestOptions.RegularPreview, 30721var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 30722parseOptions: TestOptions.Regular10, 30732var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 30733parseOptions: TestOptions.Regular10, 30783var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30784parseOptions: TestOptions.RegularPreview, 30869compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 30870parseOptions: TestOptions.RegularPreview, 30987var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30988parseOptions: TestOptions.RegularPreview, 31038var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31039parseOptions: TestOptions.RegularPreview, 31082var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31083parseOptions: TestOptions.RegularPreview, 31136var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31137parseOptions: TestOptions.RegularPreview, 31196var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31197parseOptions: TestOptions.RegularPreview, 31244var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31245parseOptions: TestOptions.RegularPreview, 31287var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31288parseOptions: TestOptions.RegularPreview, 31341var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31342parseOptions: TestOptions.RegularPreview, 31390var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31391parseOptions: TestOptions.RegularPreview, 31463var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 31464parseOptions: TestOptions.RegularPreview, 31521var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 31522parseOptions: TestOptions.RegularPreview, 31574var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 31575parseOptions: TestOptions.RegularPreview, 31615var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31616parseOptions: TestOptions.RegularPreview, 31699var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 31700parseOptions: TestOptions.RegularPreview, 31711var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31712parseOptions: TestOptions.RegularPreview, 31771var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 31772parseOptions: TestOptions.RegularPreview, 31784var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31785parseOptions: TestOptions.RegularPreview, 31834var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 31835parseOptions: TestOptions.RegularPreview, 31869var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 31870parseOptions: TestOptions.RegularPreview, 31903var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 31904parseOptions: TestOptions.RegularPreview, 32037var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 32038parseOptions: TestOptions.RegularPreview, 32085var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 32086parseOptions: TestOptions.RegularPreview, 32136var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 32137parseOptions: TestOptions.RegularPreview, 32180var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32181parseOptions: TestOptions.RegularPreview, 32214var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32215parseOptions: TestOptions.RegularPreview, 32268var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32269parseOptions: TestOptions.RegularPreview, 32309var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32310parseOptions: TestOptions.RegularPreview, 32344var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32345parseOptions: TestOptions.RegularPreview, 32385var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32386parseOptions: TestOptions.RegularPreview, 32427var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32428parseOptions: TestOptions.RegularPreview, 32473var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32474parseOptions: TestOptions.RegularPreview, 32515var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32516parseOptions: TestOptions.RegularPreview, 32551var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32552parseOptions: TestOptions.RegularPreview, 32593var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32594parseOptions: TestOptions.RegularPreview, 32615var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32616parseOptions: TestOptions.RegularPreview, 32655var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32656parseOptions: TestOptions.RegularPreview, 32693var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32694parseOptions: TestOptions.RegularPreview, 32725var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32726parseOptions: TestOptions.RegularPreview, 32763var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32764parseOptions: TestOptions.RegularPreview, 32795var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32796parseOptions: TestOptions.RegularPreview, 32833var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32834parseOptions: TestOptions.RegularPreview, 32865var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32866parseOptions: TestOptions.RegularPreview, 32903var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32904parseOptions: TestOptions.RegularPreview, 32935var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32936parseOptions: TestOptions.RegularPreview, 32973var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32974parseOptions: TestOptions.RegularPreview, 33005var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33006parseOptions: TestOptions.RegularPreview, 33043var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33044parseOptions: TestOptions.RegularPreview, 33065var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33066parseOptions: TestOptions.RegularPreview, 33096var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 33097parseOptions: TestOptions.RegularPreview, 33132var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33133parseOptions: TestOptions.RegularPreview, 33163var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 33164parseOptions: TestOptions.RegularPreview, 33199var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33200parseOptions: TestOptions.RegularPreview, 33230var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 33231parseOptions: TestOptions.RegularPreview, 33266var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33267parseOptions: TestOptions.RegularPreview, 33297var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 33298parseOptions: 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( 33474options: TestOptions.DebugExe, 33475parseOptions: TestOptions.RegularPreview, 33496""", options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview, targetFramework: _supportingFramework).VerifyDiagnostics( 33520options: TestOptions.DebugExe, 33521parseOptions: TestOptions.RegularPreview, 33542""", options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview, targetFramework: _supportingFramework).VerifyDiagnostics( 33655var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugDll, 33660var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { compilation1.ToMetadataReference() }, 33665var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { compilation1.EmitToImageReference() }, 33712var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugDll, 33717var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { compilation1.ToMetadataReference() }, 33722var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { compilation1.EmitToImageReference() },
Symbols\SymbolDistinguisherTests.cs (2)
233var libRef = CreateCompilation(tree, assemblyName: "Metadata", options: TestOptions.UnsafeReleaseDll).EmitToImageReference(); 234var comp = CreateCompilation(tree, new[] { libRef }, assemblyName: "Source", options: TestOptions.UnsafeReleaseDll);
Symbols\SymbolErrorTests.cs (164)
100var module1 = CreateCompilation(text1, options: TestOptions.ReleaseModule, assemblyName: name1); 103options: TestOptions.ReleaseModule, 108options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(new Dictionary<string, ReportDiagnostic>() { { MessageProvider.Instance.GetIdForErrorCode((int)ErrorCode.WRN_UnreferencedField), ReportDiagnostic.Suppress } }), 839CreateCompilation(text, parseOptions: TestOptions.Regular, 848CreateCompilation(text, parseOptions: TestOptions.Regular7, 876CreateCompilation(text, parseOptions: TestOptions.Regular7, 898CreateCompilation(text, parseOptions: TestOptions.Regular7, 1118CreateCompilationWithMscorlib46(text, parseOptions: TestOptions.Regular).VerifyDiagnostics( 1169CreateCompilationWithMscorlib46(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics( 1716CreateCompilation(text, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 1763CreateCompilation(text, parseOptions: TestOptions.Regular7, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics( 2086CreateCompilation(text, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 2152CreateCompilation(text, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 2846CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2876CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2893CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 2915CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 3158var c = CreateCompilation(text, options: TestOptions.ReleaseDll.WithAllowUnsafe(false)); 3238CreateCompilation(text, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 4204", parseOptions: TestOptions.Regular7) 4228", parseOptions: TestOptions.Regular7) 4408CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4443CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 4517CreateCompilationWithMscorlib46(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12) 4520CreateCompilationWithMscorlib46(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11) 4547CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4567CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 5653var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 5714var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 5774var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 5835var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 5895var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 5918}, options: TestOptions.ReleaseExe); 5930}, options: TestOptions.ReleaseExe); 5952var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 5975}, options: TestOptions.ReleaseExe); 5988}, options: TestOptions.ReleaseExe); 6011var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6034}, options: TestOptions.ReleaseExe); 6047}, options: TestOptions.ReleaseExe); 6070var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6093}, options: TestOptions.ReleaseExe); 6106}, options: TestOptions.ReleaseExe); 6267var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6327var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6389var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6449var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6511var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6574var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6637var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6708var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6771var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6840var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6911var mod3Ref = CreateCompilation(mod3Source, options: TestOptions.ReleaseModule, assemblyName: "ErrTestMod03").EmitToImageReference(); 6996var mod3Ref = CreateCompilation(mod3Source, options: TestOptions.ReleaseModule, assemblyName: "ErrTestMod03").EmitToImageReference(); 7067var ModuleA01Ref = CreateCompilation(ModuleA01, options: TestOptions.ReleaseModule, assemblyName: "ModuleA01").EmitToImageReference(); 7075var ModuleB01Ref = CreateCompilation(ModuleB01, options: TestOptions.ReleaseModule, assemblyName: "ModuleB01").EmitToImageReference(); 7092}, TestOptions.ReleaseExe); 7146}, TestOptions.ReleaseDll); 7229var moduleRef2 = CreateCompilation(mod2Source, options: TestOptions.ReleaseModule, assemblyName: "mod_1_2").EmitToImageReference(); 7236}, TestOptions.ReleaseDll); 7265var forwardedTypes1 = CreateCompilation(forwardedTypesSource, options: TestOptions.ReleaseDll, assemblyName: "ForwardedTypes1"); 7268var forwardedTypes2 = CreateCompilation(forwardedTypesSource, options: TestOptions.ReleaseDll, assemblyName: "ForwardedTypes2"); 7272options: TestOptions.ReleaseModule, 7283options: TestOptions.ReleaseModule, 7289options: TestOptions.ReleaseModule, 7295options: TestOptions.ReleaseModule, 7301options: 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); 8132CreateCompilation(text, parseOptions: TestOptions.Regular13).VerifyDiagnostics( 9147var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7); 9180var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7, targetFramework: TargetFramework.NetCoreApp); 9347CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9362CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 9799CreateCompilation(text, parseOptions: TestOptions.Regular7, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics( 10764var comp = CreateCompilation(text, parseOptions: TestOptions.RegularPreview); 10774comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 10790comp = CreateCompilation(text, parseOptions: TestOptions.Regular11); 10811var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7); 10891var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 10944var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5)); 11300CreateCompilation(text, options: TestOptions.ReleaseDll).VerifyDiagnostics( 11975CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics( 12820CreateCompilation(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 12836CreateCompilation(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 12978CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods).VerifyDiagnostics( 13378var regularComp = CreateCompilation(text, options: TestOptions.ReleaseDll.WithWarningLevel(4)); 13804comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(4)); 14015CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods).VerifyDiagnostics( 14091CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods).VerifyDiagnostics( 14465CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 14824", options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 14893}", parseOptions: TestOptions.Regular7) 15455var comp = CreateCompilation(text, options: TestOptions.ReleaseDll); 15468var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 15482var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 15498CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15513CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15528CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15540CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15555CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15582CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15600CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15615CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15629CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15646CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15680CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15705CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15726CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 15917CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 16736CreateCompilationWithMscorlib40AndSystemCore(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 16759CreateCompilationWithMscorlib40AndSystemCore(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 16770CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 16853CreateCompilationWithMscorlib461(new[] { Parse(text, options: TestOptions.Script) }).VerifyDiagnostics(expectedDiagnostics); 18451var comp = CreateCompilation(source, options: TestOptions.DebugDll); 18479var comp = CreateCompilation(source, options: TestOptions.DebugDll); 18504var comp = CreateCompilation(source, options: TestOptions.DebugDll); 18529var comp = CreateCompilation(source, options: TestOptions.DebugDll); 18555var comp = CreateCompilation(source, options: TestOptions.DebugDll); 18575var comp = CreateCompilation(source, options: TestOptions.DebugDll); 18601var comp = CreateCompilation(source, options: TestOptions.DebugDll); 18624var comp = CreateCompilation(source, options: TestOptions.DebugDll); 19084var 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); 20400var comp3 = CreateCompilation(source3, new[] { new CSharpCompilationReference(comp2) }, options: TestOptions.ReleaseDll); 20404var comp4 = CreateCompilation(source3, new[] { comp2.EmitToImageReference() }, options: TestOptions.ReleaseDll); 20458var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe); 20480var submission = CSharpCompilation.CreateScriptCompilation("s0.dll", SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.Script), new[] { MscorlibRef_v4_0_30316_17626, SystemCoreRef }); 20905options: TestOptions.DebugDll, 20970options: TestOptions.DebugDll, 21333var comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 21336comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.WithWarningLevel(6)); 21339comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.WithWarningLevel(7)); 21394var comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 21397comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.WithWarningLevel(6)); 21400comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.WithWarningLevel(7)); 21439var comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 21442comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.WithWarningLevel(6)); 21461comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.WithWarningLevel(7)); 21484var comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.WithWarningLevel(7)); 21502comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.WithWarningLevel(7)); 21529comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.WithWarningLevel(7));
Symbols\SymbolExtensionTests.cs (5)
99var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 117var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 135var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 154var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 248var compilation = CreateCompilationWithIL(source, ilSource, options: TestOptions.ReleaseExe);
Symbols\TypeTests.cs (5)
807TestOptions.ReleaseDll.WithCryptoPublicKey(TestResources.TestKeys.PublicKey_b03f5f7f11d50a3a), 816new[] { Parse(mainSrc, options: TestOptions.Script) }, 818TestOptions.ReleaseDll.WithUsings("System.Console")); 829new[] { Parse(mainSrc, options: TestOptions.Script) }, 831TestOptions.ReleaseDll.WithUsings("System.Console").WithTopLevelBinderFlags(BinderFlags.IgnoreCorLibraryDuplicatedTypes));
Symbols\UnsignedRightShiftTests.cs (178)
109var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 110parseOptions: TestOptions.RegularPreview); 389var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 390parseOptions: TestOptions.RegularPreview); 393compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 394parseOptions: TestOptions.Regular10); 397compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 398parseOptions: TestOptions.Regular11); 493var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 494parseOptions: TestOptions.RegularPreview); 521var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 522parseOptions: TestOptions.RegularPreview); 617var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 618parseOptions: TestOptions.RegularPreview); 892var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 893parseOptions: TestOptions.RegularPreview); 896compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 897parseOptions: TestOptions.Regular10); 900compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 901parseOptions: TestOptions.Regular11); 922var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 923parseOptions: TestOptions.RegularPreview); 948var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 949parseOptions: TestOptions.RegularPreview); 970var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 971parseOptions: TestOptions.RegularPreview); 1007var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1008parseOptions: TestOptions.RegularPreview); 1011compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1012parseOptions: TestOptions.Regular10); 1015compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1016parseOptions: TestOptions.Regular11); 1048var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1049parseOptions: TestOptions.RegularPreview); 1052compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1053parseOptions: TestOptions.Regular10); 1056compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1057parseOptions: TestOptions.Regular11); 1160var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1161parseOptions: TestOptions.RegularPreview); 1445var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1446parseOptions: TestOptions.RegularPreview); 1449compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1450parseOptions: TestOptions.Regular10); 1453compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1454parseOptions: TestOptions.Regular11); 1572var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1573parseOptions: TestOptions.RegularPreview); 1853var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1854parseOptions: TestOptions.RegularPreview); 1857compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1858parseOptions: TestOptions.Regular10); 1861compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1862parseOptions: TestOptions.Regular11); 1883var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1884parseOptions: TestOptions.RegularPreview); 1909var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1910parseOptions: TestOptions.RegularPreview); 1931var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1932parseOptions: TestOptions.RegularPreview); 1973var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 1974parseOptions: TestOptions.RegularPreview); 1990var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 1991parseOptions: TestOptions.RegularPreview); 1993var compilation2 = CreateCompilation(source1, options: TestOptions.DebugExe, references: new[] { compilation0.ToMetadataReference() }, 1994parseOptions: TestOptions.RegularPreview); 1999var compilation3 = CreateCompilation(source1, options: TestOptions.DebugExe, references: new[] { compilation0.EmitToImageReference() }, 2000parseOptions: TestOptions.RegularPreview); 2062var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, 2063parseOptions: TestOptions.RegularPreview); 2129var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2130parseOptions: TestOptions.RegularPreview); 2179var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2180parseOptions: TestOptions.RegularPreview); 2225var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 2226parseOptions: TestOptions.RegularPreview); 2242var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 2243parseOptions: TestOptions.RegularPreview); 2245var compilation2 = CreateCompilation(source1, options: TestOptions.DebugExe, references: new[] { compilation0.ToMetadataReference() }, 2246parseOptions: TestOptions.RegularPreview); 2251var compilation3 = CreateCompilation(source1, options: TestOptions.DebugExe, references: new[] { compilation0.EmitToImageReference() }, 2252parseOptions: TestOptions.RegularPreview); 2278var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 2280var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, references: new[] { compilation0.ToMetadataReference() }, 2281parseOptions: TestOptions.RegularPreview); 2288var compilation3 = CreateCompilation(source1, options: TestOptions.DebugDll, references: new[] { compilation0.EmitToImageReference() }, 2289parseOptions: TestOptions.RegularPreview); 2318var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2319parseOptions: TestOptions.RegularPreview); 2367var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 2368parseOptions: TestOptions.RegularPreview); 2404var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2405parseOptions: TestOptions.RegularPreview); 2443var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2444parseOptions: TestOptions.RegularPreview); 2495var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 2496parseOptions: TestOptions.RegularPreview); 2538var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2539parseOptions: TestOptions.RegularPreview); 2593var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 2594parseOptions: TestOptions.RegularPreview); 2635var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2636parseOptions: TestOptions.RegularPreview); 2674var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2675parseOptions: TestOptions.RegularPreview); 2702var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2710compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 2728compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 2758var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2787var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2811var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2851var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2874var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2882compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 2900compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 2930var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2959var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2983var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3023var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3112var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 3113parseOptions: TestOptions.Regular10); 3120var compilation2 = CreateCompilation(source1, options: TestOptions.DebugExe, 3121parseOptions: TestOptions.Regular11); 3206var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 3207parseOptions: TestOptions.Regular10); 3214var compilation2 = CreateCompilation(source1, options: TestOptions.DebugExe, 3215parseOptions: TestOptions.Regular11); 3300var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 3301parseOptions: TestOptions.Regular10); 3308var compilation2 = CreateCompilation(source1, options: TestOptions.DebugExe, 3309parseOptions: TestOptions.Regular11); 3394var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 3395parseOptions: TestOptions.Regular10); 3402var compilation2 = CreateCompilation(source1, options: TestOptions.DebugExe, 3403parseOptions: TestOptions.Regular11); 3428var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugDll, 3429parseOptions: TestOptions.Regular10); 3436compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugDll, 3437parseOptions: TestOptions.Regular11); 3440var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 3441parseOptions: TestOptions.RegularPreview); 3445var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, references: new[] { reference }, 3446parseOptions: TestOptions.Regular10); 3453compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, references: new[] { reference }, 3454parseOptions: TestOptions.Regular11); 3480var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugDll, 3481parseOptions: TestOptions.Regular10); 3488compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugDll, 3489parseOptions: TestOptions.Regular11); 3492var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 3493parseOptions: TestOptions.RegularPreview); 3497var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, references: new[] { reference }, 3498parseOptions: TestOptions.Regular10); 3505compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, references: new[] { reference }, 3506parseOptions: TestOptions.Regular11); 3532var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugDll, 3533parseOptions: TestOptions.Regular10); 3540compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugDll, 3541parseOptions: TestOptions.Regular11); 3544var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 3545parseOptions: TestOptions.RegularPreview); 3549var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, references: new[] { reference }, 3550parseOptions: TestOptions.Regular10); 3557compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, references: new[] { reference }, 3558parseOptions: TestOptions.Regular11); 3584var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugDll, 3585parseOptions: TestOptions.Regular10); 3592compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugDll, 3593parseOptions: TestOptions.Regular11); 3596var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 3597parseOptions: TestOptions.RegularPreview); 3601var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, references: new[] { reference }, 3602parseOptions: TestOptions.Regular10); 3609compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, references: new[] { reference }, 3610parseOptions: TestOptions.Regular11); 3629var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3630parseOptions: TestOptions.RegularPreview); 3690CompileAndVerify(source, expectedOutput: @"150150", parseOptions: TestOptions.Regular11);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2167)
Diagnostics\DiagnosticTest.cs (46)
564CreateCompilation(text, options: TestOptions.ReleaseExe).VerifyDiagnostics( 571CSharpCompilationOptions option = TestOptions.ReleaseExe.WithSpecificDiagnosticOptions(warnings); 574option = TestOptions.ReleaseExe.WithGeneralDiagnosticOption(ReportDiagnostic.Error); 581option = TestOptions.ReleaseExe.WithGeneralDiagnosticOption(ReportDiagnostic.Default).WithSpecificDiagnosticOptions(warnings); 604CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 667CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 715CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 771CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 827CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 885CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 943CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 999CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 1066CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 1140CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 1211CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 1264CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 1318CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 1371CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 1419CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 1466CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 1536CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 1583CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 1642CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 1692CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 1735CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 1762CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 1808CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 1875CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 1917CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 1978CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 2014CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 2050CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 2097CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 2140CreateCompilation(text1, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(expected1); 2143var options = TestOptions.DebugDll.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress); 2145CreateCompilation(text1, parseOptions: TestOptions.Regular7_3, options: options).VerifyDiagnostics(); 2152CreateCompilation(text2, parseOptions: TestOptions.Regular7_3, options: options).VerifyDiagnostics(expected1); 2159CreateCompilation(text3, parseOptions: TestOptions.Regular7_3, options: options).VerifyDiagnostics(expected1); 2173CreateCompilation(text4, parseOptions: TestOptions.Regular7_3, options: options).VerifyDiagnostics(expected2); 2180CreateCompilation(text5, parseOptions: TestOptions.Regular7_3, options: options).VerifyDiagnostics(expected2); 2201CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 2226CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 2309CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 2331CSharpCompilationOptions commonoption = TestOptions.ReleaseExe; 2526CSharpCompilationOptions options = TestOptions.ReleaseExe; 2874var ca = CreateCompilation(source, options: TestOptions.ReleaseDll.WithStrongNameProvider(new DesktopStrongNameProvider()).WithCryptoKeyContainer("bogus"));
Diagnostics\LineSpanDirectiveTests.cs (1)
634var verifier = CompileAndVerify(source, options: TestOptions.DebugDll);
IncrementalParsing\BinaryExpression.cs (4)
176MakeChange(oldStyle, newStyle, options: TestOptions.Script); 177MakeChange(oldStyle, newStyle, topLevel: true, options: TestOptions.Script); 183MakeChange(oldStyle, newStyle, options: TestOptions.Script); 184MakeChange(oldStyle, newStyle, topLevel: true, options: TestOptions.Script);
IncrementalParsing\ChangingAsync.cs (2)
61ParseAndValidate(text, validator, TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5)); 62ParseAndValidate(text, validator, TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp5));
IncrementalParsing\ChangingIdentifiers.cs (2)
244MakeIncrementalNameChanges(oldStyle, newStyle, expressionValidator, options: TestOptions.Script); 245MakeIncrementalNameChanges(oldStyle, newStyle, expressionValidator, topLevel: true, options: TestOptions.Script);
IncrementalParsing\CompoundAssignment.cs (2)
89MakeAssignmentChanges(oldStyle, newStyle, options: TestOptions.Script); 90MakeAssignmentChanges(oldStyle, newStyle, topLevel: true, options: TestOptions.Script);
IncrementalParsing\IncrementalParsingTests.cs (8)
436var oldTree = SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.Script); 460var oldTree = SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.Script); 2782var startTree = SyntaxFactory.ParseSyntaxTree(oldText, options: TestOptions.Script); 2795var parsedTree = SyntaxFactory.ParseSyntaxTree(newText, options: TestOptions.Script); 2811var startTree = SyntaxFactory.ParseSyntaxTree(oldText, options: TestOptions.Script); 2826var parsedTree = SyntaxFactory.ParseSyntaxTree(newText, options: TestOptions.Script); 2841var startTree = SyntaxFactory.ParseSyntaxTree(oldText, options: TestOptions.Script); 2853var parsedTree = SyntaxFactory.ParseSyntaxTree(newText, options: TestOptions.Script);
IncrementalParsing\TypeChanges.cs (1)
150ParseAndValidate(text, validator, TestOptions.Script);
IncrementalParsing\UnaryExpression.cs (2)
65MakeUnaryChanges(oldStyle, newStyle, options: TestOptions.Script); 66MakeUnaryChanges(oldStyle, newStyle, topLevel: true, options: TestOptions.Script);
LexicalAndXml\CrefLexerTests.cs (1)
444using (var lexer = new InternalSyntax.Lexer(SourceText.From(text + "'"), TestOptions.RegularWithDocumentationComments))
LexicalAndXml\DisabledRegionTests.cs (1)
119ParserErrorMessageTests.ParseAndValidate(source, TestOptions.Script,
LexicalAndXml\LexicalErrorTests.cs (85)
268ParserErrorMessageTests.ParseAndValidate(test, TestOptions.Regular12, 287ParserErrorMessageTests.ParseAndValidate(test, TestOptions.Regular12, 306ParserErrorMessageTests.ParseAndValidate(test, TestOptions.Regular12, 325ParserErrorMessageTests.ParseAndValidate(test, TestOptions.Regular13); 341ParserErrorMessageTests.ParseAndValidate(test, TestOptions.Regular13); 357ParserErrorMessageTests.ParseAndValidate(test, TestOptions.Regular13); 498ParserErrorMessageTests.ParseAndValidate(test, TestOptions.Script, Diagnostic(ErrorCode.ERR_PPReferenceFollowsToken, "r")); 975CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 976CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 994CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 998CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1016CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1020CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1039CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1043CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1061CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1065CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1084CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1088CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1108CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1112CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1131CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1135CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1154CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1158CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1177CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1181CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1201CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1205CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1243CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1262CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1316CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1335CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1370CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 1371CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1389CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1393CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1415CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1419CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1439CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 1440CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1458CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1462CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1483CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1487CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1508CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1512CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1530CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1534CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1557CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1561CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1584CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1588CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1608CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1612CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1633CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1637CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1658CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1662CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1683CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1687CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1710CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1714CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1737CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1741CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1762CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1766CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1790CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1794CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1818CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1822CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1844CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1848CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1869CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1873CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1897CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1901CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1925CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1929CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1951CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1955CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1974CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 1975CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1994CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1998CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics();
LexicalAndXml\LexicalTests.cs (4)
1152var token = LexToken(text, TestOptions.Regular12); 1171var token = LexToken(text, TestOptions.Regular13); 1333var token = LexToken(text, TestOptions.Regular12); 1350var token = LexToken(text, TestOptions.Regular13);
LexicalAndXml\NameAttributeValueLexerTests.cs (1)
408using (var lexer = new InternalSyntax.Lexer(SourceText.From(text + "'"), TestOptions.RegularWithDocumentationComments))
LexicalAndXml\PreprocessorTests.cs (22)
3687var node = Parse(text, options: TestOptions.Regular); 3703var node = Parse(text, options: TestOptions.Regular); 3735var node = Parse(text, options: TestOptions.Regular); 3751var node = Parse(text, options: TestOptions.Regular7_3); 3816var node = Parse(text, options: TestOptions.Regular); 3832var node = Parse(text, options: TestOptions.Regular); 3848var node = Parse(text, options: TestOptions.Regular); 4064var node = Parse(text, options: TestOptions.Regular); 4466var node = Parse(text, options: TestOptions.Regular7_3); 4477var node = Parse(text, options: TestOptions.Regular); 4488var node = Parse(text, options: TestOptions.Regular); 4499var node = Parse(text, options: TestOptions.Regular); 4510var node = Parse(text, options: TestOptions.Regular); 4521var node = Parse(text, options: TestOptions.Regular); 4532var node = Parse(text, options: TestOptions.Regular); 4543var node = Parse(text, options: TestOptions.Regular); 4579var node = Parse(text, options: TestOptions.Regular); 4590var node = Parse(text, options: TestOptions.Regular); 4601var node = Parse(text, options: TestOptions.Regular); 4612var node = Parse(text, options: TestOptions.Regular); 4629var node = Parse(text, options: TestOptions.Regular); 4648var node = Parse(text, options: TestOptions.Regular);
LexicalAndXml\SyntaxTokenParserTests.cs (16)
20var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 37var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 75var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 119var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 158var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 184var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 194var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 203var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 221var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 262var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 273var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 292var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 325var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 355var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 369var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular); 392var parser = SyntaxFactory.CreateTokenParser(sourceText, TestOptions.Regular);
Parsing\AnonymousFunctionParsingTests.cs (59)
113CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 213CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 311CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 412CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 513CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 627CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify(); 768CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 877CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 893CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 904UsingStatement(test, options: TestOptions.Regular8); 958CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 972UsingStatement(test, options: TestOptions.Regular8); 1024CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1035UsingStatement(test, options: TestOptions.Regular8); 1094CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1105UsingStatement(test, options: TestOptions.Regular8); 1166CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1177UsingStatement(test, options: TestOptions.Regular8); 1233UsingStatement(test, options: useCsharp9 ? TestOptions.Regular9 : TestOptions.Regular8, 1280UsingStatement(test, options: useCsharp9 ? TestOptions.Regular9 : TestOptions.Regular8, 1330CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1344UsingStatement(test, options: TestOptions.Regular8, 1407CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1421UsingStatement(test, options: TestOptions.Regular8, 1478UsingStatement(test, options: useCsharp9 ? TestOptions.Regular9 : TestOptions.Regular8, 1532UsingStatement(test, options: useCsharp9 ? TestOptions.Regular9 : TestOptions.Regular8, 1600CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1623UsingStatement(test, options: TestOptions.Regular8, 1704CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1727UsingStatement(test, options: TestOptions.Regular8, 1799CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1810UsingStatement(test, options: TestOptions.Regular8); 1889CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1916UsingStatement(test, options: TestOptions.Regular8, 2007CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 2045UsingStatement(test, options: TestOptions.Regular8, 2112CreateCompilation(test, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 2129UsingStatement(test, options: TestOptions.Regular8); 2201CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 2215UsingStatement(test, options: TestOptions.Regular8); 2578CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 2726CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 2875CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 2994CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify(); 3140CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 3254CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 3404CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 3557CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 3711CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 3839CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify(); 3994CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 4117CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 4276CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 4438CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify( 4601CreateCompilation(test, parseOptions: TestOptions.Regular8).GetDiagnostics().Verify(
Parsing\AsyncParsingTests.cs (5)
21return SyntaxFactory.ParseSyntaxTree(text, options: (options ?? TestOptions.Regular).WithLanguageVersion(LanguageVersion.CSharp5)); 26return SyntaxFactory.ParseExpression(text, options: (options ?? TestOptions.Regular).WithLanguageVersion(LanguageVersion.CSharp5)); 2383CreateCompilation(test, parseOptions: TestOptions.Regular5).VerifyDiagnostics( 2470CreateCompilation(text, parseOptions: TestOptions.Regular5).VerifyDiagnostics( 2586CreateCompilation(test, parseOptions: TestOptions.Regular5).VerifyDiagnostics(
Parsing\AsyncStreamsParsingTests.cs (8)
22return SyntaxFactory.ParseSyntaxTree(text, options: (options ?? TestOptions.Regular).WithLanguageVersion(LanguageVersion.CSharp8)); 27return 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)
22UsingExpression("[A, B]", TestOptions.Regular.WithLanguageVersion(languageVersion)); 17098UsingExpression(text, TestOptions.Regular);
Parsing\CrefParsingTests.cs (26)
350foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 365foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 381foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 397foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 438UsingNode("operator unchecked +", TestOptions.RegularWithDocumentationComments, 506UsingNode("operator unchecked +(A)", TestOptions.RegularWithDocumentationComments, 582UsingNode("T.operator unchecked +", TestOptions.RegularWithDocumentationComments, 767UsingNode("operator unchecked }}(A{A{T}})", TestOptions.RegularWithDocumentationComments, 902UsingNode("implicit operator unchecked A", TestOptions.RegularWithDocumentationComments, 983UsingNode("explicit operator unchecked A(B)", TestOptions.RegularWithDocumentationComments, 1071UsingNode("T.implicit operator unchecked A", TestOptions.RegularWithDocumentationComments, 1175UsingNode("T.explicit operator unchecked A(B)", TestOptions.RegularWithDocumentationComments, 1469UsingNode("A(readonly ref B)", TestOptions.Regular.WithLanguageVersion(languageVersion).WithDocumentationMode(DocumentationMode.Diagnose), 1496UsingNode("A(readonly B)", TestOptions.Regular.WithLanguageVersion(languageVersion).WithDocumentationMode(DocumentationMode.Diagnose), 1523UsingNode("A(in readonly B)", TestOptions.Regular.WithLanguageVersion(languageVersion).WithDocumentationMode(DocumentationMode.Diagnose), 1558UsingNode("A(out readonly B)", TestOptions.Regular.WithLanguageVersion(languageVersion).WithDocumentationMode(DocumentationMode.Diagnose), 1593UsingNode("A(ref readonly readonly B)", TestOptions.Regular.WithLanguageVersion(languageVersion).WithDocumentationMode(DocumentationMode.Diagnose), 1632UsingNode("A(readonly ref B)", TestOptions.Regular.WithLanguageVersion(languageVersion).WithDocumentationMode(DocumentationMode.Diagnose),
Parsing\DeclarationParsingTests.cs (57)
25return SyntaxFactory.ParseSyntaxTree(text, options ?? TestOptions.Regular); 2051var file = this.ParseFile(text, TestOptions.Regular); 2568var file = this.ParseFile(text, TestOptions.Regular); 2643var file = this.ParseFile(text, parseOptions: TestOptions.Regular); 2786var file = this.ParseFile(text, TestOptions.Regular); 2833var file = this.ParseFile(text, TestOptions.Regular); 2883var file = this.ParseFile(text, TestOptions.Regular); 2924var file = this.ParseFile(text, TestOptions.Regular); 2969var file = this.ParseFile(text, TestOptions.Regular); 4216var file = this.ParseFile(text, TestOptions.Regular); 5062var file = this.ParseFile(text, TestOptions.Regular); 6551}", options: TestOptions.Regular.WithTuplesFeature()); 7114", TestOptions.Regular, 7162", TestOptions.Regular7_3); 7206", TestOptions.Regular7_3, 7252UsingStatement(@"void M(string name!!) { }", options: TestOptions.RegularPreview, 7287UsingStatement(@"void M(string name!) { }", options: TestOptions.RegularPreview, 7325/*comment1*/!/*comment2*/) { }", options: TestOptions.RegularPreview, 7362UsingStatement(@"void M(string name!! = null) { }", options: TestOptions.RegularPreview, 7399UsingStatement(@"void M(string name!!=null) { }", options: TestOptions.RegularPreview, 7436UsingStatement(@"void M(__arglist!) { }", options: TestOptions.RegularPreview, 7468UsingStatement(@"void M(__arglist!!) { }", options: TestOptions.RegularPreview, 7500UsingStatement(@"void M(__arglist!! = null) { }", options: TestOptions.RegularPreview, 7532UsingStatement(@"void M(__arglist!!= null) { }", options: TestOptions.RegularPreview, 7564UsingStatement(@"void M(__arglist[]!!= null) { }", options: TestOptions.RegularPreview, 7630UsingStatement(@"void M(__arglist[]) { }", options: TestOptions.RegularPreview, 7692UsingStatement(@"void M(__arglist = null) { }", options: TestOptions.RegularPreview, 7724UsingStatement(@"void M(string name !!=null) { }", options: TestOptions.RegularPreview, 7761UsingStatement(@"void M(string name!!=null) { }", options: TestOptions.RegularPreview, 7798UsingStatement(@"void M(string name!!= null) { }", options: TestOptions.RegularPreview, 7835UsingStatement(@"void M(string name!!=null) { }", options: TestOptions.RegularPreview, 7872UsingStatement(@"void M(string name! !=null) { }", options: TestOptions.RegularPreview, 7909UsingStatement(@"void M(string name !!=null) { }", options: TestOptions.RegularPreview, 7946UsingStatement(@"void M(string name! ! =null) { }", options: TestOptions.RegularPreview, 7983UsingStatement(@"void M(string name ! !=null) { }", options: TestOptions.RegularPreview, 8020UsingStatement(@"void M(string name!!= null) { }", options: TestOptions.RegularPreview, 8057UsingStatement(@"void M(string name!!= = null) { }", options: TestOptions.RegularPreview, 8098}", options: TestOptions.RegularPreview, 8149}", options: TestOptions.RegularPreview, 8199}", options: TestOptions.RegularPreview, 8269Del d = delegate(int k!!) { /* ... */ };", options: TestOptions.RegularPreview, 8359", TestOptions.Regular7_3, 8403text, TestOptions.Regular7_3, 8452", TestOptions.Regular7_3, 8529CreateCompilation(text, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 8568var tree = UsingNode(text, TestOptions.Regular7_3, 8646text, TestOptions.Regular7_3, 8693text, TestOptions.Regular7_3, 8741text, TestOptions.Regular7_3, 8787CreateCompilation(test, parseOptions: useCSharp8 ? TestOptions.Regular8 : TestOptions.Regular9).VerifyDiagnostics( 8807useCSharp8 ? TestOptions.Regular8 : TestOptions.Regular9); 8916CreateCompilation(test, parseOptions: useCSharp8 ? TestOptions.Regular8 : TestOptions.Regular9).VerifyDiagnostics( 8952useCSharp8 ? TestOptions.Regular8 : TestOptions.Regular9);
Parsing\DeclarationScopeParsingTests.cs (240)
24UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 71UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 142UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(langVersion), 244UsingDeclaration(source, TestOptions.Regular11); 276UsingDeclaration(source, TestOptions.Regular11, 314UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 431UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 498UsingDeclaration(source, TestOptions.Regular11, 547UsingDeclaration(source, TestOptions.Regular11, 598UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(langVersion), 683UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 746UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(langVersion), 800UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 840UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(langVersion), 895UsingExpression(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 937UsingExpression(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 1003UsingExpression(source, TestOptions.Regular.WithLanguageVersion(langVersion), 1037UsingExpression(source, TestOptions.Regular.WithLanguageVersion(langVersion), 1067UsingExpression(source, TestOptions.Regular.WithLanguageVersion(langVersion), 1097UsingExpression(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 1139UsingExpression(source, TestOptions.Regular11, 1164UsingExpression(source, TestOptions.Regular11, 1198UsingExpression(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 1266UsingExpression(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 1292UsingDeclaration(source, TestOptions.Regular11, 1352UsingDeclaration(source, TestOptions.Regular11); 1409UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 1543UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 1614UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 1730UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 1856UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 1921UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 1971UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 2016UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 2091UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 2148UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 2172UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 2198UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 2304UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 2410UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 2502UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 2550UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 2620UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 2685UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 2728UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 2773UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 2848UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 2903UsingTree(source, TestOptions.Regular11, 2955UsingTree(source, TestOptions.Regular11, 3024UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 3101UsingTree(source, TestOptions.RegularPreview, 3171UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 3259var parseOptions = TestOptions.Regular.WithLanguageVersion(langVersion); 3338UsingTree(source, TestOptions.Script); 3373UsingTree(source, TestOptions.Script, 3429UsingTree(source, TestOptions.Script, 3488UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 3555UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 3626UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 3702UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 3778UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 3850UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 3937UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 4017UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 4088UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 4157UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 4232UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 4305UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 4381UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 4455UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 4526UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 4601UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 4677UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 4752UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 4823UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 4894UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 4969UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 5045UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 5112UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 5183UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 5256UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 5329UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 5413UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 5482UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 5552UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 5631UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 5702UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 5781UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 5902UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 5954UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 6010UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 6088UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 6156UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 6213UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 6303UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 6386UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 6442UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 6513UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 6573UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 6645UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 6706UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 6797UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 6853UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 6913UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 6974UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 7034UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 7090UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 7146UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 7206UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 7267UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 7319UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 7375UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 7453UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 7521UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 7593UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 7663UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 7734UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 7806UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 7873UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 7941UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 7997UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 8050UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 8089UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 8157UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 8191UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 8254UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 8321UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 8358UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 8395UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 8436UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 8484UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 8529UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 8571UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 8620UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 8668UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 8709UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 8759UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 8804UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 8861UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 8907UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 8978UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9019UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9064UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9110UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9155UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9196UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9245UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9286UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9332UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9378UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9415UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9456UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 9497UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 9539UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9587UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 9661UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9695UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9733UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 9796UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 9835UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 9912UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 9982UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 10020UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 10076UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 10118UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 10181UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 10224UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 10294UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 10332UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 10374UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 10417UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 10459UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 10497UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 10535UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 10577UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 10620UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 10654UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 10692UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 10746UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 10804UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 10874UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 10962UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 11016UsingStatement(source, TestOptions.Regular.WithLanguageVersion(langVersion), 11117UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 11188UsingTree(source, TestOptions.Regular11, 11275UsingTree(source, TestOptions.Regular11, 11358UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 11390UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 11478UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 11515UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 11610UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 11685UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 11740UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 11799UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 11839UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 11896UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 11985UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 12026UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 12082UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 12126UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 12172UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 12214UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 12260UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 12319UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 12386UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 12433UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 12503UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 12566UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 12612UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 12664UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 12714UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 12770UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 12821UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 12878UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 12924UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 12974UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 13025UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 13075UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 13121UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 13175UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 13221UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 13271UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 13322UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 13364UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 13410UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 13469UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 13539UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 13591UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 13661UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 13735UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 13845UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 13962UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 14021UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 14085UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 14153UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 14227UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion)); 14275UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 14361UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 14417UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion), 14485UsingTree(source, TestOptions.Regular.WithLanguageVersion(langVersion),
Parsing\DeconstructionTests.cs (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()); 1580var tree = UsingTree(@" (int x, int y) = (1, 2); ", options: TestOptions.Script); 1656var tree = UsingTree(@" foreach ((int x, int y) in new[] { (1, 2) }) { }; ", options: TestOptions.Script); 1878var statement = SyntaxFactory.ParseStatement(text, offset: 0, options: TestOptions.Regular.WithTuplesFeature()); 1891var statement = SyntaxFactory.ParseStatement(text, offset: 0, options: TestOptions.Regular.WithTuplesFeature()); 1903var statement = SyntaxFactory.ParseStatement(text, offset: 0, options: TestOptions.Regular.WithTuplesFeature()); 1915var statement = SyntaxFactory.ParseStatement(text, offset: 0, options: TestOptions.Regular.WithTuplesFeature()); 1927var statement = SyntaxFactory.ParseStatement(text, offset: 0, options: TestOptions.Regular.WithTuplesFeature()); 1944var statement = SyntaxFactory.ParseStatement(text, offset: 0, options: TestOptions.Regular.WithTuplesFeature()); 1961var statement = SyntaxFactory.ParseStatement(text, offset: 0, options: TestOptions.Regular.WithTuplesFeature()); 1975var statement = SyntaxFactory.ParseStatement(text, offset: 0, options: TestOptions.Regular.WithTuplesFeature()); 1989var statement = SyntaxFactory.ParseStatement(text, offset: 0, options: TestOptions.Regular.WithTuplesFeature()); 2005var statement = SyntaxFactory.ParseStatement(text, offset: 0, options: TestOptions.Regular.WithTuplesFeature()); 2016var statement = SyntaxFactory.ParseStatement(text, offset: 0, options: TestOptions.Regular.WithTuplesFeature()); 2027var statement = SyntaxFactory.ParseStatement(text, offset: 0, options: TestOptions.Regular.WithTuplesFeature()); 2036var statement = SyntaxFactory.ParseStatement(text, offset: 0, options: TestOptions.Regular.WithTuplesFeature()); 2046var statement = SyntaxFactory.ParseStatement(text, offset: 0, options: TestOptions.Regular.WithTuplesFeature()); 2104CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(); 2130CreateCompilation(source, parseOptions: TestOptions.Regular9).VerifyDiagnostics(
Parsing\ExpressionParsingTests.cs (36)
216UsingExpression(text, TestOptions.Regular7_3); 243UsingExpression(text, TestOptions.Regular8); 272UsingExpression(text, TestOptions.Regular7_3); 318UsingExpression(text, TestOptions.Regular8); 359UsingExpression(text, TestOptions.RegularPreview); 617TestPostfixUnary(SyntaxKind.ExclamationToken, TestOptions.Regular8); 700TestAssignment(SyntaxKind.QuestionQuestionEqualsToken, options: TestOptions.Regular8); 742CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular5).VerifyDiagnostics( 2252var expr = this.ParseExpression(text, options: TestOptions.Regular); 2272var expr = this.ParseExpression(text, options: TestOptions.Regular); 4761var expr = this.ParseExpression(text, TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 5240CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 5251UsingExpression(test, TestOptions.Regular7_3); 6511var tree = ParseTree(text, TestOptions.Regular); 6548var tree = ParseTree(text, TestOptions.Regular); 6608foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 6631foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 6666foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 6701foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 6724foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 6759foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 6794foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 })
Parsing\FieldKeywordParsingTests.cs (40)
63TestOptions.Regular.WithLanguageVersion(languageVersion)); 123TestOptions.Regular.WithLanguageVersion(languageVersion)); 165TestOptions.Regular.WithLanguageVersion(languageVersion)); 216TestOptions.Regular.WithLanguageVersion(languageVersion)); 273TestOptions.Regular.WithLanguageVersion(languageVersion)); 335TestOptions.Regular.WithLanguageVersion(languageVersion)); 392TestOptions.Regular.WithLanguageVersion(languageVersion)); 458TestOptions.Regular.WithLanguageVersion(languageVersion)); 530TestOptions.Regular.WithLanguageVersion(languageVersion)); 609TestOptions.Regular.WithLanguageVersion(languageVersion)); 677TestOptions.Regular.WithLanguageVersion(languageVersion)); 757TestOptions.Regular.WithLanguageVersion(languageVersion)); 853TestOptions.Regular.WithLanguageVersion(languageVersion)); 903TestOptions.Regular.WithLanguageVersion(languageVersion)); 960TestOptions.Regular.WithLanguageVersion(languageVersion)); 1006TestOptions.Regular.WithLanguageVersion(languageVersion)); 1052TestOptions.Regular.WithLanguageVersion(languageVersion)); 1098TestOptions.Regular.WithLanguageVersion(languageVersion)); 1148TestOptions.Regular.WithLanguageVersion(languageVersion)); 1202TestOptions.Regular.WithLanguageVersion(languageVersion)); 1249TestOptions.Regular.WithLanguageVersion(languageVersion)); 1318TestOptions.Regular.WithLanguageVersion(languageVersion)); 1369TestOptions.Regular.WithLanguageVersion(languageVersion)); 1423TestOptions.Regular.WithLanguageVersion(languageVersion)); 1484TestOptions.Regular.WithLanguageVersion(languageVersion)); 1562TestOptions.Regular.WithLanguageVersion(languageVersion)); 1626TestOptions.Regular.WithLanguageVersion(languageVersion)); 1702TestOptions.Regular.WithLanguageVersion(languageVersion)); 1753TestOptions.Regular.WithLanguageVersion(languageVersion)); 1843TestOptions.Regular.WithLanguageVersion(languageVersion)); 1920TestOptions.Regular.WithLanguageVersion(languageVersion)); 1971TestOptions.Regular.WithLanguageVersion(languageVersion)); 2030TestOptions.Regular.WithLanguageVersion(languageVersion)); 2089TestOptions.Regular.WithLanguageVersion(languageVersion)); 2153TestOptions.Regular.WithLanguageVersion(languageVersion)); 2226TestOptions.Regular.WithLanguageVersion(languageVersion)); 2279TestOptions.Regular.WithLanguageVersion(languageVersion)); 2334TestOptions.Regular.WithLanguageVersion(languageVersion)); 2399TestOptions.RegularPreview); 2410TestOptions.RegularPreview);
Parsing\FileModifierParsingTests.cs (21)
20return SyntaxFactory.ParseSyntaxTree(text, options ?? TestOptions.Regular); 30options ??= TestOptions.RegularPreview; 266options: TestOptions.Regular10, 565options: TestOptions.Regular10, 1268options: TestOptions.Regular10, 1354options: TestOptions.Regular10, 1495options: TestOptions.Regular10, 1525options: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1557options: TestOptions.Regular10, 2027options: TestOptions.Regular10, 2134options: TestOptions.Regular10, 2203options: TestOptions.Regular10, 2334options: TestOptions.Regular10, 2521options: TestOptions.Regular8, 2613options: TestOptions.Regular8, 2712options: TestOptions.Regular8, 2806options: TestOptions.Regular8, 2905options: TestOptions.Regular8, expectedBindingDiagnostics: new[] 3144options: TestOptions.Regular.WithLanguageVersion(languageVersion), 3188options: TestOptions.Regular.WithLanguageVersion(languageVersion), 3229options: TestOptions.Regular.WithLanguageVersion(languageVersion),
Parsing\FunctionPointerTests.cs (69)
20UsingStatement("delegate*<string, Goo, int> ptr;", options: TestOptions.Regular9); 76UsingStatement($"delegate* unmanaged[{conventionString}]<string, Goo, int> ptr;", options: TestOptions.Regular9); 140UsingStatement("delegate* unmanaged[void]<void> ptr;", options: TestOptions.RegularPreview, 198UsingStatement($"delegate* {convention}<void> ptr;", options: TestOptions.RegularPreview); 237UsingStatement("delegate* managed[Cdecl]<void> ptr;", options: TestOptions.RegularPreview, 289UsingStatement("delegate* invalid[Cdecl]<void> ptr;", options: TestOptions.RegularPreview, 341UsingStatement("delegate* invalid<void> ptr;", options: TestOptions.RegularPreview, 383UsingStatement("delegate* unmanaged[]<void> ptr;", options: TestOptions.RegularPreview, 435UsingStatement("delegate* unmanaged[Cdecl, Thiscall, Stdcall, Fastcall, Vectorcall, SuppressGCTransition]<void> ptr;", options: TestOptions.RegularPreview); 510CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 533UsingStatement(text, options: TestOptions.Regular8); 598UsingStatement("delegate*<void, void, void> ptr;", options: TestOptions.Regular9); 649UsingStatement("delegate*<delegate* unmanaged[cdecl]<int*, void*>, delegate* managed<string*>> ptr;", options: TestOptions.Regular9); 755UsingStatement("delegate*<Goo, void>* ptr;", options: TestOptions.Regular9); 802UsingStatement("delegate*<ref Goo, in Bar, out Baz, ref readonly void*> ptr;", options: TestOptions.Regular9); 870UsingStatement("delegate*< ;", options: TestOptions.Regular9, 914UsingStatement("delegate*<ref ;", options: TestOptions.Regular9, 959UsingStatement("delegate*<ref bar ;", options: TestOptions.Regular9, 1001UsingStatement("delegate*<ref bar, ;", options: TestOptions.Regular9, 1054UsingStatement("delegate* unmanaged[ptr];", options: TestOptions.Regular9, 1108UsingStatement("delegate* unmanaged[cdecl] ;", options: TestOptions.Regular9, 1162UsingStatement("delegate* unmanaged[cdecl] ptr;", options: TestOptions.Regular9, 1213UsingStatement("delegate* ;", options: TestOptions.Regular9, 1254UsingStatement("delegate* unmanaged.Name[Dotted]<void> ptr;", options: TestOptions.Regular9, 1333UsingStatement("delegate*( ;", options: TestOptions.Regular9, 1380UsingStatement("delegate* @cdecl>", options: TestOptions.Regular9, 1424UsingStatement("delegate* unmanaged[ ;", options: TestOptions.RegularPreview, 1485UsingStatement("delegate* unmanaged[Cdecl ;", options: TestOptions.RegularPreview, 1543UsingStatement("delegate* unmanaged[Cdecl,", options: TestOptions.RegularPreview, 1612UsingStatement("delegate*<> ptr;", options: TestOptions.Regular9, 1650UsingStatement("delegate*(int, void)", options: TestOptions.Regular9, 1710options: TestOptions.Regular9); 1832UsingExpression("(delegate* unmanaged[thiscall]<int, C>)ptr", options: TestOptions.Regular9); 1886UsingExpression("ptr as delegate* unmanaged[stdcall]<int, void>", options: TestOptions.Regular9); 1939UsingExpression("((delegate*<int, void> i1, delegate* managed<C, D> i2))ptr", options: TestOptions.Regular9); 2023UsingExpression("new M<delegate* unmanaged[thiscall]<void>, delegate*<C, D>>()", options: TestOptions.Regular9); 2104UsingExpression("typeof(delegate* unmanaged[cdecl]<ref int, readonly ref D>)", options: TestOptions.Regular9); 2158UsingStatement("delegate*<ref C>[] ptr;", options: TestOptions.Regular9); 2211options: TestOptions.Regular9); 2300UsingExpression("(delegate*<void> p1) => {}", options: TestOptions.Regular9); 2348}", options: TestOptions.Regular9, 2473UsingExpression("o is delegate*<void>", options: TestOptions.Regular9); 2505UsingExpression("o is delegate*<void> ptr", options: TestOptions.Regular9); 2550}", options: TestOptions.Regular9); 2670}", options: TestOptions.Regular9); 2781UsingStatement("using (delegate*<void> ptr = MyMethod()) {}", options: TestOptions.Regular9); 2839UsingStatement("using delegate*<void> ptr = MyMethod();", options: TestOptions.Regular9); 2891UsingStatement("fixed (delegate*<void> ptr = &MyMethod) {}", options: TestOptions.Regular9); 2945UsingStatement("foreach (delegate*<void> ptr in ptrs) {}", options: TestOptions.Regular9); 2986UsingStatement("for (delegate*<void> ptr = null;;) {}", options: TestOptions.Regular9); 3038UsingExpression("sizeof(delegate*<void>)", options: TestOptions.Regular9); 3068UsingStatement("delegate*<int param1, string param2 = default, void> ptr;", options: TestOptions.Regular9, 3125UsingStatement("delegate*void> ptr;", options: TestOptions.Regular9, 3169UsingStatement("delegate* unmanaged[cdecl] void> ptr;", options: TestOptions.Regular9, 3226UsingStatement("delegate*> ptr;", options: TestOptions.Regular9, 3264UsingStatement("delegate* unmanaged Cdecl]<void> ptr;", options: TestOptions.RegularPreview, 3310UsingStatement("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); 3650UsingStatement("delegate*", options: TestOptions.Regular9, 3694UsingStatement("delegate* unmanaged[cdecl]", options: TestOptions.Regular9, 3751UsingStatement("delegate* unmanaged[cdecl]<void) ptr;", options: TestOptions.Regular9, 3808UsingStatement("delegate* unmanaged[cdecl](void> ptr;", options: TestOptions.Regular9, 3873}}", options: TestOptions.Regular9, 3960}", options: TestOptions.Regular9, 4073UsingStatement("I<delegate*<void>[]> i;", options: TestOptions.Regular9); 4129UsingNode("using t = delegate*<void>;", options: TestOptions.Regular9);
Parsing\ImplicitObjectCreationParsingTests.cs (7)
16private static readonly CSharpParseOptions DefaultParseOptions = TestOptions.Regular9; 408CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 416UsingExpression(test, options: TestOptions.Regular8); 457CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 465UsingExpression(test, options: TestOptions.Regular8); 538CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 552UsingExpression(test, options: TestOptions.Regular8);
Parsing\LambdaAttributeParsingTests.cs (42)
36UsingExpression(source, TestOptions.Regular9); 39UsingExpression(source, TestOptions.RegularPreview); 76UsingExpression(source, TestOptions.Regular9); 79UsingExpression(source, TestOptions.RegularPreview); 126UsingExpression(source, TestOptions.Regular9); 129UsingExpression(source, TestOptions.RegularPreview); 187UsingExpression(source, TestOptions.Regular9); 190UsingExpression(source, TestOptions.RegularPreview); 236UsingExpression(source, TestOptions.RegularPreview, 282UsingExpression(source, TestOptions.RegularPreview, 306UsingExpression(source, TestOptions.RegularPreview, 926UsingExpression($"f = {exprLambda}", TestOptions.RegularPreview); 944UsingExpression($"F({exprLambda})", TestOptions.RegularPreview); 969UsingExpression($"F(x, {exprLambda})", TestOptions.RegularPreview); 1002UsingExpression("f = ([A] x => x)", TestOptions.RegularPreview); 1048UsingExpression("new B { [A] x => y }", TestOptions.RegularPreview, 1104UsingExpression("new B { ([A] x => y) }", TestOptions.RegularPreview); 1154UsingExpression("[A] () => { } ++", TestOptions.RegularPreview); 1192UsingExpression("-- [A] () => { }", TestOptions.RegularPreview, 1227UsingExpression("! [A] () => { }", TestOptions.RegularPreview, 1262UsingExpression("(F) [A] () => { }", TestOptions.RegularPreview, 1305UsingExpression("[A] () => { } + y", TestOptions.RegularPreview, 1350UsingExpression("x * [A] () => { }", TestOptions.RegularPreview, 1389UsingExpression("[A] () => { } is E", TestOptions.RegularPreview, 1434UsingExpression("[A] () => x as E", TestOptions.RegularPreview); 1475UsingExpression("x ? [A] () => { } : z", TestOptions.RegularPreview); 1522UsingExpression("x ? () => { } : z", TestOptions.RegularPreview); 1557UsingExpression("x ? y : [A] () => { }", TestOptions.RegularPreview); 1605UsingExpression("x ? ([A] () => { }) : y", TestOptions.RegularPreview); 1657UsingExpression("[A] () => { } switch { }", TestOptions.RegularPreview, 1700UsingExpression("x switch { y => [A] () => { }, _ => [A] () => z }", TestOptions.RegularPreview); 1789UsingExpression("([A] () => { }, y)", TestOptions.RegularPreview); 1839UsingExpression("(x, [A] () => { })", TestOptions.RegularPreview); 1889UsingExpression("s[[A] x => x..]", TestOptions.RegularPreview); 1940UsingExpression("s[..[A] () => { }]", TestOptions.RegularPreview, 1991UsingExpression(source, TestOptions.Regular9); 1994UsingExpression(source, TestOptions.RegularPreview); 2792UsingExpression(source, TestOptions.Regular9); 2795UsingExpression(source, TestOptions.Regular10); 3569verify(source, TestOptions.Regular9); 3599verify(source, TestOptions.Regular9); 3632verify(source, TestOptions.Regular9);
Parsing\LambdaParameterParsingTests.cs (36)
778UsingDeclaration("""Func<string, string> func1 = x!! => x + "1";""", options: TestOptions.RegularPreview, 834UsingDeclaration("Func<int, int, bool> func1 = (x!!, y) => x == y;", options: TestOptions.RegularPreview, 911UsingDeclaration("Func<int, int> func1 = (x!!) => x;", options: TestOptions.RegularPreview, 972UsingDeclaration("Func<int, int> func1 = x!!=>x;", options: TestOptions.RegularPreview, 1040UsingDeclaration("Func<int, int> func1 = (int x!!) => x;", options: TestOptions.RegularPreview, 1099UsingDeclaration("Func<int, int, int> func1 = (int x!!, int y) => x;", options: TestOptions.RegularPreview, 1174UsingDeclaration("Func<int, int, int> func1 = (int x!!, int y!!) => x;", options: TestOptions.RegularPreview, 1249UsingDeclaration("Func<int> func1 = (!!) => 42;", options: TestOptions.RegularPreview, 1308UsingDeclaration("Func<int, int> func1 = (_!!) => 42;", options: TestOptions.RegularPreview, 1369UsingDeclaration("Func<string, string> func0 = x!=> x;", options: TestOptions.RegularPreview, 1433UsingDeclaration("Func<string, string> func1 = x !=> x;", options: TestOptions.RegularPreview, 1497UsingDeclaration("Func<string, string> func2 = x != > x;", options: TestOptions.RegularPreview, 1561UsingDeclaration("Func<string, string> func3 = x! => x;", options: TestOptions.RegularPreview, 1611UsingDeclaration("Func<string, string> func4 = x ! => x;", options: TestOptions.RegularPreview, 1661UsingDeclaration("Func<string, string> func5 = x !!=> x;", options: TestOptions.RegularPreview, 1729UsingDeclaration("Func<string, string> func6 = x !!= > x;", options: TestOptions.RegularPreview, 1797UsingDeclaration("Func<string, string> func7 = x!! => x;", options: TestOptions.RegularPreview, 1853UsingDeclaration("Func<string, string> func8 = x! !=> x;", options: TestOptions.RegularPreview, 1921UsingDeclaration("Func<string, string> func9 = x! ! => x;", options: TestOptions.RegularPreview, 1977UsingDeclaration("Func<string[], string> func0 = x[] => x;", options: TestOptions.RegularPreview, 2054UsingDeclaration("Func<string[], string> func0 = (x[]) => x;", options: TestOptions.RegularPreview, 2142UsingDeclaration("Func<string[], string> func0 = (string x[]) => x;", options: TestOptions.RegularPreview, 2212UsingDeclaration("Func<string, string> func0 = x = null => x;", options: TestOptions.RegularPreview, 4331UsingDeclaration("Func<string, string> func0 = x!! = null => x;", options: TestOptions.RegularPreview, 4394UsingDeclaration("Func<string, string> func0 = (x!! = null) => x;", options: TestOptions.RegularPreview, 4463UsingDeclaration("Func<string, string> func0 = (y, x!! = null) => x;", options: TestOptions.RegularPreview, 4543UsingDeclaration("Func<string, string> func0 = (string x!! = null) => x;", options: TestOptions.RegularPreview, 4602UsingDeclaration("Func<string, string> func0 = (string y, string x!! = null) => x;", options: TestOptions.RegularPreview, 4757UsingDeclaration("Func<string, string> func0 = x! ! => x;", options: TestOptions.RegularPreview, 4813UsingDeclaration("Func<string, string> func0 = (x! !) => x;", options: TestOptions.RegularPreview, 4874UsingDeclaration("Func<string, string> func0 = (y, x! !) => x;", options: TestOptions.RegularPreview, 4946UsingDeclaration("Func<string, string> func0 = (string x! !) => x;", options: TestOptions.RegularPreview, 5005UsingDeclaration("Func<string, string> func0 = (string y, string x! !) => x;", options: TestOptions.RegularPreview, 5153UsingExpression(source, TestOptions.Regular.WithLanguageVersion(languageVersion), 5183UsingExpression(source, TestOptions.Regular.WithLanguageVersion(languageVersion), 5211UsingExpression(source, TestOptions.Regular.WithLanguageVersion(languageVersion),
Parsing\LambdaReturnTypeParsingTests.cs (27)
42UsingExpression(source, TestOptions.Regular9); 45UsingExpression(source, TestOptions.RegularPreview); 79UsingExpression(source, TestOptions.Regular9); 82UsingExpression(source, TestOptions.RegularPreview); 126UsingExpression(source, TestOptions.Regular9); 129UsingExpression(source, TestOptions.RegularPreview); 167verify(source, TestOptions.Regular9); 208UsingExpression(source, TestOptions.Regular9, 214UsingExpression(source, TestOptions.RegularPreview, 285verify(source, TestOptions.Regular9); 286verify(source, TestOptions.RegularPreview); 315verify(source, TestOptions.Regular9); 316verify(source, TestOptions.RegularPreview); 2882UsingExpression(source, options: TestOptions.Regular7); 2925UsingExpression(source, options: TestOptions.Regular7); 5009UsingTree(source, TestOptions.Regular9); 5012UsingTree(source, TestOptions.Regular10); 5054UsingExpression(source, TestOptions.Regular9); 5080UsingDeclaration(source, TestOptions.Regular9); 5125verify(source, TestOptions.Regular9); 5157verify(source, TestOptions.Regular9); 5179verify(source, TestOptions.Regular9); 5235verify(source, TestOptions.Regular9); 5288verify(source, TestOptions.Regular9); 5339verify(source, TestOptions.Regular9); 5384verify(source, TestOptions.Regular9); 5432verify(source, TestOptions.Regular9);
Parsing\LineSpanDirectiveParsingTests.cs (10)
43UsingLineDirective(source, TestOptions.Regular9); 46UsingLineDirective(source, TestOptions.Regular9.WithPreprocessorSymbols("IsActive")); 84UsingLineDirective(source, TestOptions.Regular9); 87UsingLineDirective(source, TestOptions.Regular10); 125UsingLineDirective(source, TestOptions.Regular9); 128UsingLineDirective(source, TestOptions.Regular10); 2352UsingLineDirective(source, TestOptions.Regular10, 2390UsingLineDirective(source, TestOptions.Regular10, 2429UsingLineDirective(source, TestOptions.Regular10, 2468UsingLineDirective(source, TestOptions.Regular10,
Parsing\LocalFunctionParsingTests.cs (43)
372}", options: TestOptions.Regular9); 560}", TestOptions.Regular9, 696CreateCompilation(code, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 706CreateCompilation(code, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 720UsingTree(code, TestOptions.Regular9).GetDiagnostics().Verify(); 723UsingTree(code, TestOptions.Regular8); 788CreateCompilation(code, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 795CreateCompilation(code, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 806UsingTree(code, TestOptions.Regular9).GetDiagnostics().Verify(); 809UsingTree(code, TestOptions.Regular8); 871UsingStatement(statement, TestOptions.Regular9, 916}", TestOptions.Regular9); 996}", TestOptions.Regular9); 1287var file = ParseFile(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 1304CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 1720CreateCompilation(text, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1727CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1731CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 1736UsingDeclaration(text, options: TestOptions.Regular7_3); 1739UsingDeclaration(text, options: TestOptions.Regular8); 1742UsingDeclaration(text, options: TestOptions.Regular9); 1805CreateCompilation(text, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1824CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1837CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 1851UsingDeclaration(text, options: TestOptions.Regular7_3); 1854UsingDeclaration(text, options: TestOptions.Regular8); 1857UsingDeclaration(text, options: TestOptions.Regular9); 1939CreateCompilation(text, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1973CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1995CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2018UsingDeclaration(text, options: TestOptions.Regular7_3, 2027UsingDeclaration(text, options: TestOptions.Regular8, 2036UsingDeclaration(text, options: TestOptions.Regular9, 2135UsingDeclaration(text, options: TestOptions.Regular9, 2215UsingDeclaration(text, options: TestOptions.Regular9, 2302UsingDeclaration(text, options: TestOptions.Regular9, 2396UsingDeclaration(text, options: TestOptions.Regular9, 2474CreateCompilation(text, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 2496CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 2515CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2535UsingDeclaration(text, options: TestOptions.Regular7_3, 2550UsingDeclaration(text, options: TestOptions.Regular8, 2565UsingDeclaration(text, options: TestOptions.Regular9,
Parsing\MemberDeclarationParsingTests.cs (455)
28private static readonly CSharpParseOptions RequiredMembersOptions = TestOptions.Regular11; 29public static readonly IEnumerable<object[]> Regular10AndScriptAndRequiredMembersMinimum = new[] { new[] { TestOptions.Regular10 }, new[] { RequiredMembersOptions }, new[] { TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp10) } }; 30public static readonly IEnumerable<object[]> Regular10AndScript = new[] { new[] { TestOptions.Regular10 }, new[] { TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp10) } }; 117foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 142foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 153foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 171foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 200foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 248foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 299foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 326foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 369foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 428foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 479foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 562foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 645foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 776foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 824foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 872foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 915foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 958foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 1005foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 1052foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 1086foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 1134foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 1168foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 1883options: TestOptions.Regular10); 2069options: TestOptions.Regular11, 2317CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2333CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 2347foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 2428CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2453CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 2489foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 2553CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2578CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 2613foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 2677CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2696CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 2719foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 2783CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2802CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 2825foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 2879foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 2959foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 3014foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 3065foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 3125foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 3198CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3214CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 3228foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 3313CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3338CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 3373foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 3441CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3466CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 3501foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 3569CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3588CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 3611foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 3679CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3698CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 3721foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 3779foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 3863foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 3922foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 3977foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 4041foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 4116foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 4178foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 4243CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 4256CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 4267foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 4347CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 4369CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 4401foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 4464CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 4486CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 4518foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 4581CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 4597CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 4617foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 4680CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 4696CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 4716foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 4769foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 4848foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 4902foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 4952foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 5011foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 5083CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 5096CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 5107foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 5191CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 5213CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 5245foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 5312CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 5334CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 5366foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 5433CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 5449CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 5469foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 5536CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 5552CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 5572foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 5629foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 5712foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 5770foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 5824foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 5887foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 5961foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6022foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6084foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6159foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6229foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6268CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 6281CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 6292foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6355CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 6371CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 6392foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6459foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6506CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 6522CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 6543foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6606CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 6622CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 6643foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6696foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6758foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6812foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6862foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6921foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 6993CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 7006CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 7017foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 7084CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 7103CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 7130foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 7197CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 7213CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 7234foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 7301CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 7317CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 7338foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 7405CreateCompilation(classWithText, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 7421CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 7442foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 7499foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 7565foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 7623foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 7677foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 7740foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 7814foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 7875foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 7937foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 7994foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 8048foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 8102foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 8161foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 8207foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 8272foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 8321foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 8382foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 8441foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 8487foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 8545foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 8627", options: TestOptions.Regular, error); 8707UsingDeclaration("N1..N2 M(int x) => x;", options: TestOptions.Regular, 8765UsingDeclaration("int N1..M(int x) => x;", options: TestOptions.Regular, 8823UsingDeclaration("int N1.N2..M(int x) => x;", options: TestOptions.Regular, 8890foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 8944foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 9006foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 9068foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 9114foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 9168", options: TestOptions.Regular, 9236", options: TestOptions.Regular, 9289", options: TestOptions.Regular, 9360", options: TestOptions.Regular, 9446", options: TestOptions.Regular, 9496", options: TestOptions.Regular, 9551", options: TestOptions.Regular, 9607UsingNode(@"record R<T> where T : delegate", options: TestOptions.Regular, 9717UsingDeclaration("C I.operator checked " + op + "(C x) => x;", options: TestOptions.RegularPreview); 9848UsingDeclaration("C I.operator checked " + op + "(C x, C y) => x;", options: TestOptions.RegularPreview); 9949UsingDeclaration(op + " I.operator checked D(C x) => x;", options: TestOptions.RegularPreview); 10064UsingDeclaration("C I.operator unchecked " + op + "(C x, C y) => x;", options: TestOptions.RegularPreview, 12414foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 12677foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 12769foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 12844foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 12927foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 13010foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 13097foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 13181foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 13260foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 13339foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 13426foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 13513foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 13604foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 13715foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 13789foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 13863foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 13945foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 14027foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 14106foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 14192foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 14275foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 14369foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 14460foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 14546foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 14629foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 14704foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 14779foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 14862foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 14945foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 15076foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 15210foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 15268foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 15326foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 15384foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 15442foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 15521foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 15600foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 15683foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 15770foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 15861foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 15942foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 16036foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 16150foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 16303foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 16473foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 16582foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 16711foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 16892foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 17090foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 17160foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 17224foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 17281foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 17354foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 17421foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 17483foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 17553foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 17637foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 17700foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 17770foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 17854foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 17906foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 17980foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 18069foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 18170foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 18274foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 18375foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 18473foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 18522foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 18583foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 18708foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 18787foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 18883foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 18978foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 19059foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 19141foreach (var options in new[] { TestOptions.Script, TestOptions.Regular }) 19213foreach (var options in new[] { TestOptions.Script, TestOptions.Regular })
Parsing\NameParsingTests.cs (2)
929UsingTree(source, TestOptions.Regular1, 1008CreateCompilation(source, parseOptions: TestOptions.Regular1).VerifyDiagnostics(
Parsing\NullableParsingTests.cs (4)
742CreateCompilation(test, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 753UsingStatement(test, options: TestOptions.Regular8); 810CreateCompilation(test, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 833UsingStatement(test, options: TestOptions.Regular8,
Parsing\ParserErrorMessageTests.cs (71)
638CreateCompilation(test, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2421CreateCompilation(test, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2684ParseAndValidate(text, TestOptions.Regular, 2714CreateCompilationWithMscorlib46(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 2739ParseAndValidate(text, TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6), 2768CreateCompilationWithMscorlib46(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics( 2791CreateCompilationWithMscorlib46(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)).VerifyDiagnostics( 2855ParseAndValidate(test, TestOptions.Regular, 2885CreateCompilation(test, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 2902ParseAndValidate(test, TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6), 3764var tree = ParseTree(test, TestOptions.Regular); 4590ParseAndValidate(test, TestOptions.Regular, 4615CreateCompilation(test, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 4626ParseAndValidate(test, TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6), 4671CreateCompilation(test, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 4697CreateCompilation(test, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 4717CreateCompilation(test, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 4737CreateCompilation(test, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 4759CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 4780CreateCompilation(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 4888CreateCompilation(test, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 5445CreateCompilation(text, parseOptions: TestOptions.Regular5).VerifyDiagnostics(); 5446CreateCompilation(text, parseOptions: TestOptions.Regular1).VerifyDiagnostics( 5467CreateCompilation(text, parseOptions: TestOptions.Regular5).VerifyDiagnostics( 5480CreateCompilation(text, parseOptions: TestOptions.Regular2).VerifyDiagnostics( 5511CreateCompilation(text, parseOptions: TestOptions.Regular5).VerifyDiagnostics( 5515CreateCompilation(text, parseOptions: TestOptions.Regular2).VerifyDiagnostics( 5551CreateCompilation(text, parseOptions: TestOptions.Regular5).VerifyDiagnostics(); 5552CreateCompilation(text, parseOptions: TestOptions.Regular2).VerifyDiagnostics( 5573CreateCompilation(text, parseOptions: TestOptions.Regular5).VerifyDiagnostics( 5577CreateCompilation(text, parseOptions: TestOptions.Regular2).VerifyDiagnostics( 5608CreateCompilation(text, parseOptions: TestOptions.Regular5).VerifyEmitDiagnostics( 5612CreateCompilation(text, parseOptions: TestOptions.Regular2).VerifyEmitDiagnostics( 5642CreateCompilation(text, parseOptions: TestOptions.Regular5).VerifyDiagnostics( 5646CreateCompilation(text, parseOptions: TestOptions.Regular2).VerifyDiagnostics( 5676CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 5683CreateCompilation(text, parseOptions: TestOptions.Regular5).VerifyDiagnostics( 5980CreateCompilation(text, parseOptions: TestOptions.Regular5).VerifyDiagnostics( 5988CreateCompilation(text, parseOptions: TestOptions.Regular3).VerifyDiagnostics( 6008CreateCompilation(text, parseOptions: TestOptions.Regular5).VerifyDiagnostics( 6015CreateCompilation(text, parseOptions: TestOptions.Regular3).VerifyDiagnostics( 6038CreateCompilation(text, parseOptions: TestOptions.Regular5).VerifyDiagnostics( 6051CreateCompilation(text, parseOptions: TestOptions.Regular4).VerifyDiagnostics( 6080CreateCompilation(text, parseOptions: TestOptions.Regular5).VerifyDiagnostics( 6093CreateCompilation(text, parseOptions: TestOptions.Regular4).VerifyDiagnostics( 6121CreateCompilation(text, parseOptions: TestOptions.Regular4).VerifyDiagnostics( 6131CreateCompilation(text, parseOptions: TestOptions.Regular3).VerifyDiagnostics( 6163CreateCompilation(text, parseOptions: TestOptions.Regular2).VerifyDiagnostics( 6167CreateCompilation(text, parseOptions: TestOptions.Regular1).VerifyDiagnostics( 6187CreateCompilation(text, parseOptions: TestOptions.Regular2).VerifyDiagnostics( 6191CreateCompilation(text, parseOptions: TestOptions.Regular1).VerifyDiagnostics( 6209CreateCompilation(text, parseOptions: TestOptions.Regular4).VerifyDiagnostics(); 6210CreateCompilation(text, parseOptions: TestOptions.Regular3).VerifyDiagnostics( 6231CreateCompilation(text, parseOptions: TestOptions.Regular3).VerifyEmitDiagnostics( 6235CreateCompilation(text, parseOptions: TestOptions.Regular2).VerifyEmitDiagnostics( 6259CreateCompilation(text, parseOptions: TestOptions.Regular3).VerifyEmitDiagnostics( 6263CreateCompilation(text, parseOptions: TestOptions.Regular2).VerifyEmitDiagnostics( 6285SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp2)).GetDiagnostics().Verify(); 6286SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp1)).GetDiagnostics().Verify( 6304SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp2)).GetDiagnostics().Verify(); 6305SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp1)).GetDiagnostics().Verify( 6328SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp2)).GetDiagnostics().Verify(); 6329SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp1)).GetDiagnostics().Verify( 6348SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp2)).GetDiagnostics().Verify(); 6349SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp1)).GetDiagnostics().Verify(); 6383CreateCompilation(source, parseOptions: TestOptions.Regular2).VerifyDiagnostics( 6390CreateCompilation(source, parseOptions: TestOptions.Regular1).VerifyDiagnostics( 6430CreateCompilation(source, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 6437CreateCompilation(source, parseOptions: TestOptions.Regular5).VerifyDiagnostics(
Parsing\ParserRegressionTests.cs (1)
25return SyntaxFactory.ParseSyntaxTree(text, options ?? TestOptions.Regular);
Parsing\ParsingErrorRecoveryTests.cs (7)
6200var file = this.ParseTree(text, options: TestOptions.Regular); 6228var file = this.ParseTree(text, TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 6253CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 6309var file = this.ParseTree(text, options: TestOptions.Regular); 6339var file = this.ParseTree(text, options: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 6368CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 7395SyntaxTree syntaxTree = SyntaxFactory.ParseSyntaxTree(text, TestOptions.Regular9);
Parsing\ParsingTests.cs (2)
84ParseFile(text, parseOptions: TestOptions.Regular.WithExperimental(feature)); 365_ = SyntaxFactory.ParseSyntaxTree(stringBuilder.ToString(), TestOptions.RegularPreview);
Parsing\PatternParsingTests.cs (114)
50CreateCompilation(test, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics( 86CreateCompilation(test, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 176}", options: TestOptions.Regular); 1846CreateCompilation(testInMethod, parseOptions: TestOptions.RegularWithoutRecursivePatterns).VerifyDiagnostics( 1856CreateCompilation(testInMethod, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1864UsingStatement(test, TestOptions.RegularWithoutRecursivePatterns); 1867UsingStatement(test, TestOptions.Regular8); 1942CreateCompilation(testInMethod, parseOptions: TestOptions.RegularWithoutRecursivePatterns).VerifyDiagnostics( 1959UsingStatement(test, TestOptions.RegularWithoutRecursivePatterns); 2030CreateCompilation(testWithStatement, parseOptions: TestOptions.RegularWithoutRecursivePatterns).VerifyDiagnostics( 2044UsingStatement(test, TestOptions.RegularWithoutRecursivePatterns); 2154CreateCompilation(testInMethod, parseOptions: TestOptions.RegularWithoutRecursivePatterns).VerifyDiagnostics( 2168UsingStatement(test, TestOptions.RegularWithoutRecursivePatterns, 2213CreateCompilation(testInMethod, parseOptions: TestOptions.RegularWithoutRecursivePatterns).VerifyDiagnostics( 2233UsingStatement(test, TestOptions.RegularWithoutRecursivePatterns, 2282CreateCompilation(testInMethod, parseOptions: TestOptions.RegularWithoutRecursivePatterns).VerifyDiagnostics( 2293UsingStatement(test, TestOptions.RegularWithoutRecursivePatterns); 2373CreateCompilation(testInMethod, parseOptions: TestOptions.RegularWithoutRecursivePatterns).VerifyDiagnostics( 2387UsingStatement(test, TestOptions.RegularWithoutRecursivePatterns, 2450CreateCompilation(testInMethod, parseOptions: TestOptions.RegularWithoutRecursivePatterns).VerifyDiagnostics( 2461UsingExpression(test, TestOptions.RegularWithoutRecursivePatterns); 2481CreateCompilation(testWithStatement, parseOptions: TestOptions.RegularWithoutRecursivePatterns).VerifyDiagnostics( 2498UsingExpression(test, TestOptions.RegularWithoutRecursivePatterns); 2549CreateCompilation(testWithStatement, parseOptions: TestOptions.RegularWithoutRecursivePatterns).VerifyDiagnostics( 2566UsingExpression(test, TestOptions.RegularWithoutRecursivePatterns, 2628CreateCompilation(testWithStatement, parseOptions: TestOptions.RegularWithoutRecursivePatterns).VerifyDiagnostics( 2654UsingExpression("1 switch { (a, b, c) => d }", TestOptions.RegularWithoutRecursivePatterns); 2722CreateCompilation(testWithStatement, parseOptions: TestOptions.RegularWithoutRecursivePatterns).VerifyDiagnostics( 2744UsingStatement(test, TestOptions.RegularWithoutRecursivePatterns, 2989Parse(source, options: TestOptions.RegularWithRecursivePatterns); 2995Parse(source2, options: TestOptions.RegularWithRecursivePatterns); 5524UsingStatement("switch(e) { case _: break; }", TestOptions.Regular7_3); 8254CreateCompilation(testInMethod, parseOptions: TestOptions.RegularWithoutPatternCombinators).VerifyDiagnostics( 8268UsingStatement(test, TestOptions.RegularWithoutPatternCombinators); 8316CreateCompilation(testInMethod, parseOptions: TestOptions.RegularWithoutPatternCombinators).VerifyDiagnostics( 8330UsingStatement(test, TestOptions.RegularWithoutPatternCombinators); 8378CreateCompilation(testInMethod, parseOptions: TestOptions.RegularWithoutPatternCombinators).VerifyDiagnostics( 8389UsingStatement(test, TestOptions.RegularWithoutPatternCombinators); 8430CreateCompilation(testInMethod, parseOptions: TestOptions.RegularWithoutPatternCombinators).VerifyDiagnostics( 8438UsingStatement(test, TestOptions.RegularWithoutPatternCombinators); 8484CreateCompilation(testInMethod, parseOptions: TestOptions.RegularWithoutPatternCombinators).VerifyDiagnostics( 8516UsingStatement(test, TestOptions.RegularWithoutPatternCombinators); 8647CreateCompilation(test, parseOptions: TestOptions.RegularWithoutPatternCombinators).VerifyDiagnostics( 8686UsingStatement(test, TestOptions.RegularWithoutPatternCombinators); 8823TestOptions.RegularWithPatternCombinators, 9018TestOptions.RegularWithPatternCombinators 9125TestOptions.RegularWithPatternCombinators 9163TestOptions.RegularWithPatternCombinators 9209TestOptions.RegularWithPatternCombinators 9254TestOptions.RegularWithPatternCombinators 9294TestOptions.RegularWithPatternCombinators 9360TestOptions.RegularWithPatternCombinators 9407TestOptions.RegularWithPatternCombinators 9462TestOptions.RegularWithPatternCombinators 9520TestOptions.RegularWithPatternCombinators 9586TestOptions.RegularWithPatternCombinators 9648TestOptions.RegularWithPatternCombinators 9711TestOptions.RegularWithPatternCombinators 9764TestOptions.RegularWithPatternCombinators 9817TestOptions.RegularWithPatternCombinators 9904TestOptions.RegularWithPatternCombinators 9944TestOptions.RegularWithPatternCombinators 9992TestOptions.RegularWithPatternCombinators 10040TestOptions.RegularWithPatternCombinators 10095TestOptions.RegularWithPatternCombinators 10142TestOptions.RegularWithPatternCombinators 10190TestOptions.RegularWithPatternCombinators 10338TestOptions.RegularWithPatternCombinators 10379TestOptions.RegularWithPatternCombinators 10420TestOptions.RegularWithPatternCombinators 10461TestOptions.RegularWithPatternCombinators 10516TestOptions.RegularWithPatternCombinators 10561TestOptions.RegularWithPatternCombinators 10634TestOptions.RegularWithPatternCombinators 10671TestOptions.RegularWithPatternCombinators 10712TestOptions.RegularWithPatternCombinators 10754TestOptions.RegularWithPatternCombinators 10806TestOptions.RegularWithPatternCombinators 10856TestOptions.RegularWithPatternCombinators 10912TestOptions.RegularWithPatternCombinators 10973TestOptions.RegularWithPatternCombinators 11024TestOptions.RegularWithPatternCombinators 11077TestOptions.RegularWithPatternCombinators 11130TestOptions.RegularWithPatternCombinators 11187TestOptions.RegularWithPatternCombinators 11251TestOptions.RegularWithPatternCombinators 11305TestOptions.RegularWithPatternCombinators 11360TestOptions.RegularWithPatternCombinators 11403TestOptions.RegularWithPatternCombinators 11456TestOptions.RegularWithPatternCombinators 11554TestOptions.RegularWithPatternCombinators 11614TestOptions.RegularWithPatternCombinators 11672TestOptions.RegularWithPatternCombinators 11731TestOptions.RegularWithPatternCombinators 11735TestOptions.RegularWithoutPatternCombinators 11795TestOptions.RegularWithPatternCombinators 11799TestOptions.RegularWithoutPatternCombinators 11866TestOptions.RegularWithPatternCombinators, 11871TestOptions.RegularWithoutPatternCombinators, 11974TestOptions.RegularWithPatternCombinators, 11979TestOptions.RegularWithoutPatternCombinators, 12043TestOptions.RegularWithPatternCombinators 12124TestOptions.RegularWithPatternCombinators 12174TestOptions.RegularWithPatternCombinators 12219TestOptions.RegularWithPatternCombinators 12274TestOptions.RegularWithPatternCombinators 12324TestOptions.RegularWithPatternCombinators 12375TestOptions.RegularWithPatternCombinators 12420TestOptions.RegularWithPatternCombinators 12475TestOptions.RegularWithPatternCombinators 12525TestOptions.RegularWithPatternCombinators 12589TestOptions.RegularWithPatternCombinators 12640TestOptions.RegularWithPatternCombinators 12695UsingExpression(@"new object() is { {}: 1 }", TestOptions.RegularWithPatternCombinators,
Parsing\PatternParsingTests_ListPatterns.cs (1)
15private static CSharpParseOptions RegularWithoutListPatterns => TestOptions.Regular10;
Parsing\PatternParsingTests2.cs (4)
31CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 38CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 49UsingExpression(test, TestOptions.Regular10); 52UsingExpression(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)
40var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), options: TestOptions.DebugDll); 77var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7), options: TestOptions.DebugDll); 105var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), options: TestOptions.DebugDll); 149var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), options: TestOptions.DebugDll.WithAllowUnsafe(true)); 182var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), options: TestOptions.DebugDll); 216var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), options: TestOptions.DebugDll);
Parsing\RecordParsing.cs (63)
19=> UsingTree(text, TestOptions.Regular9, expectedErrors); 22=> UsingExpression(text, TestOptions.Regular9, expectedErrors); 25=> UsingStatement(text, TestOptions.Regular9, expectedErrors); 108UsingTree(text, options: TestOptions.Regular8); 109CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 264var tree = ParseTree(text, options: TestOptions.Regular8); 267CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 330var tree = ParseTree(text, options: TestOptions.Regular8); 333tree = ParseTree(text, options: TestOptions.RegularPreview); 1209CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1217var tree = SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.Regular8); 1717UsingStatement("int x = await with { };", options: TestOptions.Regular9); 1756UsingStatement("await with;", options: TestOptions.Regular9); 2660CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2667UsingTree(text, options: TestOptions.Regular9, 2673CreateCompilation(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 2677UsingTree(text, options: TestOptions.Regular10, 2727CreateCompilation(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 2728UsingTree(text, options: TestOptions.Regular10); 2731CreateCompilation(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 2732UsingTree(text, options: TestOptions.Regular9); 2735UsingTree(text, options: TestOptions.Regular8, 2744CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 2863UsingTree(text, options: TestOptions.Regular10); 2907CreateCompilation(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 2914UsingTree(text, options: TestOptions.Regular10); 2917CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 2927UsingTree(text, options: TestOptions.Regular9); 2930CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 2954UsingTree(text, options: TestOptions.Regular8, 3058UsingTree(text, options: TestOptions.RegularPreview, 3116UsingTree(text, options: TestOptions.RegularPreview, 3208UsingTree(text, options: TestOptions.Regular10, 3253UsingTree(text, options: TestOptions.Regular9, 3298UsingTree(text, options: TestOptions.Regular8); 3318UsingTree(text, options: TestOptions.Regular9); 3338UsingTree(text, options: TestOptions.Regular10); 3358UsingTree(text, options: TestOptions.Regular10, 3403UsingTree(text, options: TestOptions.Regular9, 3448UsingTree(text, options: TestOptions.RegularPreview, 3540UsingTree(text, options: TestOptions.RegularPreview); 3561UsingTree(text, options: TestOptions.RegularPreview); 3582UsingTree(text, options: TestOptions.RegularPreview); 3602UsingTree(text, options: TestOptions.RegularPreview); 3636UsingTree(text, options: TestOptions.RegularPreview); 3671UsingTree(text, options: TestOptions.RegularPreview); 3692UsingTree(text, options: TestOptions.RegularPreview); 3714UsingTree(text, options: TestOptions.RegularPreview, 3746UsingTree(text, options: TestOptions.RegularPreview, 3793CreateCompilation(text, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 3797UsingTree(text, options: TestOptions.RegularPreview); 3800CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 3808UsingTree(text, options: TestOptions.Regular8, 3837CreateCompilation(text, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 3844UsingTree(text, options: TestOptions.Regular9); 3869UsingTree(text, options: TestOptions.RegularPreview); 3873UsingTree(text, options: TestOptions.Regular8); 3875CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 3917UsingTree(text, options: TestOptions.Regular9); 3942UsingTree(text, options: TestOptions.RegularPreview, 3990UsingTree(text, options: TestOptions.RegularPreview, 4053UsingTree(text, options: TestOptions.RegularPreview); 4096UsingTree(text, options: TestOptions.RegularPreview);
Parsing\RefFieldParsingTests.cs (23)
24UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(languageVersion)); 61UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(languageVersion)); 99UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(languageVersion), 135UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(languageVersion), 172UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(languageVersion)); 230UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(languageVersion)); 292UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(languageVersion), 352UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(languageVersion), 405UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(languageVersion)); 467UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(languageVersion)); 550UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(languageVersion), 653UsingDeclaration(source, TestOptions.Regular.WithLanguageVersion(languageVersion)); 699UsingExpression(source, TestOptions.Regular.WithLanguageVersion(languageVersion)); 739UsingExpression(source, TestOptions.Regular.WithLanguageVersion(languageVersion), 783UsingExpression(source, TestOptions.Regular.WithLanguageVersion(languageVersion), 848UsingExpression(source, TestOptions.Regular.WithLanguageVersion(languageVersion)); 880UsingExpression(source, TestOptions.Regular.WithLanguageVersion(languageVersion)); 931UsingExpression(source, TestOptions.Regular.WithLanguageVersion(languageVersion), 985UsingExpression(source, TestOptions.Regular.WithLanguageVersion(languageVersion), 1016UsingExpression(source, TestOptions.Regular.WithLanguageVersion(languageVersion), 1055UsingExpression(source, TestOptions.Regular.WithLanguageVersion(languageVersion), 1094UsingExpression(source, TestOptions.Regular.WithLanguageVersion(languageVersion), 1141UsingExpression(source, TestOptions.Regular.WithLanguageVersion(languageVersion),
Parsing\RefReadonlyTests.cs (47)
45var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), options: TestOptions.UnsafeDebugDll); 90var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), options: TestOptions.UnsafeDebugDll); 136ParseAndValidate(text, TestOptions.Regular9, 501UsingDeclaration(source, TestOptions.Regular11); 504UsingDeclaration(source, TestOptions.Regular12); 544UsingDeclaration(source, TestOptions.Regular11); 547UsingDeclaration(source, TestOptions.Regular12); 588UsingDeclaration(source, TestOptions.Regular11); 591UsingDeclaration(source, TestOptions.Regular12); 631UsingDeclaration(source, TestOptions.Regular11); 634UsingDeclaration(source, TestOptions.Regular12); 675UsingDeclaration(source, TestOptions.Regular11); 678UsingDeclaration(source, TestOptions.Regular12); 719UsingDeclaration(source, TestOptions.Regular11); 722UsingDeclaration(source, TestOptions.Regular12); 764UsingDeclaration(source, TestOptions.Regular11); 767UsingDeclaration(source, TestOptions.Regular12); 808UsingDeclaration(source, TestOptions.Regular11); 811UsingDeclaration(source, TestOptions.Regular12); 852UsingDeclaration(source, TestOptions.Regular11); 855UsingDeclaration(source, TestOptions.Regular12); 896UsingDeclaration(source, TestOptions.Regular11); 899UsingDeclaration(source, TestOptions.Regular12); 950UsingDeclaration(source, TestOptions.Regular11, expectedDiagnostics); 953UsingDeclaration(source, TestOptions.Regular12, expectedDiagnostics); 956UsingDeclaration(source, TestOptions.RegularPreview, expectedDiagnostics); 1012UsingDeclaration(source, TestOptions.Regular11, expectedDiagnostics); 1015UsingDeclaration(source, TestOptions.Regular12, expectedDiagnostics); 1018UsingDeclaration(source, TestOptions.RegularPreview, expectedDiagnostics); 1074UsingDeclaration(source, TestOptions.Regular11, expectedDiagnostics); 1077UsingDeclaration(source, TestOptions.Regular12, expectedDiagnostics); 1080UsingDeclaration(source, TestOptions.RegularPreview, expectedDiagnostics); 1135UsingDeclaration(source, TestOptions.Regular11, expectedDiagnostics); 1138UsingDeclaration(source, TestOptions.Regular12, expectedDiagnostics); 1141UsingDeclaration(source, TestOptions.RegularPreview, expectedDiagnostics); 1187UsingDeclaration(source, TestOptions.Regular11); 1190UsingDeclaration(source, TestOptions.Regular12); 1230UsingDeclaration(source, TestOptions.Regular11); 1233UsingDeclaration(source, TestOptions.Regular12); 1273UsingDeclaration(source, TestOptions.Regular11); 1276UsingDeclaration(source, TestOptions.Regular12); 1279UsingDeclaration(source, TestOptions.Regular9); 1319UsingExpression("M(ref x, in y, ref readonly z)", TestOptions.Regular.WithLanguageVersion(languageVersion), 1383UsingExpression("M(readonly ref x)", TestOptions.Regular.WithLanguageVersion(languageVersion), 1415UsingExpression("M(readonly x)", TestOptions.Regular.WithLanguageVersion(languageVersion),
Parsing\RefStructs.cs (7)
38var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), options: TestOptions.DebugDll); 54var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7), options: TestOptions.DebugDll); 81var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), options: TestOptions.DebugDll); 230}", TestOptions.UnsafeDebugDll).GetParseDiagnostics().Verify();
Parsing\RoundTrippingTests.cs (2)
23ParseAndRoundTripping(text, TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.Preview), errorCount, memberCount); 77var parseOptions = TestOptions.Regular;
Parsing\ScriptParsingTests.cs (112)
25return SyntaxFactory.ParseSyntaxTree(text, options: options ?? TestOptions.Script); 77ParseAndValidate(test, TestOptions.Script, 2590ParseAndValidate(test, TestOptions.Regular9); 2594ParseAndValidate(test, TestOptions.Regular9, new[] { new ErrorDescription { Code = (int)ErrorCode.ERR_SemicolonExpected, Line = 1, Column = 8 } }); // expected ';' 2598ParseAndValidate(test, TestOptions.Script); 2602ParseAndValidate(test, TestOptions.Script); 2606ParseAndValidate(test, TestOptions.Script); 2612var tree = UsingTree(@"a * b;", TestOptions.Script); 2642var tree = UsingTree(@"a * b", TestOptions.Script); 2675var tree = UsingTree(@"a<t>.n * f(x)", TestOptions.Script); 2811var tree = UsingTree(@"T ? a;", TestOptions.Script); 2841var tree = UsingTree(@"T ? b, c = 1;", TestOptions.Script); 2884var tree = UsingTree(@"T ? b = d => { };", TestOptions.Script); 2931var tree = UsingTree(@"T ? b = x ? y : z;", TestOptions.Script); 2981var tree = UsingTree(@"T ? a,", TestOptions.Script, 3023var tree = UsingTree(@"T ? a = 1,", TestOptions.Script, 3074var tree = UsingTree(@"T ? a {", TestOptions.Script, 3105var tree = UsingTree(@"T ? a.b {", TestOptions.Script, 3144var tree = UsingTree(@"T ? a<T>.b {", TestOptions.Script, 3192var tree = UsingTree(@"T ? a<T?>.b<S>.c {", TestOptions.Script, 3263var tree = UsingTree(@"T ? a() {", TestOptions.Script, 3299var tree = UsingTree(@"T ? a() where", TestOptions.Script, 3356var tree = UsingTree(@"T ? a(T b", TestOptions.Script, 3399var tree = UsingTree(@"T ? a.b(T c", TestOptions.Script, 3450var tree = UsingTree(@"T ? a<A>.b<B>(C c", TestOptions.Script, 3519var tree = UsingTree(@"T ? a([Attr]C c", TestOptions.Script, 3574var tree = UsingTree(@"T ? a([Attr(a = b)]c", TestOptions.Script, 3652var tree = UsingTree(@"T ? a(out C c", TestOptions.Script, 3696var tree = UsingTree(@"T ? a(C[] a", TestOptions.Script, 3751var tree = UsingTree(@"T ? a(params", TestOptions.Script, 3801var tree = UsingTree(@"T ? a(out T ? b", TestOptions.Script, 3849var tree = UsingTree(@"T ? a(ref T ? b", TestOptions.Script, 3897var tree = UsingTree(@"T ? a(params T ? b", TestOptions.Script, 3945var tree = UsingTree(@"T ? a([Attr]T ? b", TestOptions.Script, 4004var tree = UsingTree(@"T ? a(T ? b,", TestOptions.Script, 4066var tree = UsingTree(@"T ? a(T ? b)", TestOptions.Script, 4110var tree = UsingTree(@"T ? a(T c)", TestOptions.Script, 4150var tree = UsingTree(@"T ? a(this c d", TestOptions.Script, 4194var tree = UsingTree(@"T ? a(ref out T a", TestOptions.Script, 4239var tree = UsingTree(@"T ? a(int a", TestOptions.Script, 4282var tree = UsingTree(@"T ? a(ref int a", TestOptions.Script, 4326var tree = UsingTree(@"T ? a(T a =", TestOptions.Script, 4380var tree = UsingTree(@"T ? a(T[,] a", TestOptions.Script, 4499var tree = UsingTree(@"T ? m(a < b, c > d)", TestOptions.Script, 4555var tree = UsingTree(@"T ? 1", TestOptions.Script, 4596var tree = UsingTree(@"T ? a", TestOptions.Script, 4637var tree = UsingTree(@"T ? a.", TestOptions.Script, 4689var tree = UsingTree(@"T ? a[", TestOptions.Script, 4741var tree = UsingTree(@"T ? a<", TestOptions.Script, 4793var tree = UsingTree(@"T ? a<b", TestOptions.Script, 4842var tree = UsingTree(@"T ? a<b>", TestOptions.Script, 4892var tree = UsingTree(@"T ? a<b,c>", TestOptions.Script, 4947var tree = UsingTree(@"T ? a<b>.", TestOptions.Script, 5008var tree = UsingTree(@"T ? a<b>.c", TestOptions.Script, 5066var tree = UsingTree(@"T ? a<b>.c(", TestOptions.Script, 5135var tree = UsingTree(@"T ? a(", TestOptions.Script, 5187var tree = UsingTree(@"T ? a.b(", TestOptions.Script, 5247var tree = UsingTree(@"T ? m(c", TestOptions.Script, 5306var tree = UsingTree(@"T ? m(c,", TestOptions.Script, 5376var tree = UsingTree(@"T ? m(c:", TestOptions.Script, 5446var tree = UsingTree(@"T ? m(c?", TestOptions.Script, 5527var tree = UsingTree(@"T ? m(c? a", TestOptions.Script, 5605var tree = UsingTree(@"T ? m(c? a =", TestOptions.Script, 5694var tree = UsingTree(@"T ? m(c? a = b ?", TestOptions.Script, 5802var tree = UsingTree(@"T ? m()", TestOptions.Script, 5851var tree = UsingTree(@"T ? m(a)", TestOptions.Script, 5907var tree = UsingTree(@"T ? m();", TestOptions.Script, 5956var tree = UsingTree(@"T ? m(a);", TestOptions.Script, 6012var tree = UsingTree(@"T ? m(x: 1", TestOptions.Script, 6079var tree = UsingTree(@"T ? m(x: 1, y: a ? b : c)", TestOptions.Script, 6172var tree = UsingTree(@"T ? u => { } : v => { }", TestOptions.Script); 6225var tree = UsingTree(@"T ? u => (d ? e => 1 : f => 2)(3) : c => 2", TestOptions.Script); 6325var tree = UsingTree(@"T ? a ?", TestOptions.Script, 6388var tree = UsingTree(@"T ? a =", TestOptions.Script, 6440var tree = UsingTree(@"T ? a = b", TestOptions.Script, 6489var tree = UsingTree(@"T ? a = b : ", TestOptions.Script, 6535var tree = UsingTree(@"T ? m(out c", TestOptions.Script, 6595var tree = UsingTree(@"T ? m(ref c", TestOptions.Script, 6655var tree = UsingTree(@"T ? m(ref out", TestOptions.Script, 6733var tree = UsingTree(@"T ? m(ref out c", TestOptions.Script, 6808var tree = UsingTree(@"T ? m(this", TestOptions.Script, 6867var tree = UsingTree(@"T ? m(this.", TestOptions.Script, 6937var tree = UsingTree(@"T ? m(this<", TestOptions.Script, 7007var tree = UsingTree(@"T ? m(this[", TestOptions.Script, 7077var tree = UsingTree(@"T ? m(this a", TestOptions.Script, 7147var tree = UsingTree(@"T ? m(this(", TestOptions.Script, 7217var tree = UsingTree(@"T ? m(T[", TestOptions.Script, 7287var tree = UsingTree(@"T ? m(T[1", TestOptions.Script, 7364var tree = UsingTree(@"T ? m(T[1]", TestOptions.Script, 7438var tree = UsingTree(@"T ? a(T ? a =", TestOptions.Script, 7527var tree = UsingTree(@"T ? a(T)", TestOptions.Script, 7583var tree = UsingTree(@"T ? a(ref int.MaxValue)", TestOptions.Script, 7648var tree = UsingTree(@"T ? a(ref a,", TestOptions.Script, 7719var tree = UsingTree(@"T ? a(,", TestOptions.Script, 7792var tree = UsingTree(@"T ? a(T ? b[1] : b[2])", TestOptions.Script, 7965var tree = UsingTree(@"T ? m(a < b, c > d) :", TestOptions.Script, 8360var tree = UsingTree(@"from", TestOptions.Script); 8382var tree = UsingTree(@"from c", TestOptions.Script, 9177var tree = UsingTree("a < b,c.", TestOptions.Script, 9609var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.Script); 9633var tree = ParseAndValidate($"#!{command}", TestOptions.Script); 9644tree = ParseAndValidate($"#! {command}\r\n ", TestOptions.Script); 9660Console.WriteLine(""Hi!"");", TestOptions.Script); 9674ParseAndValidate(" #!/usr/bin/env csi", TestOptions.Script, 9677ParseAndValidate("\n#!/usr/bin/env csi", TestOptions.Script, 9680ParseAndValidate("\r\n#!/usr/bin/env csi", TestOptions.Script, 9683ParseAndValidate("#!/bin/sh\r\n#!/usr/bin/env csi", TestOptions.Script, 9686ParseAndValidate("a #!/usr/bin/env csi", TestOptions.Script, 9693ParseAndValidate("#/usr/bin/env csi", TestOptions.Script, 9700ParseAndValidate("# !/usr/bin/env csi", TestOptions.Script, 9707var tree = ParseAndValidate("//#!/usr/bin/env csi", TestOptions.Script); 9719ParseAndValidate("#!/usr/bin/env csi", TestOptions.Regular,
Parsing\SeparatedSyntaxListParsingTests.cs (3)
327", options: TestOptions.Regular, 673CreateCompilation(text, parseOptions: TestOptions.Regular6).VerifyDiagnostics( 735var 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); 193CreateCompilation(test, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 198UsingNode(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, 362namespace B;", TestOptions.RegularPreview); 396}", TestOptions.RegularPreview); 431}", TestOptions.RegularPreview); 466namespace B;", TestOptions.RegularPreview); 499namespace A;", TestOptions.RegularPreview); 531using X;", TestOptions.RegularPreview); 563namespace A;", TestOptions.RegularPreview); 593class X { }", TestOptions.RegularPreview); 623namespace A;", TestOptions.RegularPreview); 653extern 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)
25CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 33UsingExpression(test, options: TestOptions.Regular7); 72CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 80UsingExpression(test, options: TestOptions.Regular7); 119CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 127UsingExpression(test, options: TestOptions.Regular7); 153CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular7).VerifyDiagnostics( 161UsingExpression(test, options: TestOptions.Regular7,
Parsing\StatementParsingTests.cs (27)
178TestPostfixUnaryOperator(SyntaxKind.ExclamationToken, TestOptions.Regular8); 241var statement = this.ParseStatement(text, options: TestOptions.Regular); 2393var statement = this.ParseStatement(text, options: TestOptions.Regular8); 2421UsingStatement(@"using T a = b;", options: TestOptions.Regular8); 2488var statement = this.ParseStatement(text, options: TestOptions.Regular8); 2518UsingStatement("using public readonly var a = b;", TestOptions.Regular8, 2558UsingStatement(@"using var a = b;", options: TestOptions.Regular8); 2588UsingStatement(@"await using T a = b;", TestOptions.Regular8); 2620var statement = this.ParseStatement(text, 0, TestOptions.Regular8); 2651UsingStatement(@"await using var a = b;", TestOptions.Regular8); 2765UsingStatement(@"await var a = b;", TestOptions.Regular8, 2836var statement = this.ParseStatement(text, options: TestOptions.Regular8); 2873UsingStatement(@"using T a = b, c = d;", options: TestOptions.Regular8); 2939var statement = this.ParseStatement(text, options: TestOptions.Regular8); 2956UsingStatement(@"using var x = f ? a : b;", options: TestOptions.Regular8); 3000var statement = this.ParseStatement(text, options: TestOptions.Regular8); 3022var statement = this.ParseStatement(text, options: TestOptions.Regular8); 3039UsingStatement(@"using f ? x = a;", options: TestOptions.Regular8); 3094var statement = this.ParseStatement(text, options: TestOptions.Regular8); 3111UsingStatement("using f? x, y;", options: TestOptions.Regular8); 3142UsingStatement("using ref int x = ref y;", TestOptions.Regular8); 3180UsingStatement("using ref readonly int x = ref y;", TestOptions.Regular8); 3219UsingStatement("using ref var x = ref y;", TestOptions.Regular8); 3257UsingStatement("using ref var x = y;", TestOptions.Regular8); 3291UsingStatement("using readonly var x, y = ref z;", TestOptions.Regular8, 3506var tree = SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.Regular); 3531var tree = SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.Regular);
Parsing\SuppressNullableWarningExpressionParsingTests.cs (10)
79TestOptions.Regular8); 99TestOptions.Regular8); 123TestOptions.Regular8); 151TestOptions.Regular8); 188TestOptions.Regular8, 228TestOptions.Regular8); 793CreateCompilation(text, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 806CreateCompilation(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 817UsingNode(text, options: TestOptions.Regular7_3); 820UsingNode(text, options: TestOptions.Regular8);
Parsing\TopLevelStatementsParsingTests.cs (3)
1621var tree = UsingTree(test, TestOptions.RegularPreview.WithLanguageVersion(version)); 3193CreateCompilation(test, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 3217UsingTree(test, TestOptions.Regular8,
Parsing\UsingDirectiveParsingTests.cs (58)
18return SyntaxFactory.ParseSyntaxTree(text, options: options ?? TestOptions.RegularPreview); 659CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 771CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 860UsingTree(text, options: TestOptions.Regular11); 861CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 901CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 1108CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1156CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1231CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1304CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1379CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1466CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 2096CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 2173CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(); 2248CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 2329CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 2405CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 2473CreateCompilation(text, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 4036CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4050UsingTree(text, options: TestOptions.Regular11, 4086CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4097UsingTree(text, options: TestOptions.Regular11, 4133CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 4180CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 4224CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4241UsingTree(text, options: TestOptions.Regular11, 4285CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4299UsingTree(text, options: TestOptions.Regular11, 4343CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 4401CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 4456UsingTree(text, options: TestOptions.Regular11); 4457CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4499UsingTree(text, options: TestOptions.Regular11); 4500CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4540CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 4580CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 4616UsingTree(text, options: TestOptions.Regular11); 4617CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4700UsingTree(text, options: TestOptions.Regular11); 4701CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4782CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 4863CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 4941UsingTree(text, options: TestOptions.Regular11); 4942CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 5019UsingTree(text, options: TestOptions.Regular11); 5020CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 5097CreateCompilation(text, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 5177CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
Parsing\Utf8StringLiteralsParsingTests.cs (20)
114UsingExpression(@"""hello""u8", options: TestOptions.Regular11); 126UsingExpression(@"""hello""u8", options: TestOptions.Regular10); 150UsingExpression(@"@""hello""u8", options: TestOptions.Regular11); 162UsingExpression(@"@""hello""u8", options: TestOptions.Regular10); 186UsingExpression(@"""hello""U8", options: TestOptions.Regular11); 198UsingExpression(@"""hello""U8", options: TestOptions.Regular10); 222UsingExpression(@"@""hello""U8", options: TestOptions.Regular11); 234UsingExpression(@"@""hello""U8", options: TestOptions.Regular10); 594foreach (var options in new[] { TestOptions.RegularDefault, TestOptions.Regular11, TestOptions.Regular10 }) 612foreach (var options in new[] { TestOptions.RegularDefault, TestOptions.Regular11, TestOptions.Regular10 }) 748foreach (var options in new[] { TestOptions.RegularDefault, TestOptions.Regular11, TestOptions.Regular10 }) 770foreach (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)
40var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 84var comp = CreateCompilation(source, parseOptions: TestOptions.Regular13); 107var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 132var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 170var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 198var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 216var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 234var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 253var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 281var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 308var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 325var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 352var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 379var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 406var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 433var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 460var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 477var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 494var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 511var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 527var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 543var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 567var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 584var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 601var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 636var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 661var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 700var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 738var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 774var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 810var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 846var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 879var comp = CreateCompilation(source, parseOptions: TestOptions.Regular13); 902var comp = CreateCompilation(source, parseOptions: TestOptions.Regular13); 926var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 960var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 989var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1016var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1062var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1110var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1175var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1218comp = CreateCompilation(sourceB1, references: [refA], parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1238comp = CreateCompilation(sourceB2, references: [refA], parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1248comp = CreateCompilation(sourceB3, references: [refA], parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1258comp = CreateCompilation(sourceB4, references: [refA], parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1269comp = CreateCompilation(sourceB5, references: [refA], parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1306var parseOptions = TestOptions.Regular.WithLanguageVersion(languageVersion);
Syntax\Mocks\MockCSharpSyntaxTree.cs (1)
30Options = options ?? TestOptions.Regular;
Syntax\SyntaxAnnotationTests.cs (8)
133var tree = SyntaxFactory.ParseSyntaxTree(_allInOneCSharpCode, options: Test.Utilities.TestOptions.Regular); 143var tree = SyntaxFactory.ParseSyntaxTree(_allInOneCSharpCode, options: Test.Utilities.TestOptions.Regular); 306var tree = SyntaxFactory.ParseSyntaxTree(_allInOneCSharpCode, options: Test.Utilities.TestOptions.Regular); 314var tree = SyntaxFactory.ParseSyntaxTree(_allInOneCSharpCode, options: Test.Utilities.TestOptions.Regular); 322var tree = SyntaxFactory.ParseSyntaxTree(_allInOneCSharpCode, options: Test.Utilities.TestOptions.Regular); 330var tree = SyntaxFactory.ParseSyntaxTree(_allInOneCSharpCode, options: Test.Utilities.TestOptions.Regular); 338var tree1 = SyntaxFactory.ParseSyntaxTree(_allInOneCSharpCode, options: Test.Utilities.TestOptions.Regular); 339var tree2 = SyntaxFactory.ParseSyntaxTree(_allInOneCSharpCode, options: Test.Utilities.TestOptions.Regular);
Syntax\SyntaxFactoryTests.cs (6)
626var parsedWith8 = SyntaxFactory.ParseTypeName(type, options: TestOptions.Regular8); 629var parsedWithPreview = SyntaxFactory.ParseTypeName(type, options: TestOptions.Regular9); 632CreateCompilation(type, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 649CreateCompilation(type, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 662CreateCompilation(type, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 673CreateCompilation(type, parseOptions: TestOptions.Regular9).VerifyDiagnostics(
Syntax\SyntaxNodeTests.cs (3)
390testContainsHelper2(new[] { SyntaxKind.ShebangDirectiveTrivia }, SyntaxFactory.ParseCompilationUnit("#!command", options: TestOptions.Script)); 391testContainsHelper2(new[] { SyntaxKind.BadDirectiveTrivia }, SyntaxFactory.ParseCompilationUnit(" #!command", options: TestOptions.Script)); 392testContainsHelper2(new[] { SyntaxKind.BadDirectiveTrivia }, SyntaxFactory.ParseCompilationUnit("#!command", options: TestOptions.Regular));
Syntax\SyntaxRewriterTests.cs (10)
361var tree = SyntaxFactory.ParseSyntaxTree("System.Console.Write(\"Before\")", TestOptions.Script); 376var tree = SyntaxFactory.ParseSyntaxTree("m(a, b)", TestOptions.Script); 395var tree = SyntaxFactory.ParseSyntaxTree("m(a, b)", TestOptions.Script); 422var tree = SyntaxFactory.ParseSyntaxTree("private class C { }", options: TestOptions.Script); 442var tree = SyntaxFactory.ParseSyntaxTree("public class C { }", options: TestOptions.Script); 465var tree = SyntaxFactory.ParseSyntaxTree("/* c */ identifier", options: TestOptions.Script); 492var tree = SyntaxFactory.ParseSyntaxTree("/* c */ identifier", options: TestOptions.Script); 514var tree = SyntaxFactory.ParseSyntaxTree("private class C { }", options: TestOptions.Script); 527var tree = SyntaxFactory.ParseSyntaxTree("private class C { }", options: TestOptions.Script); 649var oldTree = CSharpTestBase.Parse(oldSource, options: TestOptions.RegularWithDocumentationComments);
Syntax\SyntaxTests.cs (4)
22Assert.False(SyntaxFactory.IsCompleteSubmission(SyntaxFactory.ParseSyntaxTree(code, options: TestOptions.Script))); 27Assert.True(SyntaxFactory.IsCompleteSubmission(SyntaxFactory.ParseSyntaxTree(code, options: TestOptions.Script))); 35SyntaxFactory.IsCompleteSubmission(SyntaxFactory.ParseSyntaxTree("", options: TestOptions.Regular))); 182var expr = SyntaxFactory.ParseExpression(source, options: TestOptions.Regular);
Syntax\SyntaxTreeTests.cs (31)
96var compilation = CSharpCompilation.Create("test", new[] { tree }, TargetFrameworkUtil.GetReferences(TargetFramework.Standard), TestOptions.DebugDll); 340UsingTree(test, TestOptions.Regular10); 364CreateCompilation(test, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 375UsingTree(test, TestOptions.Regular9); 399UsingTree(test, TestOptions.Regular10); 433CreateCompilation(test, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 447UsingTree(test, TestOptions.Regular9); 481UsingTree(test, TestOptions.Regular10); 506CreateCompilation(test, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 517UsingTree(test, TestOptions.Regular9); 542UsingTree(test, TestOptions.Regular10); 577CreateCompilation(test, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 591UsingTree(test, TestOptions.Regular9); 626UsingTree(test, TestOptions.RegularPreview); 658CreateCompilation(test, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 672UsingTree(test, TestOptions.Regular9); 704UsingTree(test, TestOptions.RegularPreview); 746CreateCompilation(test, parseOptions: TestOptions.Regular9).VerifyDiagnostics( 763UsingTree(test, TestOptions.Regular9); 808UsingTree(test, TestOptions.RegularPreview, 839UsingTree(test, TestOptions.RegularPreview, 873UsingTree(test, TestOptions.RegularPreview, 914UsingTree(test, TestOptions.RegularPreview); 948UsingTree(test, TestOptions.Regular, 975UsingTree(test, TestOptions.RegularPreview, 1003UsingTree(test, TestOptions.Regular, 1039UsingTree(test, TestOptions.RegularPreview, 1080UsingTree(test, TestOptions.RegularPreview, 1121UsingTree(test, TestOptions.RegularPreview); 1177UsingTree(test, TestOptions.RegularPreview); 1249UsingTree(test, TestOptions.RegularPreview);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (33)
CSharpTestBase.cs (27)
794return (options ?? TestOptions.ReleaseDll).WithNullableContextOptions(nullableContextOptions); 888options = options ?? TestOptions.ReleaseDll.WithOutputKind((expectedOutput != null) ? OutputKind.ConsoleApplication : OutputKind.DynamicallyLinkedLibrary); 1002options = options ?? (expectedOutput != null ? TestOptions.ReleaseExe : CheckForTopLevelStatements(source.GetSyntaxTrees(parseOptions))); 1075CreateCompilationWithMscorlib40(source, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute()), 1106var tree = Parse(text, options: options ?? TestOptions.RegularPreview); 1232parseOptions = parseOptions != null ? parseOptions.WithDocumentationMode(DocumentationMode.Diagnose) : TestOptions.RegularWithDocumentationComments; 1233options = (options ?? TestOptions.ReleaseDll).WithXmlReferenceResolver(XmlFileResolver.Default); 1310parseOptions = (parseOptions ?? TestOptions.RegularPreview).WithExperimental(experimentalFeature.Value); 1339var options = hasTopLevelStatements ? TestOptions.ReleaseExe : TestOptions.ReleaseDll; 1443Func<CSharpCompilation> createCompilationLambda = () => CSharpCompilation.Create(identity.Name, options: options ?? TestOptions.ReleaseDll, references: references, syntaxTrees: trees); 1466syntaxTree: Parse(source, options: parseOptions ?? TestOptions.Script), 1489syntaxTree: Parse(code, options: parseOptions ?? TestOptions.Script), 1499var compilationOptions = (expectedOutput != null) ? TestOptions.ReleaseExe : TestOptions.ReleaseDll; 1536var comp = CreateCompilation(source, options: TestOptions.ReleaseExe.WithAllowUnsafe(allowUnsafe)); 2062var compilation = CreateCompilation(testSrc, targetFramework: targetFramework, options: compilationOptions ?? TestOptions.ReleaseDll, parseOptions: parseOptions); 2261options: TestOptions.UnsafeReleaseDll); 2279options: TestOptions.UnsafeReleaseDll); 2298options: options ?? TestOptions.UnsafeReleaseDll, 2330var reference = CreateCompilation(new[] { TestSources.Index, TestSources.Range, TestSources.Span }, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2347var reference = CreateCompilation(new[] { TestSources.Span, TestSources.MemoryExtensions }, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2365var reference = CreateCompilation(new[] { TestSources.Index, TestSources.Range, TestSources.Span, TestSources.MemoryExtensions }, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2593new object[] { WithNullableEnable(TestOptions.DebugDll) }, 2594new object[] { WithNullableDisable(TestOptions.DebugDll) } 2605new object[] { WithNullableEnable(TestOptions.ReleaseDll) }, 2606new object[] { WithNullableDisable(TestOptions.ReleaseDll) }
CSharpTestSource.cs (1)
42var tree = SyntaxFactory.ParseSyntaxTree(stringText, options ?? TestOptions.RegularPreview, path);
DiagnosticTestUtilities.cs (2)
47var comp = CSharpTestBase.CreateCompilation(srcs, parseOptions: TestOptions.RegularPreview); 85var comp = CSharpCompilation.Create(assemblyName: "DiagnosticsTest", options: TestOptions.ReleaseDll, syntaxTrees: synTrees, references: refs);
MetadataTestHelpers.cs (1)
71var tc1 = CSharpCompilation.Create(assemblyName: "Dummy", options: options ?? TestOptions.ReleaseDll, syntaxTrees: new SyntaxTree[0], references: refs);
MockCSharpCompiler.cs (1)
68ResolveAnalyzersFromArguments(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)
31var comp = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseWinMD); 66var comp = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseWinMD); 108var comp = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseWinMD); 150var comp = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseWinMD); 181var verifier = CompileAndVerifyWithWinRt(source, options: TestOptions.ReleaseWinMD); 217var verifier = CompileAndVerifyWithWinRt(source, options: TestOptions.ReleaseWinMD); 281var verifier = CompileAndVerifyWithWinRt(source, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseWinMD); 374var verifier = CompileAndVerifyWithWinRt(source, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseWinMD); 463var verifier = CompileAndVerifyWithWinRt(source, options: TestOptions.ReleaseWinMD); 623var comp1 = CreateEmptyCompilation(source1, WinRtRefs, TestOptions.ReleaseWinMD, TestOptions.Regular, "Lib"); 627var comp2 = CreateEmptyCompilation(source2, WinRtRefs.Concat(new MetadataReference[] { new CSharpCompilationReference(comp1), serializationRef, SystemXmlRef }), TestOptions.ReleaseExe); 648var comp = CreateEmptyCompilation(source, WinRtRefs, TestOptions.ReleaseWinMD, TestOptions.Regular7); 668var comp = CreateEmptyCompilation(source, WinRtRefs, TestOptions.ReleaseWinMD);
CodeGen\WinRTCollectionTests.cs (3)
5190options: TestOptions.ReleaseExe.WithModuleName("MODULE")); 5693var comp = CreateCompilationWithWinRT(source, references: LegacyRefs, options: TestOptions.ReleaseExe); 7359var verifier = CompileAndVerifyWithWinRt(source, options: TestOptions.ReleaseWinMD);
Metadata\WinMdDumpTest.cs (1)
444var comp = CreateEmptyCompilation("", references, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
Metadata\WinMdEventTests.cs (11)
241options: TestOptions.DebugWinMD.WithAllowUnsafe(true), 313options: TestOptions.DebugModule.WithAllowUnsafe(true)); 2914var comp = CreateEmptyCompilation(source, WinRtRefs, TestOptions.CreateTestOptions(kind, OptimizationLevel.Debug)); 2958var comp = CreateEmptyCompilation(source, WinRtRefs.Concat(new[] { ilRef }), TestOptions.CreateTestOptions(kind, OptimizationLevel.Debug)); 3027var comp = CreateEmptyCompilation(source, WinRtRefs.Concat(new[] { interfaceILRef, baseILRef }), TestOptions.CreateTestOptions(kind, OptimizationLevel.Debug)); 3093var comp = CreateEmptyCompilation(source, WinRtRefs.Concat(new[] { ilRef }), TestOptions.CreateTestOptions(kind, OptimizationLevel.Debug)); 3288var comp = CreateEmptyCompilation(source, WinRtRefs, TestOptions.CreateTestOptions(kind, OptimizationLevel.Debug)); 3322var comp = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseWinMD); 3379CreateEmptyCompilation(source, WinRtRefs, TestOptions.ReleaseWinMD).VerifyDiagnostics( 3428CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseWinMD).VerifyEmitDiagnostics( 3556var comp = CreateEmptyCompilation("", WinRtRefs.Concat(new[] { ilRef }), TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
PdbTests.cs (2)
21var comp = CSharpCompilation.Create("Compilation", options: TestOptions.ReleaseDll); 119var ops = TestOptions.ReleaseDll;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
Emit\CompilationOutputFilesTests.cs (2)
31var compilation = CSharpTestBase.CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, assemblyName: "lib");
Emit\CompilationOutputsTests.cs (2)
54var compilation = CSharpTestBase.CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, assemblyName: "lib");
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (2)
CSharpFunctionResolverTests.cs (2)
420var compilationB = CreateCompilation(sourceB, assemblyName: nameB, options: TestOptions.DebugExe, references: new[] { refA }); 512var compilation = CreateCompilation(source, options: TestOptions.UnsafeDebugDll);
Microsoft.CodeAnalysis.Features.Test.Utilities (2)
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (2)
253var parseOptions = TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(); 261Compilation compilation = CSharpTestBase.CreateCompilation(trees.ToArray(), options: TestOptions.DebugDll, targetFramework: DefaultTargetFramework, assemblyName: assemblyName);
Microsoft.CodeAnalysis.Features.UnitTests (11)
EditAndContinue\EditAndContinueMethodDebugInfoReaderTests.cs (2)
63var tree = CSharpTestSource.Parse(source, path: "/a/c.cs", options: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), checksumAlgorithm: SourceHashAlgorithm.Sha1); 64var compilation = CSharpTestBase.CreateCompilationWithMscorlib40AndSystemCore(tree, options: TestOptions.DebugDll);
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (9)
67var sourceTreeA1 = SyntaxFactory.ParseSyntaxTree(SourceText.From(sourceBytesA1, sourceBytesA1.Length, encodingA, SourceHashAlgorithms.Default), TestOptions.Regular, sourceFileA.Path); 68var sourceTreeB1 = SyntaxFactory.ParseSyntaxTree(SourceText.From(sourceBytesB1, sourceBytesB1.Length, encodingB, SourceHashAlgorithms.Default), TestOptions.Regular, sourceFileB.Path); 69var sourceTreeC1 = SyntaxFactory.ParseSyntaxTree(SourceText.From(sourceBytesC1, sourceBytesC1.Length, encodingC, SourceHashAlgorithm.Sha1), TestOptions.Regular, sourceFileC.Path); 72var compilation = CSharpTestBase.CreateCompilation([sourceTreeA1, sourceTreeB1, sourceTreeC1], options: TestOptions.DebugDll, targetFramework: DefaultTargetFramework, assemblyName: "P"); 2484var compilationV1 = CSharpTestBase.CreateCompilation(sourceV1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: DefaultTargetFramework, assemblyName: "lib"); 3056var compilationA = CSharpTestBase.CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: DefaultTargetFramework, assemblyName: "A"); 3057var compilationB = CSharpTestBase.CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: DefaultTargetFramework, assemblyName: "B"); 3228var compilationV1 = CSharpTestBase.CreateCompilationWithMscorlib40(sourceV1, options: TestOptions.DebugDll, assemblyName: "lib");
Microsoft.CodeAnalysis.Rebuild.UnitTests (3)
CompilationOptionsReaderTests.cs (1)
45options: TestOptions.DebugModule,
CSharpRebuildTests.cs (1)
24options: TestOptions.DebugExe);
OptionRoundTripTests.cs (1)
27public static readonly CSharpCompilationOptions BaseCSharpCompilationOptions = TestOptions.DebugExe.WithDeterministic(true);
Microsoft.CodeAnalysis.UnitTests (2)
AnalyzerAssemblyLoaderTests.cs (1)
1322TestOptions.DebugDll.WithPublicSign(true).WithCryptoPublicKey(SigningTestHelpers.PublicKey));
Symbols\DocumentationCommentIdTests.cs (1)
173var comp = CreateCSharpCompilation(text, compilationOptions: TestOptions.UnsafeDebugDll).VerifyDiagnostics();
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (3)
ProjectSystemShim\VisualStudioCompilationOutputFilesTests.cs (3)
38var compilation = CSharpTestBase.CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, assemblyName: "lib"); 87var 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);