37 references to CompileAndVerifyWithMscorlib40
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (25)
CodeGen\CodeGenAsyncTests.cs (1)
2168CompileAndVerifyWithMscorlib40(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 }); 14427var comp = CompileAndVerifyWithMscorlib40(source, expectedOutput: "hello!", references: new[] { ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef, SystemCoreRef });
CodeGen\CodeGenIterators.cs (1)
171var compilation = CompileAndVerifyWithMscorlib40(source, expectedOutput: "12324565");
CodeGen\CodeGenRefConditionalOperatorTests.cs (1)
1065var comp = CompileAndVerifyWithMscorlib40(source, references: new[] { Net40.References.System, ValueTupleRef, Net40.References.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)
6670var compilation = CompileAndVerifyWithMscorlib40(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @" 6927var compilation = CompileAndVerifyWithMscorlib40(source, expectedOutput: @" 10489CompileAndVerifyWithMscorlib40( 13410var compilation = CompileAndVerifyWithMscorlib40(code, expectedOutput: "4"); 14208CompileAndVerifyWithMscorlib40(source, references: new[] { SystemCoreRef, CSharpRef }, expectedOutput: @"0"); 15560var compilation = CompileAndVerifyWithMscorlib40(source, new[] { SystemCoreRef, CSharpRef }, expectedOutput: "2"); 15631var compilation = CompileAndVerifyWithMscorlib40(source, new[] { SystemCoreRef, CSharpRef }, expectedOutput: "2"); 15744var compilation = CompileAndVerifyWithMscorlib40(source, new[] { SystemCoreRef, CSharpRef }, expectedOutput: "long.ex caught"); 15790var compilation = CompileAndVerifyWithMscorlib40(source, new[] { SystemCoreRef, CSharpRef }, expectedOutput: "long.ex caught");
CodeGen\CodeGenTupleTest.cs (4)
3474var 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); 4426var 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) }); 17480var comp = CompileAndVerifyWithMscorlib40(source, expectedOutput: "(1, 2)", references: new[] { tupleComp.ToMetadataReference() }); 23502var comp = CompileAndVerifyWithMscorlib40(source, expectedOutput: "42qq", references: s_valueTupleRefs.Concat(new[] { libCompRef }).ToArray(), options: TestOptions.DebugExe, verify: Verification.Fails);
Emit\EmitMetadataTests.cs (2)
193CompileAndVerifyWithMscorlib40(source, new[] { metadataTestLib1, metadataTestLib2 }, assemblyValidator: (assembly) => 210CompileAndVerifyWithMscorlib40(sources, new[] { TestReferences.SymbolsTests.MultiModule.Assembly }, verify: Verification.FailsILVerify, assemblyValidator: (assembly) =>
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Attributes\AttributeTests.cs (1)
8507CompileAndVerifyWithMscorlib40(source5, references: new[] { comp1, comp2 });
Attributes\AttributeTests_Dynamic.cs (1)
1131CompileAndVerifyWithMscorlib40(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)
161var verifier = CompileAndVerifyWithMscorlib40(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2, references: new[] { Net40.References.SystemCore });
Semantics\OverloadResolutionTests.cs (1)
11353CompileAndVerifyWithMscorlib40(code, references: new[] { SystemRuntimeFacadeRef, ValueTupleRef }, expectedOutput: @"
Semantics\SemanticErrorTests.cs (2)
22740CompileAndVerifyWithMscorlib40(source, expectedOutput: "True", references: new[] { Net40.References.SystemCore }, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 22746CompileAndVerifyWithMscorlib40(source, expectedOutput: "True", references: new[] { Net40.References.SystemCore }).VerifyDiagnostics();