935 references to UnsafeReleaseDll
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (134)
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)
1537
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
);
2452
var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
);
3219
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
));
7563
var allInCoreLib = CreateEmptyCompilation(source1 + source2, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
);
7583
var comp1 = CreateEmptyCompilation(source2, references: new[] { coreLib.EmitToImageReference() }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
);
7632
var allInCoreLib = CreateEmptyCompilation(source1 + source2, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
);
7652
var comp1 = CreateEmptyCompilation(source2, references: new[] { coreLib.EmitToImageReference() }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
);
9705
", UnmanagedCallersOnlyAttribute }, options: TestOptions.
UnsafeReleaseDll
);
11916
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
CodeGen\CodeGenInParametersTests.cs (1)
1267
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)
1026
var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.
UnsafeReleaseDll
);
1050
var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.
UnsafeReleaseDll
);
1093
var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.
UnsafeReleaseDll
);
1172
var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.
UnsafeReleaseDll
);
2566
var compilation = CreateCompilation(csharp, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.
UnsafeReleaseDll
);
2614
var compilation = CreateCompilation(csharp, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.
UnsafeReleaseDll
);
2665
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)
28963
", options: TestOptions.
UnsafeReleaseDll
, symbolValidator: symbolValidator);
CodeGen\FixedSizeBufferTests.cs (19)
328
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
361
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
398
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
569
var comp1 = CompileAndVerify(s1, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes).Compilation;
640
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
665
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
692
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
714
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
798
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
827
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
856
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
912
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
953
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
978
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes,
1010
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes,
1067
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1091
}", options: TestOptions.
UnsafeReleaseDll
);
1122
}", options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
1152
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\PatternTests.cs (3)
122
var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
);
152
var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
);
200
var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.
UnsafeReleaseDll
);
CodeGen\UnsafeTests.cs (66)
32
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes);
59
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
219
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes);
244
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
291
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
338
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
1586
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
2325
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
2387
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
2450
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
2506
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
2567
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
2628
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
2688
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
2764
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
2848
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
2978
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3029
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3094
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3178
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3258
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3314
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3359
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3413
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3463
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3515
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3569
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3622
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3676
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3726
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3776
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3825
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3865
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3906
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
3964
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4028
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
4095
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).
5956
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", @"
6046
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", @"
6136
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.FailsPEVerify).VerifyIL("C.M", @"
6226
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.FailsPEVerify).VerifyIL("C.M", @"
6367
CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", expectedIL);
6368
CompileAndVerify(string.Format(template, "checked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", expectedIL);
6430
CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", expectedIL);
6431
CompileAndVerify(string.Format(template, "checked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", expectedIL);
6636
CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes).VerifyIL("C.M", expectedIL);
6637
CompileAndVerify(string.Format(template, "checked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes).VerifyIL("C.M", expectedIL);
6705
CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes).VerifyIL("C.M", expectedIL);
6706
CompileAndVerify(string.Format(template, "checked"), options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes).VerifyIL("C.M", expectedIL);
7156
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("S.Main", @"
7221
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("S.Main", @"
7286
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("S.Main", @"
7351
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("S.Main", @"
10013
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", @"
10070
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.M", @"
10107
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.FailsPEVerify).VerifyIL("C.M", @"
10340
var compVerifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
10684
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyIL("C.Test", @"
10827
var c = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.FailsPEVerify with
10849
var c = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.FailsPEVerify with
10903
var comp = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
10927
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes).VerifyDiagnostics(
10950
var comp = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails).VerifyDiagnostics();
11315
var verifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
.WithConcurrentBuild(false), verify: Verification.Passes);
11339
var verifier = CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
.WithConcurrentBuild(false), verify: Verification.FailsPEVerify);
11357
var comp = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
CodeGen\WinMdDelegateTests.cs (1)
153
options: TestOptions.
UnsafeReleaseDll
,
Emit\CompilationEmitTests.cs (3)
4253
var compilation = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
4491
var compilation = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
4548
var compilation = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (13)
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 (10)
328
var comp = CreateEmptyCompilation(sourceA, options: TestOptions.
UnsafeReleaseDll
);
365
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
429
var comp = CreateEmptyCompilation(sourceA, options: TestOptions.
UnsafeReleaseDll
);
485
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
1363
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70).VerifyDiagnostics(
1377
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net70).VerifyDiagnostics(
1408
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics);
1409
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics);
9904
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
11812
options: TestOptions.
UnsafeReleaseDll
,
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (98)
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)
1333
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
1357
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
1558
", 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)
145
var reference = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).EmitToImageReference();
146
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)
10428
return CompileAndVerifyWithSkipLocalsInit(src, TestOptions.
UnsafeReleaseDll
, parseOptions, verify ?? Verification.Fails);
10502
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
10537
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
10570
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularWithExtendedPartialMethods, verify: Verification.Fails);
10603
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularWithExtendedPartialMethods, verify: Verification.Fails);
10695
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
10820
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
10850
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
10910
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11537
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11578
var comp1 = CompileAndVerify(source1, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11614
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11662
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11696
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11733
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11764
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11809
var comp_init = CompileAndVerify(source_init, options: TestOptions.
UnsafeReleaseDll
);
11810
var comp_skip = CompileAndVerify(source_skip, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11847
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
);
11890
var comp_init = CompileAndVerify(source_init, options: TestOptions.
UnsafeReleaseDll
);
11891
var comp_skip = CompileAndVerify(source_skip, options: TestOptions.
UnsafeReleaseDll
);
11933
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
11985
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12057
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12092
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12165
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12226
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12255
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
);
12301
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
);
12419
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12469
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12524
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12582
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12629
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12658
var comp = CompileAndVerify(source, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12799
var verifier = CompileAndVerify(src, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
13040
var verifier = CompileAndVerify(src, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Skipped);
13086
var verifier = CompileAndVerify(src, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Skipped);
13113
var comp = CreateCompilation(new[] { src, skipLocalsInitDef }, options: TestOptions.
UnsafeReleaseDll
);
Diagnostics\OperationAnalyzerTests.cs (1)
1386
CreateCompilationWithMscorlib461(source, options: TestOptions.
UnsafeReleaseDll
)
FirstClassSpanTests.cs (1)
1993
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();
RefReadonlyParameterTests.cs (8)
914
var verifier = CompileAndVerify(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.
UnsafeReleaseDll
,
1369
var comp1v1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, assemblyName: "Assembly1", options: TestOptions.
UnsafeReleaseDll
);
1385
var comp2 = CreateCompilation(source2, new[] { comp1v1Ref }, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1416
var comp1v2 = CreateCompilation(source1, new[] { comp4Ref }, assemblyName: "Assembly1", options: TestOptions.
UnsafeReleaseDll
);
1430
var comp1v3 = CreateCompilation(new[] { source1, source5 }, new[] { comp4Ref }, assemblyName: "Assembly1", options: TestOptions.
UnsafeReleaseDll
);
1437
var comp1v4 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, new[] { comp4Ref }, assemblyName: "Assembly1", options: TestOptions.
UnsafeReleaseDll
);
1477
assemblyName: "Assembly2", options: TestOptions.
UnsafeReleaseDll
);
1489
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\PatternMatchingTests4.cs (1)
3831
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
Semantics\PrimaryConstructorTests.cs (17)
13014
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13039
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
13058
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13085
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13117
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13149
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13183
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13221
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13265
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13298
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13335
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13396
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(expected);
13426
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13489
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(expected);
13520
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
13562
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
21909
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)
92
VerifyOperationTreeAndDiagnosticsForTest<SizeOfExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics, compilationOptions: TestOptions.
UnsafeReleaseDll
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (632)
Semantics\AccessCheckTests.cs (1)
1516
}", 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 (8)
697
CreateCompilationWithMscorlib461(source, null, TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
716
CreateCompilationWithMscorlib461(source, null, TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
739
CreateCompilationWithMscorlib461(source, null, TestOptions.
UnsafeReleaseDll
)
766
CreateCompilationWithMscorlib461(source, null, TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1214
CreateCompilationWithMscorlib461(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1253
CreateCompilationWithMscorlib461(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1505
TestOptions.
UnsafeReleaseDll
);
3299
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)
21
return CreateCompilation(source, options: options ?? TestOptions.
UnsafeReleaseDll
, parseOptions: parseOptions, targetFramework: targetFramework ?? TargetFramework.Standard);
2003
var comp = CreateCompilationWithIL(source, il, options: TestOptions.
UnsafeReleaseDll
);
2120
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)
780
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)
6529
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)
2839
""", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2870
""", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2901
""", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2923
""", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2948
""", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\NativeIntegerTests.cs (10)
1893
var comp = CreateEmptyCompilation(sourceA, options: TestOptions.
UnsafeReleaseDll
);
1930
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
2056
var comp = CreateEmptyCompilation(sourceA, options: TestOptions.
UnsafeReleaseDll
);
2112
comp = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
);
4373
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9).VerifyDiagnostics(
4382
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
4401
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
4402
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
4416
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9);
14370
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));
3560
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
83079
var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(TestOptions.
UnsafeReleaseDll
));
144959
var spanRef = CreateCompilation(TestSources.Span, options: TestOptions.
UnsafeReleaseDll
)
156285
}", 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)
1111
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
);
7859
var comp = CreateCompilation(src, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularPreview);
10595
var comp = CreateCompilation(src, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.RegularPreview);
Semantics\RefEscapingTests.cs (2)
6225
}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6251
}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\RefFieldTests.cs (34)
564
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
726
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
772
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
821
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
904
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1002
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1095
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1160
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1236
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1279
comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1316
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1350
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1395
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1440
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1487
var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.
UnsafeReleaseDll
);
1488
var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1543
var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.
UnsafeReleaseDll
);
1544
var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1595
var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.
UnsafeReleaseDll
);
1596
var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
1651
var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.
UnsafeReleaseDll
);
1652
var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
10157
var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10, options: TestOptions.
UnsafeReleaseDll
);
10566
options: (useUnsafe ? TestOptions.
UnsafeReleaseDll
: null));
10799
var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA), options: TestOptions.
UnsafeReleaseDll
);
10812
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionB), options: TestOptions.
UnsafeReleaseDll
);
16944
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
16976
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
20129
var comp = CreateCompilation(sourceB, options: TestOptions.
UnsafeReleaseDll
, targetFramework: TargetFramework.Net70);
24784
var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA), options: TestOptions.
UnsafeReleaseDll
);
29819
var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.
UnsafeReleaseDll
);
29851
var comp = CreateCompilationWithSpan(source, options: TestOptions.
UnsafeReleaseDll
);
30245
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
30296
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
Semantics\RefLocalsAndReturnsTests.cs (6)
4772
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4800
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4828
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4856
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4884
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
4915
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\SemanticErrorTests.cs (32)
7482
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8144
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8194
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8237
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8308
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8333
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8362
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8854
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8890
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8979
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9079
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9103
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9127
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10961
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
12278
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15333
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
15361
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
15362
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
15466
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15833
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
16425
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
16455
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
16484
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
16549
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
16952
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
17473
CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
18782
var comp = CreateCompilationWithMscorlib40AndSystemCore(source, new[] { CSharpRef }, options: TestOptions.
UnsafeReleaseDll
);
18830
var comp = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeReleaseDll
);
20208
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
22640
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
22663
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
24258
CreateCompilationWithMscorlib461(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\SpanStackSafetyTests.cs (2)
2008
options: TestOptions.
UnsafeReleaseDll
);
2049
options: TestOptions.
UnsafeReleaseDll
);
Semantics\StackAllocInitializerTests.cs (34)
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(
1506
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2119
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2283
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2354
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2460
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2547
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2637
}", TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Semantics\StackAllocSpanExpressionsTests.cs (17)
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(
412
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
781
CreateEmptyCompilation(code, references, TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
810
CreateCompilationWithMscorlibAndSpan(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
836
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 (381)
106
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
123
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
144
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
170
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
186
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
.WithAllowUnsafe(false)).VerifyDiagnostics(
190
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
205
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
.WithAllowUnsafe(false)).VerifyDiagnostics(
209
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
239
compilationOptions: TestOptions.
UnsafeReleaseDll
.WithAllowUnsafe(false),
246
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
262
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
278
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
283
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics();
284
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
301
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
306
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics();
307
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
324
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
329
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics();
330
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
348
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
353
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics();
354
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
379
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
397
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
398
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
421
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
445
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
446
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
468
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
492
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
493
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
513
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
535
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
559
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
583
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
639
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
644
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
645
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
664
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
676
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
677
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
754
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
755
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
853
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
873
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
878
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics();
879
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
900
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
905
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics();
906
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
924
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
936
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
937
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
955
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics();
964
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
965
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
983
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics();
984
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics();
985
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
1006
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics();
1015
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
1016
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1034
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics();
1043
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
1044
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1066
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics();
1075
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
1076
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1098
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyEmitDiagnostics();
1107
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
1108
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1126
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
1138
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
1139
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1157
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1158
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1159
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1179
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1180
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1181
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1202
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1203
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1204
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1227
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1228
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1229
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1245
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1246
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1247
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1263
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1268
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1269
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1292
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1293
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1294
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1309
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1329
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1348
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1366
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1389
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1390
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1415
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1416
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1437
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1438
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1439
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1462
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1463
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1464
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1485
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1486
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1487
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1510
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1511
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1512
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1528
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1529
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1530
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1546
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1551
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1552
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1575
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1576
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1577
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1592
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1611
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1634
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1635
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1657
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1658
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1659
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1683
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1684
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1685
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1707
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1708
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1709
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1736
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1737
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1738
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1755
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1756
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1757
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1774
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1779
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1780
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1804
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1805
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1806
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1822
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
1848
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1877
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1878
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1905
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1906
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1928
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1929
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1930
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1954
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1955
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1956
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
1978
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1979
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
1980
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2007
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
2008
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
2009
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
2026
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2027
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2028
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2045
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2050
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2051
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2075
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
2076
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
2077
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
2093
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2119
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2148
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
2149
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
2176
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
2177
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
2595
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
2596
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
2597
CreateCompilation(code, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
2620
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2643
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
3181
CreateCompilation(withoutUnsafe, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3193
CreateCompilation(withUnsafeOnType, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3198
CreateCompilation(withUnsafeOnMembers, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
3213
CreateCompilation(withUnsafeOnMembers, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
3214
CreateCompilation(withUnsafeOnMembers, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
3217
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
3231
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyDiagnostics(expectedDiagnostics);
3232
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedDiagnostics);
3249
CreateCompilation(withoutUnsafe, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3256
CreateCompilation(withUnsafeOnType, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
3259
CreateCompilation(withUnsafeOnMembers, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
3265
CreateCompilation(withUnsafeOnMembers, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics();
3266
CreateCompilation(withUnsafeOnMembers, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
3269
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
3275
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics();
3276
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics();
3293
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3317
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3360
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3373
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
.WithAllowUnsafe(false)).VerifyDiagnostics(
3377
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
3395
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
3419
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
4171
CreateCompilation(withoutUnsafe, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedWithoutUnsafe);
4174
CreateCompilation(withUnsafeOnType, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedWithUnsafe);
4177
CreateCompilation(withUnsafeOnMembers, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedWithUnsafe);
4180
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedWithUnsafe);
5188
var compilation = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeReleaseDll
);
5312
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
5379
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
6144
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6170
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6194
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6218
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6248
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6264
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
6367
var compilation = CreateCompilation(tree, new[] { metadata }, TestOptions.
UnsafeReleaseDll
);
6414
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
6432
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
6474
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
6497
CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6543
CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6640
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6791
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6825
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6870
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6927
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6947
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6967
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
6986
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7007
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7029
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7052
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7073
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7096
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7120
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7147
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7169
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
7187
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7210
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7233
CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
7253
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
7290
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
7319
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
7357
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
7395
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
7436
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
7451
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7470
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7488
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7507
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7531
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
7568
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
7585
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
7600
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7618
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7636
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7655
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7673
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7692
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7750
CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7795
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7841
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
7908
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
7967
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
7985
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8005
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8025
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8044
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8062
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8086
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
8107
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
8128
}", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
8154
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
8221
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
8279
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
8339
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
8375
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
8416
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8469
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
8519
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
8557
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8667
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8744
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8785
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8817
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
8851
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
8905
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
8943
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
8987
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9056
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9130
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
9151
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
9167
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9191
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
9211
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9249
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9274
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
9317
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
9374
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
9418
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9513
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9533
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9555
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9581
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9603
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9653
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9687
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9726
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9766
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9801
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9824
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
9828
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9855
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9900
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9936
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9956
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9986
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10008
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10061
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
10091
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10121
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10143
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10173
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
10214
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
10286
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
10353
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10478
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10509
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10560
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10845
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
10927
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11024
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11057
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11080
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11113
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11166
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
11176
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
11197
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
11202
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
11220
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11241
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
11250
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Script).VerifyDiagnostics(
11264
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Script).VerifyDiagnostics(
11277
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Script).VerifyDiagnostics(
11301
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
11381
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11408
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected);
11421
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected);
11457
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedWithUnsafe);
11461
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedWithUnsafe);
11465
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(expectedWithUnsafe);
11512
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected);
11540
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected);
11587
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
11623
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
11675
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected);
11697
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expected);
11734
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
11758
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
11803
var comp = CreateCompilation(tree, options: TestOptions.
UnsafeReleaseDll
);
11851
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11873
var compilation = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
11900
var comp = CreateCompilation(tree, options: TestOptions.
UnsafeReleaseDll
);
11936
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11959
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
12041
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
12057
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
12080
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
12329
CompileAndVerify(text, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails);
12412
var comp1 = CompileAndVerify(s1, options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Passes).Compilation;
12466
options: TestOptions.
UnsafeReleaseDll
, verify: Verification.Fails,
12568
}", 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 (46)
SymbolDisplay\SymbolDisplayTests.cs (1)
8632
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
Symbols\ConversionTests.cs (1)
2336
CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Symbols\FunctionPointerTypeSymbolTests.cs (3)
23
return CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.
UnsafeReleaseDll
, targetFramework: targetFramework);
1956
", options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9);
2082
", options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9);
Symbols\GenericConstraintTests.cs (1)
340
CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Symbols\PartialPropertiesTests.cs (2)
2036
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
2075
var comp = CreateCompilation(source, options: TestOptions.
UnsafeReleaseDll
);
Symbols\RequiredMembersTests.cs (1)
203
", options: TestOptions.
UnsafeReleaseDll
);
Symbols\Retargeting\RetargetingTests.cs (2)
975
}}", new[] { retargeted1Ref, consistentRef, ilRef }, options: TestOptions.
UnsafeReleaseDll
, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Standard);
980
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 (25)
2846
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2876
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2893
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
2915
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9347
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
9362
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
11975
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyEmitDiagnostics(
14465
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
14824
", options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15468
var comp = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
15482
var comp = CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
);
15498
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15513
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15528
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15540
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15555
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15582
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15600
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15615
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15629
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15646
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15680
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15705
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15726
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
15917
CreateCompilation(text, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Test.Utilities (6)
CSharpTestBase.cs (6)
2261
options: TestOptions.
UnsafeReleaseDll
);
2279
options: TestOptions.
UnsafeReleaseDll
);
2298
options: options ?? TestOptions.
UnsafeReleaseDll
,
2330
var reference = CreateCompilation(new[] { TestSources.Index, TestSources.Range, TestSources.Span }, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2347
var reference = CreateCompilation(new[] { TestSources.Span, TestSources.MemoryExtensions }, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();
2365
var reference = CreateCompilation(new[] { TestSources.Index, TestSources.Range, TestSources.Span, TestSources.MemoryExtensions }, options: TestOptions.
UnsafeReleaseDll
).VerifyDiagnostics();