803 references to Regular10
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (16)
CodeGen\CodeGenAsyncMethodBuilderOverrideTests.cs (5)
129compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular10); 226var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular10); 535compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular10); 787compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular10); 842compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular10);
CodeGen\CodeGenConditionalOperatorTests.cs (1)
1687var comp = CompileAndVerify(source, parseOptions: TestOptions.Regular10);
CodeGen\CodeGenDeconstructTests.cs (1)
6762var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10);
CodeGen\CodeGenFunctionPointersTests.cs (2)
10987var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular10, options: TestOptions.UnsafeReleaseExe); 11021var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular10, options: TestOptions.UnsafeReleaseExe);
CodeGen\CodeGenLockTests.cs (1)
547CompileAndVerify(text, parseOptions: TestOptions.Regular10).VerifyIL("Test.Main", @"
CodeGen\CodeGenNullCoalescingAssignmentTests.cs (1)
706", parseOptions: TestOptions.Regular10, expectedOutput: @"
CodeGen\CodeGenOverridingAndHiding.cs (2)
3161parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseDll); 3168parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseDll);
CodeGen\CodeGenRefReadonlyReturnTests.cs (1)
973var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, parseOptions: TestOptions.Regular10);
CodeGen\CodeGenRefReturnTests.cs (2)
131CompileAndVerify(text, parseOptions: TestOptions.Regular10, verify: Verification.Fails).VerifyIL("Program.M(out int)", @" 3633CompileAndVerify(text, expectedOutput: "37", parseOptions: TestOptions.Regular10, verify: Verification.Fails).VerifyIL("Program.Main()", @"
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (3)
CodeGen\CodeGenMethodGroupConversionCachingTests.cs (1)
519var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular10, symbolValidator: VerifyNoCacheContainersIn("Program"));
Emit\EditAndContinue\EditAndContinueTests.cs (1)
11863var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular10, options: TestOptions.DebugDll, references: new MetadataReference[] { referencePIA, CSharpRef });
Emit\NumericIntPtrTests.cs (1)
10325var parseOptions = (useCSharp11 ? TestOptions.Regular11 : TestOptions.Regular10).WithNoRefSafetyRulesAttribute();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (113)
Attributes\AttributeTests.cs (13)
6286var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular10); 6346var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular10); 7917var compilation = CreateCompilation(source, null, options: opt, parseOptions: TestOptions.Regular10); 8892var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 9009var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 9071var comp = CreateCompilationWithILAndMscorlib40(source, il, parseOptions: TestOptions.Regular10); 9126var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10263comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10392comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10428comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10459var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular10); 10530var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular10); 10574var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10);
Attributes\AttributeTests_CallerInfoAttributes.cs (50)
72var compilation = CreateEmptyCompilation(source, GetReferencesWithoutInteropServices(), options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 138var compilation = CreateEmptyCompilation(source, GetReferencesWithoutInteropServices(), options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 203var compilation = CreateEmptyCompilation(source, GetReferencesWithoutInteropServices(), options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 259var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 318var compilation = CreateEmptyCompilation(source, GetReferencesWithoutInteropServices(), options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 375var compilation = CreateEmptyCompilation(source, GetReferencesWithoutInteropServices(), options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 420var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 459var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 498var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 526var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 565var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 626var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 659var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 690var compilation = CreateCompilation(source2, references: new[] { ref1 }, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 716var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 742var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 825var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 889var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 953var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 982var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1063var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1098var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1137var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1177var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1215var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1250var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1290var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1444var compilation = CreateCompilation(source, targetFramework: TargetFramework.Net50, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1478var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1512var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1545var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1582var compilation = CreateCompilation(source2, references: new[] { ref1 }, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1688var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1730var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1776var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1941var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1973var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2005var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2038var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2077var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2121var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2153var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2209var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2237var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2297var compilation = CreateCompilationWithILAndMscorlib40(source, il, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2331var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2367var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2405var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2442var compilation = CreateCompilation(source, targetFramework: TargetFramework.Net50, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2493var compilation = CreateCompilation(source, targetFramework: TargetFramework.Net50, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10);
Attributes\AttributeTests_Locations.cs (2)
198CreateCompilation(source, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 246CreateCompilation(source, parseOptions: TestOptions.Regular10).VerifyDiagnostics(
Attributes\AttributeTests_RefSafetyRules.cs (7)
28var comp = CreateCompilation(new[] { source, RefSafetyRulesAttributeDefinition }, parseOptions: TestOptions.Regular10); 39var comp = CreateCompilation(RefSafetyRulesAttributeDefinition, parseOptions: TestOptions.Regular10); 49comp = CreateCompilation(source, references: new[] { ref1 }, parseOptions: TestOptions.Regular10); 70var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular10); 125var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 152var refA = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10).EmitToImageReference(); 154var comp = CreateCompilation(source, references: new[] { refA }, parseOptions: TestOptions.Regular10);
FlowAnalysis\FlowDiagnosticTests.cs (9)
1227CreateCompilation(program, parseOptions: TestOptions.Regular10) 1291CreateCompilation(program, parseOptions: TestOptions.Regular10) 1392var comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 1449var comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 1757var comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 2414CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular10); 2571CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular10); 2702var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 2732var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10);
FlowAnalysis\LocalFunctions.cs (2)
725var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 1502var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10);
FlowAnalysis\RegionAnalysisTests.cs (1)
6465var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular10);
RefStructInterfacesTests.cs (3)
26361comp = CreateCompilation(text, targetFramework: TargetFramework.Net60, parseOptions: TestOptions.Regular10); 26816var comp = CreateCompilation(text, targetFramework: TargetFramework.Net60, parseOptions: TestOptions.Regular10); 26896var comp = CreateCompilation(new[] { text, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net60, parseOptions: TestOptions.Regular10);
Semantics\InlineArrayTests.cs (7)
13117comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 13311comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular10); 13359comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular10); 13396comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular10); 13473comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular10); 13542comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular10); 13603comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular10);
Semantics\PatternMatchingTests.cs (4)
8606var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular10); 8648var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular10); 10209var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular10); 10250var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular10);
Semantics\PatternMatchingTests_ListPatterns.cs (1)
451var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.Regular10);
Semantics\PatternMatchingTests5.cs (2)
526VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, DiagnosticDescription.None, parseOptions: TestOptions.Regular10); 688VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.Regular10);
Semantics\RecordTests.cs (12)
235comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseDll); 800var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 1054var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 1209comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 1604var verifier = CompileAndVerify(src, expectedOutput: "True", parseOptions: TestOptions.Regular10); 2713comp = CreateCompilationWithIL(new[] { src, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular10); 5883var comp = CreateCompilation(src, parseOptions: usePreview ? TestOptions.Regular10 : TestOptions.Regular9, options: TestOptions.DebugExe); 7271parseOptions: usePreview ? TestOptions.Regular10 : TestOptions.Regular9); 7320var comp = CreateCompilation(src, parseOptions: usePreview ? TestOptions.Regular10 : TestOptions.Regular9); 14507comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 15767var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: usePreview ? TestOptions.Regular10 : TestOptions.Regular9); 29293comp = CreateCompilation(source, parseOptions: TestOptions.Regular10);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (353)
Semantics\BindingAsyncTasklikeMoreTests.cs (1)
1625var compilation = CreateCompilation(source, parseOptions: useCSharp9 ? TestOptions.Regular9 : TestOptions.Regular10, targetFramework: TargetFramework.Net70);
Semantics\BindingTests.cs (1)
2188CreateCompilation(source, parseOptions: TestOptions.Regular10).VerifyDiagnostics(
Semantics\ConstantTests.cs (1)
3903var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10);
Semantics\DelegateTypeTests.cs (85)
100comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3214comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3273comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3319comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3362comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4723CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 4793CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: 4826CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: @"C.M"); 4881CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: 4924CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: 4956comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4989CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: "extension, instance, "); 5017CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: "extension, instance, "); 5047CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: "extension, instance, "); 5096comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5162CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5188CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5211CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5239CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5296var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5325comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5357comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5391comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5426comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5455CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5484CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5505CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5528CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5551CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5574CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5598CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5641CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5672CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5711comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5735CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5767CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5806CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5842CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5878CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5910CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5942CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 5980comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 6015comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 6044CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 6084comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 6122CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 6167var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 6207CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 6249CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 6281comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 6310CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 6362CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 9212CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 9247CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 9295comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 9343CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 9390comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 9556comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 9791comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 9822CompileAndVerify(source, parseOptions: TestOptions.Regular10); 9851CompileAndVerify(source, parseOptions: TestOptions.Regular10); 9894comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 9948comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 9982CompileAndVerify(source, parseOptions: TestOptions.Regular10); 10007CompileAndVerify(source, parseOptions: TestOptions.Regular10); 10033CompileAndVerify(source, parseOptions: TestOptions.Regular10); 10059CompileAndVerify(source, parseOptions: TestOptions.Regular10); 10082CompileAndVerify(source, parseOptions: TestOptions.Regular10); 10109CompileAndVerify(source, parseOptions: TestOptions.Regular10); 10190comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.Regular10, options: TestOptions.DebugExe); 10263comp = CreateCompilation(source, parseOptions: TestOptions.Regular10.WithKind(SourceCodeKind.Script)); 10619comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10677CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 10717comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10754CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 10792comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10826CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 10853CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 10887comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10924CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput); 11333var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseExe); 11554var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseExe); 12029var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseExe); 12070var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseExe); 14371comp = CreateCompilation(sourceB, references: [refA], parseOptions: TestOptions.Regular10);
Semantics\GlobalUsingDirectiveTests.cs (5)
47CreateCompilation(source, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 66CreateCompilation(source, parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 191var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Regular10, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 234var comp3 = CreateCompilation(source3, parseOptions: TestOptions.Regular10, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 304var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Regular10, options: TestOptions.DebugExe, references: new[] { comp1Ref });
Semantics\InterpolationTests.cs (15)
2257var verifier = CompileAndVerify(new[] { source, interpolatedStringBuilder }, expectedOutput: expectedOutput, targetFramework: TargetFramework.Net50, parseOptions: TestOptions.Regular10); 2264var comp2 = CreateCompilation(source, new[] { reference }, targetFramework: TargetFramework.Net50, parseOptions: TestOptions.Regular10); 4889var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }, parseOptions: TestOptions.Regular10); 5221var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }, parseOptions: TestOptions.Regular10); 5569comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 5851comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 14628var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14697var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14737var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14777var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14835var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14869var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14903var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14978var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 15033var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
Semantics\LambdaDiscardParametersTests.cs (1)
378comp = CreateCompilation(source, parseOptions: TestOptions.Regular10);
Semantics\LambdaTests.cs (4)
3609var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseExe); 3695comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3734comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5060comp = CreateCompilation(source, parseOptions: TestOptions.Regular10);
Semantics\LocalFunctionTests.cs (44)
7252var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 7282var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 7310var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 7339var parseOptions = useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11; 7413var parseOptions = useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11; 7485var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 7500var attr = parseAttributeSyntax("[My(nameof(TParameter))]", TestOptions.Regular10); 7504attr = parseAttributeSyntax("[My(TParameter)]", TestOptions.Regular10); 7525attr = parseAttributeSyntax("[My(TParameter)]", TestOptions.Regular10); 7558var parseOptions = useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11; 7618var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 8512var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 8532var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 8670var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 8808var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 8850var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 8884var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 8914var parseOptions = useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11; 8983var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9004var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9028var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9052var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9076var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9099var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9149var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9166var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9186var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9355var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9383var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9418var parseOptions = useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11; 9434var attr = parseAttributeSyntax("[My(nameof(parameter))]", TestOptions.Regular10); 9438attr = parseAttributeSyntax("[My(parameter)]", TestOptions.Regular10); 9462var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9482var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9574var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9591var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9611var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9631var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9654var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9708var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9736var parseOptions = useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11; 9752var attr = parseAttributeSyntax("[My(nameof(parameter))]", TestOptions.Regular10); 9756attr = parseAttributeSyntax("[My(parameter)]", TestOptions.Regular10); 9777var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11);
Semantics\RecordStructTests.cs (18)
276comp = CreateCompilation(new[] { src1, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseDll); 289comp = CreateCompilation(new[] { src2, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseDll); 292comp = CreateCompilation(new[] { src3, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseDll); 1892var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 2156var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 2857var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 3995var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 7534var comp = CreateCompilation(src, parseOptions: TestOptions.Regular10); 8265comp = CreateCompilation(src, parseOptions: TestOptions.Regular10); 10548comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11195var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11251comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11277comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11303comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11329comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11358comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11387comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11416comp = CreateCompilation(source, parseOptions: TestOptions.Regular10);
Semantics\RefEscapingTests.cs (20)
335var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10); 514CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 799CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 885CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 950CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1726CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1794var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10); 2138var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10); 2221var comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular10); 2304CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 2470var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10); 2569var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10); 4428var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10); 4507CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 6094CreateCompilation([source, UnscopedRefAttributeDefinition], parseOptions: TestOptions.Regular10).VerifyDiagnostics( 6163CreateCompilation(source, parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 8748comp = CreateCompilation(new[] { source0, source1 }, parseOptions: TestOptions.Regular10); 8752var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular10); 8765comp1 = CreateCompilation(source1, references: new[] { comp0.ToMetadataReference() }, parseOptions: TestOptions.Regular10); 8768comp1 = CreateCompilation(source1, references: new[] { comp0.EmitToImageReference() }, parseOptions: TestOptions.Regular10);
Semantics\RefFieldTests.cs (107)
85var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 126comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 167var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 197comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 236var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 271comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 2056var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 2144var comp = CreateEmptyCompilation(new[] { sourceA }, parseOptions: TestOptions.Regular10); 2147comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular10); 2164comp = CreateEmptyCompilation(source, references: new[] { refA }, parseOptions: TestOptions.Regular10); 2178comp = CreateEmptyCompilation(source, references: new[] { refAB }, parseOptions: TestOptions.Regular10); 2503var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 2585var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 2827var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 2895var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3033var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3139var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3400var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3454var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3500var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3618var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3733var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3818var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4004var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4456var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4501var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4992var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular10); 5037var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10157var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10, options: TestOptions.UnsafeReleaseDll); 10597var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10874var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10); 10949var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10992var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11063var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular10); 11142var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11180var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, options: TestOptions.UnsafeReleaseExe); 11835var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 11869var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 12030var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 12177var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 12262var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 12658var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 13122var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 13177var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 13239var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 13289var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 14338var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 14380var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 14575var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 14727var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 15029var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 20160var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 20198var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 20326var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 20356var comp = CreateCompilation(source, references: new[] { lib.EmitToImageReference() }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 20369comp = CreateCompilation(source, references: new[] { lib.EmitToImageReference() }, parseOptions: TestOptions.Regular10); 22195var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 22216var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 22251var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 22284var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 22311var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 22339parseOptions: TestOptions.Regular10).VerifyDiagnostics( 22348parseOptions: TestOptions.Regular10, 22368parseOptions: TestOptions.Regular10).VerifyDiagnostics( 22377parseOptions: TestOptions.Regular10, 22399parseOptions: TestOptions.Regular10).VerifyDiagnostics( 22412parseOptions: TestOptions.Regular10, 22436parseOptions: TestOptions.Regular10).VerifyDiagnostics( 22441parseOptions: TestOptions.Regular10, 22461parseOptions: TestOptions.Regular10).VerifyDiagnostics( 22476parseOptions: TestOptions.Regular10, 22508parseOptions: TestOptions.Regular10).VerifyDiagnostics( 22513parseOptions: TestOptions.Regular10, 22529CreateCompilation(source2, [ref1a], parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 22530CreateCompilation(source2, [ref1a], parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 22543CreateCompilation(source2, [ref1], parseOptions: TestOptions.Regular10).VerifyDiagnostics(expectedDiagnostics); 22544CreateCompilation(source2, [ref1], parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics); 22561parseOptions: TestOptions.Regular10).VerifyDiagnostics( 22566parseOptions: TestOptions.Regular10, 22582CreateCompilation(source2, [ref1a], parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 22583CreateCompilation(source2, [ref1a], parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 22596CreateCompilation(source2, [ref1], parseOptions: TestOptions.Regular10).VerifyDiagnostics(expectedDiagnostics); 22597CreateCompilation(source2, [ref1], parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics); 22626parseOptions: TestOptions.Regular10, 22654parseOptions: TestOptions.Regular10) 22671parseOptions: TestOptions.Regular10, 22718parseOptions: TestOptions.Regular10).VerifyDiagnostics( 22741parseOptions: TestOptions.Regular10).VerifyDiagnostics( 22766parseOptions: TestOptions.Regular10, 22785parseOptions: TestOptions.Regular10).VerifyDiagnostics( 22801parseOptions: TestOptions.Regular10, 22820parseOptions: TestOptions.Regular10).VerifyDiagnostics( 22836parseOptions: TestOptions.Regular10, 22870CreateCompilation(source2, [ref1], parseOptions: TestOptions.Regular10).VerifyDiagnostics( 25701comp = CreateCompilation(sourceB1, references: new[] { refA }, parseOptions: TestOptions.Regular10); 27154var comp = CreateCompilation(assemblyIdentity, new[] { source0 }, references: null, parseOptions: TestOptions.Regular10); 27211var comp = CreateCompilation(assemblyIdentityLowerVersion, new[] { source0 }, references: null, parseOptions: TestOptions.Regular10); 27215comp = CreateCompilation(assemblyIdentityHigherVersion, new[] { source0 }, references: null, parseOptions: TestOptions.Regular10); 27279var comp = CreateCompilation(assemblyIdentity, new[] { source0 }, references: null, parseOptions: TestOptions.Regular10); 27287comp = CreateEmptyCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular10); 27575var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 27665var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 27749var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 27850var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 28239var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 28287var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 30582var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10);
Semantics\RefLocalsAndReturnsTests.cs (1)
781var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10);
Semantics\SemanticErrorTests.cs (7)
6463var comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 6979CreateCompilation(text, parseOptions: TestOptions.Regular10). 7027CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 7061CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 7100CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 7174CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 12976CreateCompilation(text, parseOptions: TestOptions.Regular10)
Semantics\SpanStackSafetyTests.cs (1)
529var comp = CreateCompilationWithMscorlibAndSpan(new[] { text, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular10);
Semantics\StructConstructorTests.cs (20)
1325var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 1470var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 1575var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 1661var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 1721var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 2568comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 2650comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 2700var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 2753var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 2855var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 2926var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 3004CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10, verify: Verification.Skipped, expectedOutput: expectedOutput); 3035var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 3276var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3406var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular10); 3889CreateCompilation(source, parseOptions: TestOptions.Regular10) 3978CreateCompilation(source, parseOptions: TestOptions.Regular10) 4015var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4055var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4699var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular10);
Semantics\UninitializedNonNullableFieldTests.cs (2)
856var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular10); 1052var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10);
Semantics\Utf8StringsLiteralsTests.cs (8)
461comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 1540comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 1605comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 1672comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 1725comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 1778comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 1840comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 2461comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10);
Semantics\WarningVersionTests.cs (12)
158parseOptions: TestOptions.Regular10, 167parseOptions: TestOptions.Regular10, 236parseOptions: TestOptions.Regular10, 245parseOptions: TestOptions.Regular10, 322parseOptions: TestOptions.Regular10, 331parseOptions: TestOptions.Regular10, 446parseOptions: TestOptions.Regular10, 455parseOptions: TestOptions.Regular10, 533parseOptions: TestOptions.Regular10, 542parseOptions: TestOptions.Regular10, 620parseOptions: TestOptions.Regular10, 629parseOptions: TestOptions.Regular10,
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (213)
Compilation\CompilationAPITests.cs (2)
2066var ta = Parse("class C { }", options: TestOptions.Regular10); 2073class D { }", options: TestOptions.Regular10);
SymbolDisplay\SymbolDisplayTests.cs (2)
8257TestOptions.Regular10, 8280TestOptions.Regular10,
Symbols\CheckedUserDefinedOperatorsTests.cs (39)
37compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular10); 519compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 640compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 691compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 814compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 863compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.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 }) 1061compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 1111compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 1164compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 1214compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 1254compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular10); 1699compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 1822compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 1888compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 1932compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 2057compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 2116compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 2156foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 2160if (op == ">>>" && options == TestOptions.Regular10) 2280compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 2374compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 2488compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular10); 2858compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 3024compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 3177foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 3258compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 3308compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 3443var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 3836var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 4218var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 4679var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 4798var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 5229var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 5697var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 6327var compilation3 = CreateCompilationWithCSharp(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 6432var compilation3 = CreateCompilationWithCSharp(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 6551var compilation3 = CreateCompilationWithCSharp(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() });
Symbols\DefaultInterfaceImplementationTests.cs (32)
1777parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3, skipUsesIsNullable: true); 1821parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3); 1872parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3, 1929parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3, 4635parseOptions: TestOptions.Regular10, skipUsesIsNullable: true); 4677parseOptions: TestOptions.Regular10); 4736parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3, 4803parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3, 7598parseOptions: TestOptions.Regular10, skipUsesIsNullable: true); 7622parseOptions: TestOptions.Regular10); 7664parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3, 7713parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3, 9258parseOptions: isStatic ? TestOptions.Regular11 : TestOptions.Regular10, 9296parseOptions: TestOptions.Regular10, 33194parseOptions: TestOptions.Regular10, 33228parseOptions: TestOptions.Regular10, 33800parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3, 37275parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3, 37292parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3, 37988parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3, 38827parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3, 40304parseOptions: TestOptions.Regular10, 40334parseOptions: TestOptions.Regular10, 41489parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3, 52409parseOptions: isStatic ? TestOptions.Regular10 : TestOptions.Regular7_3, 57261parseOptions: TestOptions.Regular10, 57340parseOptions: TestOptions.Regular10, 57416parseOptions: TestOptions.Regular10, 59449parseOptions: TestOptions.Regular10, 68486parseOptions: TestOptions.Regular10, 68530parseOptions: TestOptions.Regular10, 68549parseOptions: TestOptions.Regular10,
Symbols\ExtensionMethodTests.cs (1)
2258var compilation = CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: "orange, apple");
Symbols\IndexedPropertyTests.cs (1)
2505var comp = CreateCompilationWithILAndMscorlib40(source, il, parseOptions: TestOptions.Regular10);
Symbols\RequiredMembersTests.cs (3)
235var comp = CreateCompilationWithRequiredMembers(code, parseOptions: TestOptions.Regular10); 315var comp = CreateCompilationWithRequiredMembers(code, parseOptions: use10 ? TestOptions.Regular10 : TestOptions.Regular11); 376comp = CreateCompilationWithRequiredMembers(code, parseOptions: use10 ? TestOptions.Regular10 : TestOptions.Regular11);
Symbols\Source\EventTests.cs (1)
1348CreateCompilation(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics(
Symbols\Source\FileModifierTests.cs (4)
35var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 55var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 81var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 114var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10);
Symbols\StaticAbstractMembersInInterfacesTests.cs (102)
69parseOptions: TestOptions.Regular10, 310parseOptions: TestOptions.Regular10, 1669parseOptions: TestOptions.Regular10, 1996parseOptions: TestOptions.Regular10, 2475parseOptions: TestOptions.Regular10, 2810parseOptions: TestOptions.Regular10, 3293parseOptions: TestOptions.Regular10, 3531parseOptions: TestOptions.Regular10, 4059parseOptions: TestOptions.Regular10, 4269parseOptions: TestOptions.Regular10, 4497parseOptions: TestOptions.Regular10, 4701parseOptions: TestOptions.Regular10, 8592parseOptions: TestOptions.Regular10, 8603parseOptions: TestOptions.Regular10, 9185parseOptions: TestOptions.Regular10, 9210parseOptions: TestOptions.Regular10, 9455parseOptions: TestOptions.Regular10, 9466parseOptions: TestOptions.Regular10, 9869parseOptions: TestOptions.Regular10, 9880parseOptions: TestOptions.Regular10, 12443parseOptions: TestOptions.Regular10, 12479parseOptions: TestOptions.Regular10, 12556parseOptions: TestOptions.Regular10, 12574parseOptions: TestOptions.Regular10, 12643parseOptions: TestOptions.Regular10, 12679parseOptions: TestOptions.Regular10, 12743parseOptions: TestOptions.Regular10, 12754parseOptions: TestOptions.Regular10, 13600parseOptions: TestOptions.Regular10, 13611parseOptions: TestOptions.Regular10, 13652parseOptions: TestOptions.Regular10, 13663parseOptions: TestOptions.Regular10, 13704parseOptions: TestOptions.Regular10, 13715parseOptions: TestOptions.Regular10, 14249parseOptions: TestOptions.Regular10, 14260parseOptions: TestOptions.Regular10, 14301parseOptions: TestOptions.Regular10, 14312parseOptions: TestOptions.Regular10, 14802parseOptions: TestOptions.Regular10, 14813parseOptions: TestOptions.Regular10, 15208parseOptions: TestOptions.Regular10, 15219parseOptions: TestOptions.Regular10, 15476parseOptions: TestOptions.Regular10, 15487parseOptions: TestOptions.Regular10, 15909parseOptions: TestOptions.Regular10, 15923parseOptions: TestOptions.Regular10, 16192foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 16321parseOptions: TestOptions.Regular10, 16368parseOptions: TestOptions.Regular10, 16673foreach (var parseOptions in new[] { TestOptions.RegularPreview, TestOptions.Regular10 }) 16853foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 16935foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 17017foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 17088foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 17162foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 17249foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 18776parseOptions: TestOptions.Regular10, 18814parseOptions: TestOptions.Regular10, 18904parseOptions: TestOptions.Regular10, 18958parseOptions: TestOptions.Regular10, 19920foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 19994foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 20077foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 20157foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 20304parseOptions: TestOptions.Regular10, 20439parseOptions: TestOptions.Regular10, 20498parseOptions: TestOptions.Regular10, 20578parseOptions: TestOptions.Regular10, 21285foreach (var parseOptions in new[] { TestOptions.RegularPreview, TestOptions.Regular10 }) 21345foreach (var parseOptions in new[] { TestOptions.RegularPreview, TestOptions.Regular10 }) 21448foreach (var parseOptions in new[] { TestOptions.RegularPreview, TestOptions.Regular10 }) 21691foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 21800foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 21902foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 22753parseOptions: TestOptions.Regular10, 22773parseOptions: TestOptions.Regular10, 23210foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 23416parseOptions: TestOptions.Regular10, 23493parseOptions: TestOptions.Regular10, 24771foreach (var parseOptions in new[] { TestOptions.RegularPreview, TestOptions.Regular10 }) 25013foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 25084foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 25531parseOptions: TestOptions.Regular10, 25554parseOptions: TestOptions.Regular10, 25897foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 26108parseOptions: TestOptions.Regular10, 26186parseOptions: TestOptions.Regular10, 27436foreach (var parseOptions in new[] { TestOptions.RegularPreview, TestOptions.Regular10 }) 27679foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 27750foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 28423parseOptions: TestOptions.Regular10, 28457parseOptions: TestOptions.Regular10, 28884foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 29043parseOptions: TestOptions.Regular10, 29103parseOptions: TestOptions.Regular10, 29509foreach (var parseOptions in new[] { TestOptions.RegularPreview, TestOptions.Regular10 }) 29626foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 29732foreach (var parseOptions in new[] { TestOptions.Regular10, TestOptions.RegularPreview }) 30636parseOptions: TestOptions.Regular10, 30661parseOptions: TestOptions.Regular10, 30722parseOptions: TestOptions.Regular10, 30733parseOptions: TestOptions.Regular10,
Symbols\SymbolErrorTests.cs (6)
10774comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 12820CreateCompilation(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 12836CreateCompilation(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 21333var comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 21394var comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 21439var comp = CreateCompilation(text, parseOptions: TestOptions.Regular10);
Symbols\UnsignedRightShiftTests.cs (20)
394parseOptions: TestOptions.Regular10); 897parseOptions: TestOptions.Regular10); 1012parseOptions: TestOptions.Regular10); 1053parseOptions: TestOptions.Regular10); 1450parseOptions: TestOptions.Regular10); 1858parseOptions: TestOptions.Regular10); 2710compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 2882compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.WithDocumentationMode(DocumentationMode.Diagnose)); 3113parseOptions: TestOptions.Regular10); 3207parseOptions: TestOptions.Regular10); 3301parseOptions: TestOptions.Regular10); 3395parseOptions: TestOptions.Regular10); 3429parseOptions: TestOptions.Regular10); 3446parseOptions: TestOptions.Regular10); 3481parseOptions: TestOptions.Regular10); 3498parseOptions: TestOptions.Regular10); 3533parseOptions: TestOptions.Regular10); 3550parseOptions: TestOptions.Regular10); 3585parseOptions: TestOptions.Regular10); 3602parseOptions: TestOptions.Regular10);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (103)
LexicalAndXml\LexicalErrorTests.cs (39)
975CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 994CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1016CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1039CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1061CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1084CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1108CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1131CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1154CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1177CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1201CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1243CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1316CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1370CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 1389CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1415CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1439CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 1458CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1483CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1508CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1530CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1557CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1584CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1608CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1633CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1658CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1683CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1710CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1737CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1762CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1790CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1818CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1844CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1869CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1897CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1925CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1951CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 1974CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 1994CreateCompilation(test, parseOptions: TestOptions.Regular10).VerifyDiagnostics(
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\ExpressionParsingTests.cs (7)
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\FileModifierParsingTests.cs (10)
267options: TestOptions.Regular10, 566options: TestOptions.Regular10, 1269options: TestOptions.Regular10, 1355options: TestOptions.Regular10, 1496options: TestOptions.Regular10, 1558options: TestOptions.Regular10, 2028options: TestOptions.Regular10, 2135options: TestOptions.Regular10, 2204options: TestOptions.Regular10, 2335options: TestOptions.Regular10,
Parsing\LambdaAttributeParsingTests.cs (1)
2795UsingExpression(source, TestOptions.Regular10);
Parsing\LambdaReturnTypeParsingTests.cs (1)
5012UsingTree(source, TestOptions.Regular10);
Parsing\LineSpanDirectiveParsingTests.cs (6)
87UsingLineDirective(source, TestOptions.Regular10); 128UsingLineDirective(source, TestOptions.Regular10); 2352UsingLineDirective(source, TestOptions.Regular10, 2390UsingLineDirective(source, TestOptions.Regular10, 2429UsingLineDirective(source, TestOptions.Regular10, 2468UsingLineDirective(source, TestOptions.Regular10,
Parsing\MemberDeclarationParsingTests.cs (7)
29public static readonly IEnumerable<object[]> Regular10AndScriptAndRequiredMembersMinimum = new[] { new[] { TestOptions.Regular10 }, new[] { RequiredMembersOptions }, new[] { TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp10) } }; 30public static readonly IEnumerable<object[]> Regular10AndScript = new[] { new[] { TestOptions.Regular10 }, new[] { TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp10) } }; 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 }) 1883options: TestOptions.Regular10);
Parsing\PatternParsingTests_ListPatterns.cs (1)
15private static CSharpParseOptions RegularWithoutListPatterns => TestOptions.Regular10;
Parsing\PatternParsingTests2.cs (2)
31CreateCompilation(testWithStatement, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 49UsingExpression(test, TestOptions.Regular10);
Parsing\RawInterpolatedStringLiteralCompilingTests.cs (1)
73}", parseOptions: TestOptions.Regular10).VerifyDiagnostics(
Parsing\RawStringLiteralCompilingTests.cs (1)
19}", parseOptions: TestOptions.Regular10).VerifyDiagnostics(
Parsing\RecordParsing.cs (11)
2673CreateCompilation(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 2677UsingTree(text, options: TestOptions.Regular10, 2727CreateCompilation(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 2728UsingTree(text, options: TestOptions.Regular10); 2731CreateCompilation(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics(); 2863UsingTree(text, options: TestOptions.Regular10); 2907CreateCompilation(text, parseOptions: TestOptions.Regular10).VerifyDiagnostics( 2914UsingTree(text, options: TestOptions.Regular10); 3208UsingTree(text, options: TestOptions.Regular10, 3338UsingTree(text, options: TestOptions.Regular10); 3358UsingTree(text, options: TestOptions.Regular10,
Parsing\Utf8StringLiteralsParsingTests.cs (8)
126UsingExpression(@"""hello""u8", options: TestOptions.Regular10); 162UsingExpression(@"@""hello""u8", options: TestOptions.Regular10); 198UsingExpression(@"""hello""U8", options: TestOptions.Regular10); 234UsingExpression(@"@""hello""U8", options: TestOptions.Regular10); 594foreach (var options in new[] { TestOptions.RegularDefault, TestOptions.Regular11, TestOptions.Regular10 }) 612foreach (var options in new[] { TestOptions.RegularDefault, TestOptions.Regular11, TestOptions.Regular10 }) 748foreach (var options in new[] { TestOptions.RegularDefault, TestOptions.Regular11, TestOptions.Regular10 }) 770foreach (var options in new[] { TestOptions.RegularDefault, TestOptions.Regular11, TestOptions.Regular10 })
Syntax\SyntaxTreeTests.cs (4)
340UsingTree(test, TestOptions.Regular10); 399UsingTree(test, TestOptions.Regular10); 481UsingTree(test, TestOptions.Regular10); 542UsingTree(test, TestOptions.Regular10);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
CodeGen\WinMdEventTests.cs (2)
281var verifier = CompileAndVerifyWithWinRt(source, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseWinMD); 374var verifier = CompileAndVerifyWithWinRt(source, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseWinMD);