256 references to FailsILVerify
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (40)
CodeGen\CodeGenAsyncIteratorTests.cs (2)
719
var verifier = CompileAndVerify(comp, expectedOutput: "123", verify: Verification.
FailsILVerify
);
878
var verifier = CompileAndVerify(comp, expectedOutput: "123", verify: Verification.
FailsILVerify
);
CodeGen\CodeGenAsyncSpillTests.cs (1)
3279
verify: Verification.
FailsILVerify
with { ILVerifyMessage = "[MoveNext]: Unrecognized arguments for delegate .ctor. { Offset = 0x6d }" });
CodeGen\CodeGenAwaitForeachTests.cs (7)
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();
CodeGen\CodeGenAwaitUsingTests.cs (2)
3251
CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular13, verify: Verification.
FailsILVerify
).VerifyDiagnostics();
3252
CompileAndVerify(source, expectedOutput: expectedOutput, verify: Verification.
FailsILVerify
).VerifyDiagnostics();
CodeGen\CodeGenClosureLambdaTests.cs (1)
3249
verify: Verification.
FailsILVerify
with { ILVerifyMessage = "[Main]: Unrecognized arguments for delegate .ctor. { Offset = 0xe }" });
CodeGen\CodeGenDynamicTests.cs (1)
9796
", verify: Verification.
FailsILVerify
); // ILVerify doesn't support TypedReference
CodeGen\CodeGenForEachTests.cs (9)
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");
4407
var verifier = CompileAndVerify(source, expectedOutput: "1235", verify: Verification.
FailsILVerify
);
4869
CompileAndVerify(source, parseOptions: TestOptions.Regular9, verify: Verification.
FailsILVerify
, expectedOutput: @"123Disposed")
CodeGen\CodeGenIncrementTests.cs (1)
1039
base.CompileAndVerify(source, verify: Verification.
FailsILVerify
, expectedOutput: "12").
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (9)
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 });
3176
verify: Verification.
FailsILVerify
with { ILVerifyMessage = ilVerifyMessage });
3245
verify: Verification.
FailsILVerify
with { ILVerifyMessage = ilVerifyMessage });
CodeGen\CodeGenShortCircuitOperatorTests.cs (1)
5232
var verifier = CompileAndVerify(source, verify: Verification.
FailsILVerify
, options: TestOptions.DebugExe.WithAllowUnsafe(true), expectedOutput: @"---
CodeGen\CodeGenTests.cs (3)
81
var result = CompileAndVerify(source, verify: Verification.
FailsILVerify
, options: TestOptions.DebugDll);
169
var result = CompileAndVerify(source, verify: Verification.
FailsILVerify
, options: TestOptions.DebugDll);
17284
", verify: Verification.
FailsILVerify
with
Emit\CompilationEmitTests.cs (1)
5553
CompileAndVerify(comp, verify: Verification.
FailsILVerify
, symbolValidator: module =>
Emit\EmitMetadataTests.cs (2)
209
CompileAndVerifyWithMscorlib40(sources, new[] { TestReferences.SymbolsTests.MultiModule.Assembly }, verify: Verification.
FailsILVerify
, assemblyValidator: (assembly) =>
246
CompileAndVerify(source, new[] { netModule1, netModule2 }, verify: Verification.
FailsILVerify
, assemblyValidator: (assembly) =>
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\EditAndContinue\AssemblyReferencesTests.cs (1)
486
var v0 = CompileAndVerify(compilation0, verify: Verification.
FailsILVerify
);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (142)
Attributes\AttributeTests_Assembly.cs (5)
596
verify: Verification.
FailsILVerify
,
627
verify: Verification.
FailsILVerify
,
657
verify: Verification.
FailsILVerify
,
687
verify: Verification.
FailsILVerify
,
818
verify: Verification.
FailsILVerify
,
Attributes\AttributeTests_Synthesized.cs (1)
1276
: Verification.
FailsILVerify
;
FirstClassSpanTests.cs (44)
805
var verifier = CompileAndVerify(comp, expectedOutput: "InvalidCastException", verify: Verification.
FailsILVerify
);
835
var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.
FailsILVerify
);
891
var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.
FailsILVerify
);
896
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.
FailsILVerify
);
917
var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.
FailsILVerify
);
972
var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.
FailsILVerify
);
977
verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.
FailsILVerify
);
998
var verifier = CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.
FailsILVerify
);
2061
var verifier = CompileAndVerify(comp, verify: Verification.
FailsILVerify
, expectedOutput: "Internal");
2114
var verifier = CompileAndVerify(comp, verify: Verification.
FailsILVerify
, expectedOutput: "External");
2162
var verifier = CompileAndVerify(comp, verify: Verification.
FailsILVerify
, expectedOutput: "Internal");
2206
var verifier = CompileAndVerify(comp, verify: Verification.
FailsILVerify
, expectedOutput: "External");
2275
var verifier = CompileAndVerify(comp, verify: Verification.
FailsILVerify
, expectedOutput: "Span2");
2350
var verifier = CompileAndVerify(comp, verify: Verification.
FailsILVerify
, expectedOutput: """
2400
var verifier = CompileAndVerify(comp, verify: Verification.
FailsILVerify
, expectedOutput: "Internal");
2443
var verifier = CompileAndVerify(comp, verify: Verification.
FailsILVerify
, expectedOutput: "External");
2586
var verifier = CompileAndVerify(comp, verify: Verification.
FailsILVerify
, expectedOutput: "Span2");
2633
var verifier = CompileAndVerify(comp, verify: Verification.
FailsILVerify
, expectedOutput: "Internal");
2677
var verifier = CompileAndVerify(comp, verify: Verification.
FailsILVerify
, expectedOutput: "External");
2696
verifier = CompileAndVerify(comp, verify: Verification.
FailsILVerify
, expectedOutput: "Internal");
2792
CompileAndVerify(comp2, verify: Verification.
FailsILVerify
)
3163
CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), verify: Verification.
FailsILVerify
)
3195
CompileAndVerify(source, parseOptions: TestOptions.Regular13, verify: Verification.
FailsILVerify
)
3217
CompileAndVerify(source, parseOptions: TestOptions.RegularNext, verify: Verification.
FailsILVerify
)
3219
CompileAndVerify(source, verify: Verification.
FailsILVerify
)
3277
CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), verify: Verification.
FailsILVerify
)
3308
CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), verify: Verification.
FailsILVerify
)
3339
CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), verify: Verification.
FailsILVerify
)
3422
CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), verify: Verification.
FailsILVerify
)
4162
var verifier = CompileAndVerify(comp, verify: Verification.
FailsILVerify
).VerifyDiagnostics();
4227
var verifier = CompileAndVerify(comp, verify: Verification.
FailsILVerify
).VerifyDiagnostics();
4519
var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion), verify: Verification.
FailsILVerify
);
5550
var verifier = CompileAndVerify(comp, verify: Verification.
FailsILVerify
).VerifyDiagnostics();
5582
var verifier = CompileAndVerify(comp, verify: Verification.
FailsILVerify
).VerifyDiagnostics();
5693
CompileAndVerify(comp, verify: Verification.
FailsILVerify
).VerifyDiagnostics();
5696
var verifier = CompileAndVerify(comp, verify: Verification.
FailsILVerify
).VerifyDiagnostics();
5750
var verifier = CompileAndVerify(comp, expectedOutput: "C", verify: Verification.
FailsILVerify
).VerifyDiagnostics();
5794
var verifier = CompileAndVerify(comp, verify: Verification.
FailsILVerify
).VerifyDiagnostics();
6043
CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.
FailsILVerify
).VerifyDiagnostics();
6046
CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.
FailsILVerify
).VerifyDiagnostics();
6076
CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.
FailsILVerify
).VerifyDiagnostics();
6079
CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.
FailsILVerify
).VerifyDiagnostics();
6109
CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.
FailsILVerify
).VerifyDiagnostics();
6112
CompileAndVerify(comp, expectedOutput: expectedOutput, verify: Verification.
FailsILVerify
).VerifyDiagnostics();
RefReadonlyParameterTests.cs (1)
3116
var verifier = CompileAndVerify(source, verify: Verification.
FailsILVerify
, expectedOutput: """
RefStructInterfacesTests.cs (20)
8895
Verification.
FailsILVerify
with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
9099
Verification.
FailsILVerify
with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
9462
Verification.
FailsILVerify
with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
9674
Verification.
FailsILVerify
with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
9898
Verification.
FailsILVerify
with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
10110
Verification.
FailsILVerify
with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
10506
Verification.
FailsILVerify
with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
10703
Verification.
FailsILVerify
with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
10942
Verification.
FailsILVerify
with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
11158
Verification.
FailsILVerify
with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
11385
Verification.
FailsILVerify
with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
11945
Verification.
FailsILVerify
with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
11993
Verification.
FailsILVerify
with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
19102
Verification.
FailsILVerify
with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
19273
Verification.
FailsILVerify
with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
19598
Verification.
FailsILVerify
with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
19783
Verification.
FailsILVerify
with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" } :
28090
Verification.
FailsILVerify
.WithILVerifyMessage(
28392
Verification.
FailsILVerify
.WithILVerifyMessage(
28635
Verification.
FailsILVerify
.WithILVerifyMessage(
Semantics\CollectionExpressionTests.cs (3)
8728
CompileAndVerify(new[] { sourceA, sourceB }, verify: Verification.
FailsILVerify
, expectedOutput: "1, 2, ");
8776
CompileAndVerify(new[] { sourceA, sourceB }, verify: Verification.
FailsILVerify
, expectedOutput: "1, 2, ");
41889
CompileAndVerify(source, verify: Verification.
FailsILVerify
, expectedOutput: "1, 2, ");
Semantics\InlineArrayTests.cs (4)
20820
verify: Verification.
FailsILVerify
, expectedOutput: expectedOutput).VerifyDiagnostics();
20823
verify: Verification.
FailsILVerify
, expectedOutput: expectedOutput).VerifyDiagnostics();
22098
verify: Verification.
FailsILVerify
, expectedOutput: expectedOutput).VerifyDiagnostics();
22101
verify: Verification.
FailsILVerify
, expectedOutput: expectedOutput).VerifyDiagnostics();
Semantics\LockTests.cs (56)
77
verify: Verification.
FailsILVerify
);
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();
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\ParamsCollectionTests.cs (4)
102
Verification.
FailsILVerify
with { ILVerifyMessage = "[InlineArrayAsSpan]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0xc }" }
3019
Verification.
FailsILVerify
with { ILVerifyMessage = "[InlineArrayAsReadOnlySpan]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x11 }" }
5678
Verification.
FailsILVerify
with { ILVerifyMessage = "[InlineArrayAsSpan]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0xc }" }
12528
Verification.
FailsILVerify
with { ILVerifyMessage = "[GetEnumerator]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x9 }" }
Semantics\PatternMatchingTests.cs (3)
6227
var comp = CompileAndVerify(compilation, expectedOutput: "ok", verify: Verification.
FailsILVerify
);
8447
CompileAndVerify(compilation, verify: Verification.
FailsILVerify
, expectedOutput: @"True
10047
CompileAndVerify(compilation, verify: Verification.
FailsILVerify
, expectedOutput: @"True
Semantics\PatternMatchingTests3.cs (1)
474
var comp = CompileAndVerify(compilation, verify: Verification.
FailsILVerify
, expectedOutput: expectedOutput);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (25)
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\BindingAsyncTasklikeMoreTests.cs (2)
1591
CompileAndVerify(compilation, verify: Verification.
FailsILVerify
, expectedOutput: "3");
1595
CompileAndVerify(compilation, verify: Verification.
FailsILVerify
, expectedOutput: "3");
Semantics\DelegateTypeTests.cs (1)
11726
", verify: Verification.
FailsILVerify
with { ILVerifyMessage = "[F2]: Return type is ByRef, TypedReference, ArgHandle, or ArgIterator. { Offset = 0x18 }" });
Semantics\FunctionPointerTests.cs (1)
2946
", expectedOutput: "11", options: TestOptions.UnsafeReleaseExe, verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.
FailsILVerify
: Verification.Skipped);
Semantics\InterpolationTests.cs (2)
4056
var verifier = CompileAndVerify(comp, verify: Verification.
FailsILVerify
, expectedOutput: @"
9745
verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.
FailsILVerify
: Verification.Skipped);
Semantics\NativeIntegerTests.cs (1)
4690
verify: Verification.
FailsILVerify
with { ILVerifyMessage = "[GetHashCode]: Unrecognized arguments for delegate .ctor. { Offset = 0x12 }" },
Semantics\OverloadResolutionTests.cs (2)
9741
CompileAndVerify(source, expectedOutput: "555", verify: Verification.
FailsILVerify
, parseOptions: TestOptions.Regular12).VerifyDiagnostics(expectedDiagnostics);
9742
CompileAndVerify(source, expectedOutput: "555", verify: Verification.
FailsILVerify
).VerifyDiagnostics(expectedDiagnostics);
Semantics\RawInterpolationTests_Handler.cs (2)
2459
value:C", verify: Verification.
FailsILVerify
);
7958
verify: ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.
FailsILVerify
: Verification.Skipped);
Semantics\SpanStackSafetyTests.cs (5)
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();
2648
CompileAndVerify(comp, expectedOutput: "Done", verify: Verification.
FailsILVerify
).VerifyDiagnostics();
Semantics\TargetTypedDefaultTests.cs (1)
1941
CompileAndVerify(comp, expectedOutput: "123: True", verify: Verification.
FailsILVerify
);
Semantics\UseSiteErrorTests.cs (1)
2381
CompileAndVerify(compilation5, verify: Verification.
FailsILVerify
);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (9)
Compilation\CompilationAPITests.cs (1)
1029
CompileAndVerify(assembly, verify: Verification.
FailsILVerify
);
Compilation\UsedAssembliesTests.cs (3)
36
CompileAndVerify(comp1, verify: Verification.
FailsILVerify
);
57
CompileAndVerify(comp1, verify: Verification.
FailsILVerify
);
421
CompileAndVerify(comp1, verify: Verification.
FailsILVerify
);
Symbols\DefaultInterfaceImplementationTests.cs (2)
67
return ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.
FailsILVerify
: Verification.Skipped;
73
return !isStatic && ExecutionConditionUtil.IsMonoOrCoreClr ? Verification.
FailsILVerify
: Verification.Skipped;
Symbols\ExtensionMethodTests.cs (1)
2301
G: S", verify: Verification.
FailsILVerify
);
Symbols\SymbolErrorTests.cs (2)
6250
CompileAndVerify(comp, verify: Verification.
FailsILVerify
).VerifyDiagnostics();
20817
verify: Verification.
FailsILVerify
with { ILVerifyMessage = "[Main]: Unable to resolve token. { Offset = 0x1, Token = 167772167 }" });
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (20)
Attributes\AssemblyAttributes.vb (5)
788
verify:=Verification.
FailsILVerify
,
819
verify:=Verification.
FailsILVerify
,
850
verify:=Verification.
FailsILVerify
,
881
verify:=Verification.
FailsILVerify
,
1020
verify:=Verification.
FailsILVerify
,
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\CodeGenDelegateCreation.vb (1)
2346
verify:=Verification.
FailsILVerify
.WithILVerifyMessage("[Test15]: Unrecognized arguments for delegate .ctor. { Offset = 0x1f }"),
CodeGen\CodeGenNullable.vb (1)
3486
Dim verifier = CompileAndVerify(source, verify:=Verification.
FailsILVerify
.WithILVerifyMessage("
CodeGen\CodeGenTests.vb (2)
53
</compilation>, verify:=Verification.
FailsILVerify
).
6431
</compilation>, references:={TestReferences.SymbolsTests.PropertiesWithByRef}, verify:=Verification.
FailsILVerify
)
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
)
Emit\CompilationEmitTests.vb (1)
695
CompileAndVerify(comp, emitOptions:=emitRefAssembly, verify:=Verification.
FailsILVerify
, validator:=assemblyValidator)
Emit\EditAndContinue\AssemblyReferencesTests.vb (1)
333
Dim v0 = CompileAndVerify(compilation0, verify:=Verification.
FailsILVerify
)
Emit\EmitMetadata.vb (2)
273
dllImage = CompileAndVerify(c2, verify:=Verification.
FailsILVerify
).EmittedAssemblyData
311
Dim manifestModule = CompileAndVerify(c1, verify:=Verification.
FailsILVerify
).EmittedAssemblyData
PDB\PDBTests.vb (1)
752
Dim v = CompileAndVerify(CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.DebugExe), verify:=Verification.
FailsILVerify
)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (4)
Compilation\CompilationAPITests.vb (1)
903
CompileAndVerify(assembly, verify:=Verification.
FailsILVerify
)
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 (15)
SymbolsTests\Metadata\WinMdEventTest.vb (2)
224
verify:=Verification.
FailsILVerify
)
770
CompileAndVerify(compilation, verify:=Verification.
FailsILVerify
).VerifyIL("abcdef.goo", expectedIL.Value())
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\SymbolErrorTests.vb (1)
24349
verify:=Verification.
FailsILVerify
.WithILVerifyMessage("[Main]: Unable to resolve token. { Offset = 0x1, Token = 167772166 }"))
UsedAssembliesTests.vb (3)
30
CompileAndVerify(comp1, verify:=Verification.
FailsILVerify
)
52
CompileAndVerify(comp1, verify:=Verification.
FailsILVerify
)
239
CompileAndVerify(comp1, verify:=Verification.
FailsILVerify
)