765 references to Fails
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (376)
CodeGen\CodeGenAsyncLocalsTests.cs (2)
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 (4)
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 (5)
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
)
CodeGen\CodeGenAwaitForeachTests.cs (1)
2563
CompileAndVerify(comp, expectedOutput: "1 2 3 Done", verify: Verification.
Fails
);
CodeGen\CodeGenCheckedTests.cs (1)
391
var verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.
Fails
);
CodeGen\CodeGenConditionalOperatorTests.cs (1)
3015
CompileAndVerify(source, expectedOutput: expectedOutput, options: TestOptions.UnsafeReleaseExe, verify: Verification.
Fails
);
CodeGen\CodeGenDeconstructTests.cs (1)
7665
CompileAndVerify(compilation, expectedOutput: "10", verify: Verification.
Fails
);
CodeGen\CodeGenDynamicTests.cs (4)
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
);
CodeGen\CodeGenExprLambdaTests.cs (1)
2481
CompileAndVerifyUtil(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: TrimExpectedOutput(expectedOutput), verify: Verification.
Fails
);
CodeGen\CodeGenForEachTests.cs (3)
5367
verify: Verification.
Fails
,
5407
verify: Verification.
Fails
,
5453
verify: Verification.
Fails
,
CodeGen\CodeGenInParametersTests.cs (24)
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
);
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");
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: @"
CodeGen\CodeGenLocalFunctionTests.cs (4)
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
);
CodeGen\CodeGenMscorlib.cs (2)
765
CompileAndVerify(comp, verify: Verification.
Fails
).
894
CompileAndVerify(comp, verify: Verification.
Fails
).
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (3)
480
CompileAndVerify(comp, expectedOutput: "BlueTrue", verify: Verification.
Fails
).VerifyIL("Test.Main", @"
610
CompileAndVerify(comp, expectedOutput: "P10", verify: Verification.
Fails
).VerifyIL("Test.Main", @"
1626
var verifier = CompileAndVerify(compilation, expectedOutput: "3402", verify: Verification.
Fails
with { ILVerifyMessage = ilVerifyMessage, PEVerifyMessage = peVerifyMessage });
CodeGen\CodeGenReadonlyStructTests.cs (12)
51
var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.
Fails
, expectedOutput: @"12");
122
var comp = CompileAndVerify(text, new[] { ref1 }, parseOptions: TestOptions.Regular, verify: Verification.
Fails
, expectedOutput: @"12");
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");
2561
{ true, null, Verification.
Fails
}
CodeGen\CodeGenRefConditionalOperatorTests.cs (4)
93
var comp = CompileAndVerify(source, expectedOutput: "44", verify: Verification.
Fails
);
250
var comp = CompileAndVerify(source, expectedOutput: "67", verify: Verification.
Fails
);
1240
verify(TestOptions.UnsafeDebugExe, Verification.
Fails
, @"
1355
var verifier = CompileAndVerify(comp, expectedOutput: "0run", verify: Verification.
Fails
);
CodeGen\CodeGenRefLocalTests.cs (28)
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)", @"
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()", @"
4222
verify(TestOptions.UnsafeDebugExe, Verification.
Fails
, @"
4311
var verifier = CompileAndVerify(comp, expectedOutput: "0", verify: Verification.
Fails
);
4348
verify(TestOptions.UnsafeDebugExe, Verification.
Fails
, @"
4408
verify(TestOptions.UnsafeDebugExe, Verification.
Fails
, @"
4462
verify(TestOptions.UnsafeDebugExe, Verification.
Fails
, @"
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 (13)
62
var comp = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature(), verify: Verification.
Fails
);
87
comp = CompileAndVerify(source, verify: Verification.
Fails
);
294
}", verify: Verification.
Fails
);
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 (15)
62
}", verify: Verification.
Fails
, expectedOutput: @"42
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)", @"
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");
3633
CompileAndVerify(text, expectedOutput: "37", parseOptions: TestOptions.Regular10, verify: Verification.
Fails
).VerifyIL("Program.Main()", @"
CodeGen\CodeGenShortCircuitOperatorTests.cs (3)
5181
var verifier = CompileAndVerify(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), verify: Verification.
Fails
, 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
);
CodeGen\CodeGenStackAllocInitializerTests.cs (32)
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",
432
verify: Verification.
Fails
).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")
952
verify: Verification.
Fails
, targetFramework: TargetFramework.Net70);
980
verify: Verification.
Fails
, 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);
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 (2)
2099
var compilation = CompileAndVerify(source, verify: Verification.
Fails
, expectedOutput: "True");
2214
var compilation = CompileAndVerify(source, verify: Verification.
Fails
, expectedOutput: @"353
CodeGen\CodeGenTests.cs (20)
5162
var compilation = CompileAndVerify(source, expectedOutput: @"hi", verify: Verification.
Fails
);
5254
var compilation = CompileAndVerify(source, expectedOutput: @"hihi", verify: Verification.
Fails
);
5275
compilation = CompileAndVerify(source, expectedOutput: @"hihi", verify: Verification.
Fails
, 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
);
CodeGen\CodeGenTupleTest.cs (3)
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
);
CodeGen\FixedSizeBufferTests.cs (8)
50
}", options: TestOptions.UnsafeReleaseExe, verify: Verification.
Fails
);
115
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "12", verify: Verification.
Fails
)
439
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "12", verify: Verification.
Fails
)
504
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "12", verify: Verification.
Fails
)
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
)
1122
}", options: TestOptions.UnsafeReleaseDll, verify: Verification.
Fails
);
CodeGen\ForeachTest.cs (4)
66
}", options: TestOptions.UnsafeReleaseDll, verify: Verification.
Fails
).VerifyIL("Test.Main", @"
449
CompileAndVerify(comp, expectedOutput: "RedGreenBlue", verify: Verification.
Fails
).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 (1)
984
CompileAndVerify(compilation, expectedOutput: expectedOutput, verify: Verification.
Fails
);
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\UnsafeTests.cs (161)
59
var compVerifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.
Fails
);
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", @"
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);
6664
CompileAndVerifyException<NotSupportedException>(text, "Type is not supported.", allowUnsafe: true, verify: Verification.
Fails
);
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", @"
6936
CompileAndVerifyException<NotSupportedException>(text, "Type is not supported.", allowUnsafe: true, verify: Verification.
Fails
);
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
);
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", @"
10013
CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.
Fails
).VerifyIL("C.M", @"
10070
CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.
Fails
).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: @"
10684
CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.
Fails
).VerifyIL("C.Test", @"
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: @"
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
);
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
);
Emit\CompilationEmitTests.cs (2)
4622
CompileAndVerify(source2, references: new[] { metadataRef }, options: TestOptions.ReleaseModule, verify: Verification.
Fails
);
5047
CompileAndVerify(comp, verify: Verification.
Fails
);
Emit\DynamicAnalysis\DynamicInstrumentationTests.cs (1)
1225
CompilationVerifier verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.UnsafeDebugExe, expectedOutput: expectedOutput, verify: Verification.
Fails
);
Emit\EmitErrorTests.cs (3)
118
verify: Verification.
Fails
);
152
verify: Verification.
Fails
);
191
verify: Verification.
Fails
);
Emit\EmitMetadataTests.cs (1)
229
verify: Verification.
Fails
,
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (5)
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();
Emit\EditAndContinue\EditAndContinueTests.cs (1)
18900
using var _ = new EditAndContinueTest(targetFramework: TargetFramework.NetCoreApp, verification: Verification.
Fails
)
Emit\ManagedAddressTests.cs (1)
66
var verifier = CompileAndVerify(comp, expectedOutput: "012", verify: Verification.
Fails
with
Emit\UnmanagedTypeModifierTests.cs (1)
1474
CompileAndVerify(code, options: TestOptions.UnsafeReleaseExe, verify: Verification.
Fails
, expectedOutput: @"
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (257)
Attributes\AttributeTests_Assembly.cs (3)
715
CompileAndVerify(compilation, verify: Verification.
Fails
,
744
CompileAndVerify(compilation, verify: Verification.
Fails
,
777
CompileAndVerify(compilation, verify: Verification.
Fails
,
Attributes\AttributeTests_Dynamic.cs (2)
1197
CompileAndVerify(comp, verify: Verification.
Fails
);
1234
CompileAndVerify(comp, verify: Verification.
Fails
);
Attributes\AttributeTests_IsByRefLike.cs (1)
440
CompileAndVerify(code, verify: Verification.
Fails
, references: new[] { reference }, options: TestOptions.ReleaseModule, 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_ReadOnlyStruct.cs (1)
432
CompileAndVerify(code, verify: Verification.
Fails
, references: new[] { reference }, options: TestOptions.ReleaseModule, symbolValidator: module =>
Attributes\AttributeTests_RefReadOnly.cs (13)
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 =>
Attributes\AttributeTests_Synthesized.cs (2)
798
verify: ExecutionConditionUtil.IsCoreClr ? Verification.Passes : Verification.
Fails
);
1275
? Verification.
Fails
Attributes\AttributeTests_WellKnownAttributes.cs (34)
10423
return CompileAndVerify(comp, verify: verify ?? Verification.
Fails
);
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
);
11537
var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.
Fails
);
11578
var comp1 = CompileAndVerify(source1, options: TestOptions.UnsafeReleaseDll, verify: Verification.
Fails
);
11614
var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.
Fails
);
11662
var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.
Fails
);
11696
var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.
Fails
);
11733
var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.
Fails
);
11764
var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.
Fails
);
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
);
13114
var verifier = CompileAndVerify(comp, verify: Verification.
Fails
);
Attributes\InternalsVisibleToAndStrongNameTests.cs (1)
2728
CompileAndVerify(cb, verify: Verification.
Fails
).Diagnostics.Verify();
FirstClassSpanTests.cs (1)
1999
verify: Verification.
Fails
,
RefReadonlyParameterTests.cs (17)
2373
var verifier = CompileAndVerify(source, expectedOutput: "5", verify: Verification.
Fails
);
2423
var verifier = CompileAndVerify(source, expectedOutput: "5", verify: Verification.
Fails
);
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 (1)
2975
var verifier = CompileAndVerify(new[] { source, UnscopedRefAttributeDefinition }, expectedOutput: (tS1IsClass == ThreeState.True || tS2IsClass == ThreeState.True ? null : "12"), verify: Verification.
Fails
);
Semantics\CollectionExpressionTests.cs (28)
1193
verify: Verification.
Fails
,
14291
verify: Verification.
Fails
with { ILVerifyMessage = """
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,
15786
verify: Verification.
Fails
,
15933
verify: Verification.
Fails
,
16105
verify: Verification.
Fails
,
16149
verify: Verification.
Fails
,
16245
verify: Verification.
Fails
,
16365
verify: Verification.
Fails
,
17043
verify: Verification.
Fails
,
17106
verify: Verification.
Fails
,
18256
verify: Verification.
Fails
,
18420
verify: Verification.
Fails
,
18464
verify: Verification.
Fails
,
20025
verify: Verification.
Fails
,
25193
verify: Verification.
Fails
,
25359
verify: Verification.
Fails
,
25426
verify: Verification.
Fails
,
25490
verify: Verification.
Fails
,
25557
verify: Verification.
Fails
,
25683
verify: Verification.
Fails
,
25805
verify: Verification.
Fails
,
29378
var verifier = CompileAndVerify(comp, verify: Verification.
Fails
, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"));
33886
var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, verify: Verification.
Fails
, expectedOutput: IncludeExpectedOutput("[1, 2, 3, 4, 5, 6],"), targetFramework: TargetFramework.Net80);
Semantics\InlineArrayTests.cs (130)
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(
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();
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();
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();
Semantics\LockTests.cs (1)
1366
verify: Verification.
Fails
, targetFramework: TargetFramework.Net60).VerifyDiagnostics();
Semantics\OutVarTests.cs (2)
6109
CompileAndVerify(compilation, verify: Verification.
Fails
, expectedOutput:
6143
CompileAndVerify(compilation, verify: Verification.
Fails
, expectedOutput:
Semantics\ParamsCollectionTests.cs (1)
12841
Verification.
Fails
with
Semantics\PatternMatchingTests.cs (1)
2575
CompileAndVerify(compilation, verify: Verification.
Fails
, expectedOutput:
Semantics\PrimaryConstructorTests.cs (4)
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();
15834
var verifier = CompileAndVerify(comp, expectedOutput: @"122123124125125", verify: Verification.
Fails
).VerifyDiagnostics(
Semantics\RecordTests.cs (10)
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();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (76)
Semantics\DynamicTests.cs (3)
1553
expectedOutput: "1", verify: Verification.
Fails
).VerifyDiagnostics();
1575
expectedOutput: "1", verify: Verification.
Fails
).VerifyDiagnostics();
1597
expectedOutput: "1", verify: Verification.
Fails
).VerifyDiagnostics();
Semantics\GenericConstraintsTests.cs (3)
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>", @"
3043
verify: Verification.
Fails
,
Semantics\InterceptorsTests.cs (4)
7434
CompileAndVerify(comp, verify: Verification.
Fails
);
7454
verify: Verification.
Fails
,
7487
CompileAndVerify(comp, verify: Verification.
Fails
);
7507
verify: Verification.
Fails
,
Semantics\InterpolationTests.cs (1)
1114
var compilation = CompileAndVerify(comp, verify: Verification.
Fails
);
Semantics\OverloadResolutionTests.cs (4)
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);
11627
CompileAndVerify(code, expectedOutput: @"1", verify: Verification.
Fails
);
Semantics\RawInterpolationTests.cs (1)
1112
var compilation = CompileAndVerify(comp, verify: Verification.
Fails
);
Semantics\RefFieldTests.cs (2)
26155
var verifier = CompileAndVerify(new[] { source, UnscopedRefAttributeDefinition }, expectedOutput: "12", verify: Verification.
Fails
);
26299
var verifier = CompileAndVerify(new[] { source, UnscopedRefAttributeDefinition }, expectedOutput: "12", verify: Verification.
Fails
);
Semantics\SemanticErrorTests.cs (2)
7623
CompileAndVerify(text, expectedOutput: expectedOutput, verify: Verification.
Fails
);
16098
var c = CompileAndVerify(text, expectedOutput: "7788", verify: Verification.
Fails
, options: TestOptions.UnsafeReleaseExe);
Semantics\SpanStackSafetyTests.cs (8)
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();
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\UnsafeTests.cs (6)
703
CompileAndVerify(comp, expectedOutput: "1", verify: Verification.
Fails
).VerifyDiagnostics(
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
);
12415
options: TestOptions.UnsafeReleaseExe, verify: Verification.
Fails
,
12466
options: TestOptions.UnsafeReleaseDll, verify: Verification.
Fails
,
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();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Symbols\Metadata\PE\TypeForwarders.cs (1)
1643
CompileAndVerify(appCompilation, verify: Verification.
Fails
,
Symbols\PartialPropertiesTests.cs (2)
2004
var verifier = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, verify: Verification.
Fails
, expectedOutput: "1");
2919
verify: Verification.
Fails
,
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (19)
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 (1)
2449
verify: OSVersion.IsWin8 ? Verification.Passes : Verification.
Fails
);
WinRTUtil.cs (1)
26
verify: isWin8 ? Verification.Passes : Verification.
Fails
);
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (25)
Attributes\AssemblyAttributes.vb (3)
910
CompileAndVerify(compilation, verify:=Verification.
Fails
,
941
CompileAndVerify(compilation, verify:=Verification.
Fails
,
975
CompileAndVerify(compilation, verify:=Verification.
Fails
,
Attributes\AttributeTests_Conditional.vb (1)
803
CompileAndVerify(comp, verify:=Verification.
Fails
).VerifyIL("C.M", "
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\CodeGenIterators.vb (1)
1697
Dim verifier = CompileAndVerify(compilation, verify:=Verification.
Fails
)
CodeGen\WinRTCollectionTests.vb (16)
515
verify:=Verification.
Fails
)
1587
verify:=Verification.
Fails
)
2495
verify:=Verification.
Fails
)
3702
verify:=Verification.
Fails
)
4037
verify:=Verification.
Fails
)
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 (2)
3847
CompileAndVerify(source2, references:={metadataRef}, options:=TestOptions.ReleaseModule, verify:=Verification.
Fails
)
4281
CompileAndVerify(compilation, verify:=Verification.
Fails
)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Compilation\ReferenceManagerTests.vb (1)
561
CompileAndVerify(main, verify:=Verification.
Fails
, validator:=
Semantics\FieldInitializerBindingTests.vb (1)
1477
verify:=Verification.
Fails
,
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (2)
SymbolsTests\DefaultInterfaceImplementationTests.vb (1)
35
Return If(ExecutionConditionUtil.IsMonoOrCoreClr, Verification.
Fails
, Verification.Skipped)
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