37 references to CompileAndVerifyWithMscorlib40
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (25)
CodeGen\CodeGenAsyncTests.cs (1)
2168
CompileAndVerifyWithMscorlib40
(source, new[] { CSharpRef, SystemCoreRef });
CodeGen\CodeGenDeconstructTests.cs (1)
108
var comp =
CompileAndVerifyWithMscorlib40
(source, expectedOutput: "1 hello", references: s_valueTupleRefs, sourceSymbolValidator: validator);
CodeGen\CodeGenDynamicTests.cs (4)
310
var c =
CompileAndVerifyWithMscorlib40
(source, new[] { systemCoreRef, csrtRef, funcRef });
337
CompileAndVerifyWithMscorlib40
(source, new[] { systemCoreRef, csrtRef }, verify: Verification.Fails).VerifyIL("C.F", @"
1093
CompileAndVerifyWithMscorlib40
(source, new[] { SystemCoreRef });
14427
var comp =
CompileAndVerifyWithMscorlib40
(source, expectedOutput: "hello!", references: new[] { ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef, SystemCoreRef });
CodeGen\CodeGenIterators.cs (1)
171
var compilation =
CompileAndVerifyWithMscorlib40
(source, expectedOutput: "12324565");
CodeGen\CodeGenRefConditionalOperatorTests.cs (1)
1065
var comp =
CompileAndVerifyWithMscorlib40
(source, references: new[] { Net40.References.System, ValueTupleRef, Net40.References.SystemCore }, expectedOutput: "00", verify: Verification.FailsPEVerify);
CodeGen\CodeGenRefReadonlyReturnTests.cs (2)
805
var comp =
CompileAndVerifyWithMscorlib40
(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, parseOptions: TestOptions.Regular, verify: Verification.Passes);
883
var comp =
CompileAndVerifyWithMscorlib40
(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, parseOptions: TestOptions.Regular, verify: Verification.Fails);
CodeGen\CodeGenTests.cs (9)
6670
var compilation =
CompileAndVerifyWithMscorlib40
(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"
6927
var compilation =
CompileAndVerifyWithMscorlib40
(source, expectedOutput: @"
10489
CompileAndVerifyWithMscorlib40
(
13410
var compilation =
CompileAndVerifyWithMscorlib40
(code, expectedOutput: "4");
14208
CompileAndVerifyWithMscorlib40
(source, references: new[] { SystemCoreRef, CSharpRef }, expectedOutput: @"0");
15560
var compilation =
CompileAndVerifyWithMscorlib40
(source, new[] { SystemCoreRef, CSharpRef }, expectedOutput: "2");
15631
var compilation =
CompileAndVerifyWithMscorlib40
(source, new[] { SystemCoreRef, CSharpRef }, expectedOutput: "2");
15744
var compilation =
CompileAndVerifyWithMscorlib40
(source, new[] { SystemCoreRef, CSharpRef }, expectedOutput: "long.ex caught");
15790
var compilation =
CompileAndVerifyWithMscorlib40
(source, new[] { SystemCoreRef, CSharpRef }, expectedOutput: "long.ex caught");
CodeGen\CodeGenTupleTest.cs (4)
3474
var 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);
4426
var 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) });
17480
var comp =
CompileAndVerifyWithMscorlib40
(source, expectedOutput: "(1, 2)", references: new[] { tupleComp.ToMetadataReference() });
23502
var comp =
CompileAndVerifyWithMscorlib40
(source, expectedOutput: "42qq", references: s_valueTupleRefs.Concat(new[] { libCompRef }).ToArray(), options: TestOptions.DebugExe, verify: Verification.Fails);
Emit\EmitMetadataTests.cs (2)
193
CompileAndVerifyWithMscorlib40
(source, new[] { metadataTestLib1, metadataTestLib2 }, assemblyValidator: (assembly) =>
210
CompileAndVerifyWithMscorlib40
(sources, new[] { TestReferences.SymbolsTests.MultiModule.Assembly }, verify: Verification.FailsILVerify, assemblyValidator: (assembly) =>
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Attributes\AttributeTests.cs (1)
8507
CompileAndVerifyWithMscorlib40
(source5, references: new[] { comp1, comp2 });
Attributes\AttributeTests_Dynamic.cs (1)
1131
CompileAndVerifyWithMscorlib40
(source, new[] { CSharpRef }, expectedSignatures: new[]
Attributes\AttributeTests_Security.cs (1)
67
CompileAndVerifyWithMscorlib40
(source, symbolValidator: attributeValidator(false), sourceSymbolValidator: attributeValidator(true));
Attributes\AttributeTests_Synthesized.cs (1)
1624
CompileAndVerifyWithMscorlib40
("", references: new[] { moduleReference }, symbolValidator: validateSecurity, verify: Verification.Skipped);
Attributes\AttributeTests_Tuples.cs (4)
108
CompileAndVerifyWithMscorlib40
(s_tuplesTestSource,
238
CompileAndVerifyWithMscorlib40
(s_tuplesTestSource,
946
CompileAndVerifyWithMscorlib40
(src,
1046
CompileAndVerifyWithMscorlib40
(src,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\NonTrailingNamedArgumentsTests.cs (1)
161
var verifier =
CompileAndVerifyWithMscorlib40
(source, expectedOutput: "1 2.", parseOptions: TestOptions.Regular7_2, references: new[] { Net40.References.SystemCore });
Semantics\OverloadResolutionTests.cs (1)
11353
CompileAndVerifyWithMscorlib40
(code, references: new[] { SystemRuntimeFacadeRef, ValueTupleRef }, expectedOutput: @"
Semantics\SemanticErrorTests.cs (2)
22740
CompileAndVerifyWithMscorlib40
(source, expectedOutput: "True", references: new[] { Net40.References.SystemCore }, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(
22746
CompileAndVerifyWithMscorlib40
(source, expectedOutput: "True", references: new[] { Net40.References.SystemCore }).VerifyDiagnostics();