256 references to FailsPEVerify
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (50)
CodeGen\CodeGenAsyncIteratorTests.cs (3)
8523
CompileAndVerify(comp, expectedOutput: ExpectedOutput("42"), verify: Verification.
FailsPEVerify
);
8558
CompileAndVerify(comp, expectedOutput: ExpectedOutput("42"), verify: Verification.
FailsPEVerify
);
8599
CompileAndVerify(comp, expectedOutput: ExpectedOutput("42"), verify: Verification.
FailsPEVerify
);
CodeGen\CodeGenExprLambdaTests.cs (1)
3220
verify: Verification.
FailsPEVerify
);
CodeGen\CodeGenInParametersTests.cs (2)
4011
var verifier = CompileAndVerify(compilation, expectedOutput: "0011", verify: Verification.
FailsPEVerify
);
4603
var verifier = CompileAndVerify(source, expectedOutput: "00", verify: Verification.
FailsPEVerify
);
CodeGen\CodeGenIterators.cs (1)
2392
var verifier = CompileAndVerify(compilation, verify: Verification.
FailsPEVerify
);
CodeGen\CodeGenOverridingAndHiding.cs (1)
2559
CompileAndVerify(outerCompilation, verify: Verification.
FailsPEVerify
).VerifyIL("Test.Main", @"
CodeGen\CodeGenReadonlyStructTests.cs (3)
188
var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.
FailsPEVerify
, expectedOutput: @"12");
262
var comp = CompileAndVerify(text, parseOptions: TestOptions.Regular, verify: Verification.
FailsPEVerify
, expectedOutput: @"hello2");
343
var comp = CompileAndVerify(text, new[] { ref1 }, parseOptions: TestOptions.Regular, verify: Verification.
FailsPEVerify
, expectedOutput: @"hello2");
CodeGen\CodeGenRefConditionalOperatorTests.cs (8)
1065
var comp = CompileAndVerifyWithMscorlib40(source, references: new[] { Net40.References.System, ValueTupleRef, Net40.References.SystemCore }, expectedOutput: "00", verify: Verification.
FailsPEVerify
);
1153
var comp = CompileAndVerify(source, expectedOutput: "00", verify: Verification.
FailsPEVerify
);
2383
CompileAndVerify(source, targetFramework: TargetFramework.NetCoreApp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null, options: TestOptions.ReleaseExe, verify: Verification.
FailsPEVerify
);
2384
CompileAndVerify(source, targetFramework: TargetFramework.NetCoreApp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null, options: TestOptions.DebugExe, verify: Verification.
FailsPEVerify
);
2422
CompileAndVerify(source, targetFramework: TargetFramework.NetCoreApp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null, options: TestOptions.ReleaseExe, verify: Verification.
FailsPEVerify
);
2423
CompileAndVerify(source, targetFramework: TargetFramework.NetCoreApp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null, options: TestOptions.DebugExe, verify: Verification.
FailsPEVerify
);
2473
CompileAndVerify(source, targetFramework: TargetFramework.NetCoreApp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null, options: TestOptions.ReleaseExe, verify: Verification.
FailsPEVerify
);
2474
CompileAndVerify(source, targetFramework: TargetFramework.NetCoreApp, expectedOutput: ExecutionConditionUtil.IsMonoOrCoreClr ? expectedOutput : null, options: TestOptions.DebugExe, verify: Verification.
FailsPEVerify
);
CodeGen\CodeGenRefLocalTests.cs (3)
3487
verify: Verification.
FailsPEVerify
, targetFramework: TargetFramework.Net70);
3527
verify: Verification.
FailsPEVerify
, targetFramework: TargetFramework.Net70);
3564
verify: Verification.
FailsPEVerify
, targetFramework: TargetFramework.Net70);
CodeGen\CodeGenScriptTests.cs (1)
557
var verifier = CompileAndVerify(s0, verify: Verification.
FailsPEVerify
);
CodeGen\CodeGenStackAllocInitializerTests.cs (5)
495
verify: Verification.
FailsPEVerify
).VerifyIL("C.Main",
914
verify: Verification.
FailsPEVerify
, targetFramework: TargetFramework.Net70);
1005
verify: Verification.
FailsPEVerify
, targetFramework: TargetFramework.Net70);
1419
verify: Verification.
FailsPEVerify
, targetFramework: TargetFramework.Net70);
1457
verify: Verification.
FailsPEVerify
, targetFramework: TargetFramework.Net70);
CodeGen\CodeGenTests.cs (3)
10458
CompileAndVerify(comp, verify: Verification.
FailsPEVerify
).VerifyIL("Test.Main",
12299
var comp = CompileAndVerify(source, expectedOutput: @"42", parseOptions: TestOptions.Regular7_2, verify: Verification.
FailsPEVerify
);
12453
var comp = CompileAndVerify(source, expectedOutput: @"-10", verify: Verification.
FailsPEVerify
);
CodeGen\CodeGenTryFinally.cs (2)
3828
verify: Verification.
FailsPEVerify
with
3860
verify: Verification.
FailsPEVerify
with
CodeGen\CodeGenUsingStatementTests.cs (3)
3169
verify: Verification.
FailsPEVerify
,
3201
verify: Verification.
FailsPEVerify
,
3239
verify: Verification.
FailsPEVerify
,
CodeGen\DestructorTests.cs (1)
701
CompileAndVerify(compilation, verify: Verification.
FailsPEVerify
).VerifyIL("B.Finalize",
CodeGen\SwitchTests.cs (1)
4519
var verifier = CompileAndVerify(comp, verify: Verification.
FailsPEVerify
);
CodeGen\UnsafeTests.cs (10)
6136
CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.
FailsPEVerify
).VerifyIL("C.M", @"
6226
CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.
FailsPEVerify
).VerifyIL("C.M", @"
6823
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: "1234", verify: Verification.
FailsPEVerify
).VerifyIL("C.Main", @"
10107
CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.
FailsPEVerify
).VerifyIL("C.M", @"
10473
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.
FailsPEVerify
);
10807
CompileAndVerify(text, options: TestOptions.UnsafeReleaseExe, verify: Verification.
FailsPEVerify
with
10827
var c = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.
FailsPEVerify
with
10849
var c = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll, verify: Verification.
FailsPEVerify
with
11339
var verifier = CompileAndVerify(text, options: TestOptions.UnsafeReleaseDll.WithConcurrentBuild(false), verify: Verification.
FailsPEVerify
);
11857
var comp = CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, expectedOutput: "0", verify: Verification.
FailsPEVerify
);
Emit\EmitCustomModifiers.cs (2)
709
CompileAndVerify(compilation, verify: Verification.
FailsPEVerify
);
743
CompileAndVerify(compilation, verify: Verification.
FailsPEVerify
);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (58)
Emit\EditAndContinue\EditAndContinueStateMachineTests.cs (4)
10876
var v0 = CompileAndVerify(compilation0, verify: Verification.
FailsPEVerify
);
10938
var v0 = CompileAndVerify(compilation0, verify: Verification.
FailsPEVerify
);
11004
var v0 = CompileAndVerify(compilation0, verify: Verification.
FailsPEVerify
);
11108
var v0 = CompileAndVerify(compilation0, verify: Verification.
FailsPEVerify
);
Emit\NumericIntPtrTests.cs (51)
1096
var verifier = CompileAndVerify(comp, verify: Verification.
FailsPEVerify
);
1134
var verifier = CompileAndVerify(comp, verify: Verification.
FailsPEVerify
);
1330
var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput($"{size}{size}{size}{size}"), verify: Verification.
FailsPEVerify
);
1433
CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput(
1457
var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(@"1"), verify: Verification.
FailsPEVerify
);
1492
var verifier = CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput(
1648
var verifier = CompileAndVerify(comp, verify: Verification.
FailsPEVerify
);
1759
var verifier = CompileAndVerify(comp, verify: Verification.
FailsPEVerify
);
2256
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(IntPtr.Size == 4 ? "System.OverflowException" : "1152921504606846975"), verify: Verification.
FailsPEVerify
);
2294
CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput(IntPtr.Size == 4 ? "-1" : "1152921504606846975"));
2412
CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput(expectedOutput));
2483
var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(expectedOutput), verify: Verification.
FailsPEVerify
);
2617
var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(expectedOutput), verify: Verification.
FailsPEVerify
);
2799
CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput("0, 0, 0, 0"));
2824
CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput(
2857
CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput(
3053
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(expectedOutput), verify: Verification.
FailsPEVerify
);
3060
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(expectedOutput), verify: Verification.
FailsPEVerify
);
3063
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(expectedOutput), verify: Verification.
FailsPEVerify
);
3066
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(expectedOutput), verify: Verification.
FailsPEVerify
);
3069
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(expectedOutput), verify: Verification.
FailsPEVerify
);
3127
var verifier = CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput(
3295
var verifier = CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput(
6022
var verifier = CompileAndVerify(comp, verify: useUnsafeContext ? Verification.Skipped : Verification.
FailsPEVerify
);
6251
var verifier = CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput(expectedResult));
6627
var verifier = CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput(expectedResult));
6859
var verifier = CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput(expectedResult));
8132
CompileAndVerify(comp, verify: Verification.
FailsPEVerify
);
8184
var verifier = CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput(
8410
var verifier = CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput(
8614
var verifier = CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput(
8690
var verifier = CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput(
9122
CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput(IntPtr.Size == 4 ? "System.OverflowException" : "4294967337")).VerifyDiagnostics(
9140
CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput(IntPtr.Size == 4 ? "41" : "4294967337")).VerifyDiagnostics();
9189
CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput(IntPtr.Size == 4 ? "System.OverflowException" : "2147483648")).VerifyDiagnostics(
9207
CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput(IntPtr.Size == 4 ? "-2147483648" : "2147483648")).VerifyDiagnostics();
9247
CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput(
9277
CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput(
9301
CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput(
9429
var verifier = CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput(
9703
CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput(
9834
var verifier = CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput(
10025
var verifier = CompileAndVerify(comp, verify: Verification.
FailsPEVerify
);
10710
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("1, 2, 3, 4"), verify: Verification.
FailsPEVerify
);
10726
CompileAndVerify(comp2, sourceSymbolValidator: verify, symbolValidator: verify, verify: Verification.
FailsPEVerify
);
10832
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(expected), verify: Verification.
FailsPEVerify
);
10900
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput(expected), verify: Verification.
FailsPEVerify
);
10987
var verifier = CompileAndVerify(comp, verify: Verification.
FailsPEVerify
);
11630
return CompileAndVerify(comp, verify: Verification.
FailsPEVerify
);
11688
var verifier = CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput("RAN"));
11706
var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("63"), verify: Verification.
FailsPEVerify
);
Emit\RuntimeProbing\ModuleCancellationTests.cs (2)
787
var verifier = CompileAndVerify(source, verification: Verification.
FailsPEVerify
);
2765
var verifier = CompileAndVerify(source, verification: Verification.
FailsPEVerify
);
Emit\RuntimeProbing\StackOverflowProbingTests.cs (1)
693
var verifier = CompileAndVerify(source, verification: Verification.
FailsPEVerify
);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (95)
Attributes\AttributeTests_Assembly.cs (1)
351
CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, symbolValidator: m =>
Attributes\AttributeTests_IsByRefLike.cs (1)
1001
CompileAndVerify(compilation1, verify: Verification.
FailsPEVerify
, symbolValidator: module =>
Attributes\AttributeTests_StructLayout.cs (3)
218
CompileAndVerify(unverifiable, assemblyValidator: validator, verify: Verification.
FailsPEVerify
);
221
CompileAndVerify(unloadable, assemblyValidator: validator, verify: Verification.
FailsPEVerify
);
339
CompileAndVerify(source, verify: Verification.
FailsPEVerify
);
Attributes\AttributeTests_WellKnownAttributes.cs (2)
3701
CompileAndVerify(source, options: TestOptions.ReleaseDll, verify: Verification.
FailsPEVerify
, sourceSymbolValidator: sourceValidator, symbolValidator: metadataValidator);
5657
var verifier = CompileAndVerify(source, sourceSymbolValidator: sourceValidator, symbolValidator: metadataValidator, verify: Verification.
FailsPEVerify
, targetFramework: TargetFramework.Mscorlib40);
RefReadonlyParameterTests.cs (1)
679
verify: Verification.
FailsPEVerify
);
RefStructInterfacesTests.cs (14)
22843
verify: Verification.
FailsPEVerify
,
22867
verify: Verification.
FailsPEVerify
,
22895
verify: Verification.
FailsPEVerify
,
22925
verify: Verification.
FailsPEVerify
,
22956
verify: Verification.
FailsPEVerify
,
22987
verify: Verification.
FailsPEVerify
,
23018
verify: Verification.
FailsPEVerify
,
23050
verify: Verification.
FailsPEVerify
,
23081
verify: Verification.
FailsPEVerify
,
23112
verify: Verification.
FailsPEVerify
,
23136
verify: Verification.
FailsPEVerify
,
23166
verify: Verification.
FailsPEVerify
,
23197
verify: Verification.
FailsPEVerify
,
23221
verify: Verification.
FailsPEVerify
,
RefUnsafeInIteratorAndAsyncTests.cs (8)
452
CompileAndVerify(source, expectedOutput: IfSpans("456"), verify: Verification.
FailsPEVerify
, targetFramework: TargetFramework.Net70).VerifyDiagnostics();
472
CompileAndVerify(source, expectedOutput: IfSpans("123"), verify: Verification.
FailsPEVerify
, targetFramework: TargetFramework.Net70).VerifyDiagnostics();
948
CompileAndVerify(source, expectedOutput: IfSpans("-1 456"), verify: Verification.
FailsPEVerify
, targetFramework: TargetFramework.Net70).VerifyDiagnostics();
978
CompileAndVerify(source, expectedOutput: IfSpans("-1 456"), verify: Verification.
FailsPEVerify
, targetFramework: TargetFramework.Net70).VerifyDiagnostics();
1006
CompileAndVerify(source, expectedOutput: IfSpans("-1 456"), verify: Verification.
FailsPEVerify
, targetFramework: TargetFramework.Net70).VerifyDiagnostics();
1032
CompileAndVerify(source, expectedOutput: IfSpans("123-1"), verify: Verification.
FailsPEVerify
, targetFramework: TargetFramework.Net70).VerifyDiagnostics();
1231
CompileAndVerify(source, expectedOutput: IfSpans("123"), verify: Verification.
FailsPEVerify
, targetFramework: TargetFramework.Net70).VerifyDiagnostics();
1256
CompileAndVerify(source, expectedOutput: IfSpans("123"), verify: Verification.
FailsPEVerify
, targetFramework: TargetFramework.Net70).VerifyDiagnostics();
Semantics\CollectionExpressionTests.cs (60)
4707
verify: Verification.
FailsPEVerify
,
4731
verify: Verification.
FailsPEVerify
,
11240
verify: Verification.
FailsPEVerify
,
11533
verify: Verification.
FailsPEVerify
,
11624
verify: Verification.
FailsPEVerify
,
11918
verify: Verification.
FailsPEVerify
,
11943
verify: Verification.
FailsPEVerify
,
12135
verify: Verification.
FailsPEVerify
,
12381
verify: Verification.
FailsPEVerify
,
13231
verify: Verification.
FailsPEVerify
,
13256
verify: Verification.
FailsPEVerify
,
13335
verify: Verification.
FailsPEVerify
);
14220
var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.
FailsPEVerify
);
14431
var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.
FailsPEVerify
);
14545
var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[1, 2, 3],"), verify: Verification.
FailsPEVerify
);
14603
var verifier = CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("[[1], [2]],"), verify: Verification.
FailsPEVerify
);
15405
verify: targetFramework == TargetFramework.Net80 ? Verification.Fails : Verification.
FailsPEVerify
,
15835
verify: Verification.
FailsPEVerify
,
15884
verify: Verification.
FailsPEVerify
,
16040
verify: Verification.
FailsPEVerify
,
17167
verify: Verification.
FailsPEVerify
,
17358
verify: Verification.
FailsPEVerify
,
17407
verify: Verification.
FailsPEVerify
,
17456
verify: Verification.
FailsPEVerify
,
17502
verify: Verification.
FailsPEVerify
,
17548
verify: Verification.
FailsPEVerify
,
17640
verify: Verification.
FailsPEVerify
,
17833
verify: Verification.
FailsPEVerify
,
17885
verify: Verification.
FailsPEVerify
,
18185
verify: Verification.
FailsPEVerify
,
19104
verify: Verification.
FailsPEVerify
,
19167
verify: Verification.
FailsPEVerify
,
20385
verify: Verification.
FailsPEVerify
,
20486
verify: Verification.
FailsPEVerify
,
20611
verify: Verification.
FailsPEVerify
,
20691
verify: Verification.
FailsPEVerify
,
20821
verify: Verification.
FailsPEVerify
,
20866
verify: Verification.
FailsPEVerify
,
20971
var verifier = CompileAndVerify(comp, verify: Verification.
FailsPEVerify
);
21119
var verifier = CompileAndVerify(comp, verify: Verification.
FailsPEVerify
);
21222
verify: Verification.
FailsPEVerify
,
21356
verify: Verification.
FailsPEVerify
,
21510
verify: Verification.
FailsPEVerify
,
21607
verify: Verification.
FailsPEVerify
,
21721
verify: Verification.
FailsPEVerify
,
21829
verify: Verification.
FailsPEVerify
,
21937
verify: Verification.
FailsPEVerify
,
25768
verify: Verification.
FailsPEVerify
,
25887
var verifier = CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput("[1, 2, 3], "));
29462
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("1 2 3"), verify: Verification.
FailsPEVerify
);
29486
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("1 2 3"), verify: Verification.
FailsPEVerify
);
29510
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("a b c"), verify: Verification.
FailsPEVerify
);
29533
CompileAndVerify(comp, expectedOutput: IncludeExpectedOutput("97 98 99"), verify: Verification.
FailsPEVerify
);
29567
verify: Verification.
FailsPEVerify
,
29624
verify: Verification.
FailsPEVerify
,
33970
var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput("[1, 2, 3, 4, 5, 6],"), targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe);
34053
var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput("[1, 2, 3, 4, 5, 6],"), targetFramework: TargetFramework.Net80);
34151
var verifier = CompileAndVerify(comp, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput("[Derived], [Derived], "));
34202
var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput("[Derived], [Derived, Derived],"), targetFramework: TargetFramework.Net80);
34309
var verifier = CompileAndVerify(new[] { source, s_collectionExtensionsWithSpan }, verify: Verification.
FailsPEVerify
, expectedOutput: IncludeExpectedOutput("[1, 2, 3, 4, 5, 6],"), targetFramework: TargetFramework.Net80);
Semantics\InlineArrayTests.cs (1)
23343
parseOptions: parseOptions, targetFramework: TargetFramework.Net80, verify: Verification.
FailsPEVerify
);
Semantics\LockTests.cs (1)
135
verify: Verification.
FailsPEVerify
);
Semantics\PatternMatchingTests.cs (1)
6526
CompileAndVerify(compilation, expectedOutput: expectedOutput, verify: Verification.
FailsPEVerify
);
Semantics\PatternMatchingTests_ListPatterns.cs (2)
8059
var verifier = CompileAndVerify(compilation, verify: Verification.
FailsPEVerify
);
8130
var verifier = CompileAndVerify(compilation, expectedOutput: "1 2 3", verify: Verification.
FailsPEVerify
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (28)
Semantics\BindingAwaitTests.cs (1)
2840
var compiled = CompileAndVerify(comp, expectedOutput: "dynamic42", verify: Verification.
FailsPEVerify
);
Semantics\DynamicTests.cs (4)
1642
expectedOutput: RefFieldTests.IncludeExpectedOutput("1"), verify: Verification.
FailsPEVerify
).VerifyDiagnostics();
1670
expectedOutput: ro ? "0" : "1", verify: ro ? Verification.
FailsPEVerify
: default).VerifyDiagnostics();
3916
var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithAllowUnsafe(true), verify: Verification.
FailsPEVerify
).VerifyDiagnostics();
3944
var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithAllowUnsafe(true), verify: Verification.
FailsPEVerify
).VerifyDiagnostics();
Semantics\ForEachTests.cs (1)
3085
CompileAndVerify(comp, verify: Verification.
FailsPEVerify
).
Semantics\InitOnlyMemberTests.cs (9)
1448
verify: Verification.
FailsPEVerify
);
2742
verify: Verification.
FailsPEVerify
);
4197
verify: Verification.
FailsPEVerify
);
4221
" }, verify: Verification.
FailsPEVerify
, expectedOutput: "1");
4257
" }, verify: Verification.
FailsPEVerify
, expectedOutput: "1");
4296
" }, verify: Verification.
FailsPEVerify
, expectedOutput: "1");
4336
" }, verify: Verification.
FailsPEVerify
, expectedOutput: "1");
4431
" }, verify: Verification.
FailsPEVerify
, expectedOutput: @"I1 was 1
4565
CompileAndVerify(comp, expectedOutput: "c", verify: Verification.
FailsPEVerify
);
Semantics\NamedAndOptionalTests.cs (1)
774
var c = CompileAndVerify(source, options: TestOptions.UnsafeReleaseDll, verify: Verification.
FailsPEVerify
);
Semantics\NullableReferenceTypesTests.cs (2)
116637
CompileAndVerify(compilation2, verify: Verification.
FailsPEVerify
);
116648
CompileAndVerify(compilation3, verify: Verification.
FailsPEVerify
);
Semantics\NullableTests.cs (2)
208
verifier = CompileAndVerify(source: source3, expectedOutput: "1", verify: Verification.
FailsPEVerify
);
267
CompileAndVerify(source: source4.Replace("TYPE", type), expectedOutput: "0", verify: Verification.
FailsPEVerify
);
Semantics\QueryTests.cs (3)
4600
verify: Verification.
FailsPEVerify
,
4644
verify: Verification.
FailsPEVerify
,
4694
verify: Verification.
FailsPEVerify
,
Semantics\RefLocalsAndReturnsTests.cs (5)
3298
CompileAndVerify(code, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net70, verify: Verification.
FailsPEVerify
).VerifyDiagnostics();
3299
CompileAndVerify(code, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net70, verify: Verification.
FailsPEVerify
).VerifyDiagnostics();
3300
CompileAndVerify(code, expectedOutput: expectedOutput, targetFramework: TargetFramework.Net70, verify: Verification.
FailsPEVerify
).VerifyDiagnostics();
3461
CompileAndVerify(code, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net70, verify: Verification.
FailsPEVerify
).VerifyDiagnostics();
3462
CompileAndVerify(code, expectedOutput: expectedOutput, targetFramework: TargetFramework.Net70, verify: Verification.
FailsPEVerify
).VerifyDiagnostics();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Symbols\AnonymousTypesSemanticsTests.cs (1)
1901
CompileAndVerify(comp, expectedOutput: "RAN", verify: Verification.
FailsPEVerify
);
Symbols\RequiredMembersTests.cs (1)
2541
CompileAndVerify(comp, verify: Verification.
FailsPEVerify
).VerifyDiagnostics();
Symbols\Source\RecordTests.cs (4)
24
verify: Verification.
FailsPEVerify
);
753
var verifier = CompileAndVerify(comp, verify: Verification.
FailsPEVerify
).VerifyDiagnostics();
806
var verifier = CompileAndVerify(comp, verify: Verification.
FailsPEVerify
).VerifyDiagnostics();
903
var verifier = CompileAndVerify(comp, verify: Verification.
FailsPEVerify
).VerifyDiagnostics(
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (14)
Attributes\AttributeTests_StructLayout.vb (3)
392
CompileAndVerify(unverifiable, validator:=validator, verify:=Verification.
FailsPEVerify
)
393
CompileAndVerify(unloadable, validator:=validator, verify:=Verification.
FailsPEVerify
)
569
CompileAndVerify(source, verify:=Verification.
FailsPEVerify
)
CodeGen\CodeGenScriptTests.vb (1)
363
Dim verifier = CompileAndVerify(s0, verify:=Verification.
FailsPEVerify
)
CodeGen\WinRTCollectionTests.vb (1)
4210
verify:=Verification.
FailsPEVerify
)
Emit\EditAndContinue\EditAndContinueStateMachineTests.vb (2)
9085
Dim v0 = CompileAndVerify(compilation0, verify:=Verification.
FailsPEVerify
)
9163
Dim v0 = CompileAndVerify(compilation0, verify:=Verification.
FailsPEVerify
)
Emit\NoPiaEmbedTypes.vb (7)
1537
Dim verifier = CompileAndVerify(compilation0, verify:=Verification.
FailsPEVerify
)
1607
verifier = CompileAndVerify(compilation1, symbolValidator:=validator, verify:=Verification.
FailsPEVerify
)
1613
verifier = CompileAndVerify(compilation1, symbolValidator:=validator, verify:=Verification.
FailsPEVerify
)
3885
CompileAndVerify(compilation3, verify:=Verification.
FailsPEVerify
)
3890
CompileAndVerify(compilation4, verify:=Verification.
FailsPEVerify
)
4306
CompileAndVerify(compilation3, verify:=Verification.
FailsPEVerify
)
4312
CompileAndVerify(compilation4, verify:=Verification.
FailsPEVerify
)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Binding\SyncLockTests.vb (1)
546
verify:=Verification.
FailsPEVerify
).VerifyDiagnostics()
Semantics\ConditionalAccessTests.vb (1)
1206
Dim verifier = CompileAndVerify(compilation, verify:=Verification.
FailsPEVerify
, expectedOutput:=
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (3)
SymbolsTests\Metadata\PE\TypeForwarders.vb (2)
1125
CompileAndVerify(appCompilation, verify:=Verification.
FailsPEVerify
,
1303
CompileAndVerify(appCompilation, verify:=Verification.
FailsPEVerify
,
SymbolsTests\Source\TypeTests.vb (1)
3433
CompileAndVerify(compilation, verify:=Verification.
FailsPEVerify
).VerifyDiagnostics()