37 references to CompileAndVerifyWithMscorlib40
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (25)
CodeGen\CodeGenAsyncTests.cs (1)
2164CompileAndVerifyWithMscorlib40(source, new[] { CSharpRef, SystemCoreRef });
CodeGen\CodeGenDeconstructTests.cs (1)
108var comp = CompileAndVerifyWithMscorlib40(source, expectedOutput: "1 hello", references: s_valueTupleRefs, sourceSymbolValidator: validator);
CodeGen\CodeGenDynamicTests.cs (4)
310var c = CompileAndVerifyWithMscorlib40(source, new[] { systemCoreRef, csrtRef, funcRef }); 337CompileAndVerifyWithMscorlib40(source, new[] { systemCoreRef, csrtRef }, verify: Verification.Fails).VerifyIL("C.F", @" 1093CompileAndVerifyWithMscorlib40(source, new[] { SystemCoreRef }); 14062var comp = CompileAndVerifyWithMscorlib40(source, expectedOutput: "hello!", references: new[] { ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef, SystemCoreRef });
CodeGen\CodeGenIterators.cs (1)
170var compilation = CompileAndVerifyWithMscorlib40(source, expectedOutput: "12324565");
CodeGen\CodeGenRefConditionalOperatorTests.cs (1)
1064var comp = CompileAndVerifyWithMscorlib40(source, references: new[] { TestMetadata.Net40.System, ValueTupleRef, TestMetadata.Net40.SystemCore }, expectedOutput: "00", verify: Verification.FailsPEVerify);
CodeGen\CodeGenRefReadonlyReturnTests.cs (2)
805var comp = CompileAndVerifyWithMscorlib40(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, parseOptions: TestOptions.Regular, verify: Verification.Passes); 883var comp = CompileAndVerifyWithMscorlib40(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, parseOptions: TestOptions.Regular, verify: Verification.Fails);
CodeGen\CodeGenTests.cs (9)
6683var compilation = CompileAndVerifyWithMscorlib40(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @" 6933var compilation = CompileAndVerifyWithMscorlib40(source, expectedOutput: @" 10494CompileAndVerifyWithMscorlib40( 13393var compilation = CompileAndVerifyWithMscorlib40(code, expectedOutput: "4"); 14191CompileAndVerifyWithMscorlib40(source, references: new[] { SystemCoreRef, CSharpRef }, expectedOutput: @"0"); 15542var compilation = CompileAndVerifyWithMscorlib40(source, new[] { SystemCoreRef, CSharpRef }, expectedOutput: "2"); 15611var compilation = CompileAndVerifyWithMscorlib40(source, new[] { SystemCoreRef, CSharpRef }, expectedOutput: "2"); 15724var compilation = CompileAndVerifyWithMscorlib40(source, new[] { SystemCoreRef, CSharpRef }, expectedOutput: "long.ex caught"); 16170CompileAndVerifyWithMscorlib40(source, references: new[] { SystemRef, SystemCoreRef },
CodeGen\CodeGenTupleTest.cs (4)
3468var verifier = CompileAndVerifyWithMscorlib40(source, expectedOutput: @"1 2 3 4 5 6 7 Alice 2 3 4 5 6 7 Bob 2 3", references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, sourceSymbolValidator: validator); 4421var comp = CompileAndVerifyWithMscorlib40(source, expectedOutput: @"1 1 2 2 3 3 4 4 5 5 6 6 True", references: new[] { new CSharpCompilationReference(comp1), new CSharpCompilationReference(comp2) }); 17486var comp = CompileAndVerifyWithMscorlib40(source, expectedOutput: "(1, 2)", references: new[] { tupleComp.ToMetadataReference() }); 23534var comp = CompileAndVerifyWithMscorlib40(source, expectedOutput: "42qq", references: s_valueTupleRefs.Concat(new[] { libCompRef }).ToArray(), options: TestOptions.DebugExe, verify: Verification.Fails);
Emit\EmitMetadataTests.cs (2)
192CompileAndVerifyWithMscorlib40(source, new[] { metadataTestLib1, metadataTestLib2 }, assemblyValidator: (assembly) => 209CompileAndVerifyWithMscorlib40(sources, new[] { TestReferences.SymbolsTests.MultiModule.Assembly }, verify: Verification.FailsILVerify, assemblyValidator: (assembly) =>
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (8)
Attributes\AttributeTests.cs (1)
8209CompileAndVerifyWithMscorlib40(source5, references: new[] { comp1, comp2 });
Attributes\AttributeTests_Dynamic.cs (1)
1134CompileAndVerifyWithMscorlib40(source, new[] { CSharpRef }, expectedSignatures: new[]
Attributes\AttributeTests_Security.cs (1)
67CompileAndVerifyWithMscorlib40(source, symbolValidator: attributeValidator(false), sourceSymbolValidator: attributeValidator(true));
Attributes\AttributeTests_Synthesized.cs (1)
1624CompileAndVerifyWithMscorlib40("", references: new[] { moduleReference }, symbolValidator: validateSecurity, verify: Verification.Skipped);
Attributes\AttributeTests_Tuples.cs (4)
108CompileAndVerifyWithMscorlib40(s_tuplesTestSource, 238CompileAndVerifyWithMscorlib40(s_tuplesTestSource, 946CompileAndVerifyWithMscorlib40(src, 1046CompileAndVerifyWithMscorlib40(src,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\NonTrailingNamedArgumentsTests.cs (1)
160var verifier = CompileAndVerifyWithMscorlib40(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2, references: new[] { TestMetadata.Net40.SystemCore });
Semantics\OverloadResolutionTests.cs (1)
10926CompileAndVerifyWithMscorlib40(code, references: new[] { SystemRuntimeFacadeRef, ValueTupleRef }, expectedOutput: @"
Semantics\SemanticErrorTests.cs (2)
22516CompileAndVerifyWithMscorlib40(source, expectedOutput: "True", references: new[] { Net40.SystemCore }, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 22522CompileAndVerifyWithMscorlib40(source, expectedOutput: "True", references: new[] { Net40.SystemCore }).VerifyDiagnostics();