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