1126 references to UnsafeReleaseDll
Microsoft.CodeAnalysis.CSharp.CSharp15.UnitTests (94)
UnsafeEvolutionTests.cs (94)
44
optionsDll ??= TestOptions.
UnsafeReleaseDll
;
3115
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
)
3118
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
3656
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules(apiUpdatedRules))
4728
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
4817
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
4834
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
4853
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
5328
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
5723
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules().WithMetadataImportOptions(MetadataImportOptions.All))
5836
optionsDll: TestOptions.
UnsafeReleaseDll
.WithMetadataImportOptions(MetadataImportOptions.All),
6091
options: TestOptions.
UnsafeReleaseDll
)
6114
options: TestOptions.
UnsafeReleaseDll
)
6131
options: TestOptions.
UnsafeReleaseDll
)
6149
options: TestOptions.
UnsafeReleaseDll
)
6160
options: TestOptions.
UnsafeReleaseDll
)
6171
options: TestOptions.
UnsafeReleaseDll
)
6185
options: TestOptions.
UnsafeReleaseDll
)
6202
options: TestOptions.
UnsafeReleaseDll
)
6223
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
)
6225
CreateCompilation(source, parseOptions: TestOptions.RegularNext, options: TestOptions.
UnsafeReleaseDll
)
6228
CreateCompilation(source, parseOptions: TestOptions.Regular14, options: TestOptions.
UnsafeReleaseDll
)
6641
options: TestOptions.
UnsafeReleaseDll
)
6664
options: TestOptions.
UnsafeReleaseDll
)
6681
options: TestOptions.
UnsafeReleaseDll
)
6699
options: TestOptions.
UnsafeReleaseDll
)
6710
options: TestOptions.
UnsafeReleaseDll
)
6721
options: TestOptions.
UnsafeReleaseDll
)
6735
options: TestOptions.
UnsafeReleaseDll
)
6752
options: TestOptions.
UnsafeReleaseDll
)
6773
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
)
6775
CreateCompilation(source, parseOptions: TestOptions.RegularNext, options: TestOptions.
UnsafeReleaseDll
)
6778
CreateCompilation(source, parseOptions: TestOptions.Regular14, options: TestOptions.
UnsafeReleaseDll
)
6839
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
6865
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
6885
options: TestOptions.
UnsafeReleaseDll
)
7168
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
7189
optionsDll: TestOptions.
UnsafeReleaseDll
.WithMetadataImportOptions(MetadataImportOptions.All),
7606
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
7813
options: TestOptions.
UnsafeReleaseDll
,
7959
options: TestOptions.
UnsafeReleaseDll
,
8031
options: TestOptions.
UnsafeReleaseDll
,
8098
options: TestOptions.
UnsafeReleaseDll
,
8141
options: TestOptions.
UnsafeReleaseDll
,
8183
options: TestOptions.
UnsafeReleaseDll
,
8275
options: TestOptions.
UnsafeReleaseDll
,
8372
options: TestOptions.
UnsafeReleaseDll
)
8474
options: TestOptions.
UnsafeReleaseDll
)
8559
options: TestOptions.
UnsafeReleaseDll
)
8670
options: TestOptions.
UnsafeReleaseDll
,
8753
options: TestOptions.
UnsafeReleaseDll
,
8860
options: TestOptions.
UnsafeReleaseDll
,
8939
options: TestOptions.
UnsafeReleaseDll
,
9006
options: TestOptions.
UnsafeReleaseDll
,
9077
options: TestOptions.
UnsafeReleaseDll
,
9210
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
9250
options: TestOptions.
UnsafeReleaseDll
)
9706
optionsDll: TestOptions.
UnsafeReleaseDll
.WithMetadataImportOptions(MetadataImportOptions.All),
9829
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
9869
options: TestOptions.
UnsafeReleaseDll
)
9967
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
9972
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
9979
options: TestOptions.
UnsafeReleaseDll
)
9984
options: TestOptions.
UnsafeReleaseDll
)
10006
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
10051
options: TestOptions.
UnsafeReleaseDll
)
10151
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
10156
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
10163
options: TestOptions.
UnsafeReleaseDll
)
10168
options: TestOptions.
UnsafeReleaseDll
)
10190
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
10311
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
10316
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
10323
options: TestOptions.
UnsafeReleaseDll
)
10328
options: TestOptions.
UnsafeReleaseDll
)
10349
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
10389
options: TestOptions.
UnsafeReleaseDll
)
10479
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
10484
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
10491
options: TestOptions.
UnsafeReleaseDll
)
10496
options: TestOptions.
UnsafeReleaseDll
)
10518
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
10558
options: TestOptions.
UnsafeReleaseDll
)
10624
options: TestOptions.
UnsafeReleaseDll
,
10637
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules(),
10649
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
10674
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
10709
options: TestOptions.
UnsafeReleaseDll
,
10718
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules(),
10750
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules(),
10777
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules(),
10788
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
10850
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules()
11196
options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules())
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (157)
BreakingChanges.cs (1)
776
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
CodeGen\CodeGenCheckedTests.cs (1)
391
var verifier = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
CodeGen\CodeGenDynamicTests.cs (1)
14056
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
CodeGen\CodeGenExprLambdaTests.cs (3)
1181
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
);
2096
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
);
2872
options: TestOptions.
UnsafeReleaseDll
,
CodeGen\CodeGenFunctionPointersTests.cs (18)
40
options: options ?? (expectedOutput is null ? TestOptions.
UnsafeReleaseDll
: TestOptions.UnsafeReleaseExe),
48
return CreateCompilation(source, references: references, options: options ?? TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularPreview, targetFramework: targetFramework ?? TargetFramework.Net50);
56
return CreateCompilation(source, references: references, options: options ?? TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.Empty);
61
var comp = CreateCompilationWithIL(source, ilStub, parseOptions: TestOptions.RegularPreview, options: expectedOutput is null ? TestOptions.
UnsafeReleaseDll
: TestOptions.UnsafeReleaseExe);
70
return CreateCompilationWithIL(source, ilStub, references: references, options: options ?? TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.Empty);
2593
}", references: new[] { nopiaReference }, parseOptions: TestOptions.RegularPreview, options: TestOptions.
UnsafeReleaseDll
).EmitToImageReference();
2630
}", references: new[] { aRef }, assemblyName: "B", parseOptions: TestOptions.RegularPreview, options: TestOptions.
UnsafeReleaseDll
).EmitToImageReference();
2639
}", references: new[] { aRef, bRef }, assemblyName: "C", parseOptions: TestOptions.RegularPreview, options: TestOptions.
UnsafeReleaseDll
);
2660
}", references: new[] { aRef }, assemblyName: "B", parseOptions: TestOptions.RegularPreview, options: TestOptions.
UnsafeReleaseDll
).EmitToImageReference();
2669
}", references: new[] { aRef, bRef }, assemblyName: "C", parseOptions: TestOptions.RegularPreview, options: TestOptions.
UnsafeReleaseDll
);
5026
", options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularPreview);
5395
var comp = CreateCompilationWithFunctionPointers(source, options: WithNullableEnable(TestOptions.
UnsafeReleaseDll
));
7561
var allInCoreLib = CreateEmptyCompilation(source1 + source2, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
);
7581
var comp1 = CreateEmptyCompilation(source2, references: new[] { coreLib.EmitToImageReference() }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
);
7630
var allInCoreLib = CreateEmptyCompilation(source1 + source2, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
);
7650
var comp1 = CreateEmptyCompilation(source2, references: new[] { coreLib.EmitToImageReference() }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
);
9703
", UnmanagedCallersOnlyAttribute }, options: TestOptions.
UnsafeReleaseDll
);
11937
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
CodeGen\CodeGenInParametersTests.cs (1)
1270
var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.
UnsafeReleaseDll
);
CodeGen\CodeGenMscorlib.cs (4)
153
var c = CreateEmptyCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
880
var comp = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1037
var comp = CreateEmptyCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
1163
var comp = CreateEmptyCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
CodeGen\CodeGenNullCoalescingAssignmentTests.cs (1)
2751
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (7)
949
var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.
UnsafeReleaseDll
);
973
var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.
UnsafeReleaseDll
);
1016
var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.
UnsafeReleaseDll
);
1095
var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.
UnsafeReleaseDll
);
2489
var compilation = CreateCompilation(csharp, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.
UnsafeReleaseDll
);
2537
var compilation = CreateCompilation(csharp, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.
UnsafeReleaseDll
);
2588
var compilation = CreateCompilation(csharp, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.
UnsafeReleaseDll
);
CodeGen\CodeGenRefReadonlyReturnTests.cs (1)
688
var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.
UnsafeReleaseDll
);
CodeGen\CodeGenRefReturnTests.cs (2)
1303
CompileAndVerifyRef(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("Program.Main()", @"
1492
CompileAndVerifyRef(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("Program.Main()", @"
CodeGen\CodeGenTupleTest.cs (1)
28975
", options: TestOptions.
UnsafeReleaseDll
, symbolValidator: symbolValidator);
CodeGen\FixedSizeBufferTests.cs (21)
337
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
370
CreateCompilation(source, parseOptions: TestOptions.Regular14, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
389
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedPreviewDiagnostics);
390
CreateCompilation(source, parseOptions: TestOptions.RegularNext, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedPreviewDiagnostics);
420
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
594
var comp1 = CompileAndVerify(s1, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes).Compilation;
665
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
690
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
717
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
739
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
823
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
852
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
881
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
937
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
978
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
1003
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes,
1035
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes,
1092
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1116
}", options: TestOptions.
UnsafeReleaseDll
);
1147
}", options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
1177
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Mscorlib40, assemblyName: "fixedBuffer");
CodeGen\ForeachTest.cs (1)
66
}", options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("Test.Main", @"
CodeGen\IndexAndRangeTests.cs (1)
4705
options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics().EmitToImageReference();
CodeGen\PatternTests.cs (3)
123
var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
);
153
var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
);
201
var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
);
CodeGen\UnsafeTests.cs (86)
33
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes);
60
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
235
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes);
260
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
307
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
354
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
715
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M", """
768
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M", """
813
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M1", """
863
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M1", """
911
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M", """
960
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M", """
1008
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M", """
1049
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M", """
1093
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M", """
1184
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M", """
1233
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M", """
1282
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("S.M", """
1329
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("S.M", """
1375
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("S.M", """
1421
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("S.M", """
1469
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M", """
1519
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M", """
1569
CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M", """
1618
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M", """
1671
CompileAndVerify(source, verify: Verification.Fails, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.M", """
2606
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
3345
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3407
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3470
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3526
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3587
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3648
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3708
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3784
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3868
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3998
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4049
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4114
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4198
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4278
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4334
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4379
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4433
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4483
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4535
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4589
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4642
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4696
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4746
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4796
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4845
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4885
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4926
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4984
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
5048
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
5115
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
7093
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", @"
7183
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", @"
7273
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.FailsPEVerify).VerifyIL("C.M", @"
7363
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.FailsPEVerify).VerifyIL("C.M", @"
7504
CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", expectedIL);
7505
CompileAndVerify(string.Format(template, "checked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", expectedIL);
7567
CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", expectedIL);
7568
CompileAndVerify(string.Format(template, "checked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", expectedIL);
7773
CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes).VerifyIL("C.M", expectedIL);
7774
CompileAndVerify(string.Format(template, "checked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes).VerifyIL("C.M", expectedIL);
7842
CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes).VerifyIL("C.M", expectedIL);
7843
CompileAndVerify(string.Format(template, "checked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes).VerifyIL("C.M", expectedIL);
8293
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("S.Main", @"
8358
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("S.Main", @"
8423
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("S.Main", @"
8488
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("S.Main", @"
11152
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", @"
11209
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", @"
11246
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.FailsPEVerify).VerifyIL("C.M", @"
11479
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11849
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.Test", @"
11992
var c = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.FailsPEVerify with
12014
var c = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.FailsPEVerify with
12068
var comp = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
12092
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes).VerifyDiagnostics(
12115
var comp = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyDiagnostics();
12480
var verifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
.WithConcurrentBuild(false), verify: Verification.Passes);
12504
var verifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
.WithConcurrentBuild(false), verify: Verification.FailsPEVerify);
12522
var comp = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
CodeGen\WinMdDelegateTests.cs (1)
153
options: TestOptions.
UnsafeReleaseDll
,
Emit\CompilationEmitTests.cs (3)
4335
var compilation = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
4573
var compilation = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
4630
var compilation = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (15)
CodeGen\CodeGenMethodGroupConversionCachingTests.cs (3)
4686
CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.Test", @"
4722
CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C<T>.Test", @"
4762
CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
).VerifyIL("C.Test<T>", @"
Emit\NumericIntPtrTests.cs (12)
334
var comp = CreateEmptyCompilation(sourceA, options: TestOptions.
UnsafeReleaseDll
);
371
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
435
var comp = CreateEmptyCompilation(sourceA, options: TestOptions.
UnsafeReleaseDll
);
491
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
1369
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70).VerifyDiagnostics(
1383
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net70).VerifyDiagnostics(
1414
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics);
1415
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular14, targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics);
1417
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70).VerifyDiagnostics();
1418
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net70).VerifyDiagnostics();
9913
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
11821
options: TestOptions.
UnsafeReleaseDll
,
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (106)
Attributes\AttributeTests_Dynamic.cs (2)
103
var comp = CreateCompilationWithMscorlib40(s_dynamicTestSource, options: TestOptions.
UnsafeReleaseDll
, references: new[] { SystemCoreRef, ValueTupleRef, SystemRuntimeFacadeRef });
562
var comp = CreateCompilationWithMscorlib46(s_dynamicTestSource, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.
UnsafeReleaseDll
);
Attributes\AttributeTests_NativeInteger.cs (3)
1335
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
1359
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
1560
", options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9, symbolValidator: symbolValidator);
Attributes\AttributeTests_Security.cs (2)
1303
var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.
UnsafeReleaseDll
);
1383
var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.
UnsafeReleaseDll
);
Attributes\AttributeTests_Synthesized.cs (2)
159
var reference = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).EmitToImageReference();
160
var comp = CreateEmptyCompilation("", new[] { reference }, options: TestOptions.
UnsafeReleaseDll
.WithMetadataImportOptions(MetadataImportOptions.Internal));
Attributes\AttributeTests_Tuples.cs (2)
117
options: TestOptions.
UnsafeReleaseDll
,
239
options: TestOptions.
UnsafeReleaseDll
,
Attributes\AttributeTests_WellKnownAttributes.cs (39)
10468
return CompileAndVerifyWithSkipLocalsInit(src, TestOptions.
UnsafeReleaseDll
, parseOptions, verify ?? Verification.Fails);
10542
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
10577
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
10610
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularWithExtendedPartialMethods, verify: Verification.Fails);
10643
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularWithExtendedPartialMethods, verify: Verification.Fails);
10735
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
10860
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
10890
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
10950
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11616
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11657
var comp1 = CompileAndVerify(source1, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11693
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11741
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11775
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11812
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11843
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11888
var comp_init = CompileAndVerify(source_init, options: TestOptions.
UnsafeReleaseDll
);
11889
var comp_skip = CompileAndVerify(source_skip, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11926
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
);
11969
var comp_init = CompileAndVerify(source_init, options: TestOptions.
UnsafeReleaseDll
);
11970
var comp_skip = CompileAndVerify(source_skip, options: TestOptions.
UnsafeReleaseDll
);
12012
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12064
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12136
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12171
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12244
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12305
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12334
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
);
12380
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
);
12498
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12548
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12603
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12661
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12708
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12737
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12878
var verifier = CompileAndVerify(src, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
13119
var verifier = CompileAndVerify(src, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Skipped);
13165
var verifier = CompileAndVerify(src, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Skipped);
13192
var comp = CreateCompilation(new[] { src, skipLocalsInitDef }, options: TestOptions.
UnsafeReleaseDll
);
Diagnostics\OperationAnalyzerTests.cs (1)
1386
CreateCompilationWithMscorlib461(source, options: TestOptions.
UnsafeReleaseDll
)
FirstClassSpanTests.cs (1)
1994
var spanDll = CreateCompilation(TestSources.Span, options: TestOptions.
UnsafeReleaseDll
)
FlowAnalysis\FlowTests.cs (2)
1640
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1688
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
PartialEventsAndConstructorsTests.cs (4)
3068
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3093
CreateCompilation(source, parseOptions: TestOptions.Regular14, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3104
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
3105
CreateCompilation(source, parseOptions: TestOptions.RegularNext, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
RefReadonlyParameterTests.cs (8)
938
var verifier = CompileAndVerify(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.
UnsafeReleaseDll
,
1393
var comp1v1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, assemblyName: "Assembly1", options: TestOptions.
UnsafeReleaseDll
);
1409
var comp2 = CreateCompilation(source2, new[] { comp1v1Ref }, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1440
var comp1v2 = CreateCompilation(source1, new[] { comp4Ref }, assemblyName: "Assembly1", options: TestOptions.
UnsafeReleaseDll
);
1454
var comp1v3 = CreateCompilation(new[] { source1, source5 }, new[] { comp4Ref }, assemblyName: "Assembly1", options: TestOptions.
UnsafeReleaseDll
);
1461
var comp1v4 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, new[] { comp4Ref }, assemblyName: "Assembly1", options: TestOptions.
UnsafeReleaseDll
);
1501
assemblyName: "Assembly2", options: TestOptions.
UnsafeReleaseDll
);
1513
var comp3 = CreateCompilation(source2, new[] { comp1Ref }, assemblyName: "Assembly3", options: TestOptions.
UnsafeReleaseDll
);
RefUnsafeInIteratorAndAsyncTests.cs (18)
251
CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
266
CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(expectedDiagnostics);
267
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(expectedDiagnostics);
286
CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
301
CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(expectedDiagnostics);
302
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(expectedDiagnostics);
324
CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
336
CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(expectedDiagnostics);
337
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(expectedDiagnostics);
418
CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70).VerifyDiagnostics(
430
CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics);
431
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics);
573
CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
588
CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(expectedDiagnostics);
589
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(expectedDiagnostics);
838
CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70).VerifyDiagnostics(
850
CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics);
851
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics);
Semantics\PatternMatchingTests_ListPatterns.cs (4)
9500
var compilation = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
9539
var compilation = CreateCompilation([source, TestSources.Index], options: TestOptions.
UnsafeReleaseDll
);
9578
var compilation = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
9617
var compilation = CreateCompilation([source, TestSources.Index], options: TestOptions.
UnsafeReleaseDll
);
Semantics\PatternMatchingTests4.cs (1)
3834
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
Semantics\PrimaryConstructorTests.cs (17)
13155
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13180
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
13199
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13226
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13258
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13290
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13324
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13362
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13406
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13439
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13476
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13537
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(expected);
13567
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13630
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(expected);
13661
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13703
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
22098
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (6)
IOperation\FunctionPointerOperations.cs (1)
19
return CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9);
IOperation\IOperationTests_IConversionExpression.cs (4)
2934
compilationOptions: TestOptions.
UnsafeReleaseDll
,
2966
compilationOptions: TestOptions.
UnsafeReleaseDll
,
3002
compilationOptions: TestOptions.
UnsafeReleaseDll
,
3037
compilationOptions: TestOptions.
UnsafeReleaseDll
,
IOperation\IOperationTests_ISizeOfExpression.cs (1)
104
VerifyOperationTreeAndDiagnosticsForTest<SizeOfExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, compilationOptions: TestOptions.
UnsafeReleaseDll
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (686)
Semantics\AccessCheckTests.cs (1)
1518
}", options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9);
Semantics\ArglistTests.cs (2)
1543
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1567
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\BindingAsyncTests.cs (10)
694
CreateCompilationWithMscorlib461(source, null, TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
710
CreateCompilationWithMscorlib461(source, null, TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
730
CreateCompilationWithMscorlib461(source, null, TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular14)
756
CreateCompilationWithMscorlib461(source, null, TestOptions.
UnsafeReleaseDll
)
758
CreateCompilationWithMscorlib461(source, null, TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularNext)
772
CreateCompilationWithMscorlib461(source, null, TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1271
CreateCompilationWithMscorlib461(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1310
CreateCompilationWithMscorlib461(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1562
TestOptions.
UnsafeReleaseDll
);
3292
CreateCompilationWithMscorlib461(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\BindingTests.cs (1)
2038
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\DynamicTests.cs (12)
58
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
616
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
831
var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
);
1278
var comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
1281
comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
);
1891
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2152
var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
);
2336
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2366
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2842
var comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
2845
comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
);
2876
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\FunctionPointerTests.cs (3)
22
return CreateCompilation(source, options: options ?? TestOptions.
UnsafeReleaseDll
, parseOptions: parseOptions, targetFramework: targetFramework ?? TargetFramework.Standard);
2005
var comp = CreateCompilationWithIL(source, il, options: TestOptions.
UnsafeReleaseDll
);
2122
var comp = CreateCompilationWithIL("", il, references: new[] { cComp.ToMetadataReference() }, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.
UnsafeReleaseDll
);
Semantics\GenericConstraintsTests.cs (51)
2873
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2925
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3133
}", options: TestOptions.
UnsafeReleaseDll
);
3163
}", options: TestOptions.
UnsafeReleaseDll
);
3189
}", options: TestOptions.
UnsafeReleaseDll
);
3218
}", options: TestOptions.
UnsafeReleaseDll
);
3258
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3296
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
)
3320
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
)
3350
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
)
3385
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
)
3414
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
)
3417
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
3457
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
)
3464
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
3492
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
)
3534
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
)
3558
var compilation = CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
);
3578
var compilation = CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
);
3599
var compilation = CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
);
3623
var compilation = CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
);
3654
var compilation = CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
);
3679
var compilation = CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
);
3707
var compilation = CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
);
3735
var compilation = CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
);
3763
var compilation = CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
);
3794
var compilation = CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
);
3830
var compilation = CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
);
3862
var compilation = CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
);
3890
var compilation = CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
);
3962
CompileAndVerify(code, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Skipped)
4001
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
4008
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4031
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
4040
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4057
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
4064
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4081
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
4087
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4104
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
4110
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4127
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
4134
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4154
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
4161
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4184
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
4194
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4221
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3)
4231
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
)
4284
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4341
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
)
Semantics\ImplicitObjectCreationTests.cs (1)
775
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
Semantics\InterpolationTests.cs (1)
1113
var comp = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: Test.Utilities.TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
Semantics\LocalFunctionTests.cs (1)
6877
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
Semantics\NamedAndOptionalTests.cs (1)
774
var c = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.FailsPEVerify);
Semantics\NameLengthTests.cs (1)
555
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
Semantics\NameOfTests.cs (5)
2884
""", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2915
""", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2946
""", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2968
""", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2993
""", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\NativeIntegerTests.cs (12)
1898
var comp = CreateEmptyCompilation(sourceA, options: TestOptions.
UnsafeReleaseDll
);
1935
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
2061
var comp = CreateEmptyCompilation(sourceA, options: TestOptions.
UnsafeReleaseDll
);
2117
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
4378
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9).VerifyDiagnostics(
4387
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
4406
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
4407
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular14).VerifyDiagnostics(expectedDiagnostics);
4409
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4410
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularNext).VerifyDiagnostics();
4424
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9);
14378
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
Semantics\NullableReferenceTypesTests.cs (8)
1609
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2219
}", TestOptions.
UnsafeReleaseDll
);
2667
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
2693
var comp = CreateCompilation(source, options: WithNullable(TestOptions.
UnsafeReleaseDll
, NullableContextOptions.Enable));
3567
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
83180
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(TestOptions.
UnsafeReleaseDll
));
145070
var spanRef = CreateCompilation(TestSources.Span, options: TestOptions.
UnsafeReleaseDll
)
156456
}", parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
Semantics\OperatorTests.cs (2)
1686
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4767
", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
Semantics\OverloadResolutionTests.cs (1)
7002
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
Semantics\RawInterpolationTests.cs (1)
1109
var comp = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: Test.Utilities.TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
Semantics\ReadOnlyStructsTests.cs (1)
513
var comp = CreateCompilation(csharp, options: TestOptions.
UnsafeReleaseDll
);
Semantics\RecordStructTests.cs (3)
571
var comp = CreateCompilation(src, options: TestOptions.
UnsafeReleaseDll
);
7928
var comp = CreateCompilation(src, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularPreview);
10664
var comp = CreateCompilation(src, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularPreview);
Semantics\RefEscapingTests.cs (4)
4445
CreateCompilation([source, UnscopedRefAttributeDefinition], options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4520
CreateCompilation([source, UnscopedRefAttributeDefinition], options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9907
}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9933
}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\RefFieldTests.cs (41)
590
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
752
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70, parseOptions: TestOptions.Regular14);
793
comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
796
comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70, parseOptions: TestOptions.RegularNext);
820
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
869
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
952
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1050
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70, parseOptions: TestOptions.Regular14);
1121
comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1124
comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70, parseOptions: TestOptions.RegularNext);
1165
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1230
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1306
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70, parseOptions: TestOptions.Regular14);
1356
comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1359
comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70, parseOptions: TestOptions.RegularNext);
1377
comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1414
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1448
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1493
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1538
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1585
var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.
UnsafeReleaseDll
);
1586
var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1641
var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.
UnsafeReleaseDll
);
1642
var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1693
var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.
UnsafeReleaseDll
);
1694
var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1749
var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.
UnsafeReleaseDll
);
1750
var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
10291
var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10, options: TestOptions.
UnsafeReleaseDll
);
10700
options: (useUnsafe ? TestOptions.
UnsafeReleaseDll
: null));
10933
var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA), options: TestOptions.
UnsafeReleaseDll
);
10946
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB), options: TestOptions.
UnsafeReleaseDll
);
17046
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
17078
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
20230
var comp = CreateCompilation(sourceB, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
25369
var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA), options: TestOptions.
UnsafeReleaseDll
);
30662
var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.
UnsafeReleaseDll
);
30694
var comp = CreateCompilationWithSpan(source, options: TestOptions.
UnsafeReleaseDll
);
31088
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
31139
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
32263
var spanCompilation = CreateCompilation(TestSources.Span, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular8);
Semantics\RefLocalsAndReturnsTests.cs (6)
4766
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4794
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4822
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4850
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4878
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4909
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\SemanticErrorTests.cs (32)
7527
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8189
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8239
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8282
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8353
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8378
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8407
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8908
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8944
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9033
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9133
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9157
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9181
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11015
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
12332
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15452
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
15480
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
15481
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
15585
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15952
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
16549
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
16579
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
16608
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
16673
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
17076
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
17597
CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
18906
var comp = CreateCompilationWithMscorlib40AndSystemCore(source, new[] { CSharpRef }, options: TestOptions.
UnsafeReleaseDll
);
18954
var comp = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeReleaseDll
);
20332
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
22764
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
22787
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
24382
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
)
Semantics\SpanStackSafetyTests.cs (2)
2005
options: TestOptions.
UnsafeReleaseDll
);
2046
options: TestOptions.
UnsafeReleaseDll
);
Semantics\StackAllocInitializerTests.cs (36)
59
", TestOptions.
UnsafeReleaseDll
);
136
", TestOptions.
UnsafeReleaseDll
);
201
", TestOptions.
UnsafeReleaseDll
);
254
", TestOptions.
UnsafeReleaseDll
);
307
", TestOptions.
UnsafeReleaseDll
);
353
}", TestOptions.
UnsafeReleaseDll
);
426
}", TestOptions.
UnsafeReleaseDll
);
732
}", TestOptions.
UnsafeReleaseDll
);
755
}", TestOptions.
UnsafeReleaseDll
);
793
}", TestOptions.
UnsafeReleaseDll
);
812
}", TestOptions.
UnsafeReleaseDll
);
831
}", TestOptions.
UnsafeReleaseDll
);
852
}", TestOptions.
UnsafeReleaseDll
);
879
}", TestOptions.
UnsafeReleaseDll
);
904
}", TestOptions.
UnsafeReleaseDll
);
927
}", TestOptions.
UnsafeReleaseDll
);
1028
}", TestOptions.
UnsafeReleaseDll
);
1130
}", TestOptions.
UnsafeReleaseDll
);
1218
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1318
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1334
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1350
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1380
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1397
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1430
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1445
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1473
}", options: TestOptions.
UnsafeReleaseDll
, parseOptions: parseOptions).VerifyDiagnostics(
1507
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular14).VerifyDiagnostics(
1519
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1520
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularNext).VerifyDiagnostics();
2143
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2307
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2378
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2484
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2571
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2661
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\StackAllocSpanExpressionsTests.cs (19)
43
}", TestOptions.
UnsafeReleaseDll
);
117
}", TestOptions.
UnsafeReleaseDll
);
183
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
243
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
257
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
271
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
289
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
304
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
331
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
345
CreateCompilationWithMscorlibAndSpan(source, TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
353
CreateCompilationWithMscorlibAndSpan(source, TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
373
}", options: TestOptions.
UnsafeReleaseDll
, parseOptions: parseOptions).VerifyDiagnostics(
393
}", options: TestOptions.
UnsafeReleaseDll
, parseOptions: parseOptions).VerifyDiagnostics(
413
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular14).VerifyDiagnostics(
418
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
419
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularNext).VerifyDiagnostics();
785
CreateEmptyCompilation(code, references, TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
814
CreateCompilationWithMscorlibAndSpan(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
840
CreateCompilationWithMscorlibAndSpan(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\StructConstructorTests.cs (2)
3406
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular10);
3418
comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular11);
Semantics\TargetTypedDefaultTests.cs (1)
2722
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_1)
Semantics\TypeOfTests.cs (5)
53
""", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
67
""", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
83
""", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
99
""", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
118
""", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\UnsafeTests.cs (418)
107
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
124
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
145
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
171
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
187
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
.WithAllowUnsafe(false)).VerifyDiagnostics(
191
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
206
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
.WithAllowUnsafe(false)).VerifyDiagnostics(
210
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
240
compilationOptions: TestOptions.
UnsafeReleaseDll
.WithAllowUnsafe(false),
247
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
263
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
279
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
284
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics();
285
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
302
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
307
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics();
308
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
325
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
330
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics();
331
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
349
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
354
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics();
355
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
380
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
398
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
399
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
422
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
446
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
447
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
469
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
493
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
494
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
514
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
536
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
560
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
584
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
640
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
645
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
646
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
665
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
677
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
678
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
755
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
756
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
854
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
874
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
879
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics();
880
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
901
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
906
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics();
907
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
925
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
937
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
938
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
956
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics();
965
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
966
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
984
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics();
985
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics();
986
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
1007
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics();
1016
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
1017
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
1035
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics();
1044
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
1045
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
1067
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics();
1076
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
1077
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
1099
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics();
1108
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
1109
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
1127
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
1139
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
1140
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
1158
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1159
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1160
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1180
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1181
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1182
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
1203
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1204
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1205
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1228
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1229
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1230
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
1246
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1247
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1248
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1264
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1269
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1270
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1293
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1294
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1295
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
1310
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1330
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1349
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1367
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1390
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1391
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
1416
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1417
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
1438
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1439
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1440
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1463
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1464
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1465
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
1486
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1487
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1488
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1511
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1512
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1513
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
1529
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1530
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1531
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1547
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1552
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1553
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1576
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1577
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1578
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
1593
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1612
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1635
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1636
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
1658
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1659
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1660
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1684
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1685
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1686
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
1708
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1709
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1710
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1737
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1738
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1739
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
1756
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1757
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1758
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1775
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1780
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1781
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1805
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1806
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1807
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
1823
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1849
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1878
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1879
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
1906
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1907
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
1929
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1930
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1931
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1955
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1956
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1957
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
1979
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1980
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1981
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2008
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
2009
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
2010
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
2027
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2028
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2029
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2046
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2051
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2052
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2076
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
2077
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
2078
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
2094
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2120
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2149
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
2150
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
2177
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
2178
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
, expectedDiagnostics);
2195
CreateCompilation(code, parseOptions: TestOptions.Regular14, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2200
CreateCompilation(code, parseOptions: TestOptions.RegularPreview, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2201
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2218
CreateCompilation(code, parseOptions: TestOptions.Regular14, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2223
CreateCompilation(code, parseOptions: TestOptions.RegularPreview, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2224
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2642
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
2643
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
2644
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
2667
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2690
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
3238
CreateCompilation(withoutUnsafe, parseOptions: TestOptions.Regular14, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3249
CreateCompilation(withoutUnsafe, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3252
CreateCompilation(withoutUnsafe, parseOptions: TestOptions.RegularNext, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3257
CreateCompilation(withUnsafeOnType, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3262
CreateCompilation(withUnsafeOnMembers, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
3277
CreateCompilation(withUnsafeOnMembers, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
3278
CreateCompilation(withUnsafeOnMembers, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
3281
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
3295
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
3296
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
3313
CreateCompilation(withoutUnsafe, parseOptions: TestOptions.Regular14, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3319
CreateCompilation(withoutUnsafe, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
3320
CreateCompilation(withoutUnsafe, parseOptions: TestOptions.RegularNext, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
3323
CreateCompilation(withUnsafeOnType, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
3326
CreateCompilation(withUnsafeOnMembers, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
3332
CreateCompilation(withUnsafeOnMembers, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics();
3333
CreateCompilation(withUnsafeOnMembers, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
3336
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
3342
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics();
3343
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
3360
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3384
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3427
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3440
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
.WithAllowUnsafe(false)).VerifyDiagnostics(
3444
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
3462
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3486
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4256
CreateCompilation(withoutUnsafe, parseOptions: TestOptions.Regular14, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedWithoutUnsafe);
4261
CreateCompilation(withoutUnsafe, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(previewExpected);
4265
CreateCompilation(withoutUnsafe, parseOptions: TestOptions.RegularNext, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(previewExpected);
4268
CreateCompilation(withUnsafeOnType, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedWithUnsafe);
4271
CreateCompilation(withUnsafeOnMembers, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedWithUnsafe);
4274
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedWithUnsafe);
5295
var compilation = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeReleaseDll
);
5419
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
5486
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
6251
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6277
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6301
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6325
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6355
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6371
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
6474
var compilation = CreateCompilation(tree, new[] { metadata }, TestOptions.
UnsafeReleaseDll
);
6521
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
6539
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
6581
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
6604
CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6650
CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6747
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6898
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6932
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6977
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7034
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7054
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7074
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7093
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7114
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7136
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7159
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7180
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7203
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7227
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7254
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7276
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
7294
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7317
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7340
CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
7360
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
7397
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
7426
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
7464
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
7502
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
7543
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
7558
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7577
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7595
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7614
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7638
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
7675
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
7692
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
7707
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7725
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7743
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7762
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7780
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7799
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7857
CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7902
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7948
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
8015
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
8074
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8092
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8112
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8132
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8151
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8169
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8193
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
8214
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
8235
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
8261
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
8328
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
8386
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
8446
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
8482
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
8523
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8576
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
8626
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
8664
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8774
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8851
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8892
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8924
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
8958
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
9012
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
9050
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9094
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9163
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9237
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
9258
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
9274
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9298
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
9318
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9356
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9381
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
9424
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
9481
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
9525
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9620
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9640
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9662
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9688
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9710
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9760
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9794
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9833
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9873
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9908
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9931
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
9935
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9962
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10007
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10043
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10063
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10093
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10115
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10168
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
10198
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10228
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10250
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10280
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
10321
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
10393
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
10460
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10588
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10619
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10670
CreateCompilation(text, parseOptions: TestOptions.Regular14, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10696
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedPreviewDiagnostics);
10697
CreateCompilation(text, parseOptions: TestOptions.RegularNext, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedPreviewDiagnostics);
10973
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11055
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11152
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11185
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11208
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11241
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11294
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
11304
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
11325
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
11330
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
11348
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11369
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
11378
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Script).VerifyDiagnostics(
11392
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Script).VerifyDiagnostics(
11405
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Script).VerifyDiagnostics(
11429
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
11509
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11536
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected);
11539
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
.WithUpdatedMemorySafetyRules()).VerifyDiagnostics(expected);
11552
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected);
11588
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedWithUnsafe);
11592
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedWithUnsafe);
11596
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedWithUnsafe);
11643
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected);
11671
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected);
11718
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
11754
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
11806
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected);
11828
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected);
11865
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
11889
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
11938
var comp = CreateCompilation(tree, options: TestOptions.
UnsafeReleaseDll
);
11986
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
12008
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
12035
var comp = CreateCompilation(tree, options: TestOptions.
UnsafeReleaseDll
);
12071
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
12094
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
12176
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
12192
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
12215
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
12464
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12547
var comp1 = CompileAndVerify(s1, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes).Compilation;
12601
options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails,
12703
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
13564
parseOptions: TestOptions.Regular14, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
13569
CreateCompilation(src1, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
13570
CreateCompilation(src1, parseOptions: TestOptions.RegularNext, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
13578
parseOptions: TestOptions.Regular14, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
13583
CreateCompilation(src2, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
13584
CreateCompilation(src2, parseOptions: TestOptions.RegularNext, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
13596
parseOptions: TestOptions.Regular14, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
13601
CreateCompilation(src1, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
13602
CreateCompilation(src1, parseOptions: TestOptions.RegularNext, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
13610
parseOptions: TestOptions.Regular14, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
13615
CreateCompilation(src2, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
13616
CreateCompilation(src2, parseOptions: TestOptions.RegularNext, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
14792
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
14811
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
14833
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
14853
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
14874
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
14894
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
14910
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
,
14931
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
14950
VerifyUnsafeContextDiagnostics(code, TestOptions.
UnsafeReleaseDll
,
14974
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\UserDefinedConversionTests.cs (1)
1151
var comp = CreateCompilation(source1 + source2 + source3 + source4 + source5, options: TestOptions.
UnsafeReleaseDll
);
Semantics\UseSiteErrorTests.cs (1)
2260
CSharpCompilationOptions options = TestOptions.
UnsafeReleaseDll
;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (56)
SymbolDisplay\SymbolDisplayTests.cs (1)
8919
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
Symbols\ConversionTests.cs (1)
2337
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Symbols\FunctionPointerTypeSymbolTests.cs (3)
23
return CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
, targetFramework: targetFramework);
1950
", options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9);
2076
", options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9);
Symbols\GenericConstraintTests.cs (1)
340
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Symbols\PartialPropertiesTests.cs (4)
2063
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
2102
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular14, options: TestOptions.
UnsafeReleaseDll
);
2108
comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
2111
comp = CreateCompilation(source, parseOptions: TestOptions.RegularNext, options: TestOptions.
UnsafeReleaseDll
);
Symbols\RequiredMembersTests.cs (1)
203
", options: TestOptions.
UnsafeReleaseDll
);
Symbols\Retargeting\RetargetingTests.cs (2)
978
}}", new[] { retargeted1Ref, consistentRef, ilRef }, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Standard);
983
options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9,
Symbols\Source\ClsComplianceTests.cs (8)
442
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
565
CreateCompilation(source, new[] { lib1, lib2, lib3 }, TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
762
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
849
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics();
1181
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1228
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1271
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2935
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Symbols\SymbolDistinguisherTests.cs (2)
233
var libRef = CreateCompilation(tree, assemblyName: "Metadata", options: TestOptions.
UnsafeReleaseDll
).EmitToImageReference();
234
var comp = CreateCompilation(tree, new[] { libRef }, assemblyName: "Source", options: TestOptions.
UnsafeReleaseDll
);
Symbols\SymbolErrorTests.cs (33)
2846
CreateCompilation(text, parseOptions: TestOptions.Regular14, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2864
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedPreviewDiagnostics);
2865
CreateCompilation(text, parseOptions: TestOptions.RegularNext, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedPreviewDiagnostics);
2886
CreateCompilation(text, parseOptions: TestOptions.Regular14, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2904
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedPreviewDiagnostics);
2905
CreateCompilation(text, parseOptions: TestOptions.RegularNext, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedPreviewDiagnostics);
2916
CreateCompilation(text, parseOptions: TestOptions.Regular14, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2921
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2922
CreateCompilation(text, parseOptions: TestOptions.RegularNext, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2941
CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular14, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2946
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2947
CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.RegularNext, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
9440
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9455
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
12068
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
14558
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
14917
", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15561
var comp = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
15575
var comp = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
15591
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15606
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15621
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15633
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15648
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15675
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15693
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15708
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15722
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15739
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15773
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15798
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15819
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
16010
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Test.Utilities (6)
CSharpTestBase.cs (6)
2878
options: TestOptions.
UnsafeReleaseDll
);
2896
options: TestOptions.
UnsafeReleaseDll
);
2915
options: options ?? TestOptions.
UnsafeReleaseDll
,
2947
var reference = CreateCompilation(new[] { TestSources.Index, TestSources.Range, TestSources.Span }, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2964
var reference = CreateCompilation(new[] { TestSources.Span, TestSources.MemoryExtensions }, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2982
var reference = CreateCompilation(new[] { TestSources.Index, TestSources.Range, TestSources.Span, TestSources.MemoryExtensions }, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();