8 instantiations of Verification
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Emit\NumericIntPtrTests.cs (2)
9035
CompileAndVerify(comp, verify: new
Verification
() { Status = VerificationStatus.PassesOrFailFast | VerificationStatus.FailsPEVerify }, expectedOutput: IncludeExpectedOutput(expectedResult));
9070
CompileAndVerify(comp, verify: new
Verification
() { Status = VerificationStatus.FailsPEVerify | VerificationStatus.PassesOrFailFast }, expectedOutput: IncludeExpectedOutput(expectedResult)).VerifyDiagnostics(expectedDiagnostics);
Microsoft.CodeAnalysis.Test.Utilities (6)
CommonTestBase.cs (6)
54
public static readonly Verification Skipped =
new
() { Status = VerificationStatus.Skipped };
55
public static readonly Verification Passes =
new
() { Status = VerificationStatus.Passes };
56
public static readonly Verification FailsPEVerify =
new
() { Status = VerificationStatus.FailsPEVerify };
57
public static readonly Verification FailsILVerify =
new
() { Status = VerificationStatus.FailsILVerify };
58
public static readonly Verification Fails =
new
() { Status = VerificationStatus.Fails };
59
public static readonly Verification PassesOrFailFast =
new
() { Status = VerificationStatus.PassesOrFailFast };
2930 references to Verification
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (728)
CodeGen\CodeGenAsyncIteratorTests.cs (34)
719
var verifier = CompileAndVerify(comp, expectedOutput: "123", verify:
Verification
.FailsILVerify);
878
var verifier = CompileAndVerify(comp, expectedOutput: "123", verify:
Verification
.FailsILVerify);
8523
CompileAndVerify(comp, expectedOutput: ExpectedOutput("42"), verify:
Verification
.FailsPEVerify);
8558
CompileAndVerify(comp, expectedOutput: ExpectedOutput("42"), verify:
Verification
.FailsPEVerify);
8599
CompileAndVerify(comp, expectedOutput: ExpectedOutput("42"), verify:
Verification
.FailsPEVerify);
8857
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
9055
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
9096
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
9141
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
9182
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
9378
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
9424
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
9447
CompileAndVerify(src, expectedOutput: ExpectedOutput("42"), verify:
Verification
.Skipped, targetFramework: TargetFramework.Net80).VerifyDiagnostics();
9474
var verifier = CompileAndVerify(src, expectedOutput: ExpectedOutput("value value True"), verify:
Verification
.Skipped, targetFramework: TargetFramework.Net80).VerifyDiagnostics();
9640
CompileAndVerify(src, expectedOutput: ExpectedOutput("value value True"), verify:
Verification
.Skipped, targetFramework: TargetFramework.Net80).VerifyDiagnostics();
9673
CompileAndVerify(src, expectedOutput: ExpectedOutput("value exception True"), verify:
Verification
.Skipped, targetFramework: TargetFramework.Net80).VerifyDiagnostics();
9701
CompileAndVerify(src, expectedOutput: ExpectedOutput("value True"), verify:
Verification
.Skipped, targetFramework: TargetFramework.Net80).VerifyDiagnostics();
9745
CompileAndVerify(src, expectedOutput: ExpectedOutput("value value True"), verify:
Verification
.Skipped, targetFramework: TargetFramework.Net80).VerifyDiagnostics();
9784
CompileAndVerify(src, expectedOutput: ExpectedOutput("value value True"), verify:
Verification
.Skipped, targetFramework: TargetFramework.Net80).VerifyDiagnostics();
9830
CompileAndVerify(src, expectedOutput: ExpectedOutput("value exception True"), verify:
Verification
.Skipped, targetFramework: TargetFramework.Net80).VerifyDiagnostics();
9863
CompileAndVerify(src, expectedOutput: ExpectedOutput("value True"), verify:
Verification
.Skipped, targetFramework: TargetFramework.Net80).VerifyDiagnostics();
9914
verify:
Verification
.Skipped, targetFramework: TargetFramework.Net80).VerifyDiagnostics();
10138
CompileAndVerify(src, expectedOutput: ExpectedOutput("exception True"), verify:
Verification
.Skipped, targetFramework: TargetFramework.Net80).VerifyDiagnostics();
10169
CompileAndVerify(src, expectedOutput: ExpectedOutput("value value True"), verify:
Verification
.Skipped, targetFramework: TargetFramework.Net80).VerifyDiagnostics();
10210
CompileAndVerify(src, expectedOutput: ExpectedOutput("value value outer True"), verify:
Verification
.Skipped, targetFramework: TargetFramework.Net80).VerifyDiagnostics();
10252
CompileAndVerify(src, expectedOutput: ExpectedOutput("False 0 False 1 True"), verify:
Verification
.Skipped, targetFramework: TargetFramework.Net80).VerifyDiagnostics();
10295
verify:
Verification
.Skipped, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe);
CodeGen\CodeGenAsyncLocalsTests.cs (3)
27
private CompilationVerifier CompileAndVerify(string source, string expectedOutput = null, IEnumerable<MetadataReference> references = null, CSharpCompilationOptions options = null,
Verification
verify = default)
1301
var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"1", verify:
Verification
.Fails);
1406
verifier = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: @"1", verify:
Verification
.Fails);
CodeGen\CodeGenAsyncSpillTests.cs (6)
960
CompileAndVerify(source, verify:
Verification
.Passes, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
3279
verify:
Verification
.FailsILVerify with { ILVerifyMessage = "[MoveNext]: Unrecognized arguments for delegate .ctor. { Offset = 0x6d }" });
3713
verify:
Verification
.Fails // localloc is not verifiable.
3720
verify:
Verification
.Fails // localloc is not verifiable.
3755
verify:
Verification
.Fails // localloc is not verifiable.
3762
verify:
Verification
.Fails // localloc is not verifiable.
CodeGen\CodeGenAsyncTests.cs (13)
36
private CompilationVerifier CompileAndVerify(string source, string expectedOutput, IEnumerable<MetadataReference> references = null, CSharpCompilationOptions options = null,
Verification
verify = default)
875
CompileAndVerify(source, expectedOutput: "0", options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails);
917
CompileAndVerify(source, options: TestOptions.UnsafeDebugExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "11", symbolValidator: debugSymbolValidator, verify:
Verification
.Fails)
919
CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "11", symbolValidator: releaseSymbolValidator, verify:
Verification
.Fails)
976
CompileAndVerify(source, options: TestOptions.UnsafeDebugExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "11", symbolValidator: debugSymbolValidator, verify:
Verification
.Fails)
978
CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "10", symbolValidator: releaseSymbolValidator, verify:
Verification
.Fails)
1148
CompileAndVerify(source, expectedOutput: "0", options: TestOptions.UnsafeDebugExe, verify:
Verification
.Passes);
1209
CompileAndVerify(source, expectedOutput: "0", options: TestOptions.UnsafeDebugExe, verify:
Verification
.Passes);
1250
CompileAndVerify(source, expectedOutput: "0", options: TestOptions.UnsafeDebugExe, verify:
Verification
.Passes);
5877
CompileAndVerify(source, options: TestOptions.DebugExe, verify:
Verification
.Skipped, expectedOutput: "0123").VerifyDiagnostics(diags);
5878
CompileAndVerify(source, options: TestOptions.ReleaseExe, verify:
Verification
.Skipped, expectedOutput: "0123").VerifyDiagnostics(diags);
6093
CompileAndVerify(src, expectedOutput: ExpectedOutput("value True"), targetFramework: TargetFramework.Net90, verify:
Verification
.Skipped).VerifyDiagnostics();
6136
targetFramework: TargetFramework.Net90, verify:
Verification
.Skipped).VerifyDiagnostics();
CodeGen\CodeGenAwaitForeachTests.cs (10)
2383
CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify).VerifyDiagnostics();
2386
CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify).VerifyDiagnostics();
2454
CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify).VerifyDiagnostics();
2457
CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify).VerifyDiagnostics();
2509
CompileAndVerify(source, parseOptions: TestOptions.Regular12, expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify).VerifyDiagnostics();
2510
CompileAndVerify(source, parseOptions: TestOptions.Regular13, expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify).VerifyDiagnostics();
2511
CompileAndVerify(source, expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify).VerifyDiagnostics();
2563
CompileAndVerify(comp, expectedOutput: "1 2 3 Done", verify:
Verification
.Fails);
9484
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
CodeGen\CodeGenAwaitUsingTests.cs (6)
3251
CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular13, verify:
Verification
.FailsILVerify).VerifyDiagnostics();
3252
CompileAndVerify(source, expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify).VerifyDiagnostics();
3723
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
3752
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
CodeGen\CodeGenCheckedTests.cs (1)
391
var verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify:
Verification
.Fails);
CodeGen\CodeGenClosureLambdaTests.cs (2)
2569
CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F", verify:
Verification
.Passes);
3249
verify:
Verification
.FailsILVerify with { ILVerifyMessage = "[Main]: Unrecognized arguments for delegate .ctor. { Offset = 0xe }" });
CodeGen\CodeGenConditionalOperatorTests.cs (1)
3015
CompileAndVerify(source, expectedOutput: expectedOutput, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails);
CodeGen\CodeGenConstructorInitTests.cs (1)
1151
CompileAndVerify(source, options: TestOptions.UnsafeDebugDll, verify:
Verification
.Skipped).VerifyIL("C..cctor()", @"
CodeGen\CodeGenDeconstructTests.cs (2)
7640
var comp = CompileAndVerify(source, expectedOutput: "42", verify:
Verification
.Passes);
7665
CompileAndVerify(compilation, expectedOutput: "10", verify:
Verification
.Fails);
CodeGen\CodeGenDynamicTests.cs (6)
36
Verification
verify = default)
337
CompileAndVerifyWithMscorlib40(source, new[] { systemCoreRef, csrtRef }, verify:
Verification
.Fails).VerifyIL("C.F", @"
9593
", allowUnsafe: true, verify:
Verification
.Fails);
9663
", allowUnsafe: true, verify:
Verification
.Fails);
9734
", allowUnsafe: true, verify:
Verification
.Fails);
9796
", verify:
Verification
.FailsILVerify); // ILVerify doesn't support TypedReference
CodeGen\CodeGenExprLambdaTests.cs (4)
26
Verification
verify = default) => CompileAndVerify(source, references, targetFramework: TargetFramework.Standard, expectedOutput: expectedOutput, options: options, parseOptions: parseOptions, verify: verify);
2481
CompileAndVerifyUtil(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: TrimExpectedOutput(expectedOutput), verify:
Verification
.Fails);
3220
verify:
Verification
.FailsPEVerify);
5263
var reference1 = BasicCompilationUtils.CompileToMetadata(source1, verify:
Verification
.Passes);
CodeGen\CodeGenForEachTests.cs (15)
1398
var verifier = CompileAndVerify(compilation, verify:
Verification
.FailsILVerify, expectedOutput: @"
1462
var compilation = CompileAndVerify(source, verify:
Verification
.FailsILVerify, expectedOutput: @"
1497
var compilation = CompileAndVerify(source, verify:
Verification
.FailsILVerify, expectedOutput: @"
1538
CompileAndVerify(source, verify:
Verification
.FailsILVerify, expectedOutput: @"123");
1579
CompileAndVerify(source, verify:
Verification
.FailsILVerify, expectedOutput: @"123");
1616
CompileAndVerify(source, verify:
Verification
.FailsILVerify, expectedOutput: @"123");
1653
CompileAndVerify(source, verify:
Verification
.FailsILVerify, expectedOutput: @"123");
3300
CompileAndVerify(comp, expectedOutput: "123", verify:
Verification
.Skipped);
4407
var verifier = CompileAndVerify(source, expectedOutput: "1235", verify:
Verification
.FailsILVerify);
4869
CompileAndVerify(source, parseOptions: TestOptions.Regular9, verify:
Verification
.FailsILVerify, expectedOutput: @"123Disposed")
5367
verify:
Verification
.Fails,
5407
verify:
Verification
.Fails,
5453
verify:
Verification
.Fails,
5534
verify:
Verification
.Skipped,
5593
CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? "42" : null, verify:
Verification
.Skipped)
CodeGen\CodeGenFunctionPointersTests.cs (10)
43
return CompileAndVerify(comp, symbolValidator: symbolValidator, expectedOutput: expectedOutput, verify:
Verification
.Skipped);
62
return CompileAndVerify(comp, expectedOutput: expectedOutput, symbolValidator: symbolValidator, verify:
Verification
.Skipped);
5400
CompileAndVerify(comp, symbolValidator: symbolValidator, verify:
Verification
.Skipped);
6277
verify:
Verification
.Skipped);
6287
verify:
Verification
.Skipped);
6518
CompileAndVerify(comp, symbolValidator: assertMethods, verify:
Verification
.Skipped);
6642
CompileAndVerify(comp, symbolValidator: assertMethods, verify:
Verification
.Skipped);
6720
CompileAndVerify(comp, symbolValidator: assertMethods, verify:
Verification
.Skipped);
6798
CompileAndVerify(comp, symbolValidator: assertMethods, verify:
Verification
.Skipped);
11022
var verifier = CompileAndVerify(comp, expectedOutput: "2", verify:
Verification
.Skipped);
CodeGen\CodeGenIncrementTests.cs (1)
1039
base.CompileAndVerify(source, verify:
Verification
.FailsILVerify, expectedOutput: "12").
CodeGen\CodeGenInParametersTests.cs (34)
113
0", verify:
Verification
.Fails);
752
var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify:
Verification
.Fails);
800
var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify:
Verification
.Fails, expectedOutput: @"42
854
var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify:
Verification
.Fails, expectedOutput: @"42
917
var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify:
Verification
.Fails, expectedOutput: "42");
938
comp = CompileAndVerify(text, verify:
Verification
.Fails, expectedOutput: "42", parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature());
977
var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify:
Verification
.Fails, expectedOutput: "42");
998
comp = CompileAndVerify(text, verify:
Verification
.Fails, expectedOutput: "42", parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature());
1038
var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify:
Verification
.Fails, expectedOutput: "42");
1089
var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify:
Verification
.Fails, expectedOutput: @"hi
1126
var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify:
Verification
.Fails);
1333
var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify:
Verification
.Fails);
1376
var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify:
Verification
.Fails);
1446
var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify:
Verification
.Passes, expectedOutput: @"42");
1479
var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify:
Verification
.Passes, expectedOutput: @"42");
1529
CompileAndVerify(comp, verify:
Verification
.Passes, expectedOutput: @"6");
1616
var verifier = CompileAndVerify(text, verify:
Verification
.Fails, expectedOutput: "6");
1752
var result = CompileAndVerify(comp, verify:
Verification
.Fails, expectedOutput: @"47");
1838
result = CompileAndVerify(comp, verify:
Verification
.Fails, expectedOutput: @"47");
1877
CompileAndVerify(comp, verify:
Verification
.Passes, expectedOutput: @"6");
1937
CompileAndVerify(comp, verify:
Verification
.Fails, expectedOutput: @"
2005
CompileAndVerify(comp, verify:
Verification
.Fails, expectedOutput: @"
2067
CompileAndVerify(comp, verify:
Verification
.Fails, expectedOutput: @"
2124
CompileAndVerify(comp, verify:
Verification
.Fails, expectedOutput: @"
2184
CompileAndVerify(comp, verify:
Verification
.Fails, expectedOutput: @"
2263
CompileAndVerify(comp, verify:
Verification
.Fails, expectedOutput: @"
2278
CompileAndVerify(comp, verify:
Verification
.Fails, expectedOutput: @"
2344
var v = CompileAndVerify(comp, verify:
Verification
.Fails, expectedOutput: @"
2431
v = CompileAndVerify(comp, verify:
Verification
.Passes, expectedOutput: @"
2574
var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify:
Verification
.Passes, expectedOutput: @"0");
2632
var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify:
Verification
.Passes, expectedOutput: @"");
2724
var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify:
Verification
.Passes, expectedOutput: @"4242420");
4011
var verifier = CompileAndVerify(compilation, expectedOutput: "0011", verify:
Verification
.FailsPEVerify);
4603
var verifier = CompileAndVerify(source, expectedOutput: "00", verify:
Verification
.FailsPEVerify);
CodeGen\CodeGenIterators.cs (2)
2392
var verifier = CompileAndVerify(compilation, verify:
Verification
.FailsPEVerify);
4031
var verifier = CompileAndVerify(comp, expectedOutput: "FalseTrue", verify:
Verification
.Skipped).VerifyDiagnostics();
CodeGen\CodeGenLocalFunctionTests.cs (9)
4609
VerifyOutput(source, output, TestOptions.ReleaseExe.WithAllowUnsafe(true).WithWarningLevel(0), verify:
Verification
.Passes);
4635
VerifyOutput(source, "2", TestOptions.ReleaseExe.WithAllowUnsafe(true), verify:
Verification
.Fails);
4661
VerifyOutput(source, "2", TestOptions.ReleaseExe.WithAllowUnsafe(true), verify:
Verification
.Fails);
4688
VerifyOutput(source, "2", TestOptions.ReleaseExe.WithAllowUnsafe(true), verify:
Verification
.Fails);
4728
VerifyOutput(src, $"10{Environment.NewLine}4", TestOptions.ReleaseExe.WithAllowUnsafe(true), verify:
Verification
.Fails);
5742
verify:
Verification
.Skipped);
5817
verify:
Verification
.Skipped);
5892
verify:
Verification
.Skipped);
6301
internal CompilationVerifier VerifyOutput(string source, string output, CSharpCompilationOptions options,
Verification
verify = default)
CodeGen\CodeGenMscorlib.cs (5)
619
CompileAndVerify(comp, verify:
Verification
.Skipped).
765
CompileAndVerify(comp, verify:
Verification
.Fails).
894
CompileAndVerify(comp, verify:
Verification
.Fails).
1041
var c = CompileAndVerify(comp, verify:
Verification
.Skipped);
1167
CompileAndVerify(comp, verify:
Verification
.Skipped).
CodeGen\CodeGenOverridingAndHiding.cs (1)
2559
CompileAndVerify(outerCompilation, verify:
Verification
.FailsPEVerify).VerifyIL("Test.Main", @"
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (52)
131
CompileAndVerify(comp, expectedOutput: "TrueTrue", verify:
Verification
.Passes).VerifyIL("Test.Main", @"
194
verify: type == "byte" ?
Verification
.Passes :
Verification
.Skipped).VerifyIL("Test.Main", @$"
254
CompileAndVerify(comp, expectedOutput: "TrueTrue", verify:
Verification
.Passes).VerifyIL("Test.Main", @"
307
CompileAndVerify(comp, expectedOutput: "True", verify:
Verification
.Passes).VerifyIL("Test.Main", @"
364
CompileAndVerify(comp, expectedOutput: "True", verify:
Verification
.Passes).VerifyIL("Test.Main", @"
418
CompileAndVerify(comp, expectedOutput: "3", verify:
Verification
.Passes).VerifyIL("Test.Main", @"
480
CompileAndVerify(comp, expectedOutput: "BlueTrue", verify:
Verification
.Fails).VerifyIL("Test.Main", @"
537
CompileAndVerify(comp, expectedOutput: "BlueTrue", verify:
Verification
.Passes).VerifyIL("Test.Main", @"
610
CompileAndVerify(comp, expectedOutput: "P10", verify:
Verification
.Fails).VerifyIL("Test.Main", @"
658
var cv = CompileAndVerify(comp, expectedOutput: "", verify:
Verification
.Passes);
726
var cv = CompileAndVerify(comp, expectedOutput: "100", verify:
Verification
.Passes);
765
var verifier = CompileAndVerify(compilation, expectedOutput: "10;20;", verify:
Verification
.Skipped);
804
var verifier = CompileAndVerify(compilation, expectedOutput: "10;20;", verify:
Verification
.Skipped);
899
var verifier = CompileAndVerify(compilation, verify:
Verification
.Skipped);
927
verifier = CompileAndVerify(compilation, verify:
Verification
.Skipped);
946
var verifier = CompileAndVerify(compilation, verify:
Verification
.Skipped);
1027
var verifier = CompileAndVerify(compilation, verify:
Verification
.Skipped);
1051
var verifier = CompileAndVerify(compilation, verify:
Verification
.Skipped);
1094
var verifier = CompileAndVerify(compilation, verify:
Verification
.Skipped);
1173
var verifier = CompileAndVerify(compilation, verify:
Verification
.Skipped);
1317
var verifier = CompileAndVerify(compilation, verify:
Verification
.Skipped);
1369
var verifier = CompileAndVerify(compilation, expectedOutput: "AF2D4567", verify:
Verification
.Skipped);
1482
var verifier = CompileAndVerify(compilation, verify:
Verification
.Skipped);
1516
var verifier = CompileAndVerify(compilation, verify:
Verification
.Passes);
1549
var verifier = CompileAndVerify(compilation, expectedOutput: "000000", verify:
Verification
.Passes);
1626
var verifier = CompileAndVerify(compilation, expectedOutput: "3402", verify:
Verification
.Fails with { ILVerifyMessage = ilVerifyMessage, PEVerifyMessage = peVerifyMessage });
1734
CompileAndVerify(source, expectedOutput: "34361843576", verify:
Verification
.Skipped, targetFramework: TargetFramework.Net70).VerifyIL("Test.Main", @"
2047
CompileAndVerify(compilation, expectedOutput: "34361843576", verify:
Verification
.Skipped).VerifyIL("Test.Main", @"
2407
var verifier = CompileAndVerify(compilation, verify:
Verification
.Skipped);
2514
var verifier = CompileAndVerify(compilation, verify:
Verification
.Skipped);
2542
verifier = CompileAndVerify(compilation, verify:
Verification
.Skipped);
2567
var verifier = CompileAndVerify(compilation, verify:
Verification
.Skipped);
2615
var verifier = CompileAndVerify(compilation, verify:
Verification
.Skipped);
2666
var verifier = CompileAndVerify(compilation, verify:
Verification
.Skipped);
2738
verify:
Verification
.FailsILVerify with { ILVerifyMessage = ilVerifyMessage });
2808
verify:
Verification
.FailsILVerify with { ILVerifyMessage = ilVerifyMessage });
2880
verify:
Verification
.FailsILVerify with { ILVerifyMessage = ilVerifyMessage });
2925
verify:
Verification
.FailsILVerify with { ILVerifyMessage = ilVerifyMessage });
2993
verify:
Verification
.FailsILVerify with { ILVerifyMessage = ilVerifyMessage });
3037
var verifier = CompileAndVerify(compilation, expectedOutput: "1 2147483647", verify:
Verification
.FailsILVerify);
3086
verify:
Verification
.FailsILVerify with { ILVerifyMessage = ilVerifyMessage });
3130
var verifier = CompileAndVerify(compilation, expectedOutput: "1 4294967295", verify:
Verification
.Skipped);
3176
verify:
Verification
.FailsILVerify with { ILVerifyMessage = ilVerifyMessage });
3245
verify:
Verification
.FailsILVerify with { ILVerifyMessage = ilVerifyMessage });
3287
var verifier = CompileAndVerify(compilation, verify:
Verification
.Skipped);
3352
CompileAndVerify(compilation, expectedOutput: "1 42", verify:
Verification
.Skipped).VerifyDiagnostics();
3369
CompileAndVerify(compilation, expectedOutput: "1 !", verify:
Verification
.Skipped).VerifyDiagnostics();
3386
var verifier = CompileAndVerify(compilation, expectedOutput: "2 True False", verify:
Verification
.Skipped).VerifyDiagnostics();
3411
var verifier = CompileAndVerify(compilation, verify:
Verification
.Skipped);
3434
var verifier = CompileAndVerify(compilation, verify:
Verification
.Skipped);
3528
var verifier = CompileAndVerify(compilation, verify:
Verification
.Passes);
CodeGen\CodeGenReadonlyStructTests.cs (28)
51
var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify:
Verification
.Fails, expectedOutput: @"12");
67
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), verify:
Verification
.Passes, expectedOutput: @"12");
122
var comp = CompileAndVerify(text, new[] { ref1 }, parseOptions: TestOptions.Regular, verify:
Verification
.Fails, expectedOutput: @"12");
138
comp = CompileAndVerify(text, new[] { ref1 }, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), verify:
Verification
.Passes, expectedOutput: @"12");
188
var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify:
Verification
.FailsPEVerify, expectedOutput: @"12");
206
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), verify:
Verification
.Passes, expectedOutput: @"12");
262
var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify:
Verification
.FailsPEVerify, expectedOutput: @"hello2");
281
comp = CompileAndVerify(text, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), verify:
Verification
.Passes, expectedOutput: @"hello2");
343
var comp = CompileAndVerify(text, new[] { ref1 }, parseOptions: TestOptions.Regular, verify:
Verification
.FailsPEVerify, expectedOutput: @"hello2");
362
comp = CompileAndVerify(text, new[] { ref1 }, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), verify:
Verification
.Passes, expectedOutput: @"hello2");
416
var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify:
Verification
.Passes, expectedOutput: @"12");
462
var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify:
Verification
.Passes, expectedOutput: @"12");
513
var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify:
Verification
.Passes, expectedOutput: @"Program+S1Program+S1");
570
var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify:
Verification
.Passes, expectedOutput: @"4242");
1092
CompileAndVerify(comp, expectedOutput: "24", verify:
Verification
.Fails);
1109
CompileAndVerify(comp, expectedOutput: "10", verify:
Verification
.Fails).VerifyIL("Test.Main", @"
1151
CompileAndVerify(comp, expectedOutput: "12345", verify:
Verification
.Fails).VerifyIL("Test.Main", @"
1200
CompileAndVerify(comp, expectedOutput: "30", verify:
Verification
.Fails).VerifyIL("Test.Main", @"
1261
CompileAndVerify(comp, expectedOutput: "overflow", verify:
Verification
.Fails).VerifyIL("Test.M", expectedIL);
1267
CompileAndVerify(comp, verify:
Verification
.Fails).VerifyIL("Test.M", expectedIL);
1298
CompileAndVerify(comp, expectedOutput: "SpanOpCalled|PointerOpCalled", verify:
Verification
.Fails);
1320
CompileAndVerify(comp, expectedOutput: "SpanOpCalled", verify:
Verification
.Fails);
2554
CompileAndVerify(csharp, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails, expectedOutput: "42");
2557
public static TheoryData<bool, CSharpParseOptions,
Verification
> ReadOnlyGetter_LangVersion_Data() =>
2558
new TheoryData<bool, CSharpParseOptions,
Verification
>
2560
{ false, TestOptions.Regular7_3,
Verification
.Passes },
2561
{ true, null,
Verification
.Fails }
2566
public void ReadOnlyGetter_LangVersion(bool isReadOnly, CSharpParseOptions parseOptions,
Verification
verify)
CodeGen\CodeGenRefConditionalOperatorTests.cs (21)
93
var comp = CompileAndVerify(source, expectedOutput: "44", verify:
Verification
.Fails);
129
var comp = CompileAndVerify(source, expectedOutput: "44", verify:
Verification
.Passes);
165
var comp = CompileAndVerify(source, expectedOutput: "55", verify:
Verification
.Passes);
203
var comp = CompileAndVerify(source, expectedOutput: "5555", verify:
Verification
.Passes);
250
var comp = CompileAndVerify(source, expectedOutput: "67", verify:
Verification
.Fails);
304
var comp = CompileAndVerify(source, expectedOutput: "446767", verify:
Verification
.Passes);
837
var comp = CompileAndVerify(source, expectedOutput: "1", verify:
Verification
.Passes);
881
var comp = CompileAndVerify(source, expectedOutput: "1", verify:
Verification
.Passes);
912
var comp = CompileAndVerify(source, expectedOutput: "1", verify:
Verification
.Passes);
1065
var comp = CompileAndVerifyWithMscorlib40(source, references: new[] { Net40.References.System, ValueTupleRef, Net40.References.SystemCore }, expectedOutput: "00", verify:
Verification
.FailsPEVerify);
1153
var comp = CompileAndVerify(source, expectedOutput: "00", verify:
Verification
.FailsPEVerify);
1221
verify(TestOptions.UnsafeReleaseExe,
Verification
.Passes, @"
1240
verify(TestOptions.UnsafeDebugExe,
Verification
.Fails, @"
1265
void verify(CSharpCompilationOptions options,
Verification
verify, string expectedIL)
1355
var verifier = CompileAndVerify(comp, expectedOutput: "0run", verify:
Verification
.Fails);
2383
CompileAndVerify(source, targetFramework: TargetFramework.NetCoreApp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null, options: TestOptions.ReleaseExe, verify:
Verification
.FailsPEVerify);
2384
CompileAndVerify(source, targetFramework: TargetFramework.NetCoreApp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null, options: TestOptions.DebugExe, verify:
Verification
.FailsPEVerify);
2422
CompileAndVerify(source, targetFramework: TargetFramework.NetCoreApp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null, options: TestOptions.ReleaseExe, verify:
Verification
.FailsPEVerify);
2423
CompileAndVerify(source, targetFramework: TargetFramework.NetCoreApp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null, options: TestOptions.DebugExe, verify:
Verification
.FailsPEVerify);
2473
CompileAndVerify(source, targetFramework: TargetFramework.NetCoreApp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null, options: TestOptions.ReleaseExe, verify:
Verification
.FailsPEVerify);
2474
CompileAndVerify(source, targetFramework: TargetFramework.NetCoreApp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null, options: TestOptions.DebugExe, verify:
Verification
.FailsPEVerify);
CodeGen\CodeGenRefLocalTests.cs (40)
37
var verifier = CompileAndVerify(src, verify:
Verification
.Fails);
67
verify:
Verification
.Fails);
92
verify:
Verification
.Fails,
561
}", verify:
Verification
.Fails, expectedOutput: @"42
1775
CompileAndVerify(text, options: TestOptions.DebugDll, verify:
Verification
.Fails).VerifyIL("Program.M", @"
1893
CompileAndVerify(text, options: TestOptions.DebugDll, verify:
Verification
.Fails).VerifyIL("Program.M<T>", @"
2172
CompileAndVerify(text, options: TestOptions.DebugDll, verify:
Verification
.Fails).VerifyIL("Program.M()", @"
2205
var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify:
Verification
.Fails);
2276
var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify:
Verification
.Fails);
2428
var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify:
Verification
.Fails);
2495
var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify:
Verification
.Fails);
2843
CompileAndVerify(text, options: TestOptions.DebugDll, verify:
Verification
.Fails).VerifyIL("Program.M()", @"
2880
var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify:
Verification
.Fails);
2951
var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify:
Verification
.Fails);
3048
var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify:
Verification
.Fails);
3118
CompileAndVerify(text, options: TestOptions.DebugDll, verify:
Verification
.Fails).VerifyIL("Program.M(ref int, ref int, object)", @"
3158
var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify:
Verification
.Fails);
3235
var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify:
Verification
.Fails);
3341
var comp = CompileAndVerify(text, options: TestOptions.DebugDll, verify:
Verification
.Fails);
3450
CompileAndVerify(text, options: TestOptions.DebugDll, verify:
Verification
.Fails).VerifyIL("Program.M(D, ref int, ref int, object)", @"
3487
verify:
Verification
.FailsPEVerify, targetFramework: TargetFramework.Net70);
3527
verify:
Verification
.FailsPEVerify, targetFramework: TargetFramework.Net70);
3564
verify:
Verification
.FailsPEVerify, targetFramework: TargetFramework.Net70);
3612
verify:
Verification
.Fails, targetFramework: TargetFramework.Net70);
3665
verify:
Verification
.Fails, targetFramework: TargetFramework.Net70);
3879
CompileAndVerify(text, options: TestOptions.UnsafeDebugDll, verify:
Verification
.Fails).VerifyIL("Program.Main()", @"
3952
CompileAndVerify(text, options: TestOptions.UnsafeDebugDll, verify:
Verification
.Passes).VerifyIL("Program.Main()", @"
4207
verify(TestOptions.UnsafeReleaseExe,
Verification
.Passes, @"
4222
verify(TestOptions.UnsafeDebugExe,
Verification
.Fails, @"
4239
void verify(CSharpCompilationOptions options,
Verification
verify, string expectedIL)
4311
var verifier = CompileAndVerify(comp, expectedOutput: "0", verify:
Verification
.Fails);
4332
verify(TestOptions.UnsafeReleaseExe,
Verification
.Passes, @"
4348
verify(TestOptions.UnsafeDebugExe,
Verification
.Fails, @"
4373
void verify(CSharpCompilationOptions options,
Verification
verify, string expectedIL)
4395
verify(TestOptions.UnsafeReleaseExe,
Verification
.Passes, @"
4408
verify(TestOptions.UnsafeDebugExe,
Verification
.Fails, @"
4425
void verify(CSharpCompilationOptions options,
Verification
verify, string expectedIL)
4447
verify(TestOptions.UnsafeReleaseExe,
Verification
.Passes, @"
4462
verify(TestOptions.UnsafeDebugExe,
Verification
.Fails, @"
4481
void verify(CSharpCompilationOptions options,
Verification
verify, string expectedIL)
CodeGen\CodeGenRefOutTests.cs (5)
543
var verifier = CompileAndVerify(comp, expectedOutput: "run", verify:
Verification
.Fails);
630
var verifier = CompileAndVerify(comp, expectedOutput: "run", verify:
Verification
.Fails);
692
var verifier = CompileAndVerify(comp, expectedOutput: "run", verify:
Verification
.Fails);
778
var verifier = CompileAndVerify(comp, expectedOutput: "0run", verify:
Verification
.Fails);
830
var verifier = CompileAndVerify(comp, expectedOutput: "run", verify:
Verification
.Fails);
CodeGen\CodeGenRefReadonlyReturnTests.cs (15)
62
var comp = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), verify:
Verification
.Fails);
87
comp = CompileAndVerify(source, verify:
Verification
.Fails);
294
}", verify:
Verification
.Fails);
433
}", options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Skipped, expectedOutput: "NullReferenceException");
805
var comp = CompileAndVerifyWithMscorlib40(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, parseOptions: TestOptions.Regular, verify:
Verification
.Passes);
883
var comp = CompileAndVerifyWithMscorlib40(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, parseOptions: TestOptions.Regular, verify:
Verification
.Fails);
915
comp = CompileAndVerify(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), verify:
Verification
.Fails, targetFramework: TargetFramework.Mscorlib40);
1235
}", verify:
Verification
.Fails).VerifyIL("Test.M", @"
1264
}", verify:
Verification
.Fails).VerifyIL("Test.M", @"
1291
}", verify:
Verification
.Fails).VerifyIL("Test.M", @"
1319
}", verify:
Verification
.Fails).VerifyIL("Test.M", @"
1348
}", verify:
Verification
.Fails).VerifyIL("Test.M", @"
1377
}", verify:
Verification
.Fails).VerifyIL("Test.M", @"
1404
}", verify:
Verification
.Fails).VerifyIL("Test.M", @"
1461
}", verify:
Verification
.Fails, expectedOutput: "optional-provided");
CodeGen\CodeGenRefReturnTests.cs (22)
25
Verification
verify = default)
62
}", verify:
Verification
.Fails, expectedOutput: @"42
108
CompileAndVerifyRef(text, verify:
Verification
.Skipped).VerifyIL("Program.M(ref int)", @"
131
CompileAndVerify(text, parseOptions: TestOptions.Regular10, verify:
Verification
.Fails).VerifyIL("Program.M(out int)", @"
158
CompileAndVerifyRef(text, verify:
Verification
.Fails).VerifyIL("Program.M(ref int)", @"
310
var compilation = CompileAndVerifyRef(text, verify:
Verification
.Passes);
502
var compilation = CompileAndVerifyRef(text, verify:
Verification
.Passes);
765
var compilation = CompileAndVerifyRef(text, verify:
Verification
.Fails);
1303
CompileAndVerifyRef(text, options: TestOptions.UnsafeReleaseDll, verify:
Verification
.Fails).VerifyIL("Program.Main()", @"
1492
CompileAndVerifyRef(text, options: TestOptions.UnsafeReleaseDll, verify:
Verification
.Fails).VerifyIL("Program.Main()", @"
1643
CompileAndVerify(text, parseOptions: TestOptions.Regular, expectedOutput: "42", verify:
Verification
.Fails).VerifyIL("Program.M()", @"
1716
CompileAndVerify(text, parseOptions: TestOptions.Regular, expectedOutput: "42", verify:
Verification
.Fails).VerifyIL("Program.M()", @"
1902
CompileAndVerifyRef(text, expectedOutput: "12", verify:
Verification
.Fails)
2000
CompileAndVerifyRef(text, expectedOutput: "1234", verify:
Verification
.Fails)
2105
CompileAndVerifyRef(text, expectedOutput: "1True", verify:
Verification
.Fails)
2203
CompileAndVerifyRef(text, expectedOutput: "1TrueTrue1TrueTrueTrueTrue1TrueTrue", verify:
Verification
.Fails)
2969
var v = CompileAndVerify(comp, verify:
Verification
.Fails, expectedOutput: "2");
3082
var v = CompileAndVerify(comp, verify:
Verification
.Fails, expectedOutput: "2");
3455
CompileAndVerify(source, parseOptions: TestOptions.Regular, expectedOutput: "Base", verify:
Verification
.Passes);
3548
CompileAndVerify(source, parseOptions: TestOptions.Regular, expectedOutput: "Program+RefFunc1`2[Derived2,Derived1]", verify:
Verification
.Passes);
3589
Program+RefFunc1`2[Derived1,Base]", verify:
Verification
.Passes);
3633
CompileAndVerify(text, expectedOutput: "37", parseOptions: TestOptions.Regular10, verify:
Verification
.Fails).VerifyIL("Program.Main()", @"
CodeGen\CodeGenScriptTests.cs (1)
557
var verifier = CompileAndVerify(s0, verify:
Verification
.FailsPEVerify);
CodeGen\CodeGenShortCircuitOperatorTests.cs (5)
5181
var verifier = CompileAndVerify(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), verify:
Verification
.Fails, expectedOutput: @"---
5232
var verifier = CompileAndVerify(source, verify:
Verification
.FailsILVerify, options: TestOptions.DebugExe.WithAllowUnsafe(true), expectedOutput: @"---
5543
var verifier = CompileAndVerify(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), verify:
Verification
.Fails, expectedOutput: @"---
7324
var comp = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"", verify:
Verification
.Fails);
7349
comp = CompileAndVerify(source, options: TestOptions.DebugExe, expectedOutput: @"", parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), verify:
Verification
.Passes);
CodeGen\CodeGenStackAllocInitializerTests.cs (38)
53
verify:
Verification
.Fails).VerifyIL("Program.MakeBlock",
126
verify:
Verification
.Fails).VerifyIL("Test.M<T>(T)",
216
CompileAndVerify(comp, verify:
Verification
.Fails).VerifyIL("Test.M<T>(T)",
316
verify:
Verification
.Fails).VerifyIL("C.Main",
371
verify:
Verification
.Fails).VerifyIL("C.Main",
413
verify:
Verification
.Passes).VerifyIL("C.Main",
432
verify:
Verification
.Fails).VerifyIL("C.Main",
495
verify:
Verification
.FailsPEVerify).VerifyIL("C.Main",
530
verify:
Verification
.Fails, expectedOutput: @"424242").VerifyIL("C.Main",
570
verify:
Verification
.Fails, expectedOutput: @"ffffffffffffffffffffffff").VerifyIL("C.Main",
614
verify:
Verification
.Fails, expectedOutput: @"ABCDDD").VerifyIL("C.Main",
672
verify:
Verification
.Fails, expectedOutput: @"123456789").VerifyIL("C.Main",
728
verify:
Verification
.Fails, expectedOutput: @"123").VerifyIL("C.Main",
870
CompileAndVerify(comp, verify:
Verification
.Fails, expectedOutput: @"123")
914
verify:
Verification
.FailsPEVerify, targetFramework: TargetFramework.Net70);
952
verify:
Verification
.Fails, targetFramework: TargetFramework.Net70);
980
verify:
Verification
.Fails, targetFramework: TargetFramework.Net70,
1005
verify:
Verification
.FailsPEVerify, targetFramework: TargetFramework.Net70);
1051
CompileAndVerify(comp, verify:
Verification
.Fails, expectedOutput: @"123")
1108
verify:
Verification
.Fails, targetFramework: TargetFramework.Net70);
1137
verify:
Verification
.Fails, targetFramework: TargetFramework.Net70,
1162
verify:
Verification
.Fails, targetFramework: TargetFramework.Net70);
1207
verify:
Verification
.Fails, targetFramework: TargetFramework.Net70);
1236
verify:
Verification
.Fails, targetFramework: TargetFramework.Net70,
1264
verify:
Verification
.Fails, targetFramework: TargetFramework.Net70);
1292
verify:
Verification
.Fails, targetFramework: TargetFramework.Net70,
1319
verify:
Verification
.Fails, targetFramework: TargetFramework.Net70);
1347
verify:
Verification
.Fails, targetFramework: TargetFramework.Net70,
1372
verify:
Verification
.Fails, targetFramework: TargetFramework.Net70);
1419
verify:
Verification
.FailsPEVerify, targetFramework: TargetFramework.Net70);
1457
verify:
Verification
.FailsPEVerify, targetFramework: TargetFramework.Net70);
1498
verify:
Verification
.Fails, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70);
1524
verify:
Verification
.Fails, options: TestOptions.UnsafeDebugExe, targetFramework: TargetFramework.Net70).VerifyDiagnostics();
1528
verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsCoreClr ? output : null, verify:
Verification
.Fails);
1580
verify:
Verification
.Fails, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70);
1637
verify:
Verification
.Fails, targetFramework: TargetFramework.Net70);
1674
verify:
Verification
.Fails, targetFramework: TargetFramework.Net70,
1701
verify:
Verification
.Fails,
CodeGen\CodeGenStructsAndEnum.cs (3)
1553
var compilation = CompileAndVerify(source, expectedOutput: "S1", verify:
Verification
.Skipped);
2099
var compilation = CompileAndVerify(source, verify:
Verification
.Fails, expectedOutput: "True");
2214
var compilation = CompileAndVerify(source, verify:
Verification
.Fails, expectedOutput: @"353
CodeGen\CodeGenTests.cs (32)
81
var result = CompileAndVerify(source, verify:
Verification
.FailsILVerify, options: TestOptions.DebugDll);
169
var result = CompileAndVerify(source, verify:
Verification
.FailsILVerify, options: TestOptions.DebugDll);
5101
var compilation = CompileAndVerify(source, expectedOutput: @"PASS", verify:
Verification
.Passes);
5162
var compilation = CompileAndVerify(source, expectedOutput: @"hi", verify:
Verification
.Fails);
5189
compilation = CompileAndVerify(source, expectedOutput: @"hi", verify:
Verification
.Passes, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature());
5254
var compilation = CompileAndVerify(source, expectedOutput: @"hihi", verify:
Verification
.Fails);
5275
compilation = CompileAndVerify(source, expectedOutput: @"hihi", verify:
Verification
.Fails, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature());
10458
CompileAndVerify(comp, verify:
Verification
.FailsPEVerify).VerifyIL("Test.Main",
12299
var comp = CompileAndVerify(source, expectedOutput: @"42", parseOptions: TestOptions.Regular7_2, verify:
Verification
.FailsPEVerify);
12332
comp = CompileAndVerify(source, expectedOutput: @"42", verify:
Verification
.Passes, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature());
12364
comp = CompileAndVerify(source, expectedOutput: @"42", verify:
Verification
.Passes, parseOptions: TestOptions.Regular7_1);
12453
var comp = CompileAndVerify(source, expectedOutput: @"-10", verify:
Verification
.FailsPEVerify);
12482
comp = CompileAndVerify(source, expectedOutput: @"-10", verify:
Verification
.Passes, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature());
14930
CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails, expectedOutput: @""
16290
CompileAndVerify(comp, expectedOutput: "24", verify:
Verification
.Fails);
16292
CompileAndVerify(comp, expectedOutput: "24", verify:
Verification
.Fails);
16313
CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.Fails).VerifyIL("Test.Main", @"
16335
CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.Fails).VerifyIL("Test.Main", @"
16389
CompileAndVerify(comp, expectedOutput: "12345", verify:
Verification
.Fails).VerifyIL("Test.Main", @"
16422
CompileAndVerify(comp, expectedOutput: "12345", verify:
Verification
.Fails).VerifyIL("Test.Main", @"
16482
CompileAndVerify(comp, expectedOutput: "6", verify:
Verification
.Fails).VerifyIL("Test.Main", @"
16501
CompileAndVerify(comp, expectedOutput: "6", verify:
Verification
.Fails).VerifyIL("Test.Main", @"
16538
CompileAndVerify(comp, expectedOutput: "6", verify:
Verification
.Fails).VerifyIL("Test.Main", @"
16560
CompileAndVerify(comp, expectedOutput: "6", verify:
Verification
.Fails).VerifyIL("Test.Main", @"
16603
CompileAndVerify(comp, expectedOutput: "6", verify:
Verification
.Fails).VerifyIL("Test.Main", @"
16658
CompileAndVerify(comp, expectedOutput: "6", verify:
Verification
.Fails).VerifyIL("Test.Main", @"
16747
CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.Fails);
16749
CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.Fails);
16771
CompileAndVerify(comp, expectedOutput: "SpanOpCalled", verify:
Verification
.Fails);
16773
CompileAndVerify(comp, expectedOutput: "SpanOpCalled", verify:
Verification
.Fails);
17241
var compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithAllowUnsafe(true), verify:
Verification
.Skipped, expectedOutput: @"");
17284
", verify:
Verification
.FailsILVerify with
CodeGen\CodeGenTryFinally.cs (2)
3828
verify:
Verification
.FailsPEVerify with
3860
verify:
Verification
.FailsPEVerify with
CodeGen\CodeGenTupleTest.cs (5)
23446
var comp = CompileAndVerify(source, expectedOutput: "42qq", references: new[] { libComp.ToMetadataReference() }, options: TestOptions.DebugExe, verify:
Verification
.Fails);
23502
var comp = CompileAndVerifyWithMscorlib40(source, expectedOutput: "42qq", references: s_valueTupleRefs.Concat(new[] { libCompRef }).ToArray(), options: TestOptions.DebugExe, verify:
Verification
.Fails);
23848
CompileAndVerify(comp, expectedOutput: "42qq", verify:
Verification
.Fails);
23901
var comp = CompileAndVerify(source, expectedOutput: "42qq", references: new[] { libCompRef }, options: TestOptions.DebugExe, verify:
Verification
.Passes);
27337
var verifier = CompileAndVerify(comp1, verify:
Verification
.Skipped); // unsafe code
CodeGen\CodeGenUsingStatementTests.cs (3)
3169
verify:
Verification
.FailsPEVerify,
3201
verify:
Verification
.FailsPEVerify,
3239
verify:
Verification
.FailsPEVerify,
CodeGen\DestructorTests.cs (1)
701
CompileAndVerify(compilation, verify:
Verification
.FailsPEVerify).VerifyIL("B.Finalize",
CodeGen\FixedSizeBufferTests.cs (15)
50
}", options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails);
115
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "12", verify:
Verification
.Fails)
176
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "12", verify:
Verification
.Passes)
227
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "12", verify:
Verification
.Passes)
278
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "12", verify:
Verification
.Passes)
439
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "12", verify:
Verification
.Fails)
504
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "12", verify:
Verification
.Fails)
569
var comp1 = CompileAndVerify(s1, options: TestOptions.UnsafeReleaseDll, verify:
Verification
.Passes).Compilation;
574
expectedOutput: "12", verify:
Verification
.Fails).Compilation;
607
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "12", verify:
Verification
.Fails)
758
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "133", verify:
Verification
.Fails)
978
CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify:
Verification
.Passes,
1010
CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify:
Verification
.Passes,
1052
}", options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Skipped, expectedOutput: @"
1122
}", options: TestOptions.UnsafeReleaseDll, verify:
Verification
.Fails);
CodeGen\ForeachTest.cs (5)
66
}", options: TestOptions.UnsafeReleaseDll, verify:
Verification
.Fails).VerifyIL("Test.Main", @"
449
CompileAndVerify(comp, expectedOutput: "RedGreenBlue", verify:
Verification
.Fails).VerifyIL("Test.Main", @"
500
CompileAndVerify(comp, expectedOutput: "hello", verify:
Verification
.Passes).VerifyIL("Test.Main", @"
548
CompileAndVerify(comp, expectedOutput: "123", verify:
Verification
.Fails).VerifyIL("Test.Main", @"
696
CompileAndVerify(comp, expectedOutput: "123", verify:
Verification
.Fails).VerifyIL("Test.Main", @"
CodeGen\GotoTest.cs (3)
933
CompileAndVerify(compilation, expectedOutput: expectedOutput, verify:
Verification
.Passes);
984
CompileAndVerify(compilation, expectedOutput: expectedOutput, verify:
Verification
.Fails);
1067
CompileAndVerify(compilation, expectedOutput: expectedOutput, verify:
Verification
.Passes);
CodeGen\IndexAndRangeTests.cs (1)
2100
var verifier = CompileAndVerify(comp, verify:
Verification
.Passes, expectedOutput: @"3
CodeGen\ObjectAndCollectionInitializerTests.cs (2)
3534
CompileAndVerify(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), expectedOutput: "1", verify:
Verification
.Fails);
3581
var verifier = CompileAndVerify(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), verify:
Verification
.Fails, expectedOutput:
CodeGen\PatternTests.cs (4)
4613
var verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Skipped, expectedOutput:
4670
var verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Skipped, expectedOutput:
4716
var verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Skipped, expectedOutput:
4956
var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput, verify:
Verification
.Skipped);
CodeGen\SwitchTests.cs (1)
4519
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsPEVerify);
CodeGen\UnsafeTests.cs (195)
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);
372
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "123", verify:
Verification
.Fails);
409
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "456", verify:
Verification
.Fails);
437
var compVerifierOptimized = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "2", verify:
Verification
.Fails);
456
var compVerifierUnoptimized = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: "2", verify:
Verification
.Fails);
500
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "1", verify:
Verification
.Fails);
553
After: 7 2", verify:
Verification
.Fails);
599
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"ab", verify:
Verification
.Fails);
647
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"12", verify:
Verification
.Fails);
694
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"3", verify:
Verification
.Fails);
712
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"3", verify:
Verification
.Fails);
752
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"34", verify:
Verification
.Fails);
776
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"34", verify:
Verification
.Fails);
827
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"123", verify:
Verification
.Fails);
849
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"123", verify:
Verification
.Fails);
903
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"123", verify:
Verification
.Fails);
926
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"123", verify:
Verification
.Fails);
970
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"34", verify:
Verification
.Fails);
1008
compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"34", verify:
Verification
.Fails);
1084
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails);
1204
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails);
1251
-1", verify:
Verification
.Fails);
1277
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "210", verify:
Verification
.Fails);
1297
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "1", verify:
Verification
.Fails).VerifyIL("C.Main", @"
1338
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"1", verify:
Verification
.Fails);
1396
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"123", verify:
Verification
.Fails);
1454
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"12", verify:
Verification
.Fails);
1524
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"12", verify:
Verification
.Fails);
1586
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify:
Verification
.Fails);
1659
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"12", verify:
Verification
.Fails);
1725
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"a", verify:
Verification
.Fails);
1770
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: @"a", verify:
Verification
.Fails);
1814
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: @"h", verify:
Verification
.Fails);
1871
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: @"hTrue", verify:
Verification
.Fails);
1956
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"hTrue", verify:
Verification
.Fails);
2027
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"01", verify:
Verification
.Fails);
2095
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"01", verify:
Verification
.Fails);
2163
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"01", verify:
Verification
.Fails);
2234
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"970104", 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).
4157
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify:
Verification
.Fails);
4217
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify:
Verification
.Fails);
4305
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"0", verify:
Verification
.Fails);
4356
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify:
Verification
.Fails);
4418
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify:
Verification
.Fails);
4658
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"20", verify:
Verification
.Fails);
4732
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails, expectedOutput: @"5456");
4792
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails, expectedOutput: @"5456");
4884
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails, expectedOutput: @"2123
4973
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails, expectedOutput: @"5456");
5033
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"23", verify:
Verification
.Fails);
5111
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"3", verify:
Verification
.Fails);
5539
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails, expectedOutput: @"");
5666
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"00", verify:
Verification
.Fails);
5868
CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify:
Verification
.Fails).VerifyIL("C.Main", expectedIL);
5869
CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify:
Verification
.Fails).VerifyIL("C.Main", expectedIL);
5919
CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify:
Verification
.Fails).VerifyIL("C.Main", expectedIL);
5920
CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify:
Verification
.Fails).VerifyIL("C.Main", expectedIL);
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);
6537
CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeDebugExe, expectedOutput: expectedOutput, verify:
Verification
.Fails).VerifyIL("C.Main", expectedIL, sequencePoints: "C.Main");
6538
CompileAndVerify(string.Format(template, "checked "), options: TestOptions.UnsafeDebugExe, expectedOutput: expectedOutput, verify:
Verification
.Fails).VerifyIL("C.Main", expectedIL, sequencePoints: "C.Main");
6594
CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify:
Verification
.Fails).VerifyIL("C.Main", expectedIL);
6595
CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify:
Verification
.Fails).VerifyIL("C.Main", 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);
6664
CompileAndVerifyException<NotSupportedException>(text, "Type is not supported.", allowUnsafe: true, verify:
Verification
.Fails);
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);
6735
CompileAndVerifyException<NotSupportedException>(text, "Type is not supported.", allowUnsafe: true, verify:
Verification
.Fails);
6760
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "12", verify:
Verification
.Fails).VerifyIL("C.Main", @"
6823
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "1234", verify:
Verification
.FailsPEVerify).VerifyIL("C.Main", @"
6936
CompileAndVerifyException<NotSupportedException>(text, "Type is not supported.", allowUnsafe: true, verify:
Verification
.Fails);
6984
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify:
Verification
.Passes).VerifyIL("C.Main", @"
7071
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify:
Verification
.Passes).VerifyIL("C.Main", @"
7113
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify:
Verification
.Passes).VerifyIL("C.Main", @"
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", @"
7421
CompileAndVerify(text, options: TestOptions.UnsafeDebugDll, verify:
Verification
.Fails).VerifyIL("C.Test", @"
7529
var comp = CompileAndVerify(text, options: TestOptions.UnsafeDebugDll, verify:
Verification
.Fails);
7699
2", verify:
Verification
.Fails).VerifyIL("S.Main", @"
7783
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "4", verify:
Verification
.Fails).VerifyIL("S.Main", @"
7847
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "4", verify:
Verification
.Fails).VerifyIL("S.Main", @"
7906
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "I0", verify:
Verification
.Fails).VerifyIL("S.Main", @"
7974
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "8", verify:
Verification
.Fails).VerifyIL("S.Main", @"
8081
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify:
Verification
.Fails).VerifyIL("S.Main", @"
8148
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "44", verify:
Verification
.Fails).VerifyIL("S.Main", @"
8206
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "11", verify:
Verification
.Fails).VerifyIL("S.Main", @"
8262
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "11", verify:
Verification
.Fails).VerifyIL("S.Main", @"
8321
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "01", verify:
Verification
.Fails).VerifyIL("S.Main", @"
8376
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "2", verify:
Verification
.Fails);
8774
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify:
Verification
.Fails);
8875
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify:
Verification
.Fails);
8910
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails, expectedOutput: expectedOutput);
8945
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify:
Verification
.Fails);
8954
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails, expectedOutput: @"
8981
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails, expectedOutput: @"
9045
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify:
Verification
.Fails);
9092
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify:
Verification
.Fails);
9122
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Passes, expectedOutput: @"
9172
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify:
Verification
.Passes);
9210
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify:
Verification
.Fails);
9251
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails, expectedOutput: @"
9360
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify:
Verification
.Fails);
9461
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify:
Verification
.Fails);
9496
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify:
Verification
.Fails);
9531
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify:
Verification
.Fails);
9588
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify:
Verification
.Fails);
9645
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify:
Verification
.Fails);
9692
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify:
Verification
.Fails);
9736
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify:
Verification
.Fails);
9784
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "011010011010", verify:
Verification
.Fails).VerifyIL("S.Main", @"
9884
False", verify:
Verification
.Skipped);
9926
False", verify:
Verification
.Skipped);
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", @"
10153
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails, expectedOutput: @"123
10194
var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails);
10267
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "0", verify:
Verification
.Fails).VerifyIL("T.Main", @"
10290
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "0", verify:
Verification
.Fails).VerifyIL("T.Main", @"
10340
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify:
Verification
.Fails);
10415
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails, expectedOutput: @"
10473
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify:
Verification
.FailsPEVerify);
10497
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: @"2", verify:
Verification
.Passes);
10684
CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify:
Verification
.Fails).VerifyIL("C.Test", @"
10768
CompileAndVerify(string.Format(template, "int"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify:
Verification
.Passes);
10769
CompileAndVerify(string.Format(template, "int*"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify:
Verification
.Passes);
10770
CompileAndVerify(string.Format(template, "int**"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify:
Verification
.Passes);
10771
CompileAndVerify(string.Format(template, "int[]"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify:
Verification
.Passes);
10772
CompileAndVerify(string.Format(template, "int[][]"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify:
Verification
.Passes);
10773
CompileAndVerify(string.Format(template, "int*[]"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify:
Verification
.Passes);
10807
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.FailsPEVerify with
10827
var c = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify:
Verification
.FailsPEVerify with
10849
var c = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify:
Verification
.FailsPEVerify with
10927
CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify:
Verification
.Passes).VerifyDiagnostics(
10950
var comp = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify:
Verification
.Fails).VerifyDiagnostics();
11003
var comp = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "ABC", verify:
Verification
.Fails).VerifyDiagnostics();
11070
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "b", verify:
Verification
.Fails);
11114
var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "hello", verify:
Verification
.Fails);
11183
var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails, expectedOutput: @"
11263
var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails, expectedOutput: @"
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);
11379
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F6543210", verify:
Verification
.Fails);
11425
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F6543210", verify:
Verification
.Fails);
11474
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F6543210", verify:
Verification
.Fails);
11516
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "F654320F", verify:
Verification
.Fails);
11559
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "0", verify:
Verification
.Passes);
11613
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "System.Byte[]", verify:
Verification
.Fails);
11686
var v = CompileAndVerify(text, options: TestOptions.UnsafeDebugExe, expectedOutput: "System.Byte[]", verify:
Verification
.Fails);
11832
CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, expectedOutput: "OK", verify:
Verification
.Passes);
11857
var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, expectedOutput: "0", verify:
Verification
.FailsPEVerify);
Emit\CompilationEmitTests.cs (22)
2128
CompileAndVerify(comp, emitOptions: EmitOptions.Default, verify:
Verification
.Passes);
2160
CompileAndVerify(comp, emitOptions: emitRegularWithoutPrivateMembers, verify:
Verification
.Passes);
2188
CompileAndVerify(comp, emitOptions: emitMetadataOnly, verify:
Verification
.Passes);
2217
CompileAndVerify(comp, emitOptions: emitRefOnly, verify:
Verification
.Passes);
2266
CompileAndVerify(comp, emitOptions: EmitOptions.Default, verify:
Verification
.Passes);
2276
CompileAndVerify(comp, emitOptions: emitMetadataOnly, verify:
Verification
.Passes);
2288
CompileAndVerify(comp, emitOptions: emitRefOnly, verify:
Verification
.Passes);
2333
CompileAndVerify(comp, emitOptions: EmitOptions.Default, verify:
Verification
.Passes);
2343
CompileAndVerify(comp, emitOptions: emitMetadataOnly, verify:
Verification
.Passes);
2355
CompileAndVerify(comp, emitOptions: emitRefOnly, verify:
Verification
.Passes);
2400
CompileAndVerify(comp, emitOptions: EmitOptions.Default, verify:
Verification
.Passes);
2410
CompileAndVerify(comp, emitOptions: emitMetadataOnly, verify:
Verification
.Passes);
2422
CompileAndVerify(comp, emitOptions: emitRefOnly, verify:
Verification
.Passes);
2461
CompileAndVerify(comp, emitOptions: emitRefOnly, verify:
Verification
.Passes);
2506
CompileAndVerify(comp, emitOptions: emitRefOnly, verify:
Verification
.Passes);
4254
CompileAndVerify(compilation, verify:
Verification
.Passes, symbolValidator: module =>
4291
CompileAndVerify(compilation, verify:
Verification
.Skipped, symbolValidator: module =>
4497
CompileAndVerify(compilation, verify:
Verification
.Passes, symbolValidator: module =>
4554
CompileAndVerify(compilation, verify:
Verification
.Passes, symbolValidator: module =>
4622
CompileAndVerify(source2, references: new[] { metadataRef }, options: TestOptions.ReleaseModule, verify:
Verification
.Fails);
5047
CompileAndVerify(comp, verify:
Verification
.Fails);
5553
CompileAndVerify(comp, verify:
Verification
.FailsILVerify, symbolValidator: module =>
Emit\CovariantReturnTests.cs (4)
283
CompileAndVerify(compilation, expectedOutput: expectedOutput, verify:
Verification
.Skipped);
316
CompileAndVerify(compilation, expectedOutput: expectedOutput, verify:
Verification
.Skipped);
443
CompileAndVerify(vbCompilation, verify:
Verification
.Skipped, expectedOutput: expectedOutput)
552
CompileAndVerify(compilation, expectedOutput: expectedOutput, verify:
Verification
.Skipped);
Emit\DeterministicTests.cs (1)
341
CompileAndVerify(forwardingCompilation, symbolValidator: metadataValidator, sourceSymbolValidator: metadataValidator, verify:
Verification
.Skipped);
Emit\DynamicAnalysis\DynamicInstrumentationTests.cs (2)
1225
CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.UnsafeDebugExe, expectedOutput: expectedOutput, verify:
Verification
.Fails);
3641
private CompilationVerifier CompileAndVerify(string source, string expectedOutput = null, CSharpCompilationOptions options = null, CSharpParseOptions parseOptions = null,
Verification
verify = default)
Emit\EmitCustomModifiers.cs (3)
47
CompileAndVerify(c, verify:
Verification
.Passes, expectedOutput:
709
CompileAndVerify(compilation, verify:
Verification
.FailsPEVerify);
743
CompileAndVerify(compilation, verify:
Verification
.FailsPEVerify);
Emit\EmitErrorTests.cs (3)
118
verify:
Verification
.Fails);
152
verify:
Verification
.Fails);
191
verify:
Verification
.Fails);
Emit\EmitMetadataTests.cs (3)
209
CompileAndVerifyWithMscorlib40(sources, new[] { TestReferences.SymbolsTests.MultiModule.Assembly }, verify:
Verification
.FailsILVerify, assemblyValidator: (assembly) =>
229
verify:
Verification
.Fails,
246
CompileAndVerify(source, new[] { netModule1, netModule2 }, verify:
Verification
.FailsILVerify, assemblyValidator: (assembly) =>
Emit\InAttributeModifierTests.cs (25)
1660
CompileAndVerify(code, verify:
Verification
.Passes, sourceSymbolValidator: validator, symbolValidator: validator);
1680
CompileAndVerify(code, verify:
Verification
.Passes, sourceSymbolValidator: validator, symbolValidator: validator);
1701
CompileAndVerify(code, verify:
Verification
.Passes, sourceSymbolValidator: validator, symbolValidator: validator);
1721
CompileAndVerify(code, verify:
Verification
.Passes, sourceSymbolValidator: validator, symbolValidator: validator);
1742
CompileAndVerify(code, verify:
Verification
.Passes, sourceSymbolValidator: validator, symbolValidator: validator);
1763
CompileAndVerify(code, verify:
Verification
.Passes, sourceSymbolValidator: validator, symbolValidator: validator);
1784
CompileAndVerify(code, verify:
Verification
.Passes, sourceSymbolValidator: validator, symbolValidator: validator);
1804
CompileAndVerify(code, verify:
Verification
.Passes, sourceSymbolValidator: validator, symbolValidator: validator);
1825
CompileAndVerify(code, verify:
Verification
.Passes, sourceSymbolValidator: validator, symbolValidator: validator);
1846
CompileAndVerify(code, verify:
Verification
.Passes, sourceSymbolValidator: validator, symbolValidator: validator);
1866
CompileAndVerify(code, verify:
Verification
.Passes, sourceSymbolValidator: validator, symbolValidator: validator);
1886
CompileAndVerify(code, verify:
Verification
.Passes, sourceSymbolValidator: validator, symbolValidator: validator);
1907
CompileAndVerify(code, verify:
Verification
.Passes, sourceSymbolValidator: validator, symbolValidator: validator);
1928
CompileAndVerify(code, verify:
Verification
.Passes, sourceSymbolValidator: validator, symbolValidator: validator);
1949
CompileAndVerify(code, verify:
Verification
.Passes, sourceSymbolValidator: validator, symbolValidator: validator);
1974
CompileAndVerify(code, verify:
Verification
.Passes, sourceSymbolValidator: validator, symbolValidator: validator);
1995
CompileAndVerify(code, verify:
Verification
.Passes, sourceSymbolValidator: validator, symbolValidator: validator);
2015
CompileAndVerify(code, verify:
Verification
.Passes, sourceSymbolValidator: validator, symbolValidator: validator);
2035
CompileAndVerify(code, verify:
Verification
.Passes, sourceSymbolValidator: validator, symbolValidator: validator);
2055
CompileAndVerify(code, verify:
Verification
.Passes, sourceSymbolValidator: validator, symbolValidator: validator);
2075
CompileAndVerify(code, verify:
Verification
.Passes, sourceSymbolValidator: validator, symbolValidator: validator);
2099
CompileAndVerify(code, verify:
Verification
.Passes, sourceSymbolValidator: validator, symbolValidator: validator);
2119
CompileAndVerify(code, verify:
Verification
.Passes, sourceSymbolValidator: validator, symbolValidator: validator);
4498
CompileAndVerify(code, verify:
Verification
.Passes, symbolValidator: module =>
4541
CompileAndVerify(code, verify:
Verification
.Passes, symbolValidator: module =>
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (182)
CodeGen\CodeGenCallTests.cs (2)
33463
var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, verify:
Verification
.Fails, expectedOutput: expectedOutput).VerifyDiagnostics();
33506
CompileAndVerify(source, options: TestOptions.DebugExe, verify:
Verification
.Fails, expectedOutput: expectedOutput).VerifyDiagnostics();
CodeGen\CodeGenLengthBasedSwitchTests.cs (3)
831
var verifier = CompileAndVerify(comp, expectedOutput: "RAN", verify:
Verification
.Skipped);
1983
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
2089
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
CodeGen\CodeGenSpanBasedStringConcatTests.cs (62)
37
var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "sccs" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
93
var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "sccs" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
169
var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? expectedOutput : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
230
var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "ab" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
282
var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "ab" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
336
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "cc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
389
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "sccs" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
444
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "ab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
488
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "ab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
538
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "sccs" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
651
var verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
726
var verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
800
var verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
850
var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "sc" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
1004
var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "sccs" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
1073
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "cssscsssccsc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
1183
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "cssscsssccsc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
1287
var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "scs" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
1363
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? expectedOutput : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
1474
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "aab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
1540
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "aab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
1605
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "scscsc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
1666
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "cssscsssccsc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
1746
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
1792
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
1851
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "cssscsssccsc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
1938
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abccab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
1991
var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abccab" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
2059
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abccab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
2192
var verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
2270
var verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
2347
var verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
2398
var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "scs" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
2597
var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "cssscsssccsc" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
2714
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "csssscsssscssssccscsscsccssc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
2902
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "csssscsssscssssccscsscsccssc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
3090
var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "scss" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
3178
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? expectedOutput : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
3363
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "aaab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
3438
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abab" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
3514
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "scsscsscsscsscsscs" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
3587
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "csssscsssscssssccscsscsccssc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
3708
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcd" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
3756
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcd" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
3826
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "csssscsssscssssccscsscsccssc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
3960
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abccccabcabc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
4031
var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abccccabcabc" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
4136
var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcdabdccdabdcabcabddabc" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
4292
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcd" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
4345
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcddabc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
4401
var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcddabc" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
4474
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abccccabcabc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
4564
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcdabdccdabdcabcabddabc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
4688
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcddabc" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
4845
var verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
4926
var verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
5006
var verifier = CompileAndVerify(compilation: comp, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
5058
var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "sccs" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
5305
var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "csssscsssscssssccscsscsccssc" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
5486
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "scsssssssc" : null, verify: ExecutionConditionUtil.IsCoreClr ? default :
Verification
.Skipped);
5605
var comp = CompileAndVerify(source, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "sscss" : null, targetFramework: TargetFramework.Net80, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
5676
var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "abcde" : null, verify: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? default :
Verification
.Skipped);
CodeGen\IndexAndRangeTests.cs (3)
3621
var verifier = CompileAndVerify(comp, expectedOutput: "Id(0) Id(1)", verify:
Verification
.Skipped);
4416
var verifier = CompileAndVerify(comp, expectedOutput: "++ Length Index=7 X=42 Index=7 Y=43 Index=7 Z=44", verify:
Verification
.Skipped);
4459
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped,
Emit\EditAndContinue\AssemblyReferencesTests.cs (2)
486
var v0 = CompileAndVerify(compilation0, verify:
Verification
.FailsILVerify);
590
var v0 = CompileAndVerify(compilation0, verify:
Verification
.Passes);
Emit\EditAndContinue\EditAndContinueStateMachineTests.cs (9)
10876
var v0 = CompileAndVerify(compilation0, verify:
Verification
.FailsPEVerify);
10938
var v0 = CompileAndVerify(compilation0, verify:
Verification
.FailsPEVerify);
11004
var v0 = CompileAndVerify(compilation0, verify:
Verification
.FailsPEVerify);
11057
var v0 = CompileAndVerify(compilation0, verify:
Verification
.Passes);
11108
var v0 = CompileAndVerify(compilation0, verify:
Verification
.FailsPEVerify);
11162
var v0 = CompileAndVerify(compilation0, verify:
Verification
.Passes);
11223
var v0 = CompileAndVerify(compilation0, verify:
Verification
.Passes);
11278
var v0 = CompileAndVerify(compilation0, verify:
Verification
.Passes);
11345
var v0 = CompileAndVerify(compilation0, verify:
Verification
.Passes);
Emit\EditAndContinue\EditAndContinueTests.cs (28)
1414
using var _ = new EditAndContinueTest(verification:
Verification
.Skipped)
1636
using var _ = new EditAndContinueTest(verification:
Verification
.Skipped)
1778
using var _ = new EditAndContinueTest(verification:
Verification
.Skipped)
2068
var v0 = CompileAndVerify(compilation0, verify:
Verification
.Skipped);
2143
var v0 = CompileAndVerify(compilation0, verify:
Verification
.Skipped);
2208
var v0 = CompileAndVerify(compilation0, verify:
Verification
.Skipped);
2286
var v0 = CompileAndVerify(compilation0, verify:
Verification
.Skipped);
8415
var v0 = CompileAndVerify(compilation0, verify:
Verification
.Skipped);
15546
var v0 = CompileAndVerify(compilation0, verify:
Verification
.Skipped);
15652
var v0 = CompileAndVerify(compilation0, verify:
Verification
.Skipped);
15756
using var _ = new EditAndContinueTest(options: TestOptions.DebugDll, targetFramework: TargetFramework.NetLatest, verification:
Verification
.Skipped)
15897
using var _ = new EditAndContinueTest(options: TestOptions.DebugDll, targetFramework: TargetFramework.NetStandard20, verification:
Verification
.Skipped)
16076
var v0 = CompileAndVerify(compilation0, verify:
Verification
.Skipped);
16133
using var _ = new EditAndContinueTest(targetFramework: TargetFramework.Minimal, verification:
Verification
.Skipped)
16173
using var _ = new EditAndContinueTest(targetFramework: TargetFramework.Minimal, verification:
Verification
.Skipped)
17474
using var _ = new EditAndContinueTest(verification:
Verification
.Skipped)
17782
using var _ = new EditAndContinueTest(verification:
Verification
.Skipped)
18600
var v0 = CompileAndVerify(compilation0, verify:
Verification
.Skipped);
18676
var v0 = CompileAndVerify(compilation0, verify:
Verification
.Skipped);
18770
var v0 = CompileAndVerify(compilation0, verify:
Verification
.Skipped);
18859
var v0 = CompileAndVerify(compilation0, verify:
Verification
.Skipped);
18900
using var _ = new EditAndContinueTest(targetFramework: TargetFramework.NetCoreApp, verification:
Verification
.Fails)
19085
using var _ = new EditAndContinueTest(targetFramework: TargetFramework.Net80, verification:
Verification
.Skipped)
19194
using var _ = new EditAndContinueTest(targetFramework: TargetFramework.Net80, verification:
Verification
.Skipped)
19302
using var _ = new EditAndContinueTest(targetFramework: TargetFramework.Net80, verification:
Verification
.Skipped)
19389
using var _ = new EditAndContinueTest(targetFramework: TargetFramework.Net80, verification:
Verification
.Skipped)
19583
using var _ = new EditAndContinueTest(targetFramework: TargetFramework.Net80, verification:
Verification
.Skipped)
19763
using var _ = new EditAndContinueTest(targetFramework: TargetFramework.Net80, verification:
Verification
.Skipped)
Emit\EditAndContinue\LocalSlotMappingTests.cs (1)
1052
using var _ = new EditAndContinueTest(verification:
Verification
.Skipped)
Emit\ManagedAddressTests.cs (1)
66
var verifier = CompileAndVerify(comp, expectedOutput: "012", verify:
Verification
.Fails with
Emit\NumericIntPtrTests.cs (58)
1096
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsPEVerify);
1134
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsPEVerify);
1330
var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput($"{size}{size}{size}{size}"), verify:
Verification
.FailsPEVerify);
1433
CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
1457
var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(@"1"), verify:
Verification
.FailsPEVerify);
1492
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
1648
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsPEVerify);
1759
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsPEVerify);
2256
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(IntPtr.Size == 4 ? "System.OverflowException" : "1152921504606846975"), verify:
Verification
.FailsPEVerify);
2294
CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput(IntPtr.Size == 4 ? "-1" : "1152921504606846975"));
2412
CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput(expectedOutput));
2483
var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(expectedOutput), verify:
Verification
.FailsPEVerify);
2617
var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(expectedOutput), verify:
Verification
.FailsPEVerify);
2799
CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput("0, 0, 0, 0"));
2824
CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
2857
CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
3053
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(expectedOutput), verify:
Verification
.FailsPEVerify);
3060
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(expectedOutput), verify:
Verification
.FailsPEVerify);
3063
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(expectedOutput), verify:
Verification
.FailsPEVerify);
3066
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(expectedOutput), verify:
Verification
.FailsPEVerify);
3069
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(expectedOutput), verify:
Verification
.FailsPEVerify);
3127
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
3295
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
6022
var verifier = CompileAndVerify(comp, verify: useUnsafeContext ?
Verification
.Skipped :
Verification
.FailsPEVerify);
6251
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput(expectedResult));
6627
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput(expectedResult));
6859
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput(expectedResult));
6899
var verifier = CompileAndVerify(comp, emitOptions: EmitOptions.Default.WithRuntimeMetadataVersion("0.0.0.0"), verify:
Verification
.Skipped);
8132
CompileAndVerify(comp, verify:
Verification
.FailsPEVerify);
8184
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
8410
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
8614
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
8690
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
9122
CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput(IntPtr.Size == 4 ? "System.OverflowException" : "4294967337")).VerifyDiagnostics(
9140
CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput(IntPtr.Size == 4 ? "41" : "4294967337")).VerifyDiagnostics();
9189
CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput(IntPtr.Size == 4 ? "System.OverflowException" : "2147483648")).VerifyDiagnostics(
9207
CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput(IntPtr.Size == 4 ? "-2147483648" : "2147483648")).VerifyDiagnostics();
9247
CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
9277
CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
9301
CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
9429
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
9534
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput(expectedOutput));
9703
CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
9834
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput(
10025
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsPEVerify);
10710
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("1, 2, 3, 4"), verify:
Verification
.FailsPEVerify);
10726
CompileAndVerify(comp2, sourceSymbolValidator: verify, symbolValidator: verify, verify:
Verification
.FailsPEVerify);
10832
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(expected), verify:
Verification
.FailsPEVerify);
10900
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(expected), verify:
Verification
.FailsPEVerify);
10987
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsPEVerify);
11049
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("OVERFLOW RAN"), verify:
Verification
.Skipped);
11053
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("RAN"), verify:
Verification
.Skipped);
11630
return CompileAndVerify(comp, verify:
Verification
.FailsPEVerify);
11688
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput("RAN"));
11706
var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("63"), verify:
Verification
.FailsPEVerify);
11754
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("00"));
11826
verify:
Verification
.Skipped);
Emit\RuntimeProbing\ModuleCancellationTests.cs (4)
25
private CompilationVerifier CompileAndVerify(string source, string? expectedOutput = null, CSharpCompilationOptions? options = null,
Verification
? verification = null)
30
verify: verification ??
Verification
.Passes,
787
var verifier = CompileAndVerify(source, verification:
Verification
.FailsPEVerify);
2765
var verifier = CompileAndVerify(source, verification:
Verification
.FailsPEVerify);
Emit\RuntimeProbing\StackOverflowProbingTests.cs (3)
24
private CompilationVerifier CompileAndVerify(string source, string? expectedOutput = null, CSharpCompilationOptions? options = null,
Verification
? verification = null)
29
verify: verification ??
Verification
.Passes,
693
var verifier = CompileAndVerify(source, verification:
Verification
.FailsPEVerify);
Emit\UnmanagedTypeModifierTests.cs (1)
1474
CompileAndVerify(code, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails, expectedOutput: @"
PDB\PDBTests.cs (5)
8695
var verifier = CompileAndVerify(c, verify:
Verification
.Skipped);
9092
var verifier = CompileAndVerify(c, verify:
Verification
.Skipped);
9459
var verifier = CompileAndVerify(c, verify:
Verification
.Skipped);
12189
var c = CompileAndVerify(source, verify:
Verification
.Skipped);
12260
var c = CompileAndVerify(source, verify:
Verification
.Skipped);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1168)
Attributes\AttributeTests_Assembly.cs (12)
351
CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, symbolValidator: m =>
424
CompileAndVerify(compilation, verify:
Verification
.Skipped).VerifyDiagnostics(
486
verify:
Verification
.Skipped).VerifyDiagnostics();
507
CompileAndVerify(compilation, verify:
Verification
.Skipped).VerifyDiagnostics(
596
verify:
Verification
.FailsILVerify,
627
verify:
Verification
.FailsILVerify,
657
verify:
Verification
.FailsILVerify,
687
verify:
Verification
.FailsILVerify,
715
CompileAndVerify(compilation, verify:
Verification
.Fails,
744
CompileAndVerify(compilation, verify:
Verification
.Fails,
777
CompileAndVerify(compilation, verify:
Verification
.Fails,
818
verify:
Verification
.FailsILVerify,
Attributes\AttributeTests_Dynamic.cs (3)
105
CompileAndVerify(comp, verify:
Verification
.Passes, symbolValidator: module =>
1197
CompileAndVerify(comp, verify:
Verification
.Fails);
1234
CompileAndVerify(comp, verify:
Verification
.Fails);
Attributes\AttributeTests_Embedded.cs (2)
193
CompileAndVerify(code, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), verify:
Verification
.Passes, expectedOutput: "3");
290
CompileAndVerify(code, verify:
Verification
.Passes, references: new[] { reference }, symbolValidator: module =>
Attributes\AttributeTests_IsByRefLike.cs (16)
49
CompileAndVerify(new[] { text, GetCompilerFeatureRequiredAttributeText(includeCompilerFeatureRequired) }, verify:
Verification
.Passes, symbolValidator: validate);
60
CompileAndVerify(new[] { text, GetCompilerFeatureRequiredAttributeText(includeCompilerFeatureRequired) }, verify:
Verification
.Passes, symbolValidator: module =>
78
CompileAndVerify(new[] { text, GetCompilerFeatureRequiredAttributeText(includeCompilerFeatureRequired) }, verify:
Verification
.Passes, symbolValidator: module =>
120
CompileAndVerify(new[] { text, GetCompilerFeatureRequiredAttributeText(includeCompilerFeatureRequired) }, verify:
Verification
.Passes, symbolValidator: module =>
146
CompileAndVerify(codeB, verify:
Verification
.Passes, references: new[] { referenceA }, symbolValidator: module =>
370
CompileAndVerify(code2, verify:
Verification
.Passes, symbolValidator: module =>
440
CompileAndVerify(code, verify:
Verification
.Fails, references: new[] { reference }, options: TestOptions.ReleaseModule, symbolValidator: module =>
461
var comp1 = CompileAndVerify(code1, options: options, verify:
Verification
.Passes, symbolValidator: module =>
494
CompileAndVerify(text, references: new[] { RefSafetyRulesAttributeLib }, verify:
Verification
.Passes, symbolValidator: module =>
688
CompileAndVerify(new[] { text, GetCompilerFeatureRequiredAttributeText(includeCompilerFeatureRequired) }, verify:
Verification
.Passes, symbolValidator: validate, sourceSymbolValidator: validate);
711
CompileAndVerify(text, verify:
Verification
.Passes, symbolValidator: module =>
754
CompileAndVerify(new[] { text, GetCompilerFeatureRequiredAttributeText(includeCompilerFeatureRequired) }, verify:
Verification
.Passes, symbolValidator: module =>
805
CompileAndVerify(new[] { text, GetCompilerFeatureRequiredAttributeText(includeCompilerFeatureRequired) }, verify:
Verification
.Passes, symbolValidator: module =>
870
CompileAndVerify(new[] { text, GetCompilerFeatureRequiredAttributeText(includeCompilerFeatureRequired) }, verify:
Verification
.Passes, symbolValidator: module =>
1001
CompileAndVerify(compilation1, verify:
Verification
.FailsPEVerify, symbolValidator: module =>
1029
CompileAndVerify(new[] { text, GetCompilerFeatureRequiredAttributeText(includeCompilerFeatureRequired) }, verify:
Verification
.Passes, symbolValidator: module =>
Attributes\AttributeTests_IsUnmanaged.cs (4)
258
CompileAndVerify(text, verify:
Verification
.Fails, references: new[] { reference }, options: TestOptions.ReleaseModule, symbolValidator: module =>
284
CompileAndVerify(text, verify:
Verification
.Fails, references: new[] { reference }, options: TestOptions.ReleaseModule, symbolValidator: module =>
318
verify:
Verification
.Fails,
347
verify:
Verification
.Fails,
Attributes\AttributeTests_LifetimeAnnotation.cs (1)
555
verify:
Verification
.Skipped,
Attributes\AttributeTests_Nullable.cs (1)
1005
CompileAndVerify(comp, verify:
Verification
.Skipped, symbolValidator: module =>
Attributes\AttributeTests_ReadOnlyStruct.cs (10)
37
CompileAndVerify(text, verify:
Verification
.Passes, symbolValidator: module =>
56
CompileAndVerify(text, verify:
Verification
.Passes, symbolValidator: module =>
74
CompileAndVerify(text, verify:
Verification
.Passes, symbolValidator: module =>
92
CompileAndVerify(text, verify:
Verification
.Passes, symbolValidator: module =>
110
CompileAndVerify(text, verify:
Verification
.Passes, symbolValidator: module =>
136
CompileAndVerify(codeB, verify:
Verification
.Passes, references: new[] { referenceA }, symbolValidator: module =>
360
CompileAndVerify(code2, verify:
Verification
.Passes, symbolValidator: module =>
432
CompileAndVerify(code, verify:
Verification
.Fails, references: new[] { reference }, options: TestOptions.ReleaseModule, symbolValidator: module =>
453
var comp1 = CompileAndVerify(code1, options: options, verify:
Verification
.Passes, symbolValidator: module =>
486
CompileAndVerify(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), verify:
Verification
.Passes, symbolValidator: module =>
Attributes\AttributeTests_RefReadOnly.cs (25)
35
CompileAndVerify(text, verify:
Verification
.Fails, symbolValidator: module =>
117
CompileAndVerify(codeB, verify:
Verification
.Fails, references: new[] { referenceA }, symbolValidator: module =>
399
CompileAndVerify(text, verify:
Verification
.Fails, symbolValidator: module =>
471
CompileAndVerify(codeB, verify:
Verification
.Fails, references: new[] { referenceA }, symbolValidator: module =>
595
CompileAndVerify(text, verify:
Verification
.Fails, options: options, symbolValidator: module =>
649
CompileAndVerify(text, verify:
Verification
.Fails, options: options, symbolValidator: module =>
683
CompileAndVerify(codeB, verify:
Verification
.Fails, references: new[] { referenceA }, options: options, symbolValidator: module =>
722
CompileAndVerify(text, verify:
Verification
.Fails, options: options, symbolValidator: module =>
816
CompileAndVerify(codeB, verify:
Verification
.Fails, options: options, references: new[] { referenceA }, symbolValidator: module =>
1065
CompileAndVerify(code2, verify:
Verification
.Fails, symbolValidator: module =>
1156
CompileAndVerify(code, verify:
Verification
.Fails, references: new[] { reference }, options: TestOptions.ReleaseModule, symbolValidator: module =>
1178
var comp1 = CompileAndVerify(code1, options: options, verify:
Verification
.Fails, symbolValidator: module =>
1211
CompileAndVerify(text, references: new[] { RefSafetyRulesAttributeLib }, verify:
Verification
.Fails, symbolValidator: module =>
1586
CompileAndVerify(code, verify:
Verification
.Passes, symbolValidator: module =>
1628
CompileAndVerify(code, verify:
Verification
.Passes, symbolValidator: module =>
1673
CompileAndVerify(code, verify:
Verification
.Passes, symbolValidator: module =>
1722
CompileAndVerify(code, verify:
Verification
.Passes, symbolValidator: module =>
1769
CompileAndVerify(code, verify:
Verification
.Passes, references: new[] { reference }, symbolValidator: module =>
1812
CompileAndVerify(code, verify:
Verification
.Passes, symbolValidator: module =>
1861
CompileAndVerify(code, verify:
Verification
.Passes, references: new[] { reference }, symbolValidator: module =>
1901
CompileAndVerify(code, verify:
Verification
.Passes, symbolValidator: module =>
1970
CompileAndVerify(code, verify:
Verification
.Passes, symbolValidator: module =>
2019
CompileAndVerify(code, verify:
Verification
.Passes, references: new[] { reference }, symbolValidator: module =>
2060
CompileAndVerify(code, verify:
Verification
.Passes, symbolValidator: module =>
2102
CompileAndVerify(code, verify:
Verification
.Passes, references: new[] { reference }, symbolValidator: module =>
Attributes\AttributeTests_RefSafetyRules.cs (2)
155
CompileAndVerify(comp, verify:
Verification
.Skipped, symbolValidator: m => AssertRefSafetyRulesAttribute(m, includesAttributeDefinition: false, includesAttributeUse: false, publicDefinition: false));
158
CompileAndVerify(comp, verify:
Verification
.Skipped, symbolValidator: m => AssertRefSafetyRulesAttribute(m, includesAttributeDefinition: true, includesAttributeUse: true, publicDefinition: false));
Attributes\AttributeTests_Security.cs (2)
1304
CompileAndVerify(compilation, verify:
Verification
.Passes, symbolValidator: module =>
1384
CompileAndVerify(compilation, verify:
Verification
.Passes, symbolValidator: module =>
Attributes\AttributeTests_StructLayout.cs (3)
218
CompileAndVerify(unverifiable, assemblyValidator: validator, verify:
Verification
.FailsPEVerify);
221
CompileAndVerify(unloadable, assemblyValidator: validator, verify:
Verification
.FailsPEVerify);
339
CompileAndVerify(source, verify:
Verification
.FailsPEVerify);
Attributes\AttributeTests_Synthesized.cs (36)
798
verify: ExecutionConditionUtil.IsCoreClr ?
Verification
.Passes :
Verification
.Fails);
982
CompileAndVerify(source, options: options, verify: outputKind.IsNetModule() ?
Verification
.Skipped :
Verification
.Passes, symbolValidator: module =>
1017
CompileAndVerify(source, options: options, verify: outputKind.IsNetModule() ?
Verification
.Skipped :
Verification
.Passes, symbolValidator: module =>
1052
CompileAndVerify(source, options: options, verify: outputKind.IsNetModule() ?
Verification
.Skipped :
Verification
.Passes, symbolValidator: module =>
1087
CompileAndVerify(source, options: options, verify: outputKind.IsNetModule() ?
Verification
.Skipped :
Verification
.Passes, symbolValidator: module =>
1124
CompileAndVerify(source, parseOptions: parseOptions, options: options, verify: outputKind.IsNetModule() ?
Verification
.Skipped :
Verification
.Passes, symbolValidator: module =>
1162
CompileAndVerify(source, options: options, verify: outputKind.IsNetModule() ?
Verification
.Skipped :
Verification
.Passes, symbolValidator: module =>
1198
CompileAndVerify(source, parseOptions: parseOptions, options: options, verify: outputKind.IsNetModule() ?
Verification
.Skipped :
Verification
.Passes, symbolValidator: module =>
1236
CompileAndVerify(source, parseOptions: parseOptions, options: options, verify: outputKind.IsNetModule() ?
Verification
.Skipped :
Verification
.Passes, symbolValidator: module =>
1274
var
verify = outputKind.IsNetModule()
1275
?
Verification
.Fails
1276
:
Verification
.FailsILVerify;
1308
CompileAndVerify(compilation, verify: outputKind.IsNetModule() ?
Verification
.Skipped :
Verification
.Passes, symbolValidator: module =>
1357
CompileAndVerify(compilation, verify: outputKind.IsNetModule() ?
Verification
.Skipped :
Verification
.Passes, symbolValidator: module =>
1404
CompileAndVerify(compilation, verify: outputKind.IsNetModule() ?
Verification
.Skipped :
Verification
.Passes, symbolValidator: module =>
1448
CompileAndVerify(compilation, verify: outputKind.IsNetModule() ?
Verification
.Skipped :
Verification
.Passes, symbolValidator: module =>
1493
CompileAndVerify(compilation, verify:
Verification
.Skipped, symbolValidator: module =>
1533
CompileAndVerify(source, references: new[] { reference }, options: options, verify: outputKind.IsNetModule() ?
Verification
.Skipped :
Verification
.Passes, symbolValidator: module =>
1574
CompileAndVerify(source, references: new[] { reference }, options: options, verify: outputKind.IsNetModule() ?
Verification
.Skipped :
Verification
.Passes, symbolValidator: module =>
1611
CompileAndVerify(compilation, verify:
Verification
.Skipped, symbolValidator: module =>
1624
CompileAndVerifyWithMscorlib40("", references: new[] { moduleReference }, symbolValidator: validateSecurity, verify:
Verification
.Skipped);
Attributes\AttributeTests_Tuples.cs (2)
120
CompileAndVerify(comp, verify:
Verification
.Passes, symbolValidator: module =>
241
verify:
Verification
.Passes,
Attributes\AttributeTests_WellKnownAttributes.cs (46)
3701
CompileAndVerify(source, options: TestOptions.ReleaseDll, verify:
Verification
.FailsPEVerify, sourceSymbolValidator: sourceValidator, symbolValidator: metadataValidator);
5657
var verifier = CompileAndVerify(source, sourceSymbolValidator: sourceValidator, symbolValidator: metadataValidator, verify:
Verification
.FailsPEVerify, targetFramework: TargetFramework.Mscorlib40);
10412
private CompilationVerifier CompileAndVerifyWithSkipLocalsInit(string src, CSharpCompilationOptions options, CSharpParseOptions parseOptions = null,
Verification
? verify = null)
10423
return CompileAndVerify(comp, verify: verify ??
Verification
.Fails);
10426
private CompilationVerifier CompileAndVerifyWithSkipLocalsInit(string src, CSharpParseOptions parseOptions = null,
Verification
? verify = null)
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);
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);
11392
var verifier = CompileAndVerifyWithSkipLocalsInit(source, parseOptions: TestOptions.RegularPreview, verify:
Verification
.Skipped);
11417
var verifier = CompileAndVerifyWithSkipLocalsInit(source, parseOptions: TestOptions.RegularPreview, verify:
Verification
.Skipped);
11448
var verifier = CompileAndVerifyWithSkipLocalsInit(source, parseOptions: TestOptions.RegularPreview, verify:
Verification
.Skipped);
11498
var verifier = CompileAndVerifyWithSkipLocalsInit(source, TestOptions.UnsafeReleaseExe, verify:
Verification
.Passes);
11537
var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify:
Verification
.Fails);
11578
var comp1 = CompileAndVerify(source1, options: TestOptions.UnsafeReleaseDll, verify:
Verification
.Fails);
11582
var comp2 = CompileAndVerify(source2, references: new[] { reference }, verify:
Verification
.Passes);
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);
11810
var comp_skip = CompileAndVerify(source_skip, options: TestOptions.UnsafeReleaseDll, verify:
Verification
.Fails);
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);
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);
12686
var comp = CompileAndVerify(source, options: TestOptions.UnsafeDebugExe, verify:
Verification
.Fails);
12714
var comp = CompileAndVerify(source, options: TestOptions.DebugModule.WithAllowUnsafe(true), verify:
Verification
.Fails);
12799
var verifier = CompileAndVerify(src, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseDll, verify:
Verification
.Fails);
12866
var verifier = CompileAndVerify(comp, verify:
Verification
.Fails);
12920
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
13040
var verifier = CompileAndVerify(src, options: TestOptions.UnsafeReleaseDll, verify:
Verification
.Skipped);
13086
var verifier = CompileAndVerify(src, options: TestOptions.UnsafeReleaseDll, verify:
Verification
.Skipped);
13114
var verifier = CompileAndVerify(comp, verify:
Verification
.Fails);
Attributes\InternalsVisibleToAndStrongNameTests.cs (1)
2728
CompileAndVerify(cb, verify:
Verification
.Fails).Diagnostics.Verify();
FieldKeywordTests.cs (33)
178
CompileAndVerify(source, targetFramework: TargetFramework.Net80, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("""
731
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput(""));
870
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
1093
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("(0, -2, 0, -4, 0, -6)"));
1208
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("(2, -2, 6, -4, 10, -6)"));
1423
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("""
1489
verify:
Verification
.Skipped,
1574
var verifier = CompileAndVerify(source, verify:
Verification
.Skipped, expectedOutput: """
1640
verify:
Verification
.Skipped,
1732
verify:
Verification
.Skipped,
1796
verify:
Verification
.Skipped,
1904
verify:
Verification
.Skipped,
2137
verify:
Verification
.Skipped,
2347
verify:
Verification
.Skipped,
2476
verify:
Verification
.Skipped,
3061
verify:
Verification
.Skipped,
3211
verify:
Verification
.Skipped,
3397
verify:
Verification
.Skipped,
3601
verify:
Verification
.Skipped,
4054
verify:
Verification
.Skipped,
4205
verify:
Verification
.Skipped,
4337
verify:
Verification
.Skipped,
4471
verify:
Verification
.Skipped,
4862
verify:
Verification
.Skipped,
7983
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput($$"""
8036
verify:
Verification
.Skipped,
8172
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: "C");
8380
verify:
Verification
.Skipped,
8447
verify:
Verification
.Skipped,
9237
verify:
Verification
.Skipped,
10224
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("""
10308
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("""
10405
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("""
FirstClassSpanTests.cs (45)
804
var verifier = CompileAndVerify(comp, expectedOutput: "InvalidCastException", verify:
Verification
.FailsILVerify);
834
var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify);
890
var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify);
895
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify);
916
var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify);
971
var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify);
976
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify);
997
var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify);
1999
verify:
Verification
.Fails,
2060
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsILVerify, expectedOutput: "Internal");
2113
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsILVerify, expectedOutput: "External");
2161
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsILVerify, expectedOutput: "Internal");
2205
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsILVerify, expectedOutput: "External");
2274
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsILVerify, expectedOutput: "Span2");
2349
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsILVerify, expectedOutput: """
2399
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsILVerify, expectedOutput: "Internal");
2442
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsILVerify, expectedOutput: "External");
2585
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsILVerify, expectedOutput: "Span2");
2632
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsILVerify, expectedOutput: "Internal");
2676
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsILVerify, expectedOutput: "External");
2695
verifier = CompileAndVerify(comp, verify:
Verification
.FailsILVerify, expectedOutput: "Internal");
2791
CompileAndVerify(comp2, verify:
Verification
.FailsILVerify)
3162
CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), verify:
Verification
.FailsILVerify)
3194
CompileAndVerify(source, parseOptions: TestOptions.Regular13, verify:
Verification
.FailsILVerify)
3216
CompileAndVerify(source, parseOptions: TestOptions.RegularNext, verify:
Verification
.FailsILVerify)
3218
CompileAndVerify(source, verify:
Verification
.FailsILVerify)
3276
CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), verify:
Verification
.FailsILVerify)
3307
CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), verify:
Verification
.FailsILVerify)
3338
CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), verify:
Verification
.FailsILVerify)
3421
CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), verify:
Verification
.FailsILVerify)
4161
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsILVerify).VerifyDiagnostics();
4226
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsILVerify).VerifyDiagnostics();
4518
var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), verify:
Verification
.FailsILVerify);
5549
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsILVerify).VerifyDiagnostics();
5581
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsILVerify).VerifyDiagnostics();
5692
CompileAndVerify(comp, verify:
Verification
.FailsILVerify).VerifyDiagnostics();
5695
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsILVerify).VerifyDiagnostics();
5749
var verifier = CompileAndVerify(comp, expectedOutput: "C", verify:
Verification
.FailsILVerify).VerifyDiagnostics();
5793
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsILVerify).VerifyDiagnostics();
6042
CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify).VerifyDiagnostics();
6045
CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify).VerifyDiagnostics();
6075
CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify).VerifyDiagnostics();
6078
CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify).VerifyDiagnostics();
6108
CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify).VerifyDiagnostics();
6111
CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify).VerifyDiagnostics();
RefReadonlyParameterTests.cs (19)
679
verify:
Verification
.FailsPEVerify);
2373
var verifier = CompileAndVerify(source, expectedOutput: "5", verify:
Verification
.Fails);
2423
var verifier = CompileAndVerify(source, expectedOutput: "5", verify:
Verification
.Fails);
3116
var verifier = CompileAndVerify(source, verify:
Verification
.FailsILVerify, expectedOutput: """
3312
expectedOutput: "555", options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails);
5091
expectedOutput: "111", options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails);
5480
options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails);
5530
CompileAndVerify(source, expectedOutput: "5", verify:
Verification
.Fails).VerifyDiagnostics();
5566
CompileAndVerify(source, expectedOutput: "10", verify:
Verification
.Fails).VerifyDiagnostics();
7948
CompileAndVerify(new[] { source, RequiresLocationAttributeDefinition }, verify:
Verification
.Fails,
8183
CompileAndVerify(new[] { source1, RequiresLocationAttributeDefinition }, verify:
Verification
.Fails,
8192
CompileAndVerify(new[] { source2, RequiresLocationAttributeDefinition }, verify:
Verification
.Fails,
8276
CompileAndVerify(source2, new[] { comp1Ref }, verify:
Verification
.Fails, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeDebugExe,
8278
CompileAndVerify(source2, new[] { comp1Ref }, verify:
Verification
.Fails, options: TestOptions.UnsafeDebugExe,
8293
CompileAndVerify(source3, new[] { comp1Ref }, verify:
Verification
.Fails, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe,
8308
CompileAndVerify(source3, new[] { comp1Ref }, verify:
Verification
.Fails, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeDebugExe,
8310
CompileAndVerify(source3, new[] { comp1Ref }, verify:
Verification
.Fails, options: TestOptions.UnsafeDebugExe,
8356
CompileAndVerify(source2, new[] { comp1Ref }, verify:
Verification
.Fails, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeDebugExe,
8358
CompileAndVerify(source2, new[] { comp1Ref }, verify:
Verification
.Fails, options: TestOptions.UnsafeDebugExe,
RefStructInterfacesTests.cs (271)
38
CompileAndVerify(comp, sourceSymbolValidator: verify, symbolValidator: verify, verify: ExecutionConditionUtil.IsMonoOrCoreClr || !isVirtual ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
71
CompileAndVerify(comp, sourceSymbolValidator: verify, symbolValidator: verify, verify:
Verification
.Skipped).VerifyDiagnostics();
151
CompileAndVerify(comp, sourceSymbolValidator: verify, symbolValidator: verify, verify: ExecutionConditionUtil.IsMonoOrCoreClr || !isVirtual ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
183
CompileAndVerify(comp, sourceSymbolValidator: verify, symbolValidator: verify, verify:
Verification
.Skipped).VerifyDiagnostics();
306
CompileAndVerify(comp, sourceSymbolValidator: verify, symbolValidator: verify, verify:
Verification
.Skipped).VerifyDiagnostics();
398
CompileAndVerify(comp, sourceSymbolValidator: verify, symbolValidator: verify, verify: ExecutionConditionUtil.IsMonoOrCoreClr || !isVirtual ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
430
CompileAndVerify(comp, sourceSymbolValidator: verify, symbolValidator: verify, verify:
Verification
.Skipped).VerifyDiagnostics();
554
CompileAndVerify(comp, sourceSymbolValidator: verify, symbolValidator: verify, verify:
Verification
.Skipped).VerifyDiagnostics();
729
CompileAndVerify(comp4, sourceSymbolValidator: verify, symbolValidator: verify, verify:
Verification
.Skipped).VerifyDiagnostics();
776
CompileAndVerify(comp6, sourceSymbolValidator: verify, symbolValidator: verify, verify:
Verification
.Skipped).VerifyDiagnostics();
802
CompileAndVerify(comp7, sourceSymbolValidator: verify, symbolValidator: verify, verify:
Verification
.Skipped).VerifyDiagnostics();
836
CompileAndVerify(comp8, sourceSymbolValidator: verify, symbolValidator: verify, verify:
Verification
.Skipped).VerifyDiagnostics();
865
CompileAndVerify(comp9, sourceSymbolValidator: verify, symbolValidator: verify, verify:
Verification
.Skipped).VerifyDiagnostics();
886
CompileAndVerify(comp10, sourceSymbolValidator: verify, symbolValidator: verify, verify:
Verification
.Skipped).VerifyDiagnostics();
1217
CompileAndVerify(comp4, sourceSymbolValidator: verify, symbolValidator: verify, verify:
Verification
.Skipped).VerifyDiagnostics();
1305
CompileAndVerify(comp6, sourceSymbolValidator: verify, symbolValidator: verify, verify:
Verification
.Skipped).VerifyDiagnostics();
1342
CompileAndVerify(comp7, sourceSymbolValidator: verify, symbolValidator: verify, verify:
Verification
.Skipped).VerifyDiagnostics();
1395
CompileAndVerify(comp8, sourceSymbolValidator: verify, symbolValidator: verify, verify:
Verification
.Skipped).VerifyDiagnostics();
1452
CompileAndVerify(comp9, sourceSymbolValidator: verify, symbolValidator: verify, verify:
Verification
.Skipped).VerifyDiagnostics();
1472
CompileAndVerify(comp10, sourceSymbolValidator: verify, symbolValidator: verify, verify:
Verification
.Skipped).VerifyDiagnostics();
1793
CompileAndVerify(comp4, sourceSymbolValidator: verify, symbolValidator: verify, verify:
Verification
.Skipped).VerifyDiagnostics();
1881
CompileAndVerify(comp6, sourceSymbolValidator: verify, symbolValidator: verify, verify:
Verification
.Skipped).VerifyDiagnostics();
1918
CompileAndVerify(comp7, sourceSymbolValidator: verify, symbolValidator: verify, verify:
Verification
.Skipped).VerifyDiagnostics();
1971
CompileAndVerify(comp8, sourceSymbolValidator: verify, symbolValidator: verify, verify:
Verification
.Skipped).VerifyDiagnostics();
2028
CompileAndVerify(comp9, sourceSymbolValidator: verify, symbolValidator: verify, verify:
Verification
.Skipped).VerifyDiagnostics();
2048
CompileAndVerify(comp10, sourceSymbolValidator: verify, symbolValidator: verify, verify:
Verification
.Skipped).VerifyDiagnostics();
2975
var verifier = CompileAndVerify(new[] { source, UnscopedRefAttributeDefinition }, expectedOutput: (tS1IsClass == ThreeState.True || tS2IsClass == ThreeState.True ? null : "12"), verify:
Verification
.Fails);
4368
CompileAndVerify(comp, sourceSymbolValidator: verify, symbolValidator: verify, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
4370
CompileAndVerify(comp, sourceSymbolValidator: verify, symbolValidator: verify, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped,
4424
CompileAndVerify(comp, sourceSymbolValidator: verify, symbolValidator: verify, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
5758
CompileAndVerify(comp, sourceSymbolValidator: verify, symbolValidator: verify, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
5786
CompileAndVerify(comp, sourceSymbolValidator: verify, symbolValidator: verify, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
5819
CompileAndVerify(comp, sourceSymbolValidator: verify, symbolValidator: verify, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
5986
var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"S1.M1 S1.M1" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
6068
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
6600
Verification
.Passes :
6601
Verification
.Skipped).VerifyDiagnostics();
6736
Verification
.Passes :
6737
Verification
.Skipped).VerifyDiagnostics();
6853
Verification
.Passes :
6854
Verification
.Skipped).VerifyDiagnostics();
6974
Verification
.Passes :
6975
Verification
.Skipped).VerifyDiagnostics();
7113
Verification
.Passes :
7114
Verification
.Skipped).VerifyDiagnostics();
7434
var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
7624
var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
7842
var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123456" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
8039
var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
8232
var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
8507
var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics(
8894
Verification
.FailsILVerify with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
8895
Verification
.Skipped).VerifyDiagnostics();
9098
Verification
.FailsILVerify with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
9099
Verification
.Skipped).VerifyDiagnostics();
9461
Verification
.FailsILVerify with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
9462
Verification
.Skipped).VerifyDiagnostics();
9673
Verification
.FailsILVerify with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
9674
Verification
.Skipped).VerifyDiagnostics();
9897
Verification
.FailsILVerify with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
9898
Verification
.Skipped).VerifyDiagnostics();
10109
Verification
.FailsILVerify with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
10110
Verification
.Skipped).VerifyDiagnostics();
10505
Verification
.FailsILVerify with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
10506
Verification
.Skipped).VerifyDiagnostics();
10702
Verification
.FailsILVerify with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
10703
Verification
.Skipped).VerifyDiagnostics();
10941
Verification
.FailsILVerify with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
10942
Verification
.Skipped).VerifyDiagnostics();
11157
Verification
.FailsILVerify with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
11158
Verification
.Skipped).VerifyDiagnostics();
11384
Verification
.FailsILVerify with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
11385
Verification
.Skipped).VerifyDiagnostics();
11944
Verification
.FailsILVerify with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
11945
Verification
.Skipped).VerifyDiagnostics();
11992
Verification
.FailsILVerify with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
11993
Verification
.Skipped).VerifyDiagnostics();
12028
Verification
.Passes :
12029
Verification
.Skipped).VerifyDiagnostics();
12295
Verification
.Passes :
12296
Verification
.Skipped).VerifyDiagnostics();
12541
Verification
.Passes :
12542
Verification
.Skipped).VerifyDiagnostics();
12800
Verification
.Passes :
12801
Verification
.Skipped).VerifyDiagnostics();
13070
Verification
.Passes :
13071
Verification
.Skipped).VerifyDiagnostics();
13329
Verification
.Passes :
13330
Verification
.Skipped).VerifyDiagnostics();
13669
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
13968
var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
14309
var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
14670
var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123456" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
15021
var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
15369
var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
15799
var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics(
16334
CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
17613
var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
17810
var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
18032
var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123456" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
18235
var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
18436
var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
18716
var verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"123" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics(
19101
Verification
.FailsILVerify with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
19102
Verification
.Skipped).VerifyDiagnostics();
19272
Verification
.FailsILVerify with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
19273
Verification
.Skipped).VerifyDiagnostics();
19597
Verification
.FailsILVerify with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
19598
Verification
.Skipped).VerifyDiagnostics();
19782
Verification
.FailsILVerify with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
19783
Verification
.Skipped).VerifyDiagnostics();
20038
CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"Called" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
20051
CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"Called" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
20083
CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"Called" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
20094
CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"Called" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
20202
Called System.Int64", verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
20295
CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"Called" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
20308
CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"Called" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
20340
CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"Called" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
20351
CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? @"Called" : null, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
20405
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).
20452
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).
20497
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).
20542
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).
21257
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
21505
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
21642
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
21703
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
21836
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
21971
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).
22477
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped,
22533
verify: ExecutionConditionUtil.IsMonoOrCoreClr && !s2IsRefStruct ?
Verification
.Passes :
Verification
.Skipped,
22588
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
22636
verify: ExecutionConditionUtil.IsMonoOrCoreClr && !s2IsRefStruct ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
22680
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped,
22729
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped,
22781
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped
22827
verify:
Verification
.Skipped
22843
verify:
Verification
.FailsPEVerify,
22867
verify:
Verification
.FailsPEVerify,
22895
verify:
Verification
.FailsPEVerify,
22925
verify:
Verification
.FailsPEVerify,
22956
verify:
Verification
.FailsPEVerify,
22987
verify:
Verification
.FailsPEVerify,
23018
verify:
Verification
.FailsPEVerify,
23050
verify:
Verification
.FailsPEVerify,
23081
verify:
Verification
.FailsPEVerify,
23112
verify:
Verification
.FailsPEVerify,
23136
verify:
Verification
.FailsPEVerify,
23166
verify:
Verification
.FailsPEVerify,
23197
verify:
Verification
.FailsPEVerify,
23221
verify:
Verification
.FailsPEVerify,
23622
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
23675
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
23737
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
24034
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).
24137
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).
24195
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).
24270
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).
24369
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).
24538
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).
24651
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).
24794
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).
24886
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
25030
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).
25114
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).
25334
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
25578
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
27183
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
27293
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
27527
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
27712
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
27822
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
27954
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
28089
Verification
.FailsILVerify.WithILVerifyMessage(
28092
Verification
.Skipped).VerifyDiagnostics();
28263
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
28321
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
28391
Verification
.FailsILVerify.WithILVerifyMessage(
28395
Verification
.Skipped).VerifyDiagnostics();
28498
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
28558
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
28634
Verification
.FailsILVerify.WithILVerifyMessage(
28639
Verification
.Skipped).VerifyDiagnostics();
28889
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
28949
CompileAndVerify(compilation1, symbolValidator: metadataValidator, verify:
Verification
.Skipped).VerifyDiagnostics();
28951
CompileAndVerify(compilation2, symbolValidator: metadataValidator, verify:
Verification
.Skipped).VerifyDiagnostics();
RefUnsafeInIteratorAndAsyncTests.cs (8)
452
CompileAndVerify(source, expectedOutput: IfSpans("456"), verify:
Verification
.FailsPEVerify, targetFramework: TargetFramework.Net70).VerifyDiagnostics();
472
CompileAndVerify(source, expectedOutput: IfSpans("123"), verify:
Verification
.FailsPEVerify, targetFramework: TargetFramework.Net70).VerifyDiagnostics();
948
CompileAndVerify(source, expectedOutput: IfSpans("-1 456"), verify:
Verification
.FailsPEVerify, targetFramework: TargetFramework.Net70).VerifyDiagnostics();
978
CompileAndVerify(source, expectedOutput: IfSpans("-1 456"), verify:
Verification
.FailsPEVerify, targetFramework: TargetFramework.Net70).VerifyDiagnostics();
1006
CompileAndVerify(source, expectedOutput: IfSpans("-1 456"), verify:
Verification
.FailsPEVerify, targetFramework: TargetFramework.Net70).VerifyDiagnostics();
1032
CompileAndVerify(source, expectedOutput: IfSpans("123-1"), verify:
Verification
.FailsPEVerify, targetFramework: TargetFramework.Net70).VerifyDiagnostics();
1231
CompileAndVerify(source, expectedOutput: IfSpans("123"), verify:
Verification
.FailsPEVerify, targetFramework: TargetFramework.Net70).VerifyDiagnostics();
1256
CompileAndVerify(source, expectedOutput: IfSpans("123"), verify:
Verification
.FailsPEVerify, targetFramework: TargetFramework.Net70).VerifyDiagnostics();
Semantics\CollectionExpressionTests.cs (258)
1193
verify:
Verification
.Fails,
1440
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput($"""
1535
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput($"""
1635
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput($"""
1739
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput($"""
1854
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput($"""
1923
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: expectedOutput);
1930
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: expectedOutput);
1969
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("Span<string>")).VerifyDiagnostics();
2010
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("""
2085
verify:
Verification
.Skipped,
2170
verify:
Verification
.Skipped,
2206
verify:
Verification
.Skipped,
2213
verify:
Verification
.Skipped,
2285
verify:
Verification
.Skipped,
2365
verify:
Verification
.Skipped,
2371
verify:
Verification
.Skipped,
2409
verify:
Verification
.Skipped,
2416
verify:
Verification
.Skipped,
2423
verify:
Verification
.Skipped,
2490
verify:
Verification
.Skipped,
2496
verify:
Verification
.Skipped,
2502
verify:
Verification
.Skipped,
2659
verify:
Verification
.Skipped,
2665
verify:
Verification
.Skipped,
2671
verify:
Verification
.Skipped,
2842
verify:
Verification
.Skipped,
2848
verify:
Verification
.Skipped,
2854
verify:
Verification
.Skipped,
3078
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput($$"""
3116
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput($$"""
3150
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput($$"""
3192
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput($$"""
3882
verify:
Verification
.Skipped,
4707
verify:
Verification
.FailsPEVerify,
4731
verify:
Verification
.FailsPEVerify,
5406
verify:
Verification
.Skipped,
5586
verify:
Verification
.Skipped,
5611
verify:
Verification
.Skipped,
6114
CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net80, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("0, 2, "));
6185
CompileAndVerify(new[] { source, s_collectionExtensions }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net80, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("[0, 2], "));
6207
var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net80, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("1010"));
6299
var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net80, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("10200"));
8728
CompileAndVerify(new[] { sourceA, sourceB }, verify:
Verification
.FailsILVerify, expectedOutput: "1, 2, ");
8776
CompileAndVerify(new[] { sourceA, sourceB }, verify:
Verification
.FailsILVerify, expectedOutput: "1, 2, ");
9394
verify:
Verification
.Skipped,
9512
verify:
Verification
.Skipped,
10062
verify:
Verification
.Skipped,
10551
var verifier = CompileAndVerify([source, s_collectionExtensions], targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[1, 2, 3], "), verify:
Verification
.Skipped);
10605
var verifier = CompileAndVerify([source, s_collectionExtensions], targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[1, 2, 3], "), verify:
Verification
.Skipped);
10693
var verifier = CompileAndVerify([source, s_collectionExtensions], targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[1, 2, 3], "), verify:
Verification
.Skipped);
10749
var verifier = CompileAndVerify([source, s_collectionExtensions], targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[(1, 1), (2, 2), (3, 3)], "), verify:
Verification
.Skipped);
10803
var verifier = CompileAndVerify([source, s_collectionExtensions], targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[(1, 1), (2, 2), (3, 3)], "), verify:
Verification
.Skipped);
10902
var verifier = CompileAndVerify([source, s_collectionExtensions], targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[[1], [2], [3]], "), verify:
Verification
.Skipped);
11240
verify:
Verification
.FailsPEVerify,
11263
var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: "[1, 2, 3], [1, 2, 3],", verify:
Verification
.Skipped);
11316
var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],"), targetFramework: TargetFramework.Net80, verify:
Verification
.Skipped);
11394
var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, expectedOutput: "[1, 2, 3], [1, 2, 3],", verify:
Verification
.Skipped);
11533
verify:
Verification
.FailsPEVerify,
11624
verify:
Verification
.FailsPEVerify,
11918
verify:
Verification
.FailsPEVerify,
11943
verify:
Verification
.FailsPEVerify,
12135
verify:
Verification
.FailsPEVerify,
12381
verify:
Verification
.FailsPEVerify,
13231
verify:
Verification
.FailsPEVerify,
13256
verify:
Verification
.FailsPEVerify,
13335
verify:
Verification
.FailsPEVerify);
14220
var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify:
Verification
.FailsPEVerify);
14291
verify:
Verification
.Fails with { ILVerifyMessage = """
14431
var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify:
Verification
.FailsPEVerify);
14545
var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify:
Verification
.FailsPEVerify);
14603
var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[[1], [2]],"), verify:
Verification
.FailsPEVerify);
14707
var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[[1], [2]],"), verify:
Verification
.Fails);
14947
var verifier = CompileAndVerify(comp, verify:
Verification
.Fails, expectedOutput: "[1, 2], [2], ");
15214
verify:
Verification
.Fails,
15291
verify:
Verification
.Fails,
15405
verify: targetFramework == TargetFramework.Net80 ?
Verification
.Fails :
Verification
.FailsPEVerify,
15588
verify:
Verification
.Skipped);
15616
verify:
Verification
.Skipped);
15644
verify:
Verification
.Skipped,
15703
verify:
Verification
.Skipped,
15786
verify:
Verification
.Fails,
15835
verify:
Verification
.FailsPEVerify,
15884
verify:
Verification
.FailsPEVerify,
15933
verify:
Verification
.Fails,
16040
verify:
Verification
.FailsPEVerify,
16105
verify:
Verification
.Fails,
16149
verify:
Verification
.Fails,
16245
verify:
Verification
.Fails,
16365
verify:
Verification
.Fails,
17043
verify:
Verification
.Fails,
17106
verify:
Verification
.Fails,
17167
verify:
Verification
.FailsPEVerify,
17358
verify:
Verification
.FailsPEVerify,
17407
verify:
Verification
.FailsPEVerify,
17456
verify:
Verification
.FailsPEVerify,
17502
verify:
Verification
.FailsPEVerify,
17548
verify:
Verification
.FailsPEVerify,
17640
verify:
Verification
.FailsPEVerify,
17833
verify:
Verification
.FailsPEVerify,
17885
verify:
Verification
.FailsPEVerify,
18185
verify:
Verification
.FailsPEVerify,
18256
verify:
Verification
.Fails,
18420
verify:
Verification
.Fails,
18464
verify:
Verification
.Fails,
19104
verify:
Verification
.FailsPEVerify,
19167
verify:
Verification
.FailsPEVerify,
19631
verify:
Verification
.Skipped,
20025
verify:
Verification
.Fails,
20385
verify:
Verification
.FailsPEVerify,
20486
verify:
Verification
.FailsPEVerify,
20611
verify:
Verification
.FailsPEVerify,
20691
verify:
Verification
.FailsPEVerify,
20821
verify:
Verification
.FailsPEVerify,
20866
verify:
Verification
.FailsPEVerify,
20971
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsPEVerify);
21119
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsPEVerify);
21222
verify:
Verification
.FailsPEVerify,
21356
verify:
Verification
.FailsPEVerify,
21510
verify:
Verification
.FailsPEVerify,
21607
verify:
Verification
.FailsPEVerify,
21721
verify:
Verification
.FailsPEVerify,
21829
verify:
Verification
.FailsPEVerify,
21937
verify:
Verification
.FailsPEVerify,
22153
CompileAndVerify(new[] { source, s_collectionExtensions }, verify:
Verification
.Skipped, expectedOutput: "[0, 1], ");
22247
verify:
Verification
.Skipped,
22347
verify:
Verification
.Skipped,
22399
verify:
Verification
.Skipped,
22472
verify:
Verification
.Skipped,
22600
verify:
Verification
.Skipped,
22751
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net80, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("12"));
22780
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("12"));
22837
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("11"));
22880
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("11"));
22950
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("11"));
22993
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("11"));
23061
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net80, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("12"));
23090
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("12"));
23146
verify:
Verification
.Skipped,
23272
verify:
Verification
.Skipped,
23339
verify:
Verification
.Skipped,
23450
verify:
Verification
.Skipped,
23552
verify:
Verification
.Skipped,
23622
verify:
Verification
.Skipped,
23687
verify:
Verification
.Skipped,
23789
verify:
Verification
.Skipped,
23864
verify:
Verification
.Skipped,
23973
verify:
Verification
.Skipped,
24033
verify:
Verification
.Skipped,
24156
verify:
Verification
.Skipped,
24231
verify:
Verification
.Skipped,
24286
verify:
Verification
.Skipped,
24348
verify:
Verification
.Skipped,
24444
verify:
Verification
.Skipped,
24518
verify:
Verification
.Skipped,
24606
verify:
Verification
.Skipped,
24661
verify:
Verification
.Skipped,
24745
verify:
Verification
.Skipped,
24800
verify:
Verification
.Skipped,
24855
verify:
Verification
.Skipped,
24922
verify:
Verification
.Skipped,
25060
verify:
Verification
.Skipped,
25193
verify:
Verification
.Fails,
25281
verify:
Verification
.Skipped,
25359
verify:
Verification
.Fails,
25426
verify:
Verification
.Fails,
25490
verify:
Verification
.Fails,
25557
verify:
Verification
.Fails,
25683
verify:
Verification
.Fails,
25768
verify:
Verification
.FailsPEVerify,
25805
verify:
Verification
.Fails,
25865
verify:
Verification
.Skipped,
25887
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput("[1, 2, 3], "));
29378
var verifier = CompileAndVerify(comp, verify:
Verification
.Fails, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"));
29462
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("1 2 3"), verify:
Verification
.FailsPEVerify);
29486
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("1 2 3"), verify:
Verification
.FailsPEVerify);
29510
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("a b c"), verify:
Verification
.FailsPEVerify);
29533
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("97 98 99"), verify:
Verification
.FailsPEVerify);
29567
verify:
Verification
.FailsPEVerify,
29624
verify:
Verification
.FailsPEVerify,
30084
var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify:
Verification
.Skipped);
30155
var verifier = CompileAndVerify(new[] { sourceA, s_collectionExtensions }, targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify:
Verification
.Skipped);
30213
var verifier = CompileAndVerify(new[] { sourceA, s_collectionExtensions }, targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[[1, 2, 3]],"), verify:
Verification
.Skipped);
30255
var verifier = CompileAndVerify([sourceA, s_collectionExtensions], targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[],"), verify:
Verification
.Skipped);
30289
var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[],"), verify:
Verification
.Skipped);
30322
var verifier = CompileAndVerify(new[] { sourceA, s_collectionExtensions }, targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify:
Verification
.Skipped);
30361
var verifier = CompileAndVerify(new[] { sourceA, s_collectionExtensions }, targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify:
Verification
.Skipped);
30566
verify:
Verification
.Skipped);
30690
var verifier = CompileAndVerify(new[] { sourceA, s_collectionExtensions }, targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify:
Verification
.Skipped);
30737
var verifier = CompileAndVerify([sourceA, s_collectionExtensions], targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify:
Verification
.Skipped);
30768
var verifier = CompileAndVerify([sourceA, s_collectionExtensions], targetFramework: TargetFramework.Net80, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify:
Verification
.Skipped);
30830
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify:
Verification
.Skipped, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning));
30859
verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net80, verify:
Verification
.Skipped);
33575
var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],"), targetFramework: TargetFramework.Net80, verify:
Verification
.Skipped);
33639
var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],"), targetFramework: TargetFramework.Net80, verify:
Verification
.Skipped);
33683
var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [4, 5, 6], [1, 2, 3, 4, 5, 6],"), verify:
Verification
.Skipped, targetFramework: TargetFramework.Net80);
33779
var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[D, D],"), verify:
Verification
.Skipped, targetFramework: TargetFramework.Net80);
33886
var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, verify:
Verification
.Fails, expectedOutput: IncludeExpectedOutput("[1, 2, 3, 4, 5, 6],"), targetFramework: TargetFramework.Net80);
33970
var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput("[1, 2, 3, 4, 5, 6],"), targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe);
34053
var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput("[1, 2, 3, 4, 5, 6],"), targetFramework: TargetFramework.Net80);
34151
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput("[Derived], [Derived], "));
34202
var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput("[Derived], [Derived, Derived],"), targetFramework: TargetFramework.Net80);
34309
var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, verify:
Verification
.FailsPEVerify, expectedOutput: IncludeExpectedOutput("[1, 2, 3, 4, 5, 6],"), targetFramework: TargetFramework.Net80);
34470
var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[1, 2, 3, 4, 5, 6],"), targetFramework: TargetFramework.Net80, verify:
Verification
.Skipped);
34569
var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: expectedOutput, targetFramework: TargetFramework.Net80, verify:
Verification
.Skipped);
34650
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.Skipped);
34712
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],"));
34753
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],"));
34800
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],"));
34910
var verifier = CompileAndVerify([source, s_collectionExtensionsWithSpan], expectedOutput: IncludeExpectedOutput("[a], [a], "), targetFramework: TargetFramework.Net80, verify:
Verification
.Skipped);
34955
var verifier = CompileAndVerify([source, s_collectionExtensionsWithSpan], expectedOutput: IncludeExpectedOutput("[a], [a], "), targetFramework: TargetFramework.Net80, verify:
Verification
.Skipped);
35254
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("[1, 2], [1, 2, 1, 2],"));
35348
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("[1, 2], [1, 2, 1, 2],"));
35475
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net80, verify:
Verification
.Skipped);
35532
var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[1, 2, 2],"), targetFramework: TargetFramework.Net80, verify:
Verification
.Skipped);
35760
var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],"), targetFramework: TargetFramework.Net80, verify:
Verification
.Skipped);
35808
var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],"), targetFramework: TargetFramework.Net80, verify:
Verification
.Skipped);
35851
var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3],"), targetFramework: TargetFramework.Net80, verify:
Verification
.Skipped);
36157
var verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[1, 2, 3],", verify:
Verification
.Skipped);
36188
var verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[a, b, c],", verify:
Verification
.Skipped);
36226
var verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[a, b, c], [1, 2, 3], [a, b, c], [1, 2, 3], ", verify:
Verification
.Skipped);
36340
var verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[a, b, c],", verify:
Verification
.Skipped);
36374
var verifier = CompileAndVerify(comp, expectedOutput: "[1, 2, 3],", verify:
Verification
.Skipped);
36408
var verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[a, b, c],", verify:
Verification
.Skipped);
36479
var verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[1, 2, 3],", verify:
Verification
.Skipped);
36516
var verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[1, 2, 3],", verify:
Verification
.Skipped);
36548
var verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), targetFramework: TargetFramework.Net80, verify:
Verification
.Skipped);
36620
var verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[1, 2, 3],", verify:
Verification
.Skipped);
36675
var verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: expectedOutput, verify:
Verification
.Skipped);
36728
var verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[1, 2, 3],", verify:
Verification
.Skipped);
36782
var verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[1, 2, 3],", verify:
Verification
.Skipped);
36866
var verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[1, 2, 3],", verify:
Verification
.Skipped);
36958
var verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[1, 2, 3],", verify:
Verification
.Skipped);
37040
var verifier = CompileAndVerify(source, expectedOutput: IncludeExpectedOutput("1234"), targetFramework: TargetFramework.Net80, verify:
Verification
.Skipped);
37087
var verifier = CompileAndVerify(comp, expectedOutput: "[1, 2, 3],", verify:
Verification
.Skipped);
37169
var verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[1, 2, 3, 4, 5, 6],", verify:
Verification
.Skipped);
37274
var verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[1, 2, 3], [1, 2, 3], [1, 2, 3], ", verify:
Verification
.Skipped);
37371
var verifier = CompileAndVerify([source, s_collectionExtensions], expectedOutput: "[a, b, c], [a, b, c], [a, b, c], [a, b, c], ", verify:
Verification
.Skipped);
37489
verify:
Verification
.Skipped);
37612
var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3, 4],"), targetFramework: TargetFramework.Net80, verify:
Verification
.Skipped);
37663
var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[a, b, c], [a, b, c, d],"), targetFramework: TargetFramework.Net80, verify:
Verification
.Skipped);
37729
var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[a, b, c], [a, b, c],"), targetFramework: TargetFramework.Net80, verify:
Verification
.Skipped);
37797
var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[a, b, c], [a, b, c, a, b, c],"), targetFramework: TargetFramework.Net80, verify:
Verification
.Skipped);
37835
var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, expectedOutput: IncludeExpectedOutput("[1, 2, 3], [1, 2, 3, 4],"), targetFramework: TargetFramework.Net80, verify:
Verification
.Skipped);
41889
CompileAndVerify(source, verify:
Verification
.FailsILVerify, expectedOutput: "1, 2, ");
42658
verify:
Verification
.Skipped,
42722
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped,
42802
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped,
42890
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped,
43351
verify:
Verification
.Skipped,
43463
verify:
Verification
.Skipped,
43587
verify:
Verification
.Skipped,
43677
verify:
Verification
.Skipped,
43767
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("123"), verify:
Verification
.Skipped).VerifyDiagnostics();
Semantics\InlineArrayTests.cs (143)
56
private static
Verification
VerifyOnMonoOrCoreClr
60
return ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped;
2154
CompileAndVerify(comp1, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics(
2280
CompileAndVerify(comp1, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics(
3135
var verifier = CompileAndVerify(comp, expectedOutput: "0 0 111 111", verify:
Verification
.Fails).VerifyDiagnostics();
3198
var verifier = CompileAndVerify(comp, expectedOutput: "0 0 111 111", verify:
Verification
.Fails).VerifyDiagnostics();
3261
var verifier = CompileAndVerify(comp, expectedOutput: "0 0 111 111", verify:
Verification
.Fails).VerifyDiagnostics();
3337
var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify:
Verification
.Fails).VerifyDiagnostics();
3561
var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify:
Verification
.Fails).VerifyDiagnostics();
3793
var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify:
Verification
.Fails).VerifyDiagnostics();
4018
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
4143
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
4272
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
4403
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
4529
var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify:
Verification
.Fails).VerifyDiagnostics();
4679
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics(
5075
var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify:
Verification
.Fails).VerifyDiagnostics();
6072
var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify:
Verification
.Fails).VerifyDiagnostics();
6168
var verifier = CompileAndVerify(comp, expectedOutput: "0 5 111", verify:
Verification
.Fails).VerifyDiagnostics();
6248
var verifier = CompileAndVerify(comp, expectedOutput: "10 111", verify:
Verification
.Fails).VerifyDiagnostics();
6363
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
6402
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
6445
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
6488
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
6529
var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify:
Verification
.Fails).VerifyDiagnostics();
6554
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
6656
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
6682
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
6712
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
6742
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
6814
var verifier = CompileAndVerify(comp, expectedOutput: "0 0", verify:
Verification
.Fails).VerifyDiagnostics();
6858
var verifier = CompileAndVerify(comp, expectedOutput: "0 4 111", verify:
Verification
.Fails).VerifyDiagnostics();
6908
var verifier = CompileAndVerify(comp, expectedOutput: "0 5 111", verify:
Verification
.Fails).VerifyDiagnostics();
6958
var verifier = CompileAndVerify(comp, expectedOutput: "0 5 111", verify:
Verification
.Fails).VerifyDiagnostics();
7014
var verifier = CompileAndVerify(comp, expectedOutput: "0 9 111", verify:
Verification
.Fails).VerifyDiagnostics();
7064
var verifier = CompileAndVerify(comp, expectedOutput: "0 10 111", verify:
Verification
.Fails).VerifyDiagnostics();
7119
var verifier = CompileAndVerify(comp, expectedOutput: "0 9 111", verify:
Verification
.Fails).VerifyDiagnostics();
7188
var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify:
Verification
.Fails).VerifyDiagnostics();
7258
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
7337
var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify:
Verification
.Fails).VerifyDiagnostics();
7473
var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify:
Verification
.Fails).VerifyDiagnostics();
7618
var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify:
Verification
.Fails).VerifyDiagnostics();
7786
var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify:
Verification
.Fails).VerifyDiagnostics();
7948
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
8164
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics(
8258
CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Skipped);
8373
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
8481
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
8598
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
8886
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
10014
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
10061
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
10346
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
10391
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
11131
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
11177
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
11223
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
11273
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
11347
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
11473
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
13211
var verifier = CompileAndVerify(comp, expectedOutput: "0 1 0", verify:
Verification
.Fails).VerifyDiagnostics(
13749
var verifier = CompileAndVerify(comp, expectedOutput: "0 2 0", verify:
Verification
.Fails).VerifyDiagnostics();
13807
var verifier = CompileAndVerify(comp, expectedOutput: "0 2 0", verify:
Verification
.Fails).VerifyDiagnostics();
13865
var verifier = CompileAndVerify(comp, expectedOutput: "0 2 0", verify:
Verification
.Fails).VerifyDiagnostics();
13918
var verifier = CompileAndVerify(comp, expectedOutput: "0 2 0", verify:
Verification
.Fails).VerifyDiagnostics();
13969
var verifier = CompileAndVerify(comp, expectedOutput: "0 2 0", verify:
Verification
.Fails).VerifyDiagnostics();
14020
var verifier = CompileAndVerify(comp, expectedOutput: "0 2 0", verify:
Verification
.Fails).VerifyDiagnostics();
14637
var verifier = CompileAndVerify(comp, verify:
Verification
.Fails,
14686
var verifier = CompileAndVerify(comp, verify:
Verification
.Fails,
15164
var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify:
Verification
.Fails).VerifyDiagnostics();
15248
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
15385
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
15440
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
15501
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
15564
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
15618
var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify:
Verification
.Fails).VerifyDiagnostics();
15646
var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify:
Verification
.Fails).VerifyDiagnostics();
15672
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
15698
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
15894
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
15920
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
15949
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
15978
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
16013
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
16048
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
16085
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
16122
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
16183
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
16231
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
16318
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
16433
var verifier = CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
16671
var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify:
Verification
.Fails).VerifyDiagnostics();
16941
CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics(
16971
CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
17009
CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
17046
CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.Fails).VerifyDiagnostics();
17049
CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.Fails).VerifyDiagnostics();
17163
CompileAndVerify(comp, expectedOutput: "111", verify:
Verification
.Fails).VerifyDiagnostics();
17541
var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify:
Verification
.Fails).VerifyDiagnostics(
17659
var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify:
Verification
.Fails).VerifyDiagnostics(
17734
var verifier = CompileAndVerify(comp, expectedOutput: "0 111", verify:
Verification
.Fails).VerifyDiagnostics(
17988
CompileAndVerify(comp, expectedOutput: " Throw 111 999 Throw", verify:
Verification
.Fails).VerifyDiagnostics();
18168
CompileAndVerify(comp, expectedOutput: " 10 1 Throw 0 Throw", verify:
Verification
.Fails).VerifyDiagnostics();
18275
CompileAndVerify(comp, expectedOutput: "2", verify:
Verification
.Fails).VerifyDiagnostics();
18303
CompileAndVerify(comp, expectedOutput: "2", verify:
Verification
.Fails).VerifyDiagnostics();
18371
CompileAndVerify(comp, expectedOutput: "2", verify:
Verification
.Fails).VerifyDiagnostics();
18504
CompileAndVerify(comp, expectedOutput: "2", verify:
Verification
.Fails).VerifyDiagnostics();
19982
var verifier = CompileAndVerify(comp, expectedOutput: "-1 0 1 2 3", verify:
Verification
.Fails).VerifyDiagnostics();
20120
CompileAndVerify(comp, expectedOutput: "-1 0 1 2 3", verify:
Verification
.Fails).VerifyDiagnostics();
20169
var verifier = CompileAndVerify(comp, expectedOutput: " 0 1 2 3", verify:
Verification
.Fails).VerifyDiagnostics();
20320
CompileAndVerify(comp, expectedOutput: " 0 1 2 3", verify:
Verification
.Fails).VerifyDiagnostics();
20442
var verifier = CompileAndVerify(comp, expectedOutput: "-1 0 1 2 3", verify:
Verification
.Fails).VerifyDiagnostics();
20579
CompileAndVerify(comp, expectedOutput: "-1 0 1 2 3", verify:
Verification
.Fails).VerifyDiagnostics();
20628
var verifier = CompileAndVerify(comp, expectedOutput: " 0 1 2 3", verify:
Verification
.Fails).VerifyDiagnostics();
20779
CompileAndVerify(comp, expectedOutput: " 0 1 2 3", verify:
Verification
.Fails).VerifyDiagnostics();
20820
verify:
Verification
.FailsILVerify, expectedOutput: expectedOutput).VerifyDiagnostics();
20823
verify:
Verification
.FailsILVerify, expectedOutput: expectedOutput).VerifyDiagnostics();
21389
var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.Fails).VerifyDiagnostics();
21391
CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.Fails).VerifyDiagnostics();
21540
var verifier = CompileAndVerify(comp, expectedOutput: "-1 0 1 2 3", verify:
Verification
.Fails).VerifyDiagnostics();
21610
CompileAndVerify(comp, expectedOutput: "-1 0 1 2 3", verify:
Verification
.Fails).VerifyDiagnostics();
21657
var verifier = CompileAndVerify(comp, expectedOutput: " 0 1 2 3", verify:
Verification
.Fails).VerifyDiagnostics();
21730
CompileAndVerify(comp, expectedOutput: " 0 1 2 3", verify:
Verification
.Fails).VerifyDiagnostics();
21859
var verifier = CompileAndVerify(comp, expectedOutput: "-1 0 1 2 3", verify:
Verification
.Fails).VerifyDiagnostics();
21929
CompileAndVerify(comp, expectedOutput: "-1 0 1 2 3", verify:
Verification
.Fails).VerifyDiagnostics();
21976
var verifier = CompileAndVerify(comp, expectedOutput: " 0 1 2 3", verify:
Verification
.Fails).VerifyDiagnostics();
22049
CompileAndVerify(comp, expectedOutput: " 0 1 2 3", verify:
Verification
.Fails).VerifyDiagnostics();
22098
verify:
Verification
.FailsILVerify, expectedOutput: expectedOutput).VerifyDiagnostics();
22101
verify:
Verification
.FailsILVerify, expectedOutput: expectedOutput).VerifyDiagnostics();
22654
var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.Fails).VerifyDiagnostics();
22656
CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.Fails).VerifyDiagnostics();
22834
CompileAndVerify(comp, expectedOutput: "0", verify:
Verification
.Fails).VerifyDiagnostics(
22943
CompileAndVerify(comp, expectedOutput: "0", verify:
Verification
.Fails).VerifyDiagnostics(
22972
CompileAndVerify(comp, expectedOutput: "0", verify:
Verification
.Fails).VerifyDiagnostics();
23000
CompileAndVerify(comp, expectedOutput: "0", verify:
Verification
.Fails).VerifyDiagnostics();
23029
CompileAndVerify(comp, expectedOutput: "0", verify:
Verification
.Fails).VerifyDiagnostics(
23062
CompileAndVerify(comp, expectedOutput: "0", verify:
Verification
.Fails).VerifyDiagnostics(
23088
CompileAndVerify(comp, expectedOutput: "s", verify:
Verification
.Fails).VerifyDiagnostics();
23110
CompileAndVerify(comp, expectedOutput: "1", verify:
Verification
.Fails).VerifyDiagnostics();
23343
parseOptions: parseOptions, targetFramework: TargetFramework.Net80, verify:
Verification
.FailsPEVerify);
Semantics\LockTests.cs (58)
77
verify:
Verification
.FailsILVerify);
135
verify:
Verification
.FailsPEVerify);
396
CompileAndVerify(source, expectedOutput: "ELD", verify:
Verification
.FailsILVerify).VerifyDiagnostics();
429
CompileAndVerify(source, expectedOutput: "ELD", verify:
Verification
.FailsILVerify).VerifyDiagnostics();
465
CompileAndVerify(source, expectedOutput: "ELD", verify:
Verification
.FailsILVerify).VerifyDiagnostics();
501
CompileAndVerify(source, expectedOutput: "ELD", verify:
Verification
.FailsILVerify).VerifyDiagnostics();
537
CompileAndVerify(source, expectedOutput: "OLD", verify:
Verification
.FailsILVerify).VerifyDiagnostics();
779
CompileAndVerify(source, expectedOutput: "ELD", verify:
Verification
.FailsILVerify).VerifyDiagnostics();
807
CompileAndVerify(source, expectedOutput: "ELD", verify:
Verification
.FailsILVerify).VerifyDiagnostics();
843
var verifier = CompileAndVerify(source, expectedOutput: "ELD", verify:
Verification
.FailsILVerify);
905
CompileAndVerify(source, expectedOutput: "E1DE2D", verify:
Verification
.FailsILVerify).VerifyDiagnostics(
940
CompileAndVerify(source, expectedOutput: "E1DE2D", verify:
Verification
.FailsILVerify).VerifyDiagnostics(
975
CompileAndVerify(source, expectedOutput: "E1DE2D", verify:
Verification
.FailsILVerify).VerifyDiagnostics(
1013
CompileAndVerify(source, expectedOutput: "E1DE2D", verify:
Verification
.FailsILVerify).VerifyDiagnostics(
1052
var verifier = CompileAndVerify(source, expectedOutput: "L", verify:
Verification
.FailsILVerify);
1320
CompileAndVerify(source, expectedOutput: "ELD", verify:
Verification
.FailsILVerify).VerifyDiagnostics();
1366
verify:
Verification
.Fails, targetFramework: TargetFramework.Net60).VerifyDiagnostics();
1405
var verifier = CompileAndVerify(source, expectedOutput: "L", verify:
Verification
.FailsILVerify);
1473
var verifier = CompileAndVerify(source, expectedOutput: "L", verify:
Verification
.FailsILVerify);
1638
verify:
Verification
.FailsILVerify).VerifyDiagnostics();
1640
verify:
Verification
.FailsILVerify).VerifyDiagnostics();
1655
var verifier = CompileAndVerify([source, LockTypeDefinition], verify:
Verification
.FailsILVerify,
1669
var verifier = CompileAndVerify([source, LockTypeDefinition], verify:
Verification
.FailsILVerify,
1682
var verifier = CompileAndVerify([source, LockTypeDefinition], verify:
Verification
.FailsILVerify,
1712
var verifier = CompileAndVerify([source, LockTypeDefinition], verify:
Verification
.FailsILVerify,
1743
var verifier = CompileAndVerify([source, LockTypeDefinition], verify:
Verification
.FailsILVerify,
1775
var verifier = CompileAndVerify([source, LockTypeDefinition], verify:
Verification
.FailsILVerify,
1893
var verifier = CompileAndVerify([source, LockTypeDefinition], verify:
Verification
.FailsILVerify,
1943
expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify);
2007
expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify);
2083
expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify);
2238
expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify);
2392
expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify);
2504
expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify);
2612
expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify);
2676
expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify);
2751
expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify);
2906
expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify);
3056
expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify);
3120
expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify);
3195
expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify);
3350
expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify);
3544
verify:
Verification
.FailsILVerify, expectedOutput: expectedOutput);
3548
verify:
Verification
.FailsILVerify, expectedOutput: expectedOutput);
3583
verify:
Verification
.FailsILVerify, expectedOutput: expectedOutput);
3587
verify:
Verification
.FailsILVerify, expectedOutput: expectedOutput);
3656
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsILVerify, expectedOutput: expectedOutput);
3660
verifier = CompileAndVerify(comp, verify:
Verification
.FailsILVerify, expectedOutput: expectedOutput);
3697
var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify);
3888
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify);
4089
var verifier = CompileAndVerify([source, LockTypeDefinition], verify:
Verification
.FailsILVerify,
4134
var verifier = CompileAndVerify([source, LockTypeDefinition], verify:
Verification
.FailsILVerify,
4152
var verifier = CompileAndVerify([source, LockTypeDefinition], verify:
Verification
.FailsILVerify, expectedOutput: """
4212
var verifier = CompileAndVerify(source, verify:
Verification
.FailsILVerify,
4322
var verifier = CompileAndVerify(source, verify:
Verification
.FailsILVerify,
4442
var verifier = CompileAndVerify([source, LockTypeDefinition], verify:
Verification
.FailsILVerify,
4505
var verifier = CompileAndVerify([source, LockTypeDefinition], verify:
Verification
.FailsILVerify,
4559
var verifier = CompileAndVerify([source, LockTypeDefinition], verify:
Verification
.FailsILVerify,
Semantics\OutVarTests.cs (2)
6109
CompileAndVerify(compilation, verify:
Verification
.Fails, expectedOutput:
6143
CompileAndVerify(compilation, verify:
Verification
.Fails, expectedOutput:
Semantics\ParamsCollectionTests.cs (65)
102
Verification
.FailsILVerify with { ILVerifyMessage = "[InlineArrayAsSpan]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0xc }" }
103
:
Verification
.Skipped,
281
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped,
387
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped,
413
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped,
594
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped,
1068
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped,
1266
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped,
2606
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped,
3019
Verification
.FailsILVerify with { ILVerifyMessage = "[InlineArrayAsReadOnlySpan]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x11 }" }
3020
:
Verification
.Skipped,
4406
CompileAndVerify(comp2, expectedOutput: ExpectedOutput("span"), verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
4409
CompileAndVerify(comp2, expectedOutput: ExpectedOutput("span"), verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
4412
CompileAndVerify(comp2, expectedOutput: ExpectedOutput("array"), verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
4463
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped,
4525
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped,
4678
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped,
4863
verify:
Verification
.Skipped,
4901
verify:
Verification
.Skipped,
5074
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: ExpectedOutput($"""
5184
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: ExpectedOutput($"""
5289
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: ExpectedOutput($"""
5396
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: ExpectedOutput($"""
5455
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: ExpectedOutput("""
5498
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: ExpectedOutput("""
5584
verify:
Verification
.Skipped,
5641
verify:
Verification
.Skipped,
5678
Verification
.FailsILVerify with { ILVerifyMessage = "[InlineArrayAsSpan]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0xc }" }
5679
:
Verification
.Skipped,
5743
verify:
Verification
.Skipped,
5811
verify:
Verification
.Skipped,
8882
verify:
Verification
.Skipped,
8925
verify:
Verification
.Skipped,
8969
verify:
Verification
.Skipped,
12528
Verification
.FailsILVerify with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" }
12529
:
Verification
.Passes
12840
Verification
.Passes :
12841
Verification
.Fails with
13348
verify: image ?
Verification
.Passes :
Verification
.Skipped,
13414
verify: image ?
Verification
.Passes :
Verification
.Skipped,
13478
verify: image ?
Verification
.Passes :
Verification
.Skipped,
13582
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped,
13683
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped,
16499
verify:
Verification
.Skipped,
16513
verify:
Verification
.Skipped,
16806
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped).VerifyDiagnostics(
16971
verifier = CompileAndVerify(comp, verify:
Verification
.Skipped).VerifyDiagnostics(
Semantics\PatternMatchingTests.cs (5)
2575
CompileAndVerify(compilation, verify:
Verification
.Fails, expectedOutput:
6227
var comp = CompileAndVerify(compilation, expectedOutput: "ok", verify:
Verification
.FailsILVerify);
6526
CompileAndVerify(compilation, expectedOutput: expectedOutput, verify:
Verification
.FailsPEVerify);
8447
CompileAndVerify(compilation, verify:
Verification
.FailsILVerify, expectedOutput: @"True
10047
CompileAndVerify(compilation, verify:
Verification
.FailsILVerify, expectedOutput: @"True
Semantics\PatternMatchingTests_ListPatterns.cs (2)
8059
var verifier = CompileAndVerify(compilation, verify:
Verification
.FailsPEVerify);
8130
var verifier = CompileAndVerify(compilation, expectedOutput: "1 2 3", verify:
Verification
.FailsPEVerify);
Semantics\PatternMatchingTests3.cs (2)
474
var comp = CompileAndVerify(compilation, verify:
Verification
.FailsILVerify, expectedOutput: expectedOutput);
3491
CompileAndVerify(compilation, expectedOutput: expectedOutput, verify:
Verification
.Skipped);
Semantics\PatternMatchingTests4.cs (3)
3360
var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput, verify:
Verification
.Skipped);
3387
var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput, verify:
Verification
.Skipped);
3413
var compVerifier = CompileAndVerify(compilation, expectedOutput: expectedOutput, verify:
Verification
.Skipped);
Semantics\PrimaryConstructorTests.cs (11)
7045
", verify:
Verification
.Skipped);
7093
S3 { X = 3, Y = }", verify:
Verification
.Skipped);
8768
var verifier = CompileAndVerify(comp, expectedOutput: @"122123124125125", verify:
Verification
.Fails).VerifyDiagnostics(
12244
var verifier = CompileAndVerify(comp, expectedOutput: @"123124125126-1", verify:
Verification
.Fails).VerifyDiagnostics();
12317
var verifier = CompileAndVerify(comp, expectedOutput: @"123124125126-1-2-3", verify:
Verification
.Fails).VerifyDiagnostics();
12394
var verifier = CompileAndVerify(comp, expectedOutput: @"123123124-1-2-3", verify:
Verification
.Passes).VerifyDiagnostics(
14664
", verify:
Verification
.Skipped).VerifyDiagnostics(
15066
", verify:
Verification
.Skipped).VerifyDiagnostics(
15433
CompileAndVerify(comp, expectedOutput: @"123", verify:
Verification
.Skipped).VerifyDiagnostics();
15834
var verifier = CompileAndVerify(comp, expectedOutput: @"122123124125125", verify:
Verification
.Fails).VerifyDiagnostics(
21910
CompileAndVerify(comp, verify:
Verification
.Skipped).VerifyDiagnostics();
Semantics\RecordTests.cs (77)
37
verify:
Verification
.Skipped);
781
CompileAndVerify(comp, expectedOutput: "(2, 2)", verify:
Verification
.Skipped /* init-only */).VerifyDiagnostics();
801
CompileAndVerify(comp, expectedOutput: "(2, 2)", verify:
Verification
.Skipped /* init-only */).VerifyDiagnostics();
857
CompileAndVerify(comp, expectedOutput: "2", verify:
Verification
.Skipped /* init-only */);
1423
CompileAndVerify(comp, expectedOutput: "P1 P2 P3 RAN", verify:
Verification
.Skipped /* pointers */);
1717
CompileAndVerify(comp, expectedOutput: "static ctor", verify:
Verification
.Skipped);
2424
verify:
Verification
.Passes,
2470
CompileAndVerify(comp, expectedOutput: "RAN 2", verify:
Verification
.Skipped /* init-only */);
2485
CompileAndVerify(comp, expectedOutput: "42", verify:
Verification
.Skipped /* init-only */);
5269
CompileAndVerify(comp, expectedOutput: "C2 { I1 = 42, I2 = 43 }", verify:
Verification
.Skipped /* init-only */);
5303
CompileAndVerify(comp, expectedOutput: "C1 { I1 = 42, P2 = 43, P3 = 44 }", verify:
Verification
.Skipped /* init-only */);
5376
CompileAndVerify(comp, expectedOutput: "B1 { P = 1 } B2 { P = 2 }", verify:
Verification
.Skipped /* init-only */);
5590
var v = CompileAndVerify(comp, expectedOutput: "C1 { field = hello } C1 { field = 42 }", verify:
Verification
.Skipped /* init-only */);
5726
var v = CompileAndVerify(comp, expectedOutput: "C1 { Property = 42 }", verify:
Verification
.Skipped /* init-only */);
5768
CompileAndVerify(comp, expectedOutput: "C1 { Property1 = 42, Property2 = , field1 = 43, field2 = hi }", verify:
Verification
.Skipped /* init-only */);
5790
var v = CompileAndVerify(comp, expectedOutput: "C1 { A1 = 42, A2 = 100, B1 = 43, B2 = 101 }", verify:
Verification
.Skipped /* init-only */);
6130
CompileAndVerify(comp, expectedOutput: "C1 { A2 = 42, A1 = 100, B2 = 43, B1 = 101 }", verify:
Verification
.Skipped /* init-only */);
6154
CompileAndVerify(comp, expectedOutput: "C1 { A1 = 100, B1 = 101 }", verify:
Verification
.Skipped /* init-only */);
6178
CompileAndVerify(comp, expectedOutput: "C1 { B1 = 101, A1 = 100 }", verify:
Verification
.Skipped /* init-only */);
7614
CompileAndVerify(comp, expectedOutput: "R1 { I1 = 1 } R2 { I1 = 10, I2 = 11 } R3 { I1 = 20, I2 = 21, I3 = 22 }", verify:
Verification
.Skipped /* init-only */);
11342
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput:
11556
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput:
11792
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput:
12282
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput:
12361
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput:
12466
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput:
12596
var verifierA = CompileAndVerify(compA, verify: ExecutionConditionUtil.IsCoreClr ?
Verification
.Skipped :
Verification
.Fails).VerifyDiagnostics();
12636
var verifierB = CompileAndVerify(compB, expectedOutput: "(1, 2, 3, 4) (1, 2, 3, 4) (10, 2, 30, 4)", verify: ExecutionConditionUtil.IsCoreClr ?
Verification
.Skipped :
Verification
.Fails).VerifyDiagnostics();
12688
var verifier = CompileAndVerify(comp, expectedOutput: "(1, 2, 3, 4) (10, 20, 30, 40)", verify: ExecutionConditionUtil.IsCoreClr ?
Verification
.Skipped :
Verification
.Fails).VerifyDiagnostics();
12745
var verifier = CompileAndVerify(comp, verify: ExecutionConditionUtil.IsCoreClr ?
Verification
.Skipped :
Verification
.Fails).VerifyDiagnostics();
12777
var verifier = CompileAndVerify(comp, verify: ExecutionConditionUtil.IsCoreClr ?
Verification
.Skipped :
Verification
.Fails).VerifyDiagnostics(
13005
var verifier = CompileAndVerify(comp, expectedOutput: "RAN", verify: ExecutionConditionUtil.IsCoreClr ?
Verification
.Skipped :
Verification
.Fails).VerifyDiagnostics();
13060
var verifier = CompileAndVerify(comp, expectedOutput: "1 RAN 2", verify: ExecutionConditionUtil.IsCoreClr ?
Verification
.Skipped :
Verification
.Fails).VerifyDiagnostics();
13182
var verifier = CompileAndVerify(comp, expectedOutput: "(1, 2, 42) RAN (10, 20, 42)", verify: ExecutionConditionUtil.IsCoreClr ?
Verification
.Skipped :
Verification
.Fails).VerifyDiagnostics();
13222
var verifier = CompileAndVerify(comp, expectedOutput: "(1, 2, 42) (10, 20, 42)", verify: ExecutionConditionUtil.IsCoreClr ?
Verification
.Skipped :
Verification
.Fails).VerifyDiagnostics();
13502
var verifier = CompileAndVerify(comp, expectedOutput: "(1, 2, 3, 4, 100, 200)", verify: ExecutionConditionUtil.IsCoreClr ?
Verification
.Skipped :
Verification
.Fails).VerifyDiagnostics();
13981
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: "RAN").VerifyDiagnostics();
14007
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: "RAN").VerifyDiagnostics();
14040
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: "RAN").VerifyDiagnostics(
14073
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: "123").VerifyDiagnostics();
23535
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput:
23569
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput:
23756
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput:
24617
CompileAndVerify(comp, expectedOutput: "(42, 43, 44)", verify:
Verification
.Skipped /* init-only */);
24871
CompileAndVerify(comp, expectedOutput: "(42, 43)", verify:
Verification
.Skipped /* init-only */);
24916
CompileAndVerify(comp, expectedOutput: "(42, 43, 44, 45)", verify:
Verification
.Skipped /* init-only */);
24943
CompileAndVerify(comp, expectedOutput: "42", verify:
Verification
.Skipped /* init-only */);
24967
var verifier = CompileAndVerify(comp, expectedOutput: "42", verify:
Verification
.Skipped /* init-only */);
25004
var verifier = CompileAndVerify(comp, expectedOutput: "0", verify:
Verification
.Skipped /* init-only */);
25034
var verifier = CompileAndVerify(comp, expectedOutput: "42", verify:
Verification
.Skipped /* init-only */);
25099
verify:
Verification
.Skipped,
25159
verify:
Verification
.Skipped,
25236
verify:
Verification
.Skipped,
25293
verify:
Verification
.Skipped,
25368
verify:
Verification
.Skipped,
25452
verify:
Verification
.Skipped,
25522
verify:
Verification
.Skipped,
25588
parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe, verify:
Verification
.Skipped /* init-only */);
25620
CompileAndVerify(comp, expectedOutput: "(R, R2)", verify:
Verification
.Skipped /* init-only */);
27694
CompileAndVerify(comp, expectedOutput: "4243", verify:
Verification
.Skipped /* init-only */);
27898
CompileAndVerify(compDebug, expectedOutput: "C1 { I1 = 42 }", verify:
Verification
.Skipped /* init-only */);
27901
CompileAndVerify(compRelease, expectedOutput: "C1 { I1 = 42 }", verify:
Verification
.Skipped /* init-only */);
27921
CompileAndVerify(compDebug, expectedOutput: "C1 { I1 = 42 }", verify:
Verification
.Skipped /* init-only */);
27924
CompileAndVerify(compRelease, expectedOutput: "C1 { I1 = 42 }", verify:
Verification
.Skipped /* init-only */);
29317
var verifier = CompileAndVerify(comp, expectedOutput: "42 - 42", verify:
Verification
.Skipped /* init-only */);
30442
CompileAndVerify(comp, verify:
Verification
.Skipped).VerifyDiagnostics();
30445
CompileAndVerify(comp, verify:
Verification
.Skipped).VerifyDiagnostics();
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
EndToEndTests.cs (1)
328
CompileAndVerify(compilation, expectedOutput: "Pass", verify:
Verification
.Skipped);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IObjectCreationExpression.cs (1)
15270
var reference1 = BasicCompilationUtils.CompileToMetadata(source1, verify:
Verification
.Passes);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (345)
Semantics\ArglistTests.cs (7)
193
var verifier = CompileAndVerify(source: text, expectedOutput: "System.Int32", verify:
Verification
.FailsILVerify);
361
var verifier = CompileAndVerify(source: text, expectedOutput: "System.String", verify:
Verification
.FailsILVerify);
675
var verifier = CompileAndVerify(source: text, expectedOutput: "1123", verify:
Verification
.FailsILVerify);
797
42", verify:
Verification
.FailsILVerify);
905
var verifier = CompileAndVerify(source: text, expectedOutput: "4242", verify:
Verification
.FailsILVerify);
1679
CompileAndVerify(source, expectedOutput: "111", verify:
Verification
.FailsILVerify).VerifyDiagnostics();
1698
CompileAndVerify(source, expectedOutput: "111", verify:
Verification
.FailsILVerify).VerifyDiagnostics();
Semantics\BetterCandidates.cs (2)
952
CompileAndVerify(compilation, expectedOutput: "2", verify:
Verification
.Skipped);
986
var reference1 = BasicCompilationUtils.CompileToMetadata(source1, verify:
Verification
.Passes);
Semantics\BindingAsyncTasklikeMoreTests.cs (2)
1591
CompileAndVerify(compilation, verify:
Verification
.FailsILVerify, expectedOutput: "3");
1595
CompileAndVerify(compilation, verify:
Verification
.FailsILVerify, expectedOutput: "3");
Semantics\BindingAwaitTests.cs (1)
2840
var compiled = CompileAndVerify(comp, expectedOutput: "dynamic42", verify:
Verification
.FailsPEVerify);
Semantics\DelegateTypeTests.cs (29)
3799
CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Skipped, expectedOutput:
11413
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput:
11653
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput:
11726
", verify:
Verification
.FailsILVerify with { ILVerifyMessage = "[F2]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x18 }" });
12162
CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Skipped, expectedOutput:
12207
CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Skipped, expectedOutput:
12238
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput:
12326
CompileAndVerify(new[] { sourceA, sourceB, sourceC }, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Skipped, expectedOutput:
12383
CompileAndVerify(new[] { sourceA, sourceB, sourceC }, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Skipped, expectedOutput:
12418
CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Skipped, expectedOutput:
12455
CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Skipped, expectedOutput:
12482
CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Skipped, expectedOutput:
12536
CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Skipped, expectedOutput:
12602
CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Skipped, expectedOutput:
12665
CompileAndVerify(sourceB, references: new[] { refA }, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Skipped, expectedOutput:
12722
CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Skipped, expectedOutput:
12763
CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Skipped, expectedOutput:
12837
CompileAndVerify(source, verify:
Verification
.Skipped, expectedOutput:
12899
CompileAndVerify(source, verify:
Verification
.Skipped, expectedOutput:
12958
CompileAndVerify(source, verify:
Verification
.Skipped, expectedOutput:
13015
CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Skipped, expectedOutput:
13059
CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Skipped, expectedOutput:
14093
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify:
Verification
.Skipped, expectedOutput:
14145
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify:
Verification
.Skipped, expectedOutput:
14210
var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify:
Verification
.Skipped, expectedOutput:
14259
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
16468
verify: ExecutionConditionUtil.IsCoreClr ?
Verification
.Passes :
Verification
.Skipped,
17526
CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Skipped, expectedOutput: "True").VerifyDiagnostics();
Semantics\DynamicTests.cs (7)
1553
expectedOutput: "1", verify:
Verification
.Fails).VerifyDiagnostics();
1575
expectedOutput: "1", verify:
Verification
.Fails).VerifyDiagnostics();
1597
expectedOutput: "1", verify:
Verification
.Fails).VerifyDiagnostics();
1642
expectedOutput: RefFieldTests.IncludeExpectedOutput("1"), verify:
Verification
.FailsPEVerify).VerifyDiagnostics();
1670
expectedOutput: ro ? "0" : "1", verify: ro ?
Verification
.FailsPEVerify : default).VerifyDiagnostics();
3916
var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithAllowUnsafe(true), verify:
Verification
.FailsPEVerify).VerifyDiagnostics();
3944
var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithAllowUnsafe(true), verify:
Verification
.FailsPEVerify).VerifyDiagnostics();
Semantics\ForEachTests.cs (1)
3085
CompileAndVerify(comp, verify:
Verification
.FailsPEVerify).
Semantics\FunctionPointerTests.cs (11)
26
return CompileAndVerify(compilation, verify:
Verification
.Skipped, expectedOutput: expectedOutput);
239
var verifier = CompileAndVerify(comp, expectedOutput: "1", verify:
Verification
.Skipped);
973
CompileAndVerify(comp, verify:
Verification
.Skipped);
2698
", options: TestOptions.UnsafeReleaseExe, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped);
2723
", options: TestOptions.UnsafeReleaseExe, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped);
2946
", expectedOutput: "11", options: TestOptions.UnsafeReleaseExe, verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.FailsILVerify :
Verification
.Skipped);
3351
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: @"
3848
var verifier = CompileAndVerify(comp, expectedOutput: "True", verify:
Verification
.Skipped);
Semantics\GenericConstraintsTests.cs (11)
2437
options: TestOptions.UnsafeReleaseExe, references: new[] { reference, reference1 }, verify:
Verification
.Passes, expectedOutput: "123");
2523
options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails, expectedOutput: string.Join(Environment.NewLine, type, size)).VerifyIL("Test.M<T>", @"
2575
options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails, expectedOutput: "246").VerifyIL("Test.M<T>", @"
2613
options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Passes, expectedOutput: "NotNullableValueTypeConstraint, DefaultConstructorConstraint");
2638
}", options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Passes, expectedOutput: "4");
2673
}", options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Passes, expectedOutput: "8");
3043
verify:
Verification
.Fails,
3929
CompileAndVerify(code, options: TestOptions.UnsafeReleaseExe, expectedOutput: "42", verify:
Verification
.Skipped);
3962
CompileAndVerify(code, options: TestOptions.UnsafeReleaseDll, verify:
Verification
.Skipped)
4261
verify:
Verification
.Skipped,
4317
verify:
Verification
.Skipped,
Semantics\InitOnlyMemberTests.cs (11)
1448
verify:
Verification
.FailsPEVerify);
2742
verify:
Verification
.FailsPEVerify);
2788
var v = CompileAndVerify(comp, expectedOutput: "2 3", verify:
Verification
.Skipped);
3011
CompileAndVerify(comp, expectedOutput: "RAN 42", verify:
Verification
.Skipped /* init-only */);
4197
verify:
Verification
.FailsPEVerify);
4221
" }, verify:
Verification
.FailsPEVerify, expectedOutput: "1");
4257
" }, verify:
Verification
.FailsPEVerify, expectedOutput: "1");
4296
" }, verify:
Verification
.FailsPEVerify, expectedOutput: "1");
4336
" }, verify:
Verification
.FailsPEVerify, expectedOutput: "1");
4431
" }, verify:
Verification
.FailsPEVerify, expectedOutput: @"I1 was 1
4565
CompileAndVerify(comp, expectedOutput: "c", verify:
Verification
.FailsPEVerify);
Semantics\InterceptorsTests.cs (7)
4087
var verifier = CompileAndVerify(CreateEmptyCompilation((source, "Program.cs"), parseOptions: RegularWithInterceptors, options: WithNullableEnable()), verify:
Verification
.Skipped);
4180
var verifier = CompileAndVerify(CreateEmptyCompilation((source, "Program.cs"), parseOptions: RegularWithInterceptors, options: WithNullableEnable()), verify:
Verification
.Skipped);
4691
var verifier = CompileAndVerify(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors, verify:
Verification
.Skipped);
7434
CompileAndVerify(comp, verify:
Verification
.Fails);
7454
verify:
Verification
.Fails,
7487
CompileAndVerify(comp, verify:
Verification
.Fails);
7507
verify:
Verification
.Fails,
Semantics\InterpolationTests.cs (9)
1114
var compilation = CompileAndVerify(comp, verify:
Verification
.Fails);
4056
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsILVerify, expectedOutput: @"
4628
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped);
9745
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.FailsILVerify :
Verification
.Skipped);
11386
", verify:
Verification
.Skipped);
11564
", verify:
Verification
.Skipped);
11671
", verify:
Verification
.Skipped);
Semantics\NamedAndOptionalTests.cs (1)
774
var c = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify:
Verification
.FailsPEVerify);
Semantics\NativeIntegerTests.cs (6)
4618
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
4690
verify:
Verification
.FailsILVerify with { ILVerifyMessage = "[GetHashCode]: Unrecognized arguments for delegate .ctor. { Offset = 0x12 }" },
9512
var verifier = CompileAndVerify(comp, verify: useUnsafeContext || !verify ?
Verification
.Skipped :
Verification
.Passes);
10378
var verifier = CompileAndVerify(comp, emitOptions: EmitOptions.Default.WithRuntimeMetadataVersion("0.0.0.0"), verify:
Verification
.Skipped);
13898
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: expectedOutput);
Semantics\NullableReferenceTypesTests.cs (12)
116637
CompileAndVerify(compilation2, verify:
Verification
.FailsPEVerify);
116648
CompileAndVerify(compilation3, verify:
Verification
.FailsPEVerify);
138543
verify: ExecutionConditionUtil.IsDesktop ?
Verification
.Skipped :
Verification
.Passes,
138581
verify: ExecutionConditionUtil.IsDesktop ?
Verification
.Skipped :
Verification
.Passes,
138612
verify: ExecutionConditionUtil.IsDesktop ?
Verification
.Skipped :
Verification
.Passes,
138646
verify: ExecutionConditionUtil.IsDesktop ?
Verification
.Skipped :
Verification
.Passes,
138691
verify: ExecutionConditionUtil.IsDesktop ?
Verification
.Skipped :
Verification
.Passes,
Semantics\NullableTests.cs (2)
208
verifier = CompileAndVerify(source: source3, expectedOutput: "1", verify:
Verification
.FailsPEVerify);
267
CompileAndVerify(source: source4.Replace("TYPE", type), expectedOutput: "0", verify:
Verification
.FailsPEVerify);
Semantics\OverloadResolutionTests.cs (6)
2741
CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails, expectedOutput: @"2
9707
parseOptions: TestOptions.Regular12, verify:
Verification
.Fails).VerifyDiagnostics(expectedDiagnostics);
9710
verify:
Verification
.Fails).VerifyDiagnostics(expectedDiagnostics);
9741
CompileAndVerify(source, expectedOutput: "555", verify:
Verification
.FailsILVerify, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics);
9742
CompileAndVerify(source, expectedOutput: "555", verify:
Verification
.FailsILVerify).VerifyDiagnostics(expectedDiagnostics);
11627
CompileAndVerify(code, expectedOutput: @"1", verify:
Verification
.Fails);
Semantics\QueryTests.cs (3)
4600
verify:
Verification
.FailsPEVerify,
4644
verify:
Verification
.FailsPEVerify,
4694
verify:
Verification
.FailsPEVerify,
Semantics\RawInterpolationTests.cs (1)
1112
var compilation = CompileAndVerify(comp, verify:
Verification
.Fails);
Semantics\RawInterpolationTests_Handler.cs (5)
2459
value:C", verify:
Verification
.FailsILVerify);
2929
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped);
7958
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.FailsILVerify :
Verification
.Skipped);
Semantics\RecordStructTests.cs (12)
40
verify:
Verification
.Skipped);
1310
CompileAndVerify(comp, expectedOutput: "(2, 2)", verify:
Verification
.Skipped /* init-only */)
1685
CompileAndVerify(comp, expectedOutput: "P1 P2 P3 RAN", verify:
Verification
.Skipped /* pointers */);
2169
var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11, verify:
Verification
.Skipped);
2425
CompileAndVerify(comp, expectedOutput: "static ctor", verify:
Verification
.Skipped /* init-only */);
2523
CompileAndVerify(comp, expectedOutput: "(42, 43)", verify:
Verification
.Skipped /* init-only */);
2826
var verifier = CompileAndVerify(comp, expectedOutput: "42", verify:
Verification
.Skipped /* init-only */);
2867
var verifier = CompileAndVerify(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11, verify:
Verification
.Skipped);
2899
var verifier = CompileAndVerify(comp, expectedOutput: "42", verify:
Verification
.Skipped /* init-only */);
5541
var v = CompileAndVerify(comp, expectedOutput: "C1 { I = 42 }", verify:
Verification
.Skipped /* init-only */);
7664
var verifier = CompileAndVerify(comp, expectedOutput: "4243", verify:
Verification
.Skipped /* init-only */);
10513
verify:
Verification
.Skipped,
Semantics\RefEscapingTests.cs (13)
1030
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
5038
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
5088
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
5138
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
5217
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
5321
var compiled = CompileAndVerify(comp, verify:
Verification
.Passes);
7061
CompileAndVerify(comp, verify:
Verification
.Skipped).VerifyDiagnostics().VerifyIL("Program.Test3",
7106
CompileAndVerify(comp, verify:
Verification
.Skipped).VerifyDiagnostics().VerifyIL("Program.Test1",
7205
CompileAndVerify(comp, verify:
Verification
.Skipped).VerifyDiagnostics().VerifyIL("Program.Test1",
7252
CompileAndVerify(comp, verify:
Verification
.Skipped).VerifyDiagnostics().VerifyIL("Program.Test1",
7391
CompileAndVerify(comp, verify:
Verification
.Skipped).VerifyDiagnostics().VerifyIL("Program.Test1",
7477
CompileAndVerify(comp, verify:
Verification
.Skipped).
7521
CompileAndVerify(comp, verify:
Verification
.Skipped).
Semantics\RefFieldTests.cs (67)
212
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput(
286
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput(
340
CompileAndVerify(comp, verify:
Verification
.Skipped);
372
CompileAndVerify(comp, verify:
Verification
.Skipped);
427
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
830
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
937
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
1111
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
1169
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
1285
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
1322
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
1356
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
1401
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
1446
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
1691
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("explicit ctor"));
1729
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("explicit ctor"));
1766
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("explicit ctor"));
1806
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("explicit ctor"));
1844
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("explicit ctor"));
1989
var verifier = CompileAndVerify(compB, verify:
Verification
.Skipped);
2264
verify:
Verification
.Skipped,
2539
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
2641
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput(
2733
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("42")).VerifyDiagnostics().
2783
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("42")).VerifyDiagnostics().
6382
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput(
6787
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput(
7189
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput(
7314
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput(
8363
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput(
8409
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput(
8566
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput(
8635
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("2"));
8672
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("2"));
8709
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("2"));
8754
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("2"));
8804
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput(
8873
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput(
8944
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput(
9007
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput(
9081
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput(@"(1, Hello world)"));
9700
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput(
10098
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput(
18246
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
18861
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
20417
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("42"));
21161
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("42"));
21335
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("4242"));
21459
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("4242"));
21788
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: IncludeExpectedOutput("42"));
26155
var verifier = CompileAndVerify(new[] { source, UnscopedRefAttributeDefinition }, expectedOutput: "12", verify:
Verification
.Fails);
26299
var verifier = CompileAndVerify(new[] { source, UnscopedRefAttributeDefinition }, expectedOutput: "12", verify:
Verification
.Fails);
28620
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput:
30331
verify:
Verification
.Skipped,
30385
verify:
Verification
.Skipped,
30453
verify:
Verification
.Skipped,
30516
verify:
Verification
.Skipped,
30565
verify:
Verification
.Skipped,
30639
verify:
Verification
.Skipped,
30712
verify:
Verification
.Skipped,
30755
verify:
Verification
.Skipped,
30794
verify:
Verification
.Skipped,
30836
verify:
Verification
.Skipped,
30880
verify:
Verification
.Skipped,
30921
verify:
Verification
.Skipped,
30969
verify:
Verification
.Skipped,
31012
verify:
Verification
.Skipped,
Semantics\RefLocalsAndReturnsTests.cs (7)
2468
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
2536
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
3298
CompileAndVerify(code, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net70, verify:
Verification
.FailsPEVerify).VerifyDiagnostics();
3299
CompileAndVerify(code, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net70, verify:
Verification
.FailsPEVerify).VerifyDiagnostics();
3300
CompileAndVerify(code, expectedOutput: expectedOutput, targetFramework: TargetFramework.Net70, verify:
Verification
.FailsPEVerify).VerifyDiagnostics();
3461
CompileAndVerify(code, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net70, verify:
Verification
.FailsPEVerify).VerifyDiagnostics();
3462
CompileAndVerify(code, expectedOutput: expectedOutput, targetFramework: TargetFramework.Net70, verify:
Verification
.FailsPEVerify).VerifyDiagnostics();
Semantics\SemanticErrorTests.cs (3)
7623
CompileAndVerify(text, expectedOutput: expectedOutput, verify:
Verification
.Fails);
13441
var reference1 = BasicCompilationUtils.CompileToMetadata(source1, verify:
Verification
.Passes);
16098
var c = CompileAndVerify(text, expectedOutput: "7788", verify:
Verification
.Fails, options: TestOptions.UnsafeReleaseExe);
Semantics\SpanStackSafetyTests.cs (13)
1062
CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify).VerifyDiagnostics();
1065
CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify).VerifyDiagnostics();
1209
CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify).VerifyDiagnostics();
1212
CompileAndVerify(comp, expectedOutput: expectedOutput, verify:
Verification
.FailsILVerify).VerifyDiagnostics();
2203
CompileAndVerify(comp, verify:
Verification
.Fails, expectedOutput: @"
2239
CompileAndVerify(comp, verify:
Verification
.Fails, expectedOutput: @"
2279
}", options: TestOptions.ReleaseExe), verify:
Verification
.Fails, expectedOutput: @"
2323
}", options: TestOptions.ReleaseExe), verify:
Verification
.Fails, expectedOutput: @"
2622
CompileAndVerify(comp, verify:
Verification
.Fails, expectedOutput: "Done").VerifyDiagnostics();
2648
CompileAndVerify(comp, expectedOutput: "Done", verify:
Verification
.FailsILVerify).VerifyDiagnostics();
2672
CompileAndVerify(comp, verify:
Verification
.Fails, expectedOutput: "Done").VerifyDiagnostics();
2702
CompileAndVerify(comp, verify:
Verification
.Fails, expectedOutput: "Done").VerifyDiagnostics();
2725
CompileAndVerify(comp, verify:
Verification
.Fails, expectedOutput: "Done").VerifyDiagnostics();
Semantics\StackAllocInitializerTests.cs (2)
525
CompileAndVerify(comp, expectedOutput: "123123123", verify:
Verification
.Fails);
780
CompileAndVerify(comp, expectedOutput: "2", verify:
Verification
.Fails).VerifyDiagnostics();
Semantics\StructConstructorTests.cs (9)
2282
var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, options: TestOptions.ReleaseExe, verify:
Verification
.Skipped, expectedOutput:
2464
var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, options: TestOptions.ReleaseExe, verify:
Verification
.Skipped, expectedOutput:
2770
", verify:
Verification
.Skipped);
2880
", verify:
Verification
.Skipped);
2950
S3 { X = 3, Y = }", verify:
Verification
.Skipped);
3004
CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10, verify:
Verification
.Skipped, expectedOutput: expectedOutput);
3005
CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, verify:
Verification
.Skipped, expectedOutput: expectedOutput);
3111
CompileAndVerify(source, options: TestOptions.ReleaseExe, verify:
Verification
.Skipped, expectedOutput:
3946
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: "explicit ctor");
Semantics\TargetTypedDefaultTests.cs (1)
1941
CompileAndVerify(comp, expectedOutput: "123: True", verify:
Verification
.FailsILVerify);
Semantics\TopLevelStatementsTests.cs (5)
911
CompileAndVerify(comp, expectedOutput: "100 200 300", verify:
Verification
.Skipped);
932
CompileAndVerify(comp, expectedOutput: "12", verify:
Verification
.Skipped);
6081
verify:
Verification
.Skipped);
6153
verify:
Verification
.Skipped);
8444
CompileAndVerify(comp, expectedOutput: "4", verify:
Verification
.Skipped);
Semantics\UnsafeTests.cs (9)
703
CompileAndVerify(comp, expectedOutput: "1", verify:
Verification
.Fails).VerifyDiagnostics(
5999
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
10037
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Skipped, expectedOutput: "42");
12133
var compilation = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails);
12250
var compilation = CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails);
12329
CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify:
Verification
.Fails);
12412
var comp1 = CompileAndVerify(s1, options: TestOptions.UnsafeReleaseDll, verify:
Verification
.Passes).Compilation;
12415
options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails,
12466
options: TestOptions.UnsafeReleaseDll, verify:
Verification
.Fails,
Semantics\UserDefinedConversionTests.cs (5)
1721
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
1774
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
1831
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
1866
var verifier = CompileAndVerify(comp, expectedOutput: "0", verify:
Verification
.Skipped);
1911
var verifier = CompileAndVerify(comp, expectedOutput: "0", verify:
Verification
.Skipped);
Semantics\UseSiteErrorTests.cs (1)
2381
CompileAndVerify(compilation5, verify:
Verification
.FailsILVerify);
Semantics\Utf8StringsLiteralsTests.cs (40)
422
", verify:
Verification
.Fails).VerifyDiagnostics();
459
", verify:
Verification
.Fails).VerifyDiagnostics();
467
", verify:
Verification
.Fails).VerifyDiagnostics();
1455
CompileAndVerify(comp, expectedOutput: @"ReadOnlySpan<char>ReadOnlySpan<byte>", verify:
Verification
.Fails).VerifyDiagnostics();
1653
", verify:
Verification
.Fails).VerifyDiagnostics();
1670
", verify:
Verification
.Fails).VerifyDiagnostics();
1706
", verify:
Verification
.Fails).VerifyDiagnostics();
1723
", verify:
Verification
.Fails).VerifyDiagnostics();
1759
", verify:
Verification
.Fails).VerifyDiagnostics();
1776
", verify:
Verification
.Fails).VerifyDiagnostics();
1821
", verify:
Verification
.Fails).VerifyDiagnostics();
1838
", verify:
Verification
.Fails).VerifyDiagnostics();
1881
", verify:
Verification
.Fails).VerifyDiagnostics();
2008
", verify:
Verification
.Fails).VerifyDiagnostics();
2039
var verifier = CompileAndVerify(comp, expectedOutput: "{ 0x63 0x61 0x74 }", verify:
Verification
.Fails).VerifyDiagnostics();
2103
CompileAndVerify(comp, expectedOutput: @"ReadOnlySpan", verify:
Verification
.Fails).VerifyDiagnostics();
2123
CompileAndVerify(comp, expectedOutput: @"ReadOnlySpan", verify:
Verification
.Fails).VerifyDiagnostics();
2144
CompileAndVerify(comp, expectedOutput: @"ReadOnlySpan", verify:
Verification
.Fails).VerifyDiagnostics();
2173
", verify:
Verification
.Fails).VerifyDiagnostics();
2202
", verify:
Verification
.Fails).VerifyDiagnostics();
2366
", verify:
Verification
.Fails).VerifyDiagnostics();
3333
var verifier = CompileAndVerify(comp, verify:
Verification
.Fails with { ILVerifyMessage = """
3385
var verifier = CompileAndVerify(comp, verify:
Verification
.Fails).VerifyDiagnostics();
3448
var verifier = CompileAndVerify(comp, expectedOutput: @"ArgumentOutOfRangeException", verify:
Verification
.Fails).VerifyDiagnostics();
3498
", verify:
Verification
.Fails).VerifyDiagnostics();
3540
", verify:
Verification
.Fails).VerifyDiagnostics();
3589
", verify:
Verification
.Fails).VerifyDiagnostics();
3638
", verify:
Verification
.Fails).VerifyDiagnostics();
3688
", verify:
Verification
.Fails).VerifyDiagnostics();
3735
", verify:
Verification
.Fails).VerifyDiagnostics();
3776
", verify:
Verification
.Fails).VerifyDiagnostics();
3829
CompileAndVerify(comp, expectedOutput: @"called", verify:
Verification
.Fails).VerifyDiagnostics();
3855
CompileAndVerify(comp, expectedOutput: @"called", verify:
Verification
.Fails).VerifyDiagnostics();
3901
CompileAndVerify(comp, expectedOutput: @"called", verify:
Verification
.Fails).Diagnostics.Where(d => d.Code is not (int)ErrorCode.WRN_SameFullNameThisAggAgg).Verify();
3947
CompileAndVerify(comp, expectedOutput: @"called", verify:
Verification
.Fails).Diagnostics.Where(d => d.Code is not (int)ErrorCode.WRN_SameFullNameThisAggAgg).Verify();
3991
CompileAndVerify(comp, expectedOutput: @"called", verify:
Verification
.Fails).Diagnostics.Where(d => d.Code is not (int)ErrorCode.WRN_SameFullNameThisAggAgg).Verify();
4034
CompileAndVerify(comp, expectedOutput: @"called", verify:
Verification
.Fails).Diagnostics.Where(d => d.Code is not (int)ErrorCode.WRN_SameFullNameThisAggAgg).Verify();
4065
", verify:
Verification
.Fails).VerifyDiagnostics();
4136
", verify:
Verification
.Fails).VerifyDiagnostics();
4301
CompileAndVerify(comp, expectedOutput: "801", verify:
Verification
.Fails).VerifyDiagnostics();
Semantics\WarningVersionTests.cs (24)
159
verify:
Verification
.Skipped);
168
verify:
Verification
.Skipped);
181
verify:
Verification
.Skipped);
192
verify:
Verification
.Skipped);
237
verify:
Verification
.Skipped);
246
verify:
Verification
.Skipped);
260
verify:
Verification
.Skipped);
271
verify:
Verification
.Skipped);
323
verify:
Verification
.Skipped);
332
verify:
Verification
.Skipped);
348
verify:
Verification
.Skipped);
362
verify:
Verification
.Skipped);
447
verify:
Verification
.Skipped);
456
verify:
Verification
.Skipped);
469
verify:
Verification
.Skipped);
480
verify:
Verification
.Skipped);
534
verify:
Verification
.Skipped);
543
verify:
Verification
.Skipped);
556
verify:
Verification
.Skipped);
567
verify:
Verification
.Skipped);
621
verify:
Verification
.Skipped);
630
verify:
Verification
.Skipped);
643
verify:
Verification
.Skipped);
654
verify:
Verification
.Skipped);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (282)
Compilation\CompilationAPITests.cs (1)
1029
CompileAndVerify(assembly, verify:
Verification
.FailsILVerify);
Compilation\IndexedProperties_BindingTests.cs (1)
205
var reference = BasicCompilationUtils.CompileToMetadata(COMSource, verify:
Verification
.Passes);
Compilation\ReferenceManagerTests.cs (2)
390
verify:
Verification
.Skipped);
1741
verify:
Verification
.Passes);
Compilation\SemanticModelGetSemanticInfoTests.cs (2)
1440
var reference1 = BasicCompilationUtils.CompileToMetadata(source1, verify:
Verification
.Skipped);
1579
var reference1 = BasicCompilationUtils.CompileToMetadata(source1, verify:
Verification
.Skipped);
Compilation\UsedAssembliesTests.cs (8)
36
CompileAndVerify(comp1, verify:
Verification
.FailsILVerify);
57
CompileAndVerify(comp1, verify:
Verification
.FailsILVerify);
111
CompileAndVerify(comp2, verify:
Verification
.Skipped).Diagnostics.Where(d => d.Code != (int)ErrorCode.WRN_NoRuntimeMetadataVersion).Verify(after);
121
CompileAndVerify(comp3, verify:
Verification
.Skipped).Diagnostics.Where(d => d.Code != (int)ErrorCode.WRN_NoRuntimeMetadataVersion).Verify(after);
327
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: expectedOutput).VerifyDiagnostics();
339
CompileAndVerify(comp3, verify:
Verification
.Skipped, expectedOutput: expectedOutput).VerifyDiagnostics();
345
CompileAndVerify(comp2, verify:
Verification
.Skipped, expectedOutput: expectedOutput).VerifyDiagnostics();
421
CompileAndVerify(comp1, verify:
Verification
.FailsILVerify);
Symbols\AnonymousTypesSemanticsTests.cs (1)
1901
CompileAndVerify(comp, expectedOutput: "RAN", verify:
Verification
.FailsPEVerify);
Symbols\AnonymousTypesSymbolTests.cs (1)
1472
verify:
Verification
.Passes
Symbols\CovariantReturnTests.cs (23)
588
CompileAndVerify(SourceView(comp, assignments), verify:
Verification
.Skipped).VerifyIL("Program.M(Base, Derived)", source: assignments, sequencePoints: "Program.M", expectedIL: @"
729
CompileAndVerify(SourceView(comp, assignments), verify:
Verification
.Skipped).VerifyIL("Program.M(Base, Derived)", source: assignments, sequencePoints: "Program.M", expectedIL: @"
787
CompileAndVerify(SourceView(comp, assignments), verify:
Verification
.Skipped).VerifyIL("Program.M(Base, Derived)", source: assignments, sequencePoints: "Program.M", expectedIL: @"
846
CompileAndVerify(SourceView(comp, assignments), verify:
Verification
.Skipped).VerifyIL("Program.M(Base<object>, Derived<object, string>)", source: assignments, sequencePoints: "Program.M", expectedIL: @"
908
CompileAndVerify(SourceView(comp, assignments), verify:
Verification
.Skipped).VerifyIL("Program.M(Base, Derived<Q>)", source: assignments, sequencePoints: "Program.M", expectedIL: @"
977
CompileAndVerify(SourceView(comp, assignments), verify:
Verification
.Skipped).VerifyIL("Program.M(Base, Derived)", source: assignments, sequencePoints: "Program.M", expectedIL: @"
1037
CompileAndVerify(SourceView(comp, assignments), verify:
Verification
.Skipped).VerifyIL("Program.M(Base<object>, Derived<object, string>)", source: assignments, sequencePoints: "Program.M", expectedIL: @"
1101
CompileAndVerify(SourceView(comp, assignments), verify:
Verification
.Skipped).VerifyIL("Program.M(Base, Derived<Q>)", source: assignments, sequencePoints: "Program.M", expectedIL: @"
1163
CompileAndVerify(SourceView(comp, assignments), verify:
Verification
.Skipped).VerifyIL("Program.M(Base, Derived)", source: assignments, sequencePoints: "Program.M", expectedIL: @"
1225
CompileAndVerify(SourceView(comp, assignments), verify:
Verification
.Skipped).VerifyIL("Program.M(Base<object>, Derived<object, string>)", source: assignments, sequencePoints: "Program.M", expectedIL: @"
1292
CompileAndVerify(SourceView(comp, assignments), verify:
Verification
.Skipped).VerifyIL("Program.M(Base, Derived<Q>)", source: assignments, sequencePoints: "Program.M", expectedIL: @"
1442
CompileAndVerify(SourceView(comp, assignments), verify:
Verification
.Skipped).VerifyIL("Program.M(Base, Derived)", source: assignments, sequencePoints: "Program.M", expectedIL: @"
1505
CompileAndVerify(SourceView(comp, assignments), verify:
Verification
.Skipped).VerifyIL("Program.M(Base, Derived)", source: assignments, sequencePoints: "Program.M", expectedIL: @"
1570
var c = CompileAndVerify(SourceView(comp, assignments), verify:
Verification
.Skipped);
1634
CompileAndVerify(SourceView(comp, assignments), verify:
Verification
.Skipped).VerifyIL("Program.M(Base, Derived)", source: assignments, sequencePoints: "Program.M", expectedIL: @"
1911
CompileAndVerify(SourceView(comp, assignments), verify:
Verification
.Skipped).VerifyIL("Program.M(Base, Derived)", source: assignments, sequencePoints: "Program.M", expectedIL: @"
2100
CompileAndVerify(SourceView(comp, assignments), verify:
Verification
.Skipped).VerifyIL("Program.M(Base, Derived)", source: assignments, sequencePoints: "Program.M", expectedIL: @"
2234
CompileAndVerify(SourceView(comp, assignments), verify:
Verification
.Skipped).VerifyIL("Program.M(Base, Derived)", source: assignments, sequencePoints: "Program.M", expectedIL: @"
2411
CompileAndVerify(SourceView(comp, assignments), verify:
Verification
.Skipped).VerifyIL("Program.M(Base, Derived, Derived2)", source: assignments, sequencePoints: "Program.M", expectedIL: @"
2529
CompileAndVerify(SourceView(comp, assignments), verify:
Verification
.Skipped).VerifyIL("Program.M(Base, Derived, Derived2)", source: assignments, sequencePoints: "Program.M", expectedIL: @"
2648
CompileAndVerify(vbComp, verify:
Verification
.Skipped).VerifyIL("Derived2.T(Base, Derived, Derived2)", source: vbSource, sequencePoints: "Derived2.T", expectedIL: @"
3240
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
3403
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped);
Symbols\DefaultInterfaceImplementationTests.cs (14)
44
private static
Verification
VerifyOnMonoOrCoreClr
48
return ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped;
52
private static
Verification
Verify(bool isStatic)
55
return isStatic ?
Verification
.Skipped : VerifyOnMonoOrCoreClr;
63
private static
Verification
VerifyOnMonoOrCoreClr_FailsIlVerify
67
return ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.FailsILVerify :
Verification
.Skipped;
71
private static
Verification
VerifyFailsIlVerify(bool isStatic)
73
return !isStatic && ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.FailsILVerify :
Verification
.Skipped;
31748
private void ValidateNestedTypes_01(string source1, Accessibility expected = Accessibility.Public, TargetFramework targetFramework = TargetFramework.Standard, bool execute = true,
Verification
verify = default)
44770
CompileAndVerify(compilation1, symbolValidator: ValidateConstructor, verify:
Verification
.Skipped);
50760
CompileAndVerify(compilation2, expectedOutput: "Test.M1", verify:
Verification
.Skipped);
Symbols\ExtendedPartialMethodsTests.cs (2)
1216
verify:
Verification
.Skipped);
1226
verify:
Verification
.Skipped);
Symbols\ExtensionMethodTests.cs (1)
2301
G: S", verify:
Verification
.FailsILVerify);
Symbols\FunctionPointerTypeSymbolTests.cs (1)
1389
var verifier = CompileAndVerify(comp, expectedOutput: "1", verify:
Verification
.Skipped);
Symbols\IndexedPropertyTests.cs (15)
1085
var compilation2 = CompileAndVerify(source2, references: new[] { reference1 }, verify:
Verification
.Passes);
1173
var reference1 = BasicCompilationUtils.CompileToMetadata(source1, verify:
Verification
.Passes);
1209
var reference1 = BasicCompilationUtils.CompileToMetadata(source1, verify:
Verification
.Passes);
1541
var reference1 = BasicCompilationUtils.CompileToMetadata(source1, verify:
Verification
.Skipped);
1564
var compilation3 = CompileAndVerify(source3, references: new[] { reference1 }, verify:
Verification
.Skipped);
1957
var reference1 = BasicCompilationUtils.CompileToMetadata(source1, verify:
Verification
.Passes);
1969
var compilation2 = CompileAndVerify(source2, new[] { reference1 }, verify:
Verification
.Passes, expectedOutput:
2045
var reference1 = BasicCompilationUtils.CompileToMetadata(source1, verify:
Verification
.Passes);
2104
var reference1 = BasicCompilationUtils.CompileToMetadata(source1, verify:
Verification
.Skipped);
2237
var reference1 = BasicCompilationUtils.CompileToMetadata(source1, verify:
Verification
.Passes);
2261
var compilation2 = CompileAndVerify(source2, new[] { reference1 }, verify:
Verification
.Passes, expectedOutput:
2309
var reference1 = BasicCompilationUtils.CompileToMetadata(source1, verify:
Verification
.Passes);
2331
var compilation2 = CompileAndVerify(source2, new[] { reference1 }, verify:
Verification
.Passes, expectedOutput:
2386
var reference1 = BasicCompilationUtils.CompileToMetadata(source1, verify:
Verification
.Passes);
2406
var compilation2 = CompileAndVerify(source2, new[] { reference1 }, verify:
Verification
.Passes, expectedOutput:
Symbols\InterfaceImplementationTests.cs (1)
2450
CompileAndVerify(comp, verify:
Verification
.Skipped, expectedOutput: @"set_P1
Symbols\Metadata\PE\TypeForwarders.cs (2)
1643
CompileAndVerify(appCompilation, verify:
Verification
.Fails,
1728
var asm0 = ModuleMetadata.CreateFromImage(CompileAndVerify(comp0, verify:
Verification
.Skipped).EmittedAssemblyData);
Symbols\MethodImplementationFlagsTests.cs (2)
163
CompileAndVerify(src, sourceSymbolValidator: validator, symbolValidator: validator, verify:
Verification
.Skipped);
185
CompileAndVerify(src, sourceSymbolValidator: validator, symbolValidator: validator, verify:
Verification
.Skipped);
Symbols\ModuleInitializers\AccessibilityTests.cs (2)
381
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped);
Symbols\ModuleInitializers\ModuleInitializersTests.cs (8)
280
verify: ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Passes :
Verification
.Skipped);
357
verify: !ExecutionConditionUtil.IsMonoOrCoreClr ?
Verification
.Skipped :
Verification
.Passes);
833
CompileAndVerify(comp1, symbolValidator: validateModuleInitializer, verify:
Verification
.Skipped);
850
CompileAndVerify(comp2, symbolValidator: validateModuleInitializer, verify:
Verification
.Skipped);
1071
CompileAndVerify(comp, symbolValidator: validateModuleInitializer, verify:
Verification
.Skipped, expectedOutput: "12");
1074
CompileAndVerify(comp, symbolValidator: validateNoModuleInitializer, verify:
Verification
.Skipped, expectedOutput: "1");
Symbols\PartialPropertiesTests.cs (3)
692
verify:
Verification
.Skipped);
2004
var verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify:
Verification
.Fails, expectedOutput: "1");
2919
verify:
Verification
.Fails,
Symbols\RequiredMembersTests.cs (12)
1388
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator);
2541
CompileAndVerify(comp, verify:
Verification
.FailsPEVerify).VerifyDiagnostics();
3216
CompileAndVerify(originalComp, verify: ExecutionConditionUtil.IsCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
3264
CompileAndVerify(originalComp, verify: ExecutionConditionUtil.IsCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
3299
CompileAndVerify(originalComp, verify: ExecutionConditionUtil.IsCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
3347
CompileAndVerify(originalComp, verify: ExecutionConditionUtil.IsCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
3394
CompileAndVerify(originalComp, verify: ExecutionConditionUtil.IsCoreClr ?
Verification
.Passes :
Verification
.Skipped).VerifyDiagnostics();
Symbols\Source\RecordTests.cs (7)
24
verify:
Verification
.FailsPEVerify);
753
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsPEVerify).VerifyDiagnostics();
806
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsPEVerify).VerifyDiagnostics();
903
var verifier = CompileAndVerify(comp, verify:
Verification
.FailsPEVerify).VerifyDiagnostics(
971
}", verify:
Verification
.Passes, expectedOutput: @"False
1055
}", verify:
Verification
.Passes).VerifyDiagnostics(
1526
var verifier = CompileAndVerify(comp, expectedOutput: "", verify:
Verification
.Passes).VerifyDiagnostics();
Symbols\StaticAbstractMembersInInterfacesTests.cs (167)
5307
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
5343
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
5492
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
5560
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
5599
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
5643
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
5874
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
5913
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
5982
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
6027
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
6120
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
6166
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
8394
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
8428
verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
8771
CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
8777
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
8910
verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
9318
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
9339
verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
9609
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
9684
verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
10088
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
10538
CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
10544
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
10649
verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
10821
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
10886
verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
10993
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
11067
verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
11206
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
11271
verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
11371
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
11482
verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
11708
CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
11714
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
11838
verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
12001
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
12072
verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
13145
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
13164
verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
13230
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
13250
verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
13321
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
13359
verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
14021
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
14060
verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
14523
var verifier = CompileAndVerify(compilation2, verify:
Verification
.Skipped).VerifyDiagnostics();
14661
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
14691
verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
14891
CompileAndVerify(compilation1, verify:
Verification
.Skipped, expectedOutput: !Execute(isVirtual) ? null : @"
14957
CompileAndVerify(compilation1, verify:
Verification
.Skipped, expectedOutput: !Execute(isVirtual) ? null : @"
15079
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
15103
verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
15351
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
15373
verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
16063
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
16065
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped,
16125
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
16127
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped,
16198
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
16476
var verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
16561
var verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
16679
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
16765
var verifier = CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
16860
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
16942
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
17024
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
17095
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
17169
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
17256
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
17353
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, expectedOutput: !(Execute(isVirtual) && ExecutionConditionUtil.IsMonoOrCoreClr) ? null : (genericFirst ? "T" : "int"), verify:
Verification
.Skipped).VerifyDiagnostics(
17459
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, expectedOutput: !(Execute(isVirtual) && ExecutionConditionUtil.IsMonoOrCoreClr) ? null : (genericIsStatic ? "T" : "int"), verify:
Verification
.Skipped).VerifyDiagnostics();
19297
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
19299
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped,
19378
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
19380
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped,
19470
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
19472
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped,
19569
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
19571
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped,
19652
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
19654
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped,
19744
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
19746
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped,
19833
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
19835
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped,
19926
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
20000
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
20083
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
20163
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
20792
var verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
20909
var verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
21020
var verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
21155
var verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
21291
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
21351
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
21454
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
21572
var verifier = CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
21698
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
21807
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
21909
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
22925
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
22927
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped,
23020
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
23022
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped,
23111
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
23113
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped,
23216
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
23809
CompileAndVerify(compilation5, sourceSymbolValidator: validate5, symbolValidator: validate5, verify:
Verification
.Skipped).VerifyDiagnostics();
24161
CompileAndVerify(compilation5, sourceSymbolValidator: validate5, symbolValidator: validate5, verify:
Verification
.Skipped).VerifyDiagnostics();
24390
var verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
24579
var verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
24777
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
24890
var verifier = CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
25020
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
25091
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
25703
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
25705
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped,
25798
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
25800
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped,
25903
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
26236
CompileAndVerify(compilation3, sourceSymbolValidator: validate3, symbolValidator: validate3, verify:
Verification
.Skipped).VerifyDiagnostics();
26349
CompileAndVerify(compilation3, sourceSymbolValidator: validate3, symbolValidator: validate3, verify:
Verification
.Skipped).VerifyDiagnostics();
26623
CompileAndVerify(compilation3, sourceSymbolValidator: validate3, symbolValidator: validate3, verify:
Verification
.Skipped).VerifyDiagnostics();
26918
var verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
27119
var verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
27442
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
27555
var verifier = CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
27686
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
27757
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
28654
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
28656
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped,
28782
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
28784
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped,
28890
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
29251
var verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
29367
var verifier = CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
29515
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
29633
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
29739
CompileAndVerify(compilation2, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
30144
CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
30150
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
30216
verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
30329
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
30402
verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
30787
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
30873
verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
31086
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
31142
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
31200
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
31248
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
31291
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
31345
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
31394
var verifier = CompileAndVerify(compilation1, verify:
Verification
.Skipped).VerifyDiagnostics();
31467
CompileAndVerify(compilation1, verify:
Verification
.Skipped, expectedOutput: !Execute(isVirtual) ? null : @"
31525
CompileAndVerify(compilation1, verify:
Verification
.Skipped, expectedOutput: !Execute(isVirtual) ? null : @"
31578
CompileAndVerify(compilation1, verify:
Verification
.Skipped, expectedOutput: !Execute(isVirtual: false) ? null : @"
31619
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
31716
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
33477
verify:
Verification
.Skipped);
33523
verify:
Verification
.Skipped);
33658
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
33663
CompileAndVerify(compilation2, verify:
Verification
.Skipped).VerifyDiagnostics();
33668
CompileAndVerify(compilation3, verify:
Verification
.Skipped).VerifyDiagnostics();
33715
CompileAndVerify(compilation1, sourceSymbolValidator: validate, symbolValidator: validate, verify:
Verification
.Skipped).VerifyDiagnostics();
33720
CompileAndVerify(compilation2, verify:
Verification
.Skipped).VerifyDiagnostics();
33725
CompileAndVerify(compilation3, verify:
Verification
.Skipped).VerifyDiagnostics();
Symbols\SymbolErrorTests.cs (6)
6250
CompileAndVerify(comp, verify:
Verification
.FailsILVerify).VerifyDiagnostics();
7327
CompileAndVerify(compilation, verify:
Verification
.Skipped).VerifyDiagnostics();
7336
CompileAndVerify(compilation, verify:
Verification
.Skipped).VerifyDiagnostics();
7407
CompileAndVerify(compilation, verify:
Verification
.Skipped).VerifyDiagnostics();
18453
var verifier = CompileAndVerify(comp, verify:
Verification
.Skipped).
20817
verify:
Verification
.FailsILVerify with { ILVerifyMessage = "[Main]: Unable to resolve token. { Offset = 0x1, Token = 167772167 }" });
Microsoft.CodeAnalysis.CSharp.Test.Utilities (10)
BasicCompilationUtils.cs (1)
19
public static MetadataReference CompileToMetadata(string source, string assemblyName = null, IEnumerable<MetadataReference> references = null,
Verification
verify = default)
CSharpTestBase.cs (9)
813
Verification
verify = default) =>
849
Verification
verify = default) =>
886
Verification
verify = default)
927
Verification
verify = default) =>
963
Verification
verify = default) =>
1000
Verification
verify = default)
1033
Verification
verify = default)
1534
internal CompilationVerifier CompileAndVerifyException<T>(string source, string expectedMessage = null, bool allowUnsafe = false,
Verification
verify = default) where T : Exception
1540
internal CompilationVerifier CompileAndVerifyException<T>(CSharpCompilation comp, string expectedMessage = null,
Verification
verify = default) where T : Exception
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (21)
CodeGen\WinRTCollectionTests.cs (17)
439
verify:
Verification
.Fails);
1837
verify:
Verification
.Fails);
3197
verify:
Verification
.Fails);
4440
verify:
Verification
.Fails);
4806
verify:
Verification
.Fails);
4992
verify:
Verification
.Fails);
5189
verify:
Verification
.Fails,
5410
verify:
Verification
.Fails);
5547
verify:
Verification
.Fails);
5817
verify:
Verification
.Fails);
6044
verify:
Verification
.Fails);
6243
verify:
Verification
.Fails);
6602
verify:
Verification
.Fails);
6763
verify:
Verification
.Fails);
7035
verify:
Verification
.Fails);
7162
verify:
Verification
.Fails);
7283
verify:
Verification
.Fails);
Metadata\WinMdEventTests.cs (2)
2449
verify: OSVersion.IsWin8 ?
Verification
.Passes :
Verification
.Fails);
WinRTUtil.cs (2)
26
verify: isWin8 ?
Verification
.Passes :
Verification
.Fails);
Microsoft.CodeAnalysis.Test.Utilities (14)
CommonTestBase.cs (10)
30
/// default(<see cref="
Verification
"/>) should be passing.
54
public static readonly
Verification
Skipped = new() { Status = VerificationStatus.Skipped };
55
public static readonly
Verification
Passes = new() { Status = VerificationStatus.Passes };
56
public static readonly
Verification
FailsPEVerify = new() { Status = VerificationStatus.FailsPEVerify };
57
public static readonly
Verification
FailsILVerify = new() { Status = VerificationStatus.FailsILVerify };
58
public static readonly
Verification
Fails = new() { Status = VerificationStatus.Fails };
59
public static readonly
Verification
PassesOrFailFast = new() { Status = VerificationStatus.PassesOrFailFast };
61
public
Verification
WithILVerifyMessage(string message)
87
Verification
verify = default)
187
Verification
verify)
Compilation\IRuntimeEnvironment.cs (1)
401
void Verify(
Verification
verification);
CompilationVerifier.cs (2)
264
Verification
peVerify,
333
private void ILVerify(
Verification
verification)
Platform\Desktop\DesktopRuntimeEnvironment.cs (1)
308
public void Verify(
Verification
verification)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (117)
Attributes\AssemblyAttributes.vb (8)
788
verify:=
Verification
.FailsILVerify,
819
verify:=
Verification
.FailsILVerify,
850
verify:=
Verification
.FailsILVerify,
881
verify:=
Verification
.FailsILVerify,
910
CompileAndVerify(compilation, verify:=
Verification
.Fails,
941
CompileAndVerify(compilation, verify:=
Verification
.Fails,
975
CompileAndVerify(compilation, verify:=
Verification
.Fails,
1020
verify:=
Verification
.FailsILVerify,
Attributes\AttributeTests_Conditional.vb (1)
803
CompileAndVerify(comp, verify:=
Verification
.Fails).VerifyIL("C.M", "
Attributes\AttributeTests_StructLayout.vb (3)
392
CompileAndVerify(unverifiable, validator:=validator, verify:=
Verification
.FailsPEVerify)
393
CompileAndVerify(unloadable, validator:=validator, verify:=
Verification
.FailsPEVerify)
569
CompileAndVerify(source, verify:=
Verification
.FailsPEVerify)
Attributes\AttributeTests_Synthesized.vb (28)
763
verify:=If(outputKind.IsNetModule(),
Verification
.Skipped,
Verification
.Passes),
802
verify:=If(outputKind.IsNetModule(),
Verification
.Skipped,
Verification
.Passes),
844
verify:=If(outputKind.IsNetModule(),
Verification
.Skipped,
Verification
.Passes),
887
verify:=If(outputKind.IsNetModule(),
Verification
.Skipped,
Verification
.Passes),
956
verify:=If(outputKind.IsNetModule(),
Verification
.Skipped,
Verification
.Passes),
1026
verify:=If(outputKind.IsNetModule(),
Verification
.Skipped,
Verification
.Passes),
1090
CompileAndVerify(comp, verify:=If(outputKind <> OutputKind.NetModule,
Verification
.Passes,
Verification
.Skipped), symbolValidator:=validator)
1128
CompileAndVerify(comp, verify:=If(outputKind <> OutputKind.NetModule,
Verification
.Passes,
Verification
.Skipped), symbolValidator:=validator)
1165
CompileAndVerify(comp, verify:=If(outputKind <> OutputKind.NetModule,
Verification
.Passes,
Verification
.Skipped), symbolValidator:=validator)
1209
CompileAndVerify(comp, verify:=If(outputKind <> OutputKind.NetModule,
Verification
.Passes,
Verification
.Skipped), symbolValidator:=validator)
1284
CompileAndVerify(comp, verify:=If(outputKind <> OutputKind.NetModule,
Verification
.Passes,
Verification
.Skipped), symbolValidator:=validator)
1336
CompileAndVerify(comp, verify:=If(outputKind <> OutputKind.NetModule,
Verification
.Passes,
Verification
.Skipped), symbolValidator:=validator)
1383
CompileAndVerify(comp, verify:=If(outputKind <> OutputKind.NetModule,
Verification
.Passes,
Verification
.Skipped), symbolValidator:=validator)
1432
CompileAndVerify(comp, verify:=If(outputKind <> OutputKind.NetModule,
Verification
.Passes,
Verification
.Skipped), symbolValidator:=validator)
Attributes\AttributeTests_WellKnownAttributes.vb (1)
5737
Dim validator = CompileAndVerifyEx(source, sourceSymbolValidator:=sourceValidator, symbolValidator:=metadataValidator, verify:=
Verification
.Fails, targetFramework:=TargetFramework.Mscorlib461)
Attributes\InternalsVisibleToAndStrongNameTests.vb (1)
2215
CompileAndVerify(cb, verify:=
Verification
.Fails).Diagnostics.Verify()
CodeGen\CodeGenAsyncTests.vb (2)
9922
verify:=
Verification
.FailsILVerify.WithILVerifyMessage("[MoveNext]: Unrecognized arguments for delegate .ctor. { Offset = 0x86 }"))
9925
verify:=
Verification
.FailsILVerify.WithILVerifyMessage("[MoveNext]: Unrecognized arguments for delegate .ctor. { Offset = 0x75 }"))
CodeGen\CodeGenCallTests.vb (4)
3404
Dim verifier = CompileAndVerifyEx(comp, targetFramework:=TargetFramework.StandardAndVBRuntime, options:=TestOptions.ReleaseExe, expectedOutput:=expectedOutput, verify:=
Verification
.Skipped).VerifyDiagnostics()
3629
CompileAndVerifyEx(comp, targetFramework:=TargetFramework.StandardAndVBRuntime, options:=TestOptions.DebugExe, expectedOutput:=expectedOutput, verify:=
Verification
.Skipped).VerifyDiagnostics()
3770
Dim verifier = CompileAndVerifyEx(comp, targetFramework:=TargetFramework.StandardAndVBRuntime, options:=TestOptions.ReleaseExe, expectedOutput:=expectedOutput, verify:=
Verification
.Skipped).VerifyDiagnostics()
4079
CompileAndVerifyEx(comp, targetFramework:=TargetFramework.StandardAndVBRuntime, options:=TestOptions.DebugExe, expectedOutput:=expectedOutput, verify:=
Verification
.Skipped).VerifyDiagnostics()
CodeGen\CodeGenDelegateCreation.vb (1)
2346
verify:=
Verification
.FailsILVerify.WithILVerifyMessage("[Test15]: Unrecognized arguments for delegate .ctor. { Offset = 0x1f }"),
CodeGen\CodeGenIterators.vb (1)
1697
Dim verifier = CompileAndVerify(compilation, verify:=
Verification
.Fails)
CodeGen\CodeGenNullable.vb (1)
3486
Dim verifier = CompileAndVerify(source, verify:=
Verification
.FailsILVerify.WithILVerifyMessage("
CodeGen\CodeGenScriptTests.vb (1)
363
Dim verifier = CompileAndVerify(s0, verify:=
Verification
.FailsPEVerify)
CodeGen\CodeGenTests.vb (3)
53
</compilation>, verify:=
Verification
.FailsILVerify).
6431
</compilation>, references:={TestReferences.SymbolsTests.PropertiesWithByRef}, verify:=
Verification
.FailsILVerify)
11769
CompileAndVerify(compilation, sourceSymbolValidator:=validator, symbolValidator:=validator, verify:=
Verification
.Passes)
CodeGen\CodeGenTryCatchThrow.vb (1)
124
verify:=
Verification
.FailsILVerify,
CodeGen\CodeGenTuples.vb (3)
5011
</compilation>, references:={ValueTupleRef, SystemRuntimeFacadeRef, MscorlibRef_v46}, expectedOutput:=<![CDATA[42]]>, verify:=
Verification
.FailsILVerify)
5130
</compilation>, references:={ValueTupleRef, SystemRuntimeFacadeRef, MscorlibRef_v46}, expectedOutput:=<![CDATA[(42, 42)]]>, verify:=
Verification
.FailsILVerify)
5299
</compilation>, references:={ValueTupleRef, SystemRuntimeFacadeRef, MscorlibRef_v46}, expectedOutput:=<![CDATA[42]]>, verify:=
Verification
.FailsILVerify)
CodeGen\WinRTCollectionTests.vb (17)
515
verify:=
Verification
.Fails)
1587
verify:=
Verification
.Fails)
2495
verify:=
Verification
.Fails)
3702
verify:=
Verification
.Fails)
4037
verify:=
Verification
.Fails)
4210
verify:=
Verification
.FailsPEVerify)
4381
verify:=
Verification
.Fails)
4611
verify:=
Verification
.Fails)
4732
verify:=
Verification
.Fails)
4967
verify:=
Verification
.Fails)
5187
verify:=
Verification
.Fails)
5341
verify:=
Verification
.Fails)
5692
verify:=
Verification
.Fails)
5822
verify:=
Verification
.Fails)
6080
verify:=
Verification
.Fails)
6181
verify:=
Verification
.Fails)
6239
verify:=
Verification
.Fails,
Emit\CompilationEmitTests.vb (16)
678
CompileAndVerify(source, emitOptions:=emitRefAssembly, verify:=
Verification
.Passes, validator:=assemblyValidator)
695
CompileAndVerify(comp, emitOptions:=emitRefAssembly, verify:=
Verification
.FailsILVerify, validator:=assemblyValidator)
720
CompileAndVerify(source, emitOptions:=emitRefAssembly, verify:=
Verification
.Passes, validator:=assemblyValidator)
1471
Dim verifier = CompileAndVerify(comp, emitOptions:=EmitOptions.Default.WithEmitMetadataOnly(True), verify:=
Verification
.Passes)
1504
CompileAndVerify(comp, emitOptions:=emitMetadataOnly, verify:=
Verification
.Passes)
1538
CompileAndVerify(comp, emitOptions:=emitRefOnly, verify:=
Verification
.Passes)
1588
Dim verifier = CompileAndVerify(comp, emitOptions:=EmitOptions.Default.WithEmitMetadataOnly(True), verify:=
Verification
.Passes)
1606
CompileAndVerify(comp, emitOptions:=emitMetadataOnly, verify:=
Verification
.Passes)
1625
CompileAndVerify(comp, emitOptions:=emitRefOnly, verify:=
Verification
.Passes)
1666
Dim verifier = CompileAndVerify(comp, emitOptions:=EmitOptions.Default.WithEmitMetadataOnly(True), verify:=
Verification
.Passes)
1685
CompileAndVerify(comp, emitOptions:=emitMetadataOnly, verify:=
Verification
.Passes)
1705
CompileAndVerify(comp, emitOptions:=emitRefOnly, verify:=
Verification
.Passes)
1733
Dim verifier = CompileAndVerify(comp, emitOptions:=EmitOptions.Default.WithEmitMetadataOnly(True), verify:=
Verification
.Passes)
1737
CompileAndVerify(comp, emitOptions:=emitRefOnly, verify:=
Verification
.Passes)
3847
CompileAndVerify(source2, references:={metadataRef}, options:=TestOptions.ReleaseModule, verify:=
Verification
.Fails)
4281
CompileAndVerify(compilation, verify:=
Verification
.Fails)
Emit\DeterministicTests.vb (1)
227
CompileAndVerify(forwardingCompilation, symbolValidator:=metadataValidator, sourceSymbolValidator:=metadataValidator, verify:=
Verification
.Skipped)
Emit\EditAndContinue\AssemblyReferencesTests.vb (2)
333
Dim v0 = CompileAndVerify(compilation0, verify:=
Verification
.FailsILVerify)
452
Dim v0 = CompileAndVerify(compilation0, verify:=
Verification
.Passes)
Emit\EditAndContinue\EditAndContinueStateMachineTests.vb (8)
8856
Dim v0 = CompileAndVerify(compilation0, verify:=
Verification
.Passes)
8915
Dim v0 = CompileAndVerify(compilation0, verify:=
Verification
.Passes)
8970
Dim v0 = CompileAndVerify(compilation0, verify:=
Verification
.Passes)
9033
Dim v0 = CompileAndVerify(compilation0, verify:=
Verification
.Passes)
9085
Dim v0 = CompileAndVerify(compilation0, verify:=
Verification
.FailsPEVerify)
9124
Dim v0 = CompileAndVerify(compilation0, verify:=
Verification
.Passes)
9163
Dim v0 = CompileAndVerify(compilation0, verify:=
Verification
.FailsPEVerify)
9204
Dim v0 = CompileAndVerify(compilation0, verify:=
Verification
.Passes)
Emit\EditAndContinue\EditAndContinueTest.vb (1)
29
Optional verification As
Verification
? = Nothing)
Emit\EditAndContinue\EditAndContinueTests.vb (1)
6380
Using test = New EditAndContinueTest(verification:=
Verification
.Skipped)
Emit\EmitMetadata.vb (2)
273
dllImage = CompileAndVerify(c2, verify:=
Verification
.FailsILVerify).EmittedAssemblyData
311
Dim manifestModule = CompileAndVerify(c1, verify:=
Verification
.FailsILVerify).EmittedAssemblyData
Emit\NoPiaEmbedTypes.vb (7)
1537
Dim verifier = CompileAndVerify(compilation0, verify:=
Verification
.FailsPEVerify)
1607
verifier = CompileAndVerify(compilation1, symbolValidator:=validator, verify:=
Verification
.FailsPEVerify)
1613
verifier = CompileAndVerify(compilation1, symbolValidator:=validator, verify:=
Verification
.FailsPEVerify)
3885
CompileAndVerify(compilation3, verify:=
Verification
.FailsPEVerify)
3890
CompileAndVerify(compilation4, verify:=
Verification
.FailsPEVerify)
4306
CompileAndVerify(compilation3, verify:=
Verification
.FailsPEVerify)
4312
CompileAndVerify(compilation4, verify:=
Verification
.FailsPEVerify)
ExpressionTrees\CodeGenExprLambda.vb (2)
1880
Optional verify As
Verification
= Nothing) As CompilationVerifier
1903
Optional verify As
Verification
= Nothing)
PDB\PDBTests.vb (1)
752
Dim v = CompileAndVerify(CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.DebugExe), verify:=
Verification
.FailsILVerify)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (8)
Binding\SyncLockTests.vb (1)
546
verify:=
Verification
.FailsPEVerify).VerifyDiagnostics()
Compilation\CompilationAPITests.vb (1)
903
CompileAndVerify(assembly, verify:=
Verification
.FailsILVerify)
Compilation\ReferenceManagerTests.vb (1)
561
CompileAndVerify(main, verify:=
Verification
.Fails, validator:=
Semantics\ConditionalAccessTests.vb (1)
1206
Dim verifier = CompileAndVerify(compilation, verify:=
Verification
.FailsPEVerify, expectedOutput:=
Semantics\FieldInitializerBindingTests.vb (1)
1477
verify:=
Verification
.Fails,
Semantics\IReadOnlyListAndCollection.vb (2)
136
]]>, verify:=
Verification
.FailsILVerify)
352
]]>, verify:=
Verification
.FailsILVerify)
Semantics\UseSiteErrorTests.vb (1)
669
CompileAndVerify(compilation5, verify:=
Verification
.FailsILVerify)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (39)
SymbolsTests\DefaultInterfaceImplementationTests.vb (6)
33
Private Shared ReadOnly Property VerifyFailsOnMonoOrCoreClr As
Verification
35
Return If(ExecutionConditionUtil.IsMonoOrCoreClr,
Verification
.Fails,
Verification
.Skipped)
39
Private Shared ReadOnly Property VerifyPassesOnMonoOrCoreClr As
Verification
41
Return If(ExecutionConditionUtil.IsMonoOrCoreClr,
Verification
.Passes,
Verification
.Skipped)
SymbolsTests\Metadata\PE\TypeForwarders.vb (2)
1125
CompileAndVerify(appCompilation, verify:=
Verification
.FailsPEVerify,
1303
CompileAndVerify(appCompilation, verify:=
Verification
.FailsPEVerify,
SymbolsTests\Metadata\WinMdEventTest.vb (4)
224
verify:=
Verification
.FailsILVerify)
770
CompileAndVerify(compilation, verify:=
Verification
.FailsILVerify).VerifyIL("abcdef.goo", expectedIL.Value())
852
CompileAndVerify(compilation, verify:=If(OSVersion.IsWin8,
Verification
.Passes,
Verification
.Skipped)).VerifyIL("abcdef.goo", expectedIL.Value())
SymbolsTests\MethodImplementationFlagsTests.vb (2)
137
CompileAndVerify(src, sourceSymbolValidator:=validator, symbolValidator:=validator, verify:=
Verification
.Skipped)
161
CompileAndVerify(src, sourceSymbolValidator:=validator, symbolValidator:=validator, verify:=
Verification
.Skipped)
SymbolsTests\RefStructInterfacesTests.vb (3)
99
verify:=If(ExecutionConditionUtil.IsMonoOrCoreClr,
Verification
.Passes,
Verification
.Skipped),
241
CompileAndVerify(compilation1, symbolValidator:=validator, verify:=
Verification
.Skipped).VerifyDiagnostics()
SymbolsTests\Retargeting\NoPia.vb (1)
1637
CompileAndVerify(consumer, verify:=
Verification
.FailsILVerify)
SymbolsTests\Retargeting\RetargetingTests.vb (8)
944
Dim Main_Retarget = CompileAndVerify(source, references:={RetargetReference}, options:=TestOptions.ReleaseExe, verify:=
Verification
.FailsILVerify,
1305
Dim Main_Retarget = CompileAndVerify(source, references:={RetargetReference}, options:=TestOptions.ReleaseExe, verify:=
Verification
.FailsILVerify,
1685
Dim Main_Retarget = CompileAndVerify(source, references:={RetargetReference}, options:=TestOptions.ReleaseExe, verify:=
Verification
.FailsILVerify,
1882
Dim Main_Retarget = CompileAndVerify(source, references:={RetargetReference}, options:=TestOptions.ReleaseExe, verify:=
Verification
.FailsILVerify,
2156
Dim Main_Retarget = CompileAndVerify(source, references:={RetargetReference}, options:=TestOptions.ReleaseExe, verify:=
Verification
.FailsILVerify,
2345
Dim Main_Retarget = CompileAndVerify(source, references:={RetargetReference}, options:=TestOptions.ReleaseExe, verify:=
Verification
.FailsILVerify,
2664
Dim Main_Retarget = CompileAndVerify(sourceMain, references:={RetargetReference}, options:=TestOptions.ReleaseExe, verify:=
Verification
.FailsILVerify)
3055
Dim Main_Retarget = CompileAndVerify(source, references:={RetargetReference}, options:=TestOptions.ReleaseExe, verify:=
Verification
.FailsILVerify,
SymbolsTests\Source\ClsComplianceTests.vb (1)
1666
CompileAndVerify(source, options:=TestOptions.ReleaseModule, sourceSymbolValidator:=validator(True, True), symbolValidator:=validator(False, True), verify:=
Verification
.Fails) ' PEVerify doesn't like netmodules
SymbolsTests\Source\TypeTests.vb (3)
1752
CompileAndVerify(compilation, verify:=
Verification
.Skipped).VerifyDiagnostics()
1771
CompileAndVerify(compilation, verify:=
Verification
.Skipped).VerifyDiagnostics()
3433
CompileAndVerify(compilation, verify:=
Verification
.FailsPEVerify).VerifyDiagnostics()
SymbolsTests\SymbolErrorTests.vb (1)
24349
verify:=
Verification
.FailsILVerify.WithILVerifyMessage("[Main]: Unable to resolve token. { Offset = 0x1, Token = 167772166 }"))
UsedAssembliesTests.vb (8)
30
CompileAndVerify(comp1, verify:=
Verification
.FailsILVerify)
52
CompileAndVerify(comp1, verify:=
Verification
.FailsILVerify)
97
CompileAndVerify(comp2, verify:=
Verification
.Skipped).Diagnostics.AssertTheseDiagnostics(after, suppressInfos:=False)
104
CompileAndVerify(comp3, verify:=
Verification
.Skipped).Diagnostics.AssertTheseDiagnostics(after, suppressInfos:=False)
151
CompileAndVerify(comp, verify:=
Verification
.Skipped, expectedOutput:=expectedOutput).VerifyDiagnostics()
161
CompileAndVerify(comp3, verify:=
Verification
.Skipped, expectedOutput:=expectedOutput).VerifyDiagnostics()
168
CompileAndVerify(comp2, verify:=
Verification
.Skipped, expectedOutput:=expectedOutput).VerifyDiagnostics()
239
CompileAndVerify(comp1, verify:=
Verification
.FailsILVerify)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (11)
BasicTestBase.vb (11)
42
Optional verify As
Verification
= Nothing
76
Optional verify As
Verification
= Nothing) As CompilationVerifier
106
Optional verify As
Verification
= Nothing) As CompilationVerifier
139
Optional verify As
Verification
= Nothing,
179
Optional verify As
Verification
= Nothing
220
Optional verify As
Verification
= Nothing
236
verify:=If(OSVersion.IsWin8, verify,
Verification
.Skipped))
253
Optional verify As
Verification
= Nothing
283
Optional verify As
Verification
= Nothing,
297
verify:=If(OSVersion.IsWin8, verify,
Verification
.Skipped),
317
Optional verify As
Verification
= Nothing,
Roslyn.Test.PdbUtilities (3)
EditAndContinue\EditAndContinueTest.cs (3)
22
internal abstract partial class EditAndContinueTest<TSelf>(ITestOutputHelper? output = null,
Verification
? verification = null) : IDisposable
25
private readonly
Verification
_verification = verification ??
Verification
.Passes;