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