268 references to CSharpRef
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (136)
CodeGen\CodeGenAsyncIteratorTests.cs (1)
574var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, references: new[] { CSharpRef }, TestOptions.ReleaseExe);
CodeGen\CodeGenAsyncLocalsTests.cs (1)
482CompileAndVerify(source, expectedOutput: expected, references: new[] { CSharpRef });
CodeGen\CodeGenAsyncSpillTests.cs (2)
2252CompileAndVerify(source, expected, references: new[] { CSharpRef }); 2750CompileAndVerify(source, "0", references: new[] { CSharpRef });
CodeGen\CodeGenAsyncTests.cs (1)
2164CompileAndVerifyWithMscorlib40(source, new[] { CSharpRef, SystemCoreRef });
CodeGen\CodeGenAwaitUsingTests.cs (3)
922var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, references: new[] { CSharpRef }); 949var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, references: new[] { CSharpRef }); 1193var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, references: new[] { CSharpRef });
CodeGen\CodeGenDeconstructTests.cs (9)
709var comp = CompileAndVerify(source, expectedOutput: "1 hello", references: new[] { CSharpRef }); 748var comp = CompileAndVerify(source, expectedOutput: "initial modified 1 hello", references: new[] { CSharpRef }); 836var comp = CompileAndVerify(source, expectedOutput: "1 hello", references: new[] { CSharpRef }); 4797var comp = CompileAndVerify(source, expectedOutput: "hello world", references: new[] { CSharpRef }); 4820var comp = CompileAndVerify(source, expectedOutput: "3 4", references: new[] { CSharpRef }); 4849var comp = CompileAndVerify(source, expectedOutput: "hello world", references: new[] { CSharpRef }); 4872var comp = CompileAndVerify(source, expectedOutput: "hello world", references: new[] { CSharpRef }); 4901var comp = CompileAndVerify(source, expectedOutput: "hello world", references: new[] { CSharpRef }); 4925var comp = CompileAndVerify(source, expectedOutput: "3 4", references: new[] { CSharpRef });
CodeGen\CodeGenDynamicTests.cs (14)
38references = references ?? new[] { SystemCoreRef, CSharpRef }; 7466new[] { new CSharpCompilationReference(lib), SystemCoreRef, CSharpRef }); 7563new[] { new CSharpCompilationReference(lib), SystemCoreRef, CSharpRef }, 11212CompileAndVerifyIL(source, "C.M", references: new MetadataReference[] { SystemCoreRef, CSharpRef, vbRef }, expectedOptimizedIL: @" 11307CompileAndVerifyIL(source, "C.M", references: new MetadataReference[] { SystemCoreRef, CSharpRef, vbRef }, expectedOptimizedIL: @" 11409CompileAndVerifyIL(source, "C.M", references: new MetadataReference[] { SystemCoreRef, CSharpRef, vbRef }, expectedOptimizedIL: @" 11575CompileAndVerifyIL(source, "C.M", references: new MetadataReference[] { SystemCoreRef, CSharpRef, ilRef }, expectedOptimizedIL: @" 14062var comp = CompileAndVerifyWithMscorlib40(source, expectedOutput: "hello!", references: new[] { ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef, SystemCoreRef }); 15490var comp = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "321 123", references: new[] { CSharpRef }); 15512CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "True", references: new[] { CSharpRef }), 15615CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "True", references: new[] { CSharpRef }), 15741CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "True", references: new[] { CSharpRef }), 15852CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "True", references: new[] { CSharpRef }), 15969CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "True", references: new[] { CSharpRef }),
CodeGen\CodeGenNullCoalescingAssignmentTests.cs (3)
1768}", new[] { CSharpRef }, expectedOutput: @" 2066", new[] { CSharpRef }, expectedOutput: @" 2324CompileAndVerify(source, new[] { CSharpRef }, expectedOutput: "");
CodeGen\CodeGenOperators.cs (1)
1030references: new[] { CSharpRef },
CodeGen\CodeGenScriptTests.cs (1)
236MetadataReference[] references = { SystemCoreRef, CSharpRef };
CodeGen\CodeGenShortCircuitOperatorTests.cs (29)
1057var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: "NULL#System.Int32[]"); 1203var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: "NULL#y"); 1226var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: "NULL#-1"); 1250var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: "NULL#y"); 1274var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: "NULL#3"); 1298var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: "NULL#3"); 1516var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: ""); 1634var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: @"3 2624var comp = CompileAndVerify(source, references: new MetadataReference[] { CSharpRef }, expectedOutput: @"False 2683var comp = CompileAndVerify(source, references: new MetadataReference[] { CSharpRef }, expectedOutput: @"False 2748var c = CreateCompilationWithMscorlib45(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 2817var c = CreateCompilationWithMscorlib45(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 2898var c = CreateCompilationWithMscorlib45(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 2968var c = CreateCompilationWithMscorlib45(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 3051var c = CreateCompilationWithMscorlib45(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 3134var c = CreateCompilationWithMscorlib45(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 3184var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: @"System.Nullable`1[System.Int64]"); 3241var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: @"System.Nullable`1[System.Int64]"); 3295var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: @""); 3366var comp = CreateCompilationWithMscorlib45(source, references: new[] { CSharpRef }); 3415var comp = CreateCompilationWithMscorlib45(source, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe); 4136var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: @" > 5876source, references: new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, options: TestOptions.DebugExe); 6204var c = CreateCompilationWithMscorlib45(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 6241var c = CreateCompilationWithMscorlib45(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 6284var c = CreateCompilationWithMscorlib45(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 6320var c = CreateCompilationWithMscorlib45(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 6363var c = CreateCompilationWithMscorlib45(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 6398var c = CreateCompilationWithMscorlib45(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe);
CodeGen\CodeGenTests.cs (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");
CodeGen\CodeGenTupleTest.cs (14)
5585var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: expectedOutput); 5603var comp = CreateCompilation(source, references: new[] { CSharpRef }); 5645var comp = CompileAndVerify(source, expectedOutput: "Item1: 2 Rest: (2, 2)", references: new[] { CSharpRef }); 5667var comp = CompileAndVerify(source, expectedOutput: "a:1, h:8, i:9, Item9:9, Rest:(8, 9)", references: new[] { CSharpRef }); 5691var comp = CompileAndVerify(source, expectedOutput: "done", references: new[] { CSharpRef }); 5726var comp = CompileAndVerify(source, expectedOutput: expectedOutput, references: new[] { CSharpRef }); 9851var comp = CreateCompilation(source, references: new[] { CSharpRef }); 9906var comp = CreateCompilation(source, references: new[] { CSharpRef }); 9994var comp = CreateCompilation(source, references: new[] { CSharpRef }); 10033var comp = CreateCompilation(source, references: new[] { CSharpRef }); 10060var comp = CreateCompilation(source, references: new[] { CSharpRef }); 19809var comp = CreateCompilationWithMscorlib40(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef, SystemCoreRef }); 19857var comp = CreateCompilation(source, references: new[] { CSharpRef }); 21384var comp = CreateCompilation(source, references: new[] { CSharpRef });
CodeGen\ForeachTest.cs (1)
1273CompileAndVerify(text, new[] { CSharpRef }, expectedOutput: expectedOutput);
CodeGen\ForLoopsTests.cs (1)
1546CompileAndVerify(text, references: new MetadataReference[] { CSharpRef }, expectedOutput: @"Initialize
CodeGen\ObjectAndCollectionInitializerTests.cs (3)
1348var compVerifier = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: expectedOutput); 1486var compVerifier = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: expectedOutput); 1870var compVerifier = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: expectedOutput);
CodeGen\PatternTests.cs (1)
3237var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, references: new[] { CSharpRef });
Emit\CompilationEmitTests.cs (1)
5411var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll, references: new[] { CSharpRef });
Emit\DeterministicTests.cs (1)
55var compilation = CreateEmptyCompilation(source, assemblyName: "DeterminismTest", references: new[] { MscorlibRef, SystemCoreRef, CSharpRef }, options: options);
Emit\EditAndContinue\EditAndContinueClosureTests.cs (1)
3793var compilation0 = CreateCompilationWithMscorlib40(new[] { source0.Tree }, references: new[] { SystemCoreRef, CSharpRef }, options: ComSafeDebugDll);
Emit\EditAndContinue\EditAndContinueStateMachineTests.cs (12)
1135var compilation0 = CreateCompilationWithMscorlib45(new[] { source0.Tree }, new[] { SystemCoreRef, CSharpRef }, options: ComSafeDebugDll); 1560var compilation0 = CreateCompilationWithMscorlib45(new[] { source0.Tree }, new[] { SystemCoreRef, CSharpRef }, options: ComSafeDebugDll); 1999var compilation0 = CreateCompilationWithMscorlib45(new[] { source0.Tree }, new[] { SystemCoreRef, CSharpRef }, options: ComSafeDebugDll); 2589var compilation0 = CreateCompilationWithMscorlib45(new[] { source0.Tree }, new[] { SystemCoreRef, CSharpRef }, options: ComSafeDebugDll); 2761var compilation0 = CreateCompilationWithMscorlib45(new[] { source0.Tree }, new[] { SystemCoreRef, CSharpRef }, options: ComSafeDebugDll); 4289var compilation0 = CreateCompilationWithMscorlib45(new[] { source0.Tree }, new[] { SystemCoreRef, CSharpRef }, options: ComSafeDebugDll); 4523var compilation0 = CreateCompilationWithMscorlib45(new[] { source0.Tree }, new[] { SystemCoreRef, CSharpRef }, options: ComSafeDebugDll); 4686var compilation0 = CreateCompilationWithMscorlib45(new[] { source0.Tree }, new[] { SystemCoreRef, CSharpRef }, options: ComSafeDebugDll); 5143var compilation0 = CreateCompilationWithMscorlib45(new[] { source0.Tree }, new[] { SystemCoreRef, CSharpRef }, options: ComSafeDebugDll); 6880var compilation0 = CreateCompilationWithMscorlib45(new[] { source0.Tree }, new[] { SystemCoreRef, CSharpRef }, options: ComSafeDebugDll); 7090var compilation0 = CreateCompilationWithMscorlib45(new[] { source0.Tree }, new[] { SystemCoreRef, CSharpRef }, options: ComSafeDebugDll); 9054var compilation0 = CreateCompilationWithMscorlib45(new[] { source0.Tree }, new[] { SystemCoreRef, CSharpRef }, options: ComSafeDebugDll);
Emit\EditAndContinue\EditAndContinueTests.cs (7)
6733var compilation0 = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: options, references: new[] { CSharpRef }); 9882var compilation0 = CreateCompilationWithMscorlib45(new[] { source0.Tree }, new[] { SystemCoreRef, CSharpRef }, options: ComSafeDebugDll); 10472var compilation0 = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugDll); 10538var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll, references: new[] { CSharpRef }); 10623var compilation0 = CreateCompilationWithMscorlib45(new[] { source0.Tree }, new[] { SystemCoreRef, CSharpRef }, options: ComSafeDebugDll); 11065var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular10, options: TestOptions.DebugDll, references: new MetadataReference[] { referencePIA, CSharpRef }); 11153var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll, references: new MetadataReference[] { referencePIA, CSharpRef });
Emit\EditAndContinue\LocalSlotMappingTests.cs (1)
1918references: new[] { CSharpRef });
Emit\NoPiaEmbedTypes.cs (9)
4233references: new MetadataReference[] { new CSharpCompilationReference(piaCompilation, embedInteropTypes: true), CSharpRef }); 4236references: new MetadataReference[] { piaCompilation.EmitToImageReference(embedInteropTypes: true), CSharpRef }); 4293references: new MetadataReference[] { new CSharpCompilationReference(piaCompilation, embedInteropTypes: true), CSharpRef }); 4296references: new MetadataReference[] { piaCompilation.EmitToImageReference(embedInteropTypes: true), CSharpRef }); 4353references: new MetadataReference[] { new CSharpCompilationReference(piaCompilation, embedInteropTypes: true), CSharpRef }); 4356references: new MetadataReference[] { piaCompilation.EmitToImageReference(embedInteropTypes: true), CSharpRef }); 4419references: new MetadataReference[] { new CSharpCompilationReference(piaCompilation, embedInteropTypes: true), CSharpRef }); 4422references: new MetadataReference[] { piaCompilation.EmitToImageReference(embedInteropTypes: true), CSharpRef }); 5378var app_compilation = CreateCompilation(App_cs, new[] { NetImpl_ref, IEvent_ref, CSharpRef }, options: TestOptions.ReleaseExe, assemblyName: "App");
PDB\PDBAsyncTests.cs (6)
546references: new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }) 1366var v = CompileAndVerify(CreateCompilationWithMscorlib45(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 1464var v = CompileAndVerify(CreateCompilationWithMscorlib45(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 1550var v = CompileAndVerify(CreateCompilationWithMscorlib45(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 1694var v = CompileAndVerify(CreateCompilationWithMscorlib45(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 1948var v = CompileAndVerify(CreateCompilationWithMscorlib45(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
PDB\PDBDynamicLocalsTests.cs (1)
44var c = CreateCompilationWithMscorlib40AndSystemCore(source, references: new[] { CSharpRef }, options: TestOptions.DebugDll);
PDB\PDBIteratorTests.cs (3)
1371var v = CompileAndVerify(source, new[] { CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1457var v = CompileAndVerify(source, new[] { CSharpRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1519var v = CompileAndVerify(source, new[] { CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
PDB\PDBTests.cs (5)
383var debug = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugWinMD); 422var release = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.ReleaseWinMD); 7766var c = CreateCompilationWithMscorlib40AndSystemCore(src, references: new[] { CSharpRef, ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.DebugDll); 7813var c = CreateCompilationWithMscorlib40AndSystemCore(src, references: new[] { CSharpRef, ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.DebugExe); 7867var c = CreateCompilationWithMscorlib40AndSystemCore(src, references: new[] { CSharpRef, ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.DebugDll);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (8)
Attributes\AttributeTests_Dynamic.cs (5)
1090CompileAndVerify(source, references: new[] { CSharpRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1134CompileAndVerifyWithMscorlib40(source, new[] { CSharpRef }, expectedSignatures: new[] 1159CompileAndVerify(source, references: new[] { CSharpRef }, expectedSignatures: new[] 1248CompileAndVerify(source, references: new[] { CSharpRef }, expectedSignatures: new[] 1282CompileAndVerify(source, references: new[] { CSharpRef }, expectedSignatures: new[]
Attributes\AttributeTests_Tuples.cs (1)
102ValueTupleRef, SystemRuntimeFacadeRef, SystemCoreRef, CSharpRef
Semantics\PatternMatchingTests.cs (1)
5775var compilation = CreateCompilation(source, references: new MetadataReference[] { CSharpRef }, options: TestOptions.ReleaseExe);
Semantics\PatternSwitchTests.cs (1)
3204source, options: TestOptions.ReleaseDll.WithOptimizationLevel(OptimizationLevel.Release), references: new[] { SystemCoreRef, CSharpRef });
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler.UnitTests (30)
CompileExpressionsTests.cs (1)
411var comp = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugDll);
DeclarationTests.cs (1)
761var compilation0 = CreateCompilation(source, new[] { CSharpRef }, TestOptions.DebugDll);
DynamicTests.cs (19)
46var comp = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugDll); 87var comp = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugDll); 128var comp = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugDll); 169var comp = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugDll); 209var comp = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugDll); 254var comp = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugDll); 303var comp = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugDll); 371var comp = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugDll); 437var comp = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugDll); 535var comp = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugDll); 603var comp = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugDll); 645var comp = CreateCompilation(source, new[] { CSharpRef }, TestOptions.DebugDll); 684var comp = CreateCompilation(source, new[] { CSharpRef }, TestOptions.DebugDll); 723var comp = CreateCompilation(source, new[] { CSharpRef }, TestOptions.DebugDll); 771var comp = CreateCompilation(source, new[] { CSharpRef }, TestOptions.DebugDll); 858var comp = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugDll); 974var comp = CreateCompilation(source, new[] { CSharpRef }, TestOptions.DebugDll); 1263var comp = CreateCompilation(source, new[] { CSharpRef }, TestOptions.DebugDll); 1374var comp = CreateCompilation(source, new[] { CSharpRef }, TestOptions.DebugDll);
ExpressionCompilerTests.cs (3)
1443references: new[] { CSharpRef }); 1499references: new[] { CSharpRef }); 1551references: new[] { CSharpRef });
LocalsTests.cs (5)
536references: new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }); 2047references: new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }); 2118references: new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }); 2188references: new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }); 2302references: new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef });
MissingAssemblyTests.cs (1)
522WithRuntimeInstance(comp, new[] { CSharpRef }, runtime =>
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests_ICoalesceOperation.cs (2)
601var compilation = CreateCompilation(source, references: new[] { CSharpRef }, targetFramework: TargetFramework.Mscorlib40AndSystemCore); 716var compilation = CreateCompilation(source, references: new[] { CSharpRef }, targetFramework: TargetFramework.Mscorlib40AndSystemCore);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (2)
ScriptTests.cs (2)
195, ScriptOptions.Default.WithReferences(MscorlibRef, SystemRef, SystemCoreRef, CSharpRef)); 210, ScriptOptions.Default.WithReferences(MscorlibRef, SystemRef, SystemCoreRef, CSharpRef));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (66)
Semantics\BindingAsyncTasklikeMoreTests.cs (1)
649var compilation = CreateCompilationWithMscorlib45(source, references: new MetadataReference[] { CSharpRef, SystemCoreRef });
Semantics\BindingAsyncTests.cs (6)
1692CreateCompilationWithMscorlib45(source, references: new MetadataReference[] { CSharpRef, SystemCoreRef }).VerifyDiagnostics( 1852CreateCompilationWithMscorlib45(source, references: new MetadataReference[] { CSharpRef, SystemCoreRef }).VerifyDiagnostics( 1907CreateCompilationWithMscorlib45(source, references: new MetadataReference[] { CSharpRef, SystemCoreRef }).VerifyDiagnostics( 2293CreateCompilationWithMscorlib45(source, references: new MetadataReference[] { CSharpRef, SystemCoreRef }).VerifyDiagnostics( 2482CreateCompilationWithMscorlib45(source, references: new MetadataReference[] { CSharpRef, SystemCoreRef }).VerifyDiagnostics( 2840CreateCompilationWithMscorlib45(source, references: new MetadataReference[] { CSharpRef, SystemCoreRef }).VerifyDiagnostics(
Semantics\BindingAwaitTests.cs (1)
2761var comp = CreateCompilationWithMscorlib45(source, new[] { SystemCoreRef, CSharpRef }, TestOptions.ReleaseExe);
Semantics\DelegateTypeTests.cs (1)
1988CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, references: new[] { CSharpRef }, expectedOutput: "Microsoft.CSharp.RuntimeBinder.RuntimeBinderException");
Semantics\DynamicTests.cs (14)
47var c = CreateCompilation("", new[] { CSharpRef }); 242CreateCompilation(source, new[] { CSharpRef }).VerifyDiagnostics(); 265CreateCompilation(source, new[] { CSharpRef }).VerifyDiagnostics( 3545var verifier = CompileAndVerify(source, new[] { CSharpRef }, expectedOutput: "System.Object").VerifyDiagnostics(); 3576CompileAndVerify(source, new[] { CSharpRef }, expectedOutput: "System.Object").VerifyDiagnostics(); 3578var verifier = CompileAndVerify(source, new[] { CSharpRef }, expectedOutput: "System.Object").VerifyDiagnostics(); 3685var verifier = CompileAndVerify(source, new[] { CSharpRef }, options: TestOptions.DebugDll).VerifyDiagnostics(); 3734var compilation2 = CreateCompilation(source2, new[] { reference.WithEmbedInteropTypes(true), CSharpRef }, options: TestOptions.ReleaseExe); 3757var compilation = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugDll); 3784var compilation = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugDll); 3962references: new MetadataReference[] { reference, CSharpRef }); 3985references: new MetadataReference[] { reference, CSharpRef }); 4086references: new MetadataReference[] { reference, CSharpRef }); 4102references: new MetadataReference[] { reference, CSharpRef });
Semantics\ImplicitObjectCreationTests.cs (3)
352var comp = CreateCompilation(source, options: TestOptions.DebugExe, references: new[] { CSharpRef }); 373var comp = CreateCompilation(source, options: TestOptions.DebugExe, references: new[] { CSharpRef }); 3343var comp = CreateCompilation(source, references: new[] { CSharpRef }, options: TestOptions.DebugExe);
Semantics\InterpolationTests.cs (1)
346var verifier = CompileAndVerify(source, new[] { CSharpRef }, expectedOutput: expectedOutput).VerifyDiagnostics();
Semantics\LambdaTests.cs (2)
1881var compilation = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.ReleaseExe); 1919var compilation = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.ReleaseExe);
Semantics\LocalFunctionTests.cs (2)
4904var comp = CreateCompilationWithMscorlib45(source, references: new[] { SystemCoreRef, CSharpRef }); 4929var comp = CreateCompilationWithMscorlib45(source, references: new[] { SystemCoreRef, CSharpRef });
Semantics\MethodTypeInferenceTests.cs (1)
512CreateCompilationWithMscorlib40AndSystemCore(source, new[] { CSharpRef }).VerifyEmitDiagnostics(
Semantics\NameOfTests.cs (1)
424MetadataReference[] references = new[] { SystemCoreRef, CSharpRef };
Semantics\NullableReferenceTypesTests.cs (2)
2075var compilation2 = CreateCompilation(source2, new[] { reference.WithEmbedInteropTypes(true), CSharpRef }, options: TestOptions.ReleaseExe); 113067var comp = CreateCompilation(source2, new[] { ref1.WithEmbedInteropTypes(true), CSharpRef }, options: WithNullableEnable(TestOptions.ReleaseExe));
Semantics\ObjectAndCollectionInitializerTests.cs (3)
254CreateCompilation(source, references: new MetadataReference[] { CSharpRef }).VerifyDiagnostics(); 442CompileAndVerify(source, references: new MetadataReference[] { CSharpRef }). 3896CompileAndVerify(source, new[] { CSharpRef }, expectedOutput: "Initialized");
Semantics\OperatorTests.cs (3)
4839var compilation = CreateCompilation(source, references: new[] { CSharpRef }); 7129var comp = CreateCompilation(source, new[] { CSharpRef }, TestOptions.ReleaseExe); 7176var comp = CreateCompilation(source, new[] { CSharpRef }, TestOptions.ReleaseExe);
Semantics\OutVarTests.cs (5)
1708references: new MetadataReference[] { CSharpRef }, 19281references: new MetadataReference[] { CSharpRef }, 20058CompileAndVerify(text, references: new[] { CSharpRef }).VerifyIL("Cls.Main()", 20112CompileAndVerify(text, references: new[] { CSharpRef }).VerifyIL("Cls.Main()", 20168var comp = CreateCompilation(text, options: TestOptions.DebugDll, references: new[] { CSharpRef });
Semantics\OverloadResolutionTests.cs (1)
6953TestOverloadResolutionWithDiff(source, new[] { CSharpRef, SystemCoreRef });
Semantics\RawInterpolationTests.cs (1)
396var verifier = CompileAndVerify(source, new[] { CSharpRef }, expectedOutput: expectedOutput).VerifyDiagnostics();
Semantics\RefFieldTests.cs (1)
540var comp = CreateCompilation(sourceB, references: new[] { refA, CSharpRef });
Semantics\RefLocalsAndReturnsTests.cs (1)
2742references: new[] { CSharpRef }).VerifyDiagnostics();
Semantics\SemanticErrorTests.cs (6)
7104var verifier = CompileAndVerify(source, new[] { CSharpRef }, parseOptions: TestOptions.Regular11); 7175var verifier = CompileAndVerify(source, new[] { CSharpRef }, parseOptions: TestOptions.Regular11); 18552var comp = CreateCompilationWithMscorlib40AndSystemCore(source, new[] { CSharpRef }); 18612var comp = CreateCompilationWithMscorlib40AndSystemCore(source, new[] { CSharpRef }, options: TestOptions.UnsafeReleaseDll); 24352new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, 24386new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef },
Semantics\SpanStackSafetyTests.cs (8)
1437references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef }, 1454references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef, reference.EmitToImageReference() }, 1471references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef }, 1488references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef, reference.EmitToImageReference() }, 1515references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef }, 1532references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef, reference.EmitToImageReference() }, 1556references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef }, 1573references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef, reference.EmitToImageReference() },
Semantics\StackAllocSpanExpressionsTests.cs (1)
779var references = new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef };
Semantics\TargetTypedDefaultTests.cs (1)
2653var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, references: new[] { CSharpRef }, options: TestOptions.DebugExe);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (17)
Symbols\CustomModifiersTests.cs (3)
2594var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Standard); 2708var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Standard); 2802var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Standard);
Symbols\IndexedPropertyTests.cs (2)
2706var compilation2 = CreateCompilationWithMscorlib40AndSystemCore(source2, new[] { reference1, CSharpRef }, TestOptions.ReleaseExe); 2765var compilation2 = CreateCompilationWithMscorlib40AndSystemCore(source2, new[] { reference1, CSharpRef }, TestOptions.ReleaseExe);
Symbols\MissingSpecialMember.cs (1)
583CSharpRef,
Symbols\Source\CustomModifierCopyTests.cs (11)
740references: new[] { CSharpRef }); 859var comp1 = CreateEmptyCompilation(source1, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef }); 891var comp2 = CreateEmptyCompilation(source2, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef }); 915var comp3 = CreateEmptyCompilation(source3, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef }); 936var comp4 = CreateEmptyCompilation(source4, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef }); 989var comp1 = CreateEmptyCompilation(source1, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef }); 1013var comp2 = CreateEmptyCompilation(source2, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef }); 1027var comp3 = CreateEmptyCompilation(source3, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef }); 1136var comp1 = CreateEmptyCompilation(source1, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef }); 1177var comp2 = CreateEmptyCompilation(source2, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef }); 1205var comp3 = CreateEmptyCompilation(source3, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef });
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
2210references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef },
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (1)
Metadata\WinMdEventTests.cs (1)
334CSharpRef,
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (1)
CSharpFunctionResolverTests.cs (1)
1418var compilation = CreateCompilation(source, references: new[] { CSharpRef });
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (1)
MissingAssemblyTests.vb (1)
353WithRuntimeInstance(comp, {CSharpRef},
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (3)
SymbolsTests\Metadata\WinMdEventTest.vb (1)
221CSharpRef,
SymbolsTests\WellKnownTypeValidationTests.vb (2)
508CSharpRef, 663CSharpRef,