2387 references to RegularPreview
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (5)
src\Analyzers\CSharp\Tests\ImplementAbstractClass\ImplementAbstractClassTests.cs (4)
2159""", parseOptions: TestOptions.RegularPreview); 2190""", parseOptions: TestOptions.RegularPreview); 2221""", parseOptions: TestOptions.RegularPreview); 2250""", parseOptions: TestOptions.RegularPreview);
src\Analyzers\CSharp\Tests\UseAutoProperty\UseAutoPropertyTests.cs (1)
109""", new TestParameters(TestOptions.RegularPreview));
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 (85)
CodeGen\CodeGenAsyncMethodBuilderOverrideTests.cs (40)
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); 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); 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\CodeGenDeconstructTests.cs (14)
6172var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6231var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7147var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7198var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7460var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 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 10067var comp = CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: @"1 hello True 10114CreateCompilation(source, parseOptions: TestOptions.RegularPreview) 10163CreateCompilation(source, parseOptions: TestOptions.RegularPreview)
CodeGen\CodeGenFunctionPointersTests.cs (16)
39parseOptions: TestOptions.RegularPreview, 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); 7563var allInCoreLib = CreateEmptyCompilation(source1 + source2, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 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); 7652var comp1 = CreateEmptyCompilation(source2, references: new[] { coreLib.EmitToImageReference() }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll);
CodeGen\CodeGenOperators.cs (4)
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\CodeGenTupleEqualityTests.cs (1)
1662comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview);
CodeGen\CodeGenTupleTest.cs (1)
5418CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(
CodeGen\PatternTests.cs (1)
6465var verifier = CompileAndVerify(source, expectedOutput: "0123233", options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview);
CodeGen\SwitchTests.cs (7)
2900parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch(), expectedOutput: "True"); 3349parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch(), 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(), 8092var comp = CreateCompilation(text, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch(), 8223comp = CreateCompilation(text, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch());
Emit\DynamicAnalysis\DynamicInstrumentationTests.cs (1)
2749var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (22)
CodeGen\CodeGenLengthBasedSwitchTests.cs (15)
267comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 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\IndexAndRangeTests.cs (7)
57var comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 233var comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 275var comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 1567var comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 1759var comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 1976comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2197var comp = CreateCompilationWithIndexAndRange(source, parseOptions: useCsharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (198)
Attributes\AttributeTests.cs (21)
6295compilation = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 6355compilation = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 7955var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 8009comp = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource, parseOptions: TestOptions.RegularPreview); 9030comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 9091comp = CreateCompilationWithILAndMscorlib40(source, il, parseOptions: TestOptions.RegularPreview); 9141comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 9172var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 9199var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 10236var libRef = CreateCompilation(lib_cs, parseOptions: TestOptions.RegularPreview).EmitToImageReference(); 10238var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, references: new[] { libRef }); 10259var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 10286var libRef = CreateCompilation(lib_cs, parseOptions: TestOptions.RegularPreview).EmitToImageReference(); 10288var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, references: new[] { libRef }); 10312var libRef = CreateCompilation(lib_cs, parseOptions: TestOptions.RegularPreview).EmitToImageReference(); 10314var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, references: new[] { libRef }); 10338var libRef = CreateCompilation(lib_cs, parseOptions: TestOptions.RegularPreview).EmitToImageReference(); 10340var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, references: new[] { libRef }); 10360var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 10385var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 10421var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview);
Attributes\AttributeTests_Security.cs (1)
804var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview);
Attributes\AttributeTests_WellKnownAttributes.cs (5)
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); 13553var comp = CreateCompilation(new[] { sourceAttribute, sourceA }, parseOptions: TestOptions.RegularPreview); 13598var comp = CreateCompilation(new[] { sourceAttribute, sourceA }, parseOptions: TestOptions.RegularPreview);
FieldKeywordTests.cs (2)
10486var parseOptions = TestOptions.RegularPreview; 10520var parseOptions = TestOptions.RegularPreview;
FirstClassSpanTests.cs (4)
6283verifyWithMissing(missingRosHelper, TestOptions.RegularPreview); 6284verifyWithMissing(missingSpanHelper, TestOptions.RegularPreview, expectedDiagnostics); 6356verifyWithMissing(missingRosHelper, TestOptions.RegularPreview, expectedDiagnostics); 6357verifyWithMissing(missingSpanHelper, TestOptions.RegularPreview);
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 (1)
5934CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: "c").VerifyDiagnostics(expectedDiagnostic);
RefReadonlyParameterTests.cs (4)
7096var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics( 7124var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics( 7260CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(expectedWarnings); 7278CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(expectedDiagnostics);
Semantics\CollectionExpressionTests.cs (26)
838CompileAndVerify([source, s_collectionExtensions], parseOptions: TestOptions.RegularPreview, expectedOutput: expectedOutput); 1046CompileAndVerify([source, s_collectionExtensions], parseOptions: TestOptions.RegularPreview, 1411verify(TestOptions.RegularPreview, expectedType13); 1928parseOptions: TestOptions.RegularPreview, 1966parseOptions: TestOptions.RegularPreview, 2078comp = CreateCompilation(new[] { source, s_collectionExtensionsWithSpan }, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.Net80); 2212parseOptions: TestOptions.RegularPreview, 2242CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: expectedOutput).VerifyDiagnostics(); 2334CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: expectedOutput); 2369parseOptions: TestOptions.RegularPreview, 2415parseOptions: TestOptions.RegularPreview, 2498parseOptions: TestOptions.RegularPreview, 2589parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(expectedDiagnostics); 2667parseOptions: TestOptions.RegularPreview, 2776parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(expectedDiagnostics); 2850parseOptions: TestOptions.RegularPreview, 2942parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(expectedDiagnostics); 4973var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute()); 5037var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute()); 5085var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute()); 5928var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute()); 6006var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute()); 9280var parseOptions = TestOptions.RegularPreview; 9311var parseOptions = TestOptions.RegularPreview; 20970var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute()); 21118var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute());
Semantics\InlineArrayTests.cs (1)
23340foreach (var parseOptions in new[] { TestOptions.Regular12, TestOptions.Regular13, TestOptions.RegularPreview })
Semantics\LockTests.cs (1)
1637CompileAndVerify(sources, parseOptions: TestOptions.RegularPreview, expectedOutput: expectedOutput,
Semantics\ParamsCollectionTests.cs (10)
3976var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4023var comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4070var comp = CreateCompilation(src2 + src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4090var comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4138var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4185var comp = CreateCompilation(src2 + src1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4205var comp2 = CreateCompilation(src2, references: [comp1Ref], options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4309var comp = CreateCompilation(src2 + src1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4329var comp2 = CreateCompilation(src2, references: [comp1Ref], options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4405var comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview);
Semantics\PatternMatchingTests.cs (54)
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) 7670parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 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); 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) 9268parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch()); 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); 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) 11008comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview); 11343comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview); 12299CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview) 12321CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview) 12339CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview) 12353CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview)
Semantics\PrimaryConstructorTests.cs (29)
3189var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 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)); 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); 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);
Semantics\RecordTests.cs (36)
25parseOptions: TestOptions.RegularPreview); 34parseOptions: TestOptions.RegularPreview, 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); 7187var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 28179var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 29165var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29190var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29215var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 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); 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); 29648comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 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);
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
EndToEndTests.cs (1)
796var parseOptions = TestOptions.RegularPreview;
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (10)
src\Analyzers\CSharp\Tests\ImplementAbstractClass\ImplementAbstractClassTests.cs (4)
2159""", parseOptions: TestOptions.RegularPreview); 2190""", parseOptions: TestOptions.RegularPreview); 2221""", parseOptions: TestOptions.RegularPreview); 2250""", parseOptions: TestOptions.RegularPreview);
src\Analyzers\CSharp\Tests\UseAutoProperty\UseAutoPropertyTests.cs (1)
109""", new TestParameters(TestOptions.RegularPreview));
UsePatternCombinators\CSharpUsePatternCombinatorsDiagnosticAnalyzerTests.cs (1)
25private static readonly ParseOptions CSharp9 = TestOptions.RegularPreview.WithLanguageVersion(LanguageVersion.CSharp9);
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 (42)
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_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);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (664)
Semantics\AnonymousFunctionTests.cs (3)
21=> CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(expected); 26parseOptions: TestOptions.RegularPreview, 41parseOptions: TestOptions.RegularPreview,
Semantics\ConstantTests.cs (8)
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); 3977", parseOptions: TestOptions.RegularPreview, expectedOutput: "", symbolValidator: module => 3998", parseOptions: TestOptions.RegularPreview, expectedOutput: "", symbolValidator: module =>
Semantics\DeconstructionTests.cs (1)
4090parseOptions: TestOptions.RegularPreview);
Semantics\DelegateTypeTests.cs (62)
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); 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); 2075comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2132comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2197comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2257comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2310comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2349comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2392comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2439comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2486comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2534comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2582comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2631comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2680comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2721comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2773comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 3072var comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 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); 3598var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 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: 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); 4757CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: 10947var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 10970var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 11757var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 15618var verifier = CompileAndVerify(source, parseOptions: TestOptions.RegularPreview);
Semantics\DynamicTests.cs (14)
3037CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(source, options: TestOptions.RegularPreview) }).VerifyDiagnostics( 4492var comp1 = CreateCompilationWithMscorlib461AndCSharp(source1, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4528var comp2 = CreateCompilationWithMscorlib461AndCSharp(source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4948var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.Regular13; 5072var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.Regular13; 5195var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.Regular13; 5319var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.Regular13; 5451var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.Regular13; 5636var parseOptions = version switch { 12 => TestOptions.Regular12, 13 => TestOptions.Regular13, _ => TestOptions.RegularPreview }; 5668var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.Regular13; 5802var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.Regular13; 5994var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.Regular13; 6117var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.Regular13; 6446var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.Regular13;
Semantics\FunctionPointerTests.cs (2)
105comp = CreateCompilationWithFunctionPointers(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 150comp = CreateCompilationWithFunctionPointers(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview);
Semantics\GlobalUsingDirectiveTests.cs (259)
86CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(); 108CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 134CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 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); 5006CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(); 5022CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview).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\ImplicitObjectCreationTests.cs (1)
2065var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe);
Semantics\LambdaTests.cs (47)
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); 4949var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 4977parseOptions: TestOptions.RegularPreview); 5016var comp = CreateCompilation(new[] { source, NotNullWhenAttributeDefinition }, parseOptions: TestOptions.RegularPreview); 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); 6038comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 6072CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: 6124comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 6150CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: @"System.Int64"); 6170var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview);
Semantics\LocalFunctionTests.cs (1)
2442CreateCompilation(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview.WithFeature("run-nullable-analysis", "never")).VerifyDiagnostics(expectedDiagnostics);
Semantics\NameOfTests.cs (19)
1816CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: expectedOutput).VerifyDiagnostics(); 1850CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: expectedOutput).VerifyDiagnostics(); 1906CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: expectedOutput).VerifyDiagnostics(); 1947CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: expectedOutput).VerifyDiagnostics(); 1967CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: "Length").VerifyDiagnostics(); 1992CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(expectedDiagnostics); 2011CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: "Length").VerifyDiagnostics(); 2037CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: "Length").VerifyDiagnostics(); 2056CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: "StaticProp").VerifyDiagnostics(); 2075CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: "StaticProp").VerifyDiagnostics(); 2096CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: "M").VerifyDiagnostics(); 2115CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: "StaticMethod").VerifyDiagnostics(); 2228CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: "StaticMethod").VerifyDiagnostics(); 2249CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: "Length").VerifyDiagnostics(); 2271CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: "StaticMethod").VerifyDiagnostics(); 2296CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: "Prop").VerifyDiagnostics(); 2321CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, expectedOutput: "Prop").VerifyDiagnostics(); 2345CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(expectedDiagnostics); 2366CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(expectedDiagnostics);
Semantics\NativeIntegerTests.cs (4)
3794comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(); 3821comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.RegularPreview); 3851comp = CreateCompilation(source1, parseOptions: TestOptions.RegularPreview); 3897comp = CreateCompilation(source1, parseOptions: TestOptions.RegularPreview);
Semantics\NullableReferenceTypesTests.cs (6)
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);
Semantics\RawInterpolationTests.cs (1)
1000CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(
Semantics\RawInterpolationTests_Handler.cs (5)
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); 3434var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }, parseOptions: TestOptions.RegularPreview); 3802comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.NetCoreApp); 4097comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview);
Semantics\RecordStructTests.cs (57)
28parseOptions: TestOptions.RegularPreview); 37parseOptions: TestOptions.RegularPreview, 209var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 659var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview, options: TestOptions.UnsafeDebugDll); 1672var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview, options: TestOptions.UnsafeDebugExe); 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); 3235var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 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); 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); 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( 8013CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics(); 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); 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, 10595var comp = CreateCompilation(src, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularPreview);
Semantics\RefFieldTests.cs (1)
8328var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithFeature("peverify-compat"), targetFramework: TargetFramework.Net70);
Semantics\TargetTypedDefaultTests.cs (1)
273var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe);
Semantics\UninitializedNonNullableFieldTests.cs (2)
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 (12)
13500comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 13503comp = CreateCompilation(csharp, parseOptions: TestOptions.RegularPreview); 13542comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 13545comp = CreateCompilation(csharp, parseOptions: TestOptions.RegularPreview); 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); 13721comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 13866comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 13909comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 13942comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview);
SourceGeneration\GeneratorDriverTests.cs (49)
1346var parseOptions = TestOptions.RegularPreview; 1441var parseOptions = TestOptions.RegularPreview; 1466var parseOptions = TestOptions.RegularPreview; 1492var parseOptions = TestOptions.RegularPreview; 1534var parseOptions = TestOptions.RegularPreview; 1563var parseOptions = TestOptions.RegularPreview; 1596var parseOptions = TestOptions.RegularPreview; 1617var parseOptions = TestOptions.RegularPreview; 1679var parseOptions = TestOptions.RegularPreview; 1723var parseOptions = TestOptions.RegularPreview; 1942var parseOptions = TestOptions.RegularPreview; 1978var parseOptions = TestOptions.RegularPreview; 2134var parseOptions = TestOptions.RegularPreview; 2193var parseOptions = TestOptions.RegularPreview; 2240var parseOptions = TestOptions.RegularPreview; 2302var parseOptions = TestOptions.RegularPreview; 2383var parseOptions = TestOptions.RegularPreview; 2455var parseOptions = TestOptions.RegularPreview; 2483var parseOptions = TestOptions.RegularPreview; 2546var parseOptions = TestOptions.RegularPreview; 2612var parseOptions = TestOptions.RegularPreview; 2696var parseOptions = TestOptions.RegularPreview; 2883var parseOptions = TestOptions.RegularPreview; 3078var parseOptions = TestOptions.RegularPreview; 3144var parseOptions = TestOptions.RegularPreview; 3190var parseOptions = TestOptions.RegularPreview; 3220var parseOptions = TestOptions.RegularPreview; 3278var parseOptions = TestOptions.RegularPreview; 3304var parseOptions = TestOptions.RegularPreview; 3337var parseOptions = TestOptions.RegularPreview; 3383var parseOptions = TestOptions.RegularPreview; 3411var parseOptions = TestOptions.RegularPreview; 3442var parseOptions = TestOptions.RegularPreview; 3490var parseOptions = TestOptions.RegularPreview; 3534var parseOptions = TestOptions.RegularPreview; 3565var parseOptions = TestOptions.RegularPreview; 3609var parseOptions = TestOptions.RegularPreview; 3641var parseOptions = TestOptions.RegularPreview; 3675var parseOptions = TestOptions.RegularPreview; 3704var parseOptions = TestOptions.RegularPreview; 3735var parseOptions = TestOptions.RegularPreview; 3767var parseOptions = TestOptions.RegularPreview; 3800var parseOptions = TestOptions.RegularPreview; 3829var parseOptions = TestOptions.RegularPreview; 3859var parseOptions = TestOptions.RegularPreview; 3891var parseOptions = TestOptions.RegularPreview; 4005var parseOptions = TestOptions.RegularPreview; 4067var parseOptions = TestOptions.RegularPreview; 4149var parseOptions = TestOptions.RegularPreview.WithFeature("InterceptorsNamespaces", "global");
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.cs (46)
67var parseOptions = TestOptions.RegularPreview; 109var parseOptions = TestOptions.RegularPreview; 146var parseOptions = TestOptions.RegularPreview; 176var parseOptions = TestOptions.RegularPreview; 206var parseOptions = TestOptions.RegularPreview; 235var parseOptions = TestOptions.RegularPreview; 262var parseOptions = TestOptions.RegularPreview; 290var parseOptions = TestOptions.RegularPreview; 319var parseOptions = TestOptions.RegularPreview; 355var parseOptions = TestOptions.RegularPreview; 394var parseOptions = TestOptions.RegularPreview; 423var parseOptions = TestOptions.RegularPreview; 456var parseOptions = TestOptions.RegularPreview; 489var parseOptions = TestOptions.RegularPreview; 521var parseOptions = TestOptions.RegularPreview; 553var parseOptions = TestOptions.RegularPreview; 584var parseOptions = TestOptions.RegularPreview; 615var parseOptions = TestOptions.RegularPreview; 648var parseOptions = TestOptions.RegularPreview; 679var parseOptions = TestOptions.RegularPreview; 708var parseOptions = TestOptions.RegularPreview; 742var parseOptions = TestOptions.RegularPreview; 771var parseOptions = TestOptions.RegularPreview; 808var parseOptions = TestOptions.RegularPreview; 845var parseOptions = TestOptions.RegularPreview; 882var parseOptions = TestOptions.RegularPreview; 919var parseOptions = TestOptions.RegularPreview; 956var parseOptions = TestOptions.RegularPreview; 992var parseOptions = TestOptions.RegularPreview; 1019var parseOptions = TestOptions.RegularPreview; 1056var parseOptions = TestOptions.RegularPreview; 1094var parseOptions = TestOptions.RegularPreview; 1132var parseOptions = TestOptions.RegularPreview; 1170var parseOptions = TestOptions.RegularPreview; 1208var parseOptions = TestOptions.RegularPreview; 1250var parseOptions = TestOptions.RegularPreview; 1329var parseOptions = TestOptions.RegularPreview; 1375var parseOptions = TestOptions.RegularPreview; 1413var parseOptions = TestOptions.RegularPreview; 1460var parseOptions = TestOptions.RegularPreview; 1507var parseOptions = TestOptions.RegularPreview; 1550var parseOptions = TestOptions.RegularPreview; 1598var parseOptions = TestOptions.RegularPreview; 1653var parseOptions = TestOptions.RegularPreview; 1710var parseOptions = TestOptions.RegularPreview; 1764var parseOptions = TestOptions.RegularPreview;
SourceGeneration\GeneratorDriverTests_Attributes_SimpleName.cs (46)
38var parseOptions = TestOptions.RegularPreview; 70var parseOptions = TestOptions.RegularPreview; 96var parseOptions = TestOptions.RegularPreview; 121var parseOptions = TestOptions.RegularPreview; 146var parseOptions = TestOptions.RegularPreview; 174var parseOptions = TestOptions.RegularPreview; 206var parseOptions = TestOptions.RegularPreview; 238var parseOptions = TestOptions.RegularPreview; 272var parseOptions = TestOptions.RegularPreview; 305var parseOptions = TestOptions.RegularPreview; 331var parseOptions = TestOptions.RegularPreview; 357var parseOptions = TestOptions.RegularPreview; 383var parseOptions = TestOptions.RegularPreview; 416var parseOptions = TestOptions.RegularPreview; 444var parseOptions = TestOptions.RegularPreview; 472var parseOptions = TestOptions.RegularPreview; 499var parseOptions = TestOptions.RegularPreview; 530var parseOptions = TestOptions.RegularPreview; 563var parseOptions = TestOptions.RegularPreview; 595var parseOptions = TestOptions.RegularPreview; 627var parseOptions = TestOptions.RegularPreview; 655var parseOptions = TestOptions.RegularPreview; 683var parseOptions = TestOptions.RegularPreview; 711var parseOptions = TestOptions.RegularPreview; 740var parseOptions = TestOptions.RegularPreview; 767var parseOptions = TestOptions.RegularPreview; 794var parseOptions = TestOptions.RegularPreview; 825var parseOptions = TestOptions.RegularPreview; 857var parseOptions = TestOptions.RegularPreview; 886var parseOptions = TestOptions.RegularPreview; 914var parseOptions = TestOptions.RegularPreview; 942var parseOptions = TestOptions.RegularPreview; 971var parseOptions = TestOptions.RegularPreview; 1001var parseOptions = TestOptions.RegularPreview; 1041var parseOptions = TestOptions.RegularPreview; 1089var parseOptions = TestOptions.RegularPreview; 1142var parseOptions = TestOptions.RegularPreview; 1193var parseOptions = TestOptions.RegularPreview; 1248var parseOptions = TestOptions.RegularPreview; 1301var parseOptions = TestOptions.RegularPreview; 1359var parseOptions = TestOptions.RegularPreview; 1407var parseOptions = TestOptions.RegularPreview; 1452var parseOptions = TestOptions.RegularPreview; 1503var parseOptions = TestOptions.RegularPreview; 1554var parseOptions = TestOptions.RegularPreview; 1615var parseOptions = TestOptions.RegularPreview;
SourceGeneration\SyntaxAwareGeneratorTests.cs (17)
851var parseOptions = TestOptions.RegularPreview; 891var parseOptions = TestOptions.RegularPreview; 933var parseOptions = TestOptions.RegularPreview; 1010var parseOptions = TestOptions.RegularPreview; 1085var parseOptions = TestOptions.RegularPreview; 1166var parseOptions = TestOptions.RegularPreview; 1216var parseOptions = TestOptions.RegularPreview; 1299var parseOptions = TestOptions.RegularPreview; 1376var parseOptions = TestOptions.RegularPreview; 1509var parseOptions = TestOptions.RegularPreview; 1564var parseOptions = TestOptions.RegularPreview; 1613var parseOptions = TestOptions.RegularPreview; 1674var parseOptions = TestOptions.RegularPreview; 1733var parseOptions = TestOptions.RegularPreview; 1786var parseOptions = TestOptions.RegularPreview; 1980var parseOptions = TestOptions.RegularPreview; 2006var parseOptions = TestOptions.RegularPreview;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1115)
Compilation\UsedAssembliesTests.cs (2)
3834Compilation comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, references: references, options: TestOptions.UnsafeDebugDll); 3841AssertUsedAssemblyReferences(source, references, references, parseOptions: TestOptions.RegularPreview, options: TestOptions.UnsafeDebugDll);
DocumentationComments\CrefTests.cs (4)
6740verify(CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics()); 6797verify(CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics)); 6840verify(CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics)); 6890verify(CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics));
Symbols\CheckedUserDefinedOperatorsTests.cs (154)
34var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 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)); 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)); 683var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.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)); 855var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 893foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 924foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 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)); 1104var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 1157var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 1207var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 1251var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 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)); 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)); 1880var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 1924var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.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)); 2108var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2156foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 2214var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2272var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2366var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.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); 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)); 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)); 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 }) 3208var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 3251var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3301var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3422var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 3442var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 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); 3835var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 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); 4217var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 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); 4678var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 4728var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 4779var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 4797var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 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); 5228var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 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); 5696var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 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); 6326var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 6411var compilation1 = CreateCompilationWithCSharp(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6431var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 6526var compilation1 = CreateCompilationWithCSharp(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6550var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 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\DefaultInterfaceImplementationTests.cs (327)
118parseOptions: TestOptions.RegularPreview); 169parseOptions: TestOptions.RegularPreview, 288parseOptions: TestOptions.RegularPreview, 428parseOptions: TestOptions.RegularPreview, 579parseOptions: TestOptions.RegularPreview, 677parseOptions: TestOptions.RegularPreview, 779parseOptions: TestOptions.RegularPreview, 881parseOptions: TestOptions.RegularPreview, 968parseOptions: TestOptions.RegularPreview, 1043parseOptions: TestOptions.RegularPreview, 1122parseOptions: TestOptions.RegularPreview, 1201parseOptions: TestOptions.RegularPreview, 1280parseOptions: TestOptions.RegularPreview, 1364parseOptions: TestOptions.RegularPreview, 1452parseOptions: TestOptions.RegularPreview, 1540parseOptions: TestOptions.RegularPreview, 1586parseOptions: TestOptions.RegularPreview); 1667parseOptions: TestOptions.RegularPreview); 2580parseOptions: TestOptions.RegularPreview, 2634parseOptions: TestOptions.RegularPreview, 2651parseOptions: TestOptions.RegularPreview, 3007parseOptions: TestOptions.RegularPreview, 3109parseOptions: TestOptions.RegularPreview, 3134parseOptions: TestOptions.RegularPreview, 3198parseOptions: TestOptions.RegularPreview, 3232parseOptions: TestOptions.RegularPreview, 3296parseOptions: TestOptions.RegularPreview, 3321parseOptions: TestOptions.RegularPreview, 3360parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview, 3449parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview, 3515parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview, 3600parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview, 3723parseOptions: TestOptions.RegularPreview, 3865parseOptions: TestOptions.RegularPreview, 3983parseOptions: TestOptions.RegularPreview, 4135parseOptions: TestOptions.RegularPreview, 4226parseOptions: TestOptions.RegularPreview, skipUsesIsNullable: true); 4279parseOptions: TestOptions.RegularPreview); 4394parseOptions: TestOptions.RegularPreview, 4407parseOptions: TestOptions.RegularPreview); 4471parseOptions: TestOptions.RegularPreview, 4787parseOptions: TestOptions.RegularPreview, 6355parseOptions: TestOptions.RegularPreview, 6369parseOptions: TestOptions.RegularPreview, 6542parseOptions: TestOptions.RegularPreview, 6599parseOptions: TestOptions.RegularPreview, 6620parseOptions: TestOptions.RegularPreview, 6944parseOptions: TestOptions.RegularPreview, 7047parseOptions: TestOptions.RegularPreview, 7138parseOptions: TestOptions.RegularPreview, 7245parseOptions: TestOptions.RegularPreview, 7310parseOptions: TestOptions.RegularPreview, skipUsesIsNullable: true); 7345parseOptions: TestOptions.RegularPreview); 7418parseOptions: TestOptions.RegularPreview, 7431parseOptions: TestOptions.RegularPreview); 7478parseOptions: TestOptions.RegularPreview, 7498parseOptions: TestOptions.RegularPreview); 7697parseOptions: TestOptions.RegularPreview, 9266parseOptions: TestOptions.RegularPreview, 9456parseOptions: TestOptions.RegularPreview, 9463parseOptions: TestOptions.RegularPreview, 9482parseOptions: TestOptions.RegularPreview, 32960parseOptions: TestOptions.RegularPreview, 32976parseOptions: TestOptions.RegularPreview, 32992parseOptions: TestOptions.RegularPreview, 33215parseOptions: TestOptions.RegularPreview, 33244parseOptions: TestOptions.RegularPreview, 33358parseOptions: TestOptions.RegularPreview, skipUsesIsNullable: true); 33388parseOptions: TestOptions.RegularPreview); 33434parseOptions: TestOptions.RegularPreview, 33482parseOptions: TestOptions.RegularPreview, 33531parseOptions: TestOptions.RegularPreview, 33589parseOptions: TestOptions.RegularPreview, 33651parseOptions: TestOptions.RegularPreview, 33715parseOptions: TestOptions.RegularPreview, 33761parseOptions: TestOptions.RegularPreview, 33833parseOptions: TestOptions.RegularPreview, skipUsesIsNullable: true); 33885parseOptions: TestOptions.RegularPreview, 33981parseOptions: TestOptions.RegularPreview, 34142parseOptions: TestOptions.RegularPreview, 34158parseOptions: TestOptions.RegularPreview, 34174parseOptions: TestOptions.RegularPreview, 34189parseOptions: TestOptions.RegularPreview, 34195parseOptions: TestOptions.RegularPreview, 34211parseOptions: TestOptions.RegularPreview, 34283parseOptions: TestOptions.RegularPreview, 34464parseOptions: TestOptions.RegularPreview, 34502parseOptions: TestOptions.RegularPreview, 34541parseOptions: TestOptions.RegularPreview, 34586parseOptions: TestOptions.RegularPreview, 34684parseOptions: TestOptions.RegularPreview, 34690parseOptions: TestOptions.RegularPreview, 34704parseOptions: TestOptions.RegularPreview, 34798parseOptions: TestOptions.RegularPreview, 34895parseOptions: TestOptions.RegularPreview, 34913parseOptions: TestOptions.RegularPreview, 34969parseOptions: TestOptions.RegularPreview, 34974parseOptions: TestOptions.RegularPreview, 34998parseOptions: TestOptions.RegularPreview, 35060parseOptions: TestOptions.RegularPreview, 35065parseOptions: TestOptions.RegularPreview, 35093parseOptions: TestOptions.RegularPreview, 35161parseOptions: TestOptions.RegularPreview, 35166parseOptions: TestOptions.RegularPreview, 35191parseOptions: TestOptions.RegularPreview, 35257parseOptions: TestOptions.RegularPreview, 35262parseOptions: TestOptions.RegularPreview, 35286parseOptions: TestOptions.RegularPreview, 35352parseOptions: TestOptions.RegularPreview, 35367parseOptions: TestOptions.RegularPreview, 35463parseOptions: TestOptions.RegularPreview, 35470parseOptions: TestOptions.RegularPreview, 35572parseOptions: TestOptions.RegularPreview, 35579parseOptions: TestOptions.RegularPreview, 35685parseOptions: TestOptions.RegularPreview, 35692parseOptions: TestOptions.RegularPreview, 35798parseOptions: TestOptions.RegularPreview, 35805parseOptions: TestOptions.RegularPreview, 35900parseOptions: TestOptions.RegularPreview, 35911parseOptions: TestOptions.RegularPreview, 36009parseOptions: TestOptions.RegularPreview, 36016parseOptions: TestOptions.RegularPreview, 36103parseOptions: TestOptions.RegularPreview, 36114parseOptions: TestOptions.RegularPreview, 36221parseOptions: TestOptions.RegularPreview, 36228parseOptions: TestOptions.RegularPreview, 36387parseOptions: TestOptions.RegularPreview, 36405parseOptions: TestOptions.RegularPreview, 36422parseOptions: TestOptions.RegularPreview, 36430parseOptions: TestOptions.RegularPreview, 36575parseOptions: TestOptions.RegularPreview, 36593parseOptions: TestOptions.RegularPreview, 36610parseOptions: TestOptions.RegularPreview, 36618parseOptions: TestOptions.RegularPreview, 36763parseOptions: TestOptions.RegularPreview, 36781parseOptions: TestOptions.RegularPreview, 36798parseOptions: TestOptions.RegularPreview, 36806parseOptions: TestOptions.RegularPreview, 36860parseOptions: TestOptions.RegularPreview, 36987parseOptions: TestOptions.RegularPreview, 37003parseOptions: TestOptions.RegularPreview, 37019parseOptions: TestOptions.RegularPreview, 37376parseOptions: TestOptions.RegularPreview, skipUsesIsNullable: true); 37393parseOptions: TestOptions.RegularPreview); 37523parseOptions: TestOptions.RegularPreview, 37606parseOptions: TestOptions.RegularPreview, 37650parseOptions: TestOptions.RegularPreview, 37716parseOptions: TestOptions.RegularPreview, 37953parseOptions: TestOptions.RegularPreview, 37996parseOptions: TestOptions.RegularPreview, skipUsesIsNullable: true); 38003parseOptions: TestOptions.RegularPreview, 38402parseOptions: TestOptions.RegularPreview, 38421parseOptions: TestOptions.RegularPreview, 38439parseOptions: TestOptions.RegularPreview, 38447parseOptions: TestOptions.RegularPreview, 38742parseOptions: TestOptions.RegularPreview, 38801parseOptions: TestOptions.RegularPreview, 38839parseOptions: TestOptions.RegularPreview, 38881parseOptions: TestOptions.RegularPreview, 38910parseOptions: TestOptions.RegularPreview, 39003parseOptions: TestOptions.RegularPreview, 39009parseOptions: TestOptions.RegularPreview, 39016parseOptions: TestOptions.RegularPreview, 39107parseOptions: TestOptions.RegularPreview, 39176parseOptions: TestOptions.RegularPreview, 39194parseOptions: TestOptions.RegularPreview, 39493parseOptions: TestOptions.RegularPreview, 39511parseOptions: TestOptions.RegularPreview, 40015parseOptions: TestOptions.RegularPreview, 40033parseOptions: TestOptions.RegularPreview, 40051parseOptions: TestOptions.RegularPreview, 40483parseOptions: TestOptions.RegularPreview, skipUsesIsNullable: true); 40513parseOptions: TestOptions.RegularPreview); 40573parseOptions: TestOptions.RegularPreview, 40616parseOptions: TestOptions.RegularPreview, 40664parseOptions: TestOptions.RegularPreview, 40724parseOptions: TestOptions.RegularPreview, 40788parseOptions: TestOptions.RegularPreview, 40854parseOptions: TestOptions.RegularPreview, 40928parseOptions: TestOptions.RegularPreview, 41070parseOptions: TestOptions.RegularPreview, 41088parseOptions: TestOptions.RegularPreview, 41106parseOptions: TestOptions.RegularPreview, 41123parseOptions: TestOptions.RegularPreview, 41129parseOptions: TestOptions.RegularPreview, 41142parseOptions: TestOptions.RegularPreview, 41239parseOptions: TestOptions.RegularPreview, 41463parseOptions: TestOptions.RegularPreview, 41501parseOptions: TestOptions.RegularPreview, 41543parseOptions: TestOptions.RegularPreview, 41588parseOptions: TestOptions.RegularPreview, 41669parseOptions: TestOptions.RegularPreview, 41675parseOptions: TestOptions.RegularPreview, 41689parseOptions: TestOptions.RegularPreview, 41783parseOptions: TestOptions.RegularPreview, 41852parseOptions: TestOptions.RegularPreview, 41870parseOptions: TestOptions.RegularPreview, 42020parseOptions: TestOptions.RegularPreview, 42040parseOptions: TestOptions.RegularPreview, 42059parseOptions: TestOptions.RegularPreview, 42067parseOptions: TestOptions.RegularPreview, 42224parseOptions: TestOptions.RegularPreview, 42244parseOptions: TestOptions.RegularPreview, 42263parseOptions: TestOptions.RegularPreview, 42271parseOptions: TestOptions.RegularPreview, 42428parseOptions: TestOptions.RegularPreview, 42448parseOptions: TestOptions.RegularPreview, 42467parseOptions: TestOptions.RegularPreview, 42475parseOptions: TestOptions.RegularPreview, 43590parseOptions: TestOptions.RegularPreview, 43627parseOptions: TestOptions.RegularPreview, 43670parseOptions: TestOptions.RegularPreview, 46590parseOptions: TestOptions.RegularPreview); 46600parseOptions: TestOptions.RegularPreview); 46606parseOptions: TestOptions.RegularPreview); 46692parseOptions: TestOptions.RegularPreview); 47013parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 47025parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.NetCoreApp); 47082var compilation3 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 47111var compilation4 = CreateCompilationWithIL(source3, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 49119parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.NetCoreApp); 49223parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.NetCoreApp); 49530parseOptions: TestOptions.RegularPreview); 49546parseOptions: TestOptions.RegularPreview); 49551parseOptions: TestOptions.RegularPreview); 51043parseOptions: TestOptions.RegularPreview, 51064parseOptions: TestOptions.RegularPreview, 51071parseOptions: TestOptions.RegularPreview, 51221parseOptions: TestOptions.RegularPreview, 51231parseOptions: TestOptions.RegularPreview, 51238parseOptions: TestOptions.RegularPreview, 51361parseOptions: TestOptions.RegularPreview, 51375parseOptions: TestOptions.RegularPreview, 51382parseOptions: TestOptions.RegularPreview, 51502parseOptions: TestOptions.RegularPreview, 51512parseOptions: TestOptions.RegularPreview, 51519parseOptions: TestOptions.RegularPreview, 51645parseOptions: TestOptions.RegularPreview, 51659parseOptions: TestOptions.RegularPreview, 51666parseOptions: TestOptions.RegularPreview, 51785parseOptions: TestOptions.RegularPreview, 51799parseOptions: TestOptions.RegularPreview, 51806parseOptions: TestOptions.RegularPreview, 51895parseOptions: TestOptions.RegularPreview, 51905parseOptions: TestOptions.RegularPreview, 51912parseOptions: TestOptions.RegularPreview, 51960parseOptions: TestOptions.RegularPreview, 52015parseOptions: TestOptions.RegularPreview, 52080parseOptions: TestOptions.RegularPreview, 52138parseOptions: TestOptions.RegularPreview, 52203parseOptions: TestOptions.RegularPreview, 52258parseOptions: TestOptions.RegularPreview, 52339parseOptions: TestOptions.RegularPreview, 52433parseOptions: TestOptions.RegularPreview, 52498parseOptions: TestOptions.RegularPreview, 52504parseOptions: TestOptions.RegularPreview, 52511parseOptions: TestOptions.RegularPreview, 52690parseOptions: TestOptions.RegularPreview, 52700parseOptions: TestOptions.RegularPreview, 52707parseOptions: TestOptions.RegularPreview, 52855parseOptions: TestOptions.RegularPreview, 52861parseOptions: TestOptions.RegularPreview, 52868parseOptions: TestOptions.RegularPreview, 53018parseOptions: TestOptions.RegularPreview, 53028parseOptions: TestOptions.RegularPreview, 53035parseOptions: TestOptions.RegularPreview, 53193parseOptions: TestOptions.RegularPreview, 53199parseOptions: TestOptions.RegularPreview, 53207parseOptions: TestOptions.RegularPreview, 53355parseOptions: TestOptions.RegularPreview, 53361parseOptions: TestOptions.RegularPreview, 53369parseOptions: TestOptions.RegularPreview, 53487parseOptions: TestOptions.RegularPreview, 53497parseOptions: TestOptions.RegularPreview, 53504parseOptions: TestOptions.RegularPreview, 53594parseOptions: TestOptions.RegularPreview, 53726parseOptions: TestOptions.RegularPreview, 53872parseOptions: TestOptions.RegularPreview, 54194parseOptions: TestOptions.RegularPreview, 54201parseOptions: TestOptions.RegularPreview, 57030parseOptions: TestOptions.RegularPreview, 57273parseOptions: TestOptions.RegularPreview, 57352parseOptions: TestOptions.RegularPreview, 57428parseOptions: TestOptions.RegularPreview, 57476parseOptions: TestOptions.RegularPreview, 57482parseOptions: TestOptions.RegularPreview, 57489parseOptions: TestOptions.RegularPreview, 57648parseOptions: TestOptions.RegularPreview, 57658parseOptions: TestOptions.RegularPreview, 57665parseOptions: TestOptions.RegularPreview, 57806parseOptions: TestOptions.RegularPreview, 57812parseOptions: TestOptions.RegularPreview, 57819parseOptions: TestOptions.RegularPreview, 57957parseOptions: TestOptions.RegularPreview, 57967parseOptions: TestOptions.RegularPreview, 57974parseOptions: TestOptions.RegularPreview, 58120parseOptions: TestOptions.RegularPreview, 58126parseOptions: TestOptions.RegularPreview, 58133parseOptions: TestOptions.RegularPreview, 58269parseOptions: TestOptions.RegularPreview, 58275parseOptions: TestOptions.RegularPreview, 58282parseOptions: TestOptions.RegularPreview, 58389parseOptions: TestOptions.RegularPreview, 58399parseOptions: TestOptions.RegularPreview, 58406parseOptions: TestOptions.RegularPreview, 58482parseOptions: TestOptions.RegularPreview, 58674parseOptions: TestOptions.RegularPreview, 59246parseOptions: TestOptions.RegularPreview, 59253parseOptions: TestOptions.RegularPreview, 59314parseOptions: TestOptions.RegularPreview, 59461parseOptions: TestOptions.RegularPreview, 68160parseOptions: TestOptions.RegularPreview); 68192parseOptions: TestOptions.RegularPreview, 68555parseOptions: TestOptions.RegularPreview, skipUsesIsNullable: true); 68594parseOptions: TestOptions.RegularPreview); 68607parseOptions: TestOptions.RegularPreview); 68683parseOptions: TestOptions.RegularPreview, 68689parseOptions: TestOptions.RegularPreview, 68700parseOptions: TestOptions.RegularPreview, 68844parseOptions: TestOptions.RegularPreview, 68860parseOptions: TestOptions.RegularPreview, 68867parseOptions: TestOptions.RegularPreview, 68926parseOptions: TestOptions.RegularPreview, 68945parseOptions: TestOptions.RegularPreview, 68952parseOptions: TestOptions.RegularPreview, 69323parseOptions: TestOptions.RegularPreview); 69391parseOptions: TestOptions.RegularPreview);
Symbols\PartialPropertiesTests.cs (1)
832CompileAndVerify(source, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), assemblyValidator: (assembly) =>
Symbols\RelaxedShiftOperatorTests.cs (10)
48parseOptions: TestOptions.RegularPreview); 52parseOptions: TestOptions.RegularPreview); 55parseOptions: TestOptions.RegularPreview); 60parseOptions: TestOptions.RegularPreview); 93parseOptions: TestOptions.RegularPreview); 137parseOptions: TestOptions.RegularPreview); 181parseOptions: TestOptions.RegularPreview); 225parseOptions: TestOptions.RegularPreview); 269parseOptions: TestOptions.RegularPreview); 313parseOptions: TestOptions.RegularPreview);
Symbols\Source\FileModifierTests.cs (19)
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); 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); 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") 4330var comp = CreateCompilation(SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularPreview, path: "path/to/SomeFile.cs"));
Symbols\Source\NullablePublicAPITests.cs (3)
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 (1)
2997comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview);
Symbols\StaticAbstractMembersInInterfacesTests.cs (536)
421parseOptions: TestOptions.RegularPreview, 508parseOptions: TestOptions.RegularPreview, 815parseOptions: TestOptions.RegularPreview, 900parseOptions: TestOptions.RegularPreview, 973parseOptions: TestOptions.RegularPreview, 1013parseOptions: TestOptions.RegularPreview, 1050parseOptions: TestOptions.RegularPreview, 1106parseOptions: TestOptions.RegularPreview, 1127parseOptions: TestOptions.RegularPreview, 1144parseOptions: TestOptions.RegularPreview, 1181parseOptions: TestOptions.RegularPreview, 1218parseOptions: TestOptions.RegularPreview, 1259parseOptions: TestOptions.RegularPreview, 1320parseOptions: TestOptions.RegularPreview, 1371parseOptions: TestOptions.RegularPreview, 1426parseOptions: TestOptions.RegularPreview, 1484parseOptions: TestOptions.RegularPreview, 1539parseOptions: TestOptions.RegularPreview, 1611parseOptions: TestOptions.RegularPreview, 2107parseOptions: TestOptions.RegularPreview, 2176parseOptions: TestOptions.RegularPreview, 2923parseOptions: TestOptions.RegularPreview, 2993parseOptions: TestOptions.RegularPreview, 3636parseOptions: TestOptions.RegularPreview, 3723parseOptions: TestOptions.RegularPreview, 4104parseOptions: TestOptions.RegularPreview, 4332parseOptions: TestOptions.RegularPreview, 4542parseOptions: TestOptions.RegularPreview, 4764parseOptions: TestOptions.RegularPreview, 4866parseOptions: TestOptions.RegularPreview, 4908parseOptions: TestOptions.RegularPreview, 4941parseOptions: TestOptions.RegularPreview, 4974parseOptions: TestOptions.RegularPreview, 5010parseOptions: TestOptions.RegularPreview, 5048parseOptions: TestOptions.RegularPreview, 5068parseOptions: TestOptions.RegularPreview, 5110parseOptions: TestOptions.RegularPreview, 5152parseOptions: TestOptions.RegularPreview, 5185parseOptions: TestOptions.RegularPreview, 5227parseOptions: TestOptions.RegularPreview, 5269parseOptions: TestOptions.RegularPreview, 5299parseOptions: TestOptions.RegularPreview, 5335parseOptions: TestOptions.RegularPreview, 5371parseOptions: TestOptions.RegularPreview, 5386parseOptions: TestOptions.RegularPreview, 5412parseOptions: TestOptions.RegularPreview, 5427parseOptions: TestOptions.RegularPreview, 5489parseOptions: TestOptions.RegularPreview, 5557parseOptions: TestOptions.RegularPreview, 5596parseOptions: TestOptions.RegularPreview, 5640parseOptions: TestOptions.RegularPreview, 5701parseOptions: TestOptions.RegularPreview, 5748parseOptions: TestOptions.RegularPreview, 5778parseOptions: TestOptions.RegularPreview, 5827parseOptions: TestOptions.RegularPreview, 5871parseOptions: TestOptions.RegularPreview, 5910parseOptions: TestOptions.RegularPreview, 5952parseOptions: TestOptions.RegularPreview, 5979parseOptions: TestOptions.RegularPreview, 6024parseOptions: TestOptions.RegularPreview, 6069parseOptions: TestOptions.RegularPreview, 6093parseOptions: TestOptions.RegularPreview, 6117parseOptions: TestOptions.RegularPreview, 6163parseOptions: TestOptions.RegularPreview, 6208parseOptions: TestOptions.RegularPreview, 6229parseOptions: TestOptions.RegularPreview, 6261parseOptions: TestOptions.RegularPreview, 6336parseOptions: TestOptions.RegularPreview, 6385parseOptions: TestOptions.RegularPreview, 6416parseOptions: TestOptions.RegularPreview, 6468parseOptions: TestOptions.RegularPreview, 6486parseOptions: TestOptions.RegularPreview, 6524parseOptions: TestOptions.RegularPreview, 6599parseOptions: TestOptions.RegularPreview, 6615parseOptions: TestOptions.RegularPreview, 6642parseOptions: TestOptions.RegularPreview, 6717parseOptions: TestOptions.RegularPreview, 6751parseOptions: TestOptions.RegularPreview, 6783parseOptions: TestOptions.RegularPreview, 6858parseOptions: TestOptions.RegularPreview, 6880parseOptions: TestOptions.RegularPreview, 6912parseOptions: TestOptions.RegularPreview, 6987parseOptions: TestOptions.RegularPreview, 7009parseOptions: TestOptions.RegularPreview, 7041parseOptions: TestOptions.RegularPreview, 7069parseOptions: TestOptions.RegularPreview, 7099parseOptions: TestOptions.RegularPreview, 7129parseOptions: TestOptions.RegularPreview, 7161parseOptions: TestOptions.RegularPreview, 7240parseOptions: TestOptions.RegularPreview, 7334parseOptions: TestOptions.RegularPreview, 7439parseOptions: TestOptions.RegularPreview, 7545parseOptions: TestOptions.RegularPreview, 7639parseOptions: TestOptions.RegularPreview, 7738parseOptions: TestOptions.RegularPreview, 7855parseOptions: TestOptions.RegularPreview, 7975parseOptions: TestOptions.RegularPreview, 8072parseOptions: TestOptions.RegularPreview, 8169parseOptions: TestOptions.RegularPreview, 8250parseOptions: TestOptions.RegularPreview, 8339parseOptions: TestOptions.RegularPreview, 8391parseOptions: TestOptions.RegularPreview, 8425parseOptions: TestOptions.RegularPreview, 8503parseOptions: TestOptions.RegularPreview, 8507parseOptions: TestOptions.RegularPreview, 8518parseOptions: TestOptions.RegularPreview, 8551parseOptions: TestOptions.RegularPreview, 8588parseOptions: TestOptions.RegularPreview, 8673parseOptions: TestOptions.RegularPreview, 8768parseOptions: TestOptions.RegularPreview, 8774parseOptions: TestOptions.RegularPreview, 8907parseOptions: TestOptions.RegularPreview, 9113parseOptions: TestOptions.RegularPreview, 9117parseOptions: TestOptions.RegularPreview, 9128parseOptions: TestOptions.RegularPreview, 9181parseOptions: TestOptions.RegularPreview, 9273parseOptions: TestOptions.RegularPreview, 9315parseOptions: TestOptions.RegularPreview, 9336parseOptions: TestOptions.RegularPreview, 9398parseOptions: TestOptions.RegularPreview, 9402parseOptions: TestOptions.RegularPreview, 9413parseOptions: TestOptions.RegularPreview, 9451parseOptions: TestOptions.RegularPreview, 9526parseOptions: TestOptions.RegularPreview, 9606parseOptions: TestOptions.RegularPreview, 9681parseOptions: TestOptions.RegularPreview, 9803parseOptions: TestOptions.RegularPreview, 9807parseOptions: TestOptions.RegularPreview, 9818parseOptions: TestOptions.RegularPreview, 9865parseOptions: TestOptions.RegularPreview, 9949parseOptions: TestOptions.RegularPreview, 10078parseOptions: TestOptions.RegularPreview, 10292parseOptions: TestOptions.RegularPreview, 10412parseOptions: TestOptions.RegularPreview, 10535parseOptions: TestOptions.RegularPreview, 10541parseOptions: TestOptions.RegularPreview, 10646parseOptions: TestOptions.RegularPreview, 10818parseOptions: TestOptions.RegularPreview, 10883parseOptions: TestOptions.RegularPreview, 10990parseOptions: TestOptions.RegularPreview, 11064parseOptions: TestOptions.RegularPreview, 11203parseOptions: TestOptions.RegularPreview, 11268parseOptions: TestOptions.RegularPreview, 11368parseOptions: TestOptions.RegularPreview, 11479parseOptions: TestOptions.RegularPreview, 11705parseOptions: TestOptions.RegularPreview, 11711parseOptions: TestOptions.RegularPreview, 11835parseOptions: TestOptions.RegularPreview, 11998parseOptions: TestOptions.RegularPreview, 12069parseOptions: TestOptions.RegularPreview, 12182parseOptions: TestOptions.RegularPreview, 12186parseOptions: TestOptions.RegularPreview, 12197parseOptions: TestOptions.RegularPreview, 12245parseOptions: TestOptions.RegularPreview, 12249parseOptions: TestOptions.RegularPreview, 12267parseOptions: TestOptions.RegularPreview, 12332parseOptions: TestOptions.RegularPreview, 12336parseOptions: TestOptions.RegularPreview, 12347parseOptions: TestOptions.RegularPreview, 12382parseOptions: TestOptions.RegularPreview, 12386parseOptions: TestOptions.RegularPreview, 12397parseOptions: TestOptions.RegularPreview, 12439parseOptions: TestOptions.RegularPreview, 12552parseOptions: TestOptions.RegularPreview, 12639parseOptions: TestOptions.RegularPreview, 12739parseOptions: TestOptions.RegularPreview, 12818parseOptions: TestOptions.RegularPreview, 12909parseOptions: TestOptions.RegularPreview, 13003parseOptions: TestOptions.RegularPreview, 13101parseOptions: TestOptions.RegularPreview, 13142parseOptions: TestOptions.RegularPreview, 13161parseOptions: TestOptions.RegularPreview, 13227parseOptions: TestOptions.RegularPreview, 13247parseOptions: TestOptions.RegularPreview, 13318parseOptions: TestOptions.RegularPreview, 13356parseOptions: TestOptions.RegularPreview, 13437parseOptions: TestOptions.RegularPreview, 13441parseOptions: TestOptions.RegularPreview, 13452parseOptions: TestOptions.RegularPreview, 13489parseOptions: TestOptions.RegularPreview, 13493parseOptions: TestOptions.RegularPreview, 13504parseOptions: TestOptions.RegularPreview, 13541parseOptions: TestOptions.RegularPreview, 13545parseOptions: TestOptions.RegularPreview, 13559parseOptions: TestOptions.RegularPreview, 13596parseOptions: TestOptions.RegularPreview, 13648parseOptions: TestOptions.RegularPreview, 13700parseOptions: TestOptions.RegularPreview, 13779parseOptions: TestOptions.RegularPreview, 13876parseOptions: TestOptions.RegularPreview, 13971parseOptions: TestOptions.RegularPreview, 14018parseOptions: TestOptions.RegularPreview, 14057parseOptions: TestOptions.RegularPreview, 14147parseOptions: TestOptions.RegularPreview, 14151parseOptions: TestOptions.RegularPreview, 14162parseOptions: TestOptions.RegularPreview, 14196parseOptions: TestOptions.RegularPreview, 14200parseOptions: TestOptions.RegularPreview, 14211parseOptions: TestOptions.RegularPreview, 14245parseOptions: TestOptions.RegularPreview, 14297parseOptions: TestOptions.RegularPreview, 14402parseOptions: TestOptions.RegularPreview, 14430parseOptions: TestOptions.RegularPreview, 14497parseOptions: TestOptions.RegularPreview, 14520parseOptions: TestOptions.RegularPreview, 14596parseOptions: TestOptions.RegularPreview, 14658parseOptions: TestOptions.RegularPreview, 14688parseOptions: TestOptions.RegularPreview, 14749parseOptions: TestOptions.RegularPreview, 14753parseOptions: TestOptions.RegularPreview, 14764parseOptions: TestOptions.RegularPreview, 14798parseOptions: TestOptions.RegularPreview, 14888parseOptions: TestOptions.RegularPreview, 14954parseOptions: TestOptions.RegularPreview, 15014parseOptions: TestOptions.RegularPreview, 15076parseOptions: TestOptions.RegularPreview, 15100parseOptions: TestOptions.RegularPreview, 15155parseOptions: TestOptions.RegularPreview, 15159parseOptions: TestOptions.RegularPreview, 15170parseOptions: TestOptions.RegularPreview, 15204parseOptions: TestOptions.RegularPreview, 15283parseOptions: TestOptions.RegularPreview, 15348parseOptions: TestOptions.RegularPreview, 15370parseOptions: TestOptions.RegularPreview, 15423parseOptions: TestOptions.RegularPreview, 15427parseOptions: TestOptions.RegularPreview, 15438parseOptions: TestOptions.RegularPreview, 15472parseOptions: TestOptions.RegularPreview, 15549parseOptions: TestOptions.RegularPreview, 15629parseOptions: TestOptions.RegularPreview, 15691parseOptions: TestOptions.RegularPreview, 15767parseOptions: TestOptions.RegularPreview, 15844parseOptions: TestOptions.RegularPreview, 15905parseOptions: TestOptions.RegularPreview, 15961parseOptions: TestOptions.RegularPreview, 15965parseOptions: TestOptions.RegularPreview, 15976parseOptions: TestOptions.RegularPreview, 16008parseOptions: TestOptions.RegularPreview, 16012parseOptions: TestOptions.RegularPreview, 16023parseOptions: TestOptions.RegularPreview, 16060parseOptions: TestOptions.RegularPreview, 16122parseOptions: TestOptions.RegularPreview, 16178parseOptions: TestOptions.RegularPreview, 16192foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 16294parseOptions: TestOptions.RegularPreview, 16355parseOptions: TestOptions.RegularPreview, 16386parseOptions: TestOptions.RegularPreview, 16432parseOptions: TestOptions.RegularPreview, 16473parseOptions: TestOptions.RegularPreview, 16558parseOptions: TestOptions.RegularPreview, 16659parseOptions: TestOptions.RegularPreview, 16673foreach (var parseOptions in new[] { TestOptions.RegularPreview, TestOptions.Regular10 }) 16747parseOptions: TestOptions.RegularPreview, 16762parseOptions: TestOptions.RegularPreview, 16837parseOptions: TestOptions.RegularPreview, 16853foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 16919parseOptions: TestOptions.RegularPreview, 16935foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 17001parseOptions: TestOptions.RegularPreview, 17017foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 17071parseOptions: TestOptions.RegularPreview, 17088foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 17146parseOptions: TestOptions.RegularPreview, 17162foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 17233parseOptions: TestOptions.RegularPreview, 17249foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 17323parseOptions: TestOptions.RegularPreview, 17349parseOptions: TestOptions.RegularPreview, 17429parseOptions: TestOptions.RegularPreview, 17455parseOptions: TestOptions.RegularPreview, 17607parseOptions: TestOptions.RegularPreview, 17750parseOptions: TestOptions.RegularPreview, 17886parseOptions: TestOptions.RegularPreview, 18029parseOptions: TestOptions.RegularPreview, 18138parseOptions: TestOptions.RegularPreview, 18285parseOptions: TestOptions.RegularPreview, 18438parseOptions: TestOptions.RegularPreview, 18624parseOptions: TestOptions.RegularPreview, 18772parseOptions: TestOptions.RegularPreview, 18900parseOptions: TestOptions.RegularPreview, 19060parseOptions: TestOptions.RegularPreview, 19064parseOptions: TestOptions.RegularPreview, 19075parseOptions: TestOptions.RegularPreview, 19112parseOptions: TestOptions.RegularPreview, 19116parseOptions: TestOptions.RegularPreview, 19127parseOptions: TestOptions.RegularPreview, 19164parseOptions: TestOptions.RegularPreview, 19168parseOptions: TestOptions.RegularPreview, 19179parseOptions: TestOptions.RegularPreview, 19219parseOptions: TestOptions.RegularPreview, 19223parseOptions: TestOptions.RegularPreview, 19234parseOptions: TestOptions.RegularPreview, 19294parseOptions: TestOptions.RegularPreview, 19375parseOptions: TestOptions.RegularPreview, 19467parseOptions: TestOptions.RegularPreview, 19555parseOptions: TestOptions.RegularPreview, 19638parseOptions: TestOptions.RegularPreview, 19730parseOptions: TestOptions.RegularPreview, 19819parseOptions: TestOptions.RegularPreview, 19906parseOptions: TestOptions.RegularPreview, 19920foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 19978parseOptions: TestOptions.RegularPreview, 19994foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 20063parseOptions: TestOptions.RegularPreview, 20077foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 20143parseOptions: TestOptions.RegularPreview, 20157foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 20271parseOptions: TestOptions.RegularPreview, 20406parseOptions: TestOptions.RegularPreview, 20484parseOptions: TestOptions.RegularPreview, 20516parseOptions: TestOptions.RegularPreview, 20564parseOptions: TestOptions.RegularPreview, 20596parseOptions: TestOptions.RegularPreview, 20654parseOptions: TestOptions.RegularPreview, 20719parseOptions: TestOptions.RegularPreview, 20789parseOptions: TestOptions.RegularPreview, 20906parseOptions: TestOptions.RegularPreview, 21017parseOptions: TestOptions.RegularPreview, 21152parseOptions: TestOptions.RegularPreview, 21271parseOptions: TestOptions.RegularPreview, 21285foreach (var parseOptions in new[] { TestOptions.RegularPreview, TestOptions.Regular10 }) 21331parseOptions: TestOptions.RegularPreview, 21345foreach (var parseOptions in new[] { TestOptions.RegularPreview, TestOptions.Regular10 }) 21434parseOptions: TestOptions.RegularPreview, 21448foreach (var parseOptions in new[] { TestOptions.RegularPreview, TestOptions.Regular10 }) 21554parseOptions: TestOptions.RegularPreview, 21569parseOptions: TestOptions.RegularPreview, 21675parseOptions: TestOptions.RegularPreview, 21691foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 21784parseOptions: TestOptions.RegularPreview, 21800foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 21886parseOptions: TestOptions.RegularPreview, 21902foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 22043parseOptions: TestOptions.RegularPreview, 22193parseOptions: TestOptions.RegularPreview, 22263parseOptions: TestOptions.RegularPreview, 22308parseOptions: TestOptions.RegularPreview, 22379parseOptions: TestOptions.RegularPreview, 22459parseOptions: TestOptions.RegularPreview, 22521parseOptions: TestOptions.RegularPreview, 22597parseOptions: TestOptions.RegularPreview, 22678parseOptions: TestOptions.RegularPreview, 22749parseOptions: TestOptions.RegularPreview, 22811parseOptions: TestOptions.RegularPreview, 22815parseOptions: TestOptions.RegularPreview, 22832parseOptions: TestOptions.RegularPreview, 22867parseOptions: TestOptions.RegularPreview, 22871parseOptions: TestOptions.RegularPreview, 22882parseOptions: TestOptions.RegularPreview, 22922parseOptions: TestOptions.RegularPreview, 23017parseOptions: TestOptions.RegularPreview, 23108parseOptions: TestOptions.RegularPreview, 23196parseOptions: TestOptions.RegularPreview, 23210foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 23375parseOptions: TestOptions.RegularPreview, 23476parseOptions: TestOptions.RegularPreview, 23514parseOptions: TestOptions.RegularPreview, 23544parseOptions: TestOptions.RegularPreview, 23606parseOptions: TestOptions.RegularPreview, 23635parseOptions: TestOptions.RegularPreview, 23696parseOptions: TestOptions.RegularPreview, 23776parseOptions: TestOptions.RegularPreview, 23806parseOptions: TestOptions.RegularPreview, 23866parseOptions: TestOptions.RegularPreview, 23896parseOptions: TestOptions.RegularPreview, 23958parseOptions: TestOptions.RegularPreview, 23987parseOptions: TestOptions.RegularPreview, 24048parseOptions: TestOptions.RegularPreview, 24128parseOptions: TestOptions.RegularPreview, 24158parseOptions: TestOptions.RegularPreview, 24218parseOptions: TestOptions.RegularPreview, 24248parseOptions: TestOptions.RegularPreview, 24339parseOptions: TestOptions.RegularPreview, 24387parseOptions: TestOptions.RegularPreview, 24576parseOptions: TestOptions.RegularPreview, 24757parseOptions: TestOptions.RegularPreview, 24771foreach (var parseOptions in new[] { TestOptions.RegularPreview, TestOptions.Regular10 }) 24872parseOptions: TestOptions.RegularPreview, 24887parseOptions: TestOptions.RegularPreview, 24997parseOptions: TestOptions.RegularPreview, 25013foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 25067parseOptions: TestOptions.RegularPreview, 25084foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 25158parseOptions: TestOptions.RegularPreview, 25238parseOptions: TestOptions.RegularPreview, 25300parseOptions: TestOptions.RegularPreview, 25376parseOptions: TestOptions.RegularPreview, 25458parseOptions: TestOptions.RegularPreview, 25527parseOptions: TestOptions.RegularPreview, 25595parseOptions: TestOptions.RegularPreview, 25599parseOptions: TestOptions.RegularPreview, 25616parseOptions: TestOptions.RegularPreview, 25648parseOptions: TestOptions.RegularPreview, 25652parseOptions: TestOptions.RegularPreview, 25663parseOptions: TestOptions.RegularPreview, 25700parseOptions: TestOptions.RegularPreview, 25795parseOptions: TestOptions.RegularPreview, 25883parseOptions: TestOptions.RegularPreview, 25897foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 26067parseOptions: TestOptions.RegularPreview, 26169parseOptions: TestOptions.RegularPreview, 26207parseOptions: TestOptions.RegularPreview, 26233parseOptions: TestOptions.RegularPreview, 26288parseOptions: TestOptions.RegularPreview, 26317parseOptions: TestOptions.RegularPreview, 26346parseOptions: TestOptions.RegularPreview, 26419parseOptions: TestOptions.RegularPreview, 26445parseOptions: TestOptions.RegularPreview, 26472parseOptions: TestOptions.RegularPreview, 26502parseOptions: TestOptions.RegularPreview, 26562parseOptions: TestOptions.RegularPreview, 26591parseOptions: TestOptions.RegularPreview, 26620parseOptions: TestOptions.RegularPreview, 26693parseOptions: TestOptions.RegularPreview, 26719parseOptions: TestOptions.RegularPreview, 26746parseOptions: TestOptions.RegularPreview, 26776parseOptions: TestOptions.RegularPreview, 26867parseOptions: TestOptions.RegularPreview, 26915parseOptions: TestOptions.RegularPreview, 27116parseOptions: TestOptions.RegularPreview, 27422parseOptions: TestOptions.RegularPreview, 27436foreach (var parseOptions in new[] { TestOptions.RegularPreview, TestOptions.Regular10 }) 27537parseOptions: TestOptions.RegularPreview, 27552parseOptions: TestOptions.RegularPreview, 27663parseOptions: TestOptions.RegularPreview, 27679foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 27733parseOptions: TestOptions.RegularPreview, 27750foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 27892parseOptions: TestOptions.RegularPreview, 28035parseOptions: TestOptions.RegularPreview, 28144parseOptions: TestOptions.RegularPreview, 28301parseOptions: TestOptions.RegularPreview, 28419parseOptions: TestOptions.RegularPreview, 28520parseOptions: TestOptions.RegularPreview, 28524parseOptions: TestOptions.RegularPreview, 28535parseOptions: TestOptions.RegularPreview, 28572parseOptions: TestOptions.RegularPreview, 28576parseOptions: TestOptions.RegularPreview, 28587parseOptions: TestOptions.RegularPreview, 28651parseOptions: TestOptions.RegularPreview, 28768parseOptions: TestOptions.RegularPreview, 28870parseOptions: TestOptions.RegularPreview, 28884foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 29010parseOptions: TestOptions.RegularPreview, 29089parseOptions: TestOptions.RegularPreview, 29121parseOptions: TestOptions.RegularPreview, 29183parseOptions: TestOptions.RegularPreview, 29248parseOptions: TestOptions.RegularPreview, 29364parseOptions: TestOptions.RegularPreview, 29495parseOptions: TestOptions.RegularPreview, 29509foreach (var parseOptions in new[] { TestOptions.RegularPreview, TestOptions.Regular10 }) 29610parseOptions: TestOptions.RegularPreview, 29626foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 29716parseOptions: TestOptions.RegularPreview, 29732foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 29855parseOptions: TestOptions.RegularPreview, 29922parseOptions: TestOptions.RegularPreview, 29987parseOptions: TestOptions.RegularPreview, 30055parseOptions: TestOptions.RegularPreview, 30141parseOptions: TestOptions.RegularPreview, 30147parseOptions: TestOptions.RegularPreview, 30213parseOptions: TestOptions.RegularPreview, 30326parseOptions: TestOptions.RegularPreview, 30399parseOptions: TestOptions.RegularPreview, 30517parseOptions: TestOptions.RegularPreview, 30521parseOptions: TestOptions.RegularPreview, 30532parseOptions: TestOptions.RegularPreview, 30575parseOptions: TestOptions.RegularPreview, 30579parseOptions: TestOptions.RegularPreview, 30590parseOptions: TestOptions.RegularPreview, 30632parseOptions: TestOptions.RegularPreview, 30718parseOptions: TestOptions.RegularPreview, 30784parseOptions: TestOptions.RegularPreview, 30870parseOptions: TestOptions.RegularPreview, 30988parseOptions: TestOptions.RegularPreview, 31039parseOptions: TestOptions.RegularPreview, 31083parseOptions: TestOptions.RegularPreview, 31137parseOptions: TestOptions.RegularPreview, 31197parseOptions: TestOptions.RegularPreview, 31245parseOptions: TestOptions.RegularPreview, 31288parseOptions: TestOptions.RegularPreview, 31342parseOptions: TestOptions.RegularPreview, 31391parseOptions: TestOptions.RegularPreview, 31464parseOptions: TestOptions.RegularPreview, 31522parseOptions: TestOptions.RegularPreview, 31575parseOptions: TestOptions.RegularPreview, 31616parseOptions: TestOptions.RegularPreview, 31700parseOptions: TestOptions.RegularPreview, 31712parseOptions: TestOptions.RegularPreview, 31772parseOptions: TestOptions.RegularPreview, 31785parseOptions: TestOptions.RegularPreview, 31835parseOptions: TestOptions.RegularPreview, 31870parseOptions: TestOptions.RegularPreview, 31904parseOptions: TestOptions.RegularPreview, 32038parseOptions: TestOptions.RegularPreview, 32086parseOptions: TestOptions.RegularPreview, 32137parseOptions: TestOptions.RegularPreview, 32181parseOptions: TestOptions.RegularPreview, 32215parseOptions: TestOptions.RegularPreview, 32269parseOptions: TestOptions.RegularPreview, 32310parseOptions: TestOptions.RegularPreview, 32345parseOptions: TestOptions.RegularPreview, 32386parseOptions: TestOptions.RegularPreview, 32428parseOptions: TestOptions.RegularPreview, 32474parseOptions: TestOptions.RegularPreview, 32516parseOptions: TestOptions.RegularPreview, 32552parseOptions: TestOptions.RegularPreview, 32594parseOptions: TestOptions.RegularPreview, 32616parseOptions: TestOptions.RegularPreview, 32656parseOptions: TestOptions.RegularPreview, 32694parseOptions: TestOptions.RegularPreview, 32726parseOptions: TestOptions.RegularPreview, 32764parseOptions: TestOptions.RegularPreview, 32796parseOptions: TestOptions.RegularPreview, 32834parseOptions: TestOptions.RegularPreview, 32866parseOptions: TestOptions.RegularPreview, 32904parseOptions: TestOptions.RegularPreview, 32936parseOptions: TestOptions.RegularPreview, 32974parseOptions: TestOptions.RegularPreview, 33006parseOptions: TestOptions.RegularPreview, 33044parseOptions: TestOptions.RegularPreview, 33066parseOptions: TestOptions.RegularPreview, 33097parseOptions: TestOptions.RegularPreview, 33133parseOptions: TestOptions.RegularPreview, 33164parseOptions: TestOptions.RegularPreview, 33200parseOptions: TestOptions.RegularPreview, 33231parseOptions: TestOptions.RegularPreview, 33267parseOptions: TestOptions.RegularPreview, 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( 33475parseOptions: TestOptions.RegularPreview, 33496""", options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview, targetFramework: _supportingFramework).VerifyDiagnostics( 33521parseOptions: TestOptions.RegularPreview, 33542""", options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview, targetFramework: _supportingFramework).VerifyDiagnostics(
Symbols\SymbolErrorTests.cs (3)
2086CreateCompilation(text, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 2152CreateCompilation(text, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 10764var comp = CreateCompilation(text, parseOptions: TestOptions.RegularPreview);
Symbols\UnsignedRightShiftTests.cs (55)
110parseOptions: TestOptions.RegularPreview); 390parseOptions: TestOptions.RegularPreview); 494parseOptions: TestOptions.RegularPreview); 522parseOptions: TestOptions.RegularPreview); 618parseOptions: TestOptions.RegularPreview); 893parseOptions: TestOptions.RegularPreview); 923parseOptions: TestOptions.RegularPreview); 949parseOptions: TestOptions.RegularPreview); 971parseOptions: TestOptions.RegularPreview); 1008parseOptions: TestOptions.RegularPreview); 1049parseOptions: TestOptions.RegularPreview); 1161parseOptions: TestOptions.RegularPreview); 1446parseOptions: TestOptions.RegularPreview); 1573parseOptions: TestOptions.RegularPreview); 1854parseOptions: TestOptions.RegularPreview); 1884parseOptions: TestOptions.RegularPreview); 1910parseOptions: TestOptions.RegularPreview); 1932parseOptions: TestOptions.RegularPreview); 1974parseOptions: TestOptions.RegularPreview); 1991parseOptions: TestOptions.RegularPreview); 1994parseOptions: TestOptions.RegularPreview); 2000parseOptions: TestOptions.RegularPreview); 2063parseOptions: TestOptions.RegularPreview); 2130parseOptions: TestOptions.RegularPreview); 2180parseOptions: TestOptions.RegularPreview); 2226parseOptions: TestOptions.RegularPreview); 2243parseOptions: TestOptions.RegularPreview); 2246parseOptions: TestOptions.RegularPreview); 2252parseOptions: TestOptions.RegularPreview); 2281parseOptions: TestOptions.RegularPreview); 2289parseOptions: TestOptions.RegularPreview); 2319parseOptions: TestOptions.RegularPreview); 2368parseOptions: TestOptions.RegularPreview); 2405parseOptions: TestOptions.RegularPreview); 2444parseOptions: TestOptions.RegularPreview); 2496parseOptions: TestOptions.RegularPreview); 2539parseOptions: TestOptions.RegularPreview); 2594parseOptions: TestOptions.RegularPreview); 2636parseOptions: TestOptions.RegularPreview); 2675parseOptions: TestOptions.RegularPreview); 2702var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.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)); 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)); 3441parseOptions: TestOptions.RegularPreview); 3493parseOptions: TestOptions.RegularPreview); 3545parseOptions: TestOptions.RegularPreview); 3597parseOptions: TestOptions.RegularPreview); 3630parseOptions: TestOptions.RegularPreview);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (227)
Parsing\CrefParsingTests.cs (4)
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 })
Parsing\DeclarationParsingTests.cs (26)
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,
Parsing\DeclarationScopeParsingTests.cs (1)
3101UsingTree(source, TestOptions.RegularPreview,
Parsing\DeconstructionTests.cs (1)
2104CreateCompilation(source, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics();
Parsing\ExpressionParsingTests.cs (8)
359UsingExpression(text, TestOptions.RegularPreview); 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 (2)
2399TestOptions.RegularPreview); 2410TestOptions.RegularPreview);
Parsing\FileModifierParsingTests.cs (1)
30options ??= TestOptions.RegularPreview;
Parsing\FunctionPointerTests.cs (11)
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); 1424UsingStatement("delegate* unmanaged[ ;", options: TestOptions.RegularPreview, 1485UsingStatement("delegate* unmanaged[Cdecl ;", options: TestOptions.RegularPreview, 1543UsingStatement("delegate* unmanaged[Cdecl,", options: TestOptions.RegularPreview, 3264UsingStatement("delegate* unmanaged Cdecl]<void> ptr;", options: TestOptions.RegularPreview,
Parsing\LambdaAttributeParsingTests.cs (32)
39UsingExpression(source, TestOptions.RegularPreview); 79UsingExpression(source, TestOptions.RegularPreview); 129UsingExpression(source, TestOptions.RegularPreview); 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, 1994UsingExpression(source, TestOptions.RegularPreview);
Parsing\LambdaParameterParsingTests.cs (33)
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,
Parsing\LambdaReturnTypeParsingTests.cs (6)
45UsingExpression(source, TestOptions.RegularPreview); 82UsingExpression(source, TestOptions.RegularPreview); 129UsingExpression(source, TestOptions.RegularPreview); 214UsingExpression(source, TestOptions.RegularPreview, 286verify(source, TestOptions.RegularPreview); 316verify(source, TestOptions.RegularPreview);
Parsing\MemberDeclarationParsingTests.cs (37)
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 }) 2333CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 2453CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 2578CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 2696CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 2802CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 3214CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 3338CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 3466CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 3588CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 3698CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 4256CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 4369CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 4486CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 4597CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 4696CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 5096CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 5213CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 5334CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 5449CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 5552CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 6281CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 6371CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 6522CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 6622CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 7006CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 7103CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 7213CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 7317CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 7421CreateCompilation(classWithText, parseOptions: TestOptions.RegularPreview).VerifyDiagnostics( 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,
Parsing\ParsingTests.cs (1)
365_ = SyntaxFactory.ParseSyntaxTree(stringBuilder.ToString(), TestOptions.RegularPreview);
Parsing\RecordParsing.cs (20)
333tree = ParseTree(text, options: TestOptions.RegularPreview); 3058UsingTree(text, options: TestOptions.RegularPreview, 3116UsingTree(text, options: TestOptions.RegularPreview, 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); 3869UsingTree(text, options: TestOptions.RegularPreview); 3942UsingTree(text, options: TestOptions.RegularPreview, 3990UsingTree(text, options: TestOptions.RegularPreview, 4053UsingTree(text, options: TestOptions.RegularPreview); 4096UsingTree(text, options: TestOptions.RegularPreview);
Parsing\RefReadonlyTests.cs (4)
956UsingDeclaration(source, TestOptions.RegularPreview, expectedDiagnostics); 1018UsingDeclaration(source, TestOptions.RegularPreview, expectedDiagnostics); 1080UsingDeclaration(source, TestOptions.RegularPreview, expectedDiagnostics); 1141UsingDeclaration(source, TestOptions.RegularPreview, expectedDiagnostics);
Parsing\SingleLineDeclarationParsingTests.cs (26)
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); 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\TopLevelStatementsParsingTests.cs (1)
1621var tree = UsingTree(test, TestOptions.RegularPreview.WithLanguageVersion(version));
Parsing\UsingDirectiveParsingTests.cs (1)
18return SyntaxFactory.ParseSyntaxTree(text, options: options ?? TestOptions.RegularPreview);
Syntax\SyntaxTreeTests.cs (12)
626UsingTree(test, TestOptions.RegularPreview); 704UsingTree(test, TestOptions.RegularPreview); 808UsingTree(test, TestOptions.RegularPreview, 839UsingTree(test, TestOptions.RegularPreview, 873UsingTree(test, TestOptions.RegularPreview, 914UsingTree(test, TestOptions.RegularPreview); 975UsingTree(test, TestOptions.RegularPreview, 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 (10)
CSharpTestBase.cs (3)
1075CreateCompilationWithMscorlib40(source, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute()), 1106var tree = Parse(text, options: options ?? TestOptions.RegularPreview); 1310parseOptions = (parseOptions ?? TestOptions.RegularPreview).WithExperimental(experimentalFeature.Value);
CSharpTestSource.cs (1)
42var tree = SyntaxFactory.ParseSyntaxTree(stringText, options ?? TestOptions.RegularPreview, path);
DiagnosticTestUtilities.cs (1)
47var comp = CSharpTestBase.CreateCompilation(srcs, parseOptions: TestOptions.RegularPreview);
TestOptions.cs (5)
47public static readonly CSharpParseOptions RegularPreviewWithDocumentationComments = RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose); 53public static readonly CSharpParseOptions RegularWithExtendedPartialMethods = RegularPreview; 68public static readonly CSharpParseOptions RegularWithPatternCombinators = RegularPreview; 69public static readonly CSharpParseOptions RegularWithExtendedPropertyPatterns = RegularPreview; 70public static readonly CSharpParseOptions RegularWithListPatterns = RegularPreview;
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (1)
271var parseOptions = TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute();