226 references to CSharpRef
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (92)
CodeGen\CodeGenAsyncIteratorTests.cs (1)
586var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, references: new[] { CSharpRef }, TestOptions.ReleaseExe);
CodeGen\CodeGenAsyncLocalsTests.cs (1)
479CompileAndVerify(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)
2168CompileAndVerifyWithMscorlib40(source, new[] { CSharpRef, SystemCoreRef });
CodeGen\CodeGenAwaitUsingTests.cs (3)
1066var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, references: new[] { CSharpRef }); 1093var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, references: new[] { CSharpRef }); 1687var 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 }; 7494new[] { new CSharpCompilationReference(lib), SystemCoreRef, CSharpRef }); 7592new[] { new CSharpCompilationReference(lib), SystemCoreRef, CSharpRef }, 11486CompileAndVerifyIL(source, "C.M", references: new MetadataReference[] { SystemCoreRef, CSharpRef, vbRef }, expectedOptimizedIL: @" 11588CompileAndVerifyIL(source, "C.M", references: new MetadataReference[] { SystemCoreRef, CSharpRef, vbRef }, expectedOptimizedIL: @" 11697CompileAndVerifyIL(source, "C.M", references: new MetadataReference[] { SystemCoreRef, CSharpRef, vbRef }, expectedOptimizedIL: @" 11871CompileAndVerifyIL(source, "C.M", references: new MetadataReference[] { SystemCoreRef, CSharpRef, ilRef }, expectedOptimizedIL: @" 14427var comp = CompileAndVerifyWithMscorlib40(source, expectedOutput: "hello!", references: new[] { ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef, SystemCoreRef }); 15857var comp = CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "321 123", references: new[] { CSharpRef }); 15879CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "True", references: new[] { CSharpRef }), 15982CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "True", references: new[] { CSharpRef }), 16108CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "True", references: new[] { CSharpRef }), 16219CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), expectedOutput: "True", references: new[] { CSharpRef }), 16336CompileAndVerify(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)
1027references: 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 2631var comp = CompileAndVerify(source, references: new MetadataReference[] { CSharpRef }, expectedOutput: @"False 2690var comp = CompileAndVerify(source, references: new MetadataReference[] { CSharpRef }, expectedOutput: @"False 2755var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 2824var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 2905var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 2975var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 3058var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 3141var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 3191var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: @"System.Nullable`1[System.Int64]"); 3248var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: @"System.Nullable`1[System.Int64]"); 3302var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: @""); 3373var comp = CreateCompilationWithMscorlib461(source, references: new[] { CSharpRef }); 3422var comp = CreateCompilationWithMscorlib461(source, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe); 4123var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: @" > 5863source, references: new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, options: TestOptions.DebugExe); 6191var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 6228var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 6271var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 6307var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 6350var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 6385var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe);
CodeGen\CodeGenTests.cs (5)
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 (14)
5590var comp = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: expectedOutput); 5608var comp = CreateCompilation(source, references: new[] { CSharpRef }); 5650var comp = CompileAndVerify(source, expectedOutput: "Item1: 2 Rest: (2, 2)", references: new[] { CSharpRef }); 5672var comp = CompileAndVerify(source, expectedOutput: "a:1, h:8, i:9, Item9:9, Rest:(8, 9)", references: new[] { CSharpRef }); 5696var comp = CompileAndVerify(source, expectedOutput: "done", references: new[] { CSharpRef }); 5731var comp = CompileAndVerify(source, expectedOutput: expectedOutput, references: new[] { CSharpRef }); 9845var comp = CreateCompilation(source, references: new[] { CSharpRef }); 9900var comp = CreateCompilation(source, references: new[] { CSharpRef }); 9988var comp = CreateCompilation(source, references: new[] { CSharpRef }); 10027var comp = CreateCompilation(source, references: new[] { CSharpRef }); 10054var comp = CreateCompilation(source, references: new[] { CSharpRef }); 19803var comp = CreateCompilationWithMscorlib40(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef, SystemCoreRef }); 19851var comp = CreateCompilation(source, references: new[] { CSharpRef }); 21382var 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)
1522var compVerifier = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: expectedOutput); 1660var compVerifier = CompileAndVerify(source, references: new[] { CSharpRef }, expectedOutput: expectedOutput); 2044var 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)
5416var 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);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (16)
Emit\EditAndContinue\LocalSlotMappingTests.cs (1)
2041references: new[] { CSharpRef });
PDB\PDBAsyncTests.cs (6)
546references: new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }) 1366var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 1464var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 1550var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 1694var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 1948var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
PDB\PDBDynamicLocalsTests.cs (1)
49var 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)
471var debug = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugWinMD); 510var release = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.ReleaseWinMD); 7854var c = CreateCompilationWithMscorlib40AndSystemCore(src, references: new[] { CSharpRef, ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.DebugDll); 7901var c = CreateCompilationWithMscorlib40AndSystemCore(src, references: new[] { CSharpRef, ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.DebugExe); 7955var c = CreateCompilationWithMscorlib40AndSystemCore(src, references: new[] { CSharpRef, ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.DebugDll);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (27)
Attributes\AttributeTests_Dynamic.cs (5)
1087CompileAndVerify(source, references: new[] { CSharpRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1131CompileAndVerifyWithMscorlib40(source, new[] { CSharpRef }, expectedSignatures: new[] 1156CompileAndVerify(source, references: new[] { CSharpRef }, expectedSignatures: new[] 1245CompileAndVerify(source, references: new[] { CSharpRef }, expectedSignatures: new[] 1279CompileAndVerify(source, references: new[] { CSharpRef }, expectedSignatures: new[]
Attributes\AttributeTests_Tuples.cs (1)
102ValueTupleRef, SystemRuntimeFacadeRef, SystemCoreRef, CSharpRef
Semantics\CollectionExpressionTests.cs (14)
4511references: new[] { CSharpRef }, 4594references: new[] { CSharpRef }, 4620references: new[] { CSharpRef }, 8245var comp = CreateCompilation(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe); 8308var comp = CreateCompilation(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe); 10139var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe, expectedOutput: "[1, 2, 3], "); 10367var verifier = CompileAndVerify(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe, expectedOutput: "[1, 2, 3], "); 10929CompileAndVerify(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, expectedOutput: "[1, 2, 3], "); 10953var comp = CreateCompilation(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe); 11000var comp = CreateCompilation(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe); 11058var comp = CreateCompilation(new[] { sourceA, sourceB, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe); 11141var comp = CreateCompilation(new[] { sourceA, sourceB, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe); 13928references: new[] { CSharpRef }, 26999var comp = CreateCompilation(source, references: new[] { CSharpRef });
Semantics\OutVarTests.cs (5)
1708references: new MetadataReference[] { CSharpRef }, 19281references: new MetadataReference[] { CSharpRef }, 20069CompileAndVerify(text, references: new[] { CSharpRef }).VerifyIL("Cls.Main()", 20123CompileAndVerify(text, references: new[] { CSharpRef }).VerifyIL("Cls.Main()", 20179var comp = CreateCompilation(text, options: TestOptions.DebugDll, references: new[] { CSharpRef });
Semantics\PatternMatchingTests.cs (1)
5777var compilation = CreateCompilation(source, references: new MetadataReference[] { CSharpRef }, options: TestOptions.ReleaseExe);
Semantics\PatternSwitchTests.cs (1)
3206source, options: TestOptions.ReleaseDll.WithOptimizationLevel(OptimizationLevel.Release), references: new[] { SystemCoreRef, CSharpRef });
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)
198, ScriptOptions.WithReferences(MscorlibRef, SystemRef, SystemCoreRef, CSharpRef)); 213, ScriptOptions.WithReferences(MscorlibRef, SystemRef, SystemCoreRef, CSharpRef));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (67)
Semantics\BindingAsyncTasklikeMoreTests.cs (1)
649var compilation = CreateCompilationWithMscorlib461(source, references: new MetadataReference[] { CSharpRef, SystemCoreRef });
Semantics\BindingAsyncTests.cs (6)
1742CreateCompilationWithMscorlib461(source, references: new MetadataReference[] { CSharpRef, SystemCoreRef }).VerifyDiagnostics( 1902CreateCompilationWithMscorlib461(source, references: new MetadataReference[] { CSharpRef, SystemCoreRef }).VerifyDiagnostics( 1957CreateCompilationWithMscorlib461(source, references: new MetadataReference[] { CSharpRef, SystemCoreRef }).VerifyDiagnostics( 2343CreateCompilationWithMscorlib461(source, references: new MetadataReference[] { CSharpRef, SystemCoreRef }).VerifyDiagnostics( 2532CreateCompilationWithMscorlib461(source, references: new MetadataReference[] { CSharpRef, SystemCoreRef }).VerifyDiagnostics( 2890CreateCompilationWithMscorlib461(source, references: new MetadataReference[] { CSharpRef, SystemCoreRef }).VerifyDiagnostics(
Semantics\BindingAwaitTests.cs (1)
2762var comp = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, TestOptions.ReleaseExe);
Semantics\DelegateTypeTests.cs (1)
3774CompileAndVerify(source, parseOptions: TestOptions.RegularPreview, references: new[] { CSharpRef }, expectedOutput: "Microsoft.CSharp.RuntimeBinder.RuntimeBinderException");
Semantics\DynamicTests.cs (20)
68var c = CreateCompilation("", new[] { CSharpRef }); 263CreateCompilation(source, new[] { CSharpRef }).VerifyDiagnostics(); 286CreateCompilation(source, new[] { CSharpRef }).VerifyDiagnostics( 1552CompileAndVerify(source, new[] { CSharpRef }, 1574CompileAndVerify(new[] { source, UnscopedRefAttributeDefinition }, new[] { CSharpRef }, 1596CompileAndVerify(new[] { source, UnscopedRefAttributeDefinition }, new[] { CSharpRef }, 1616CompileAndVerify(new[] { source, UnscopedRefAttributeDefinition }, new[] { CSharpRef }, 1669CompileAndVerify(new[] { source, UnscopedRefAttributeDefinition }, new[] { CSharpRef }, 1695var verifier = CompileAndVerify(source, new[] { CSharpRef }).VerifyDiagnostics(); 3855var verifier = CompileAndVerify(source, new[] { CSharpRef }, expectedOutput: "System.Object").VerifyDiagnostics(); 3886CompileAndVerify(source, new[] { CSharpRef }, expectedOutput: "System.Object").VerifyDiagnostics(); 3888var verifier = CompileAndVerify(source, new[] { CSharpRef }, expectedOutput: "System.Object").VerifyDiagnostics(); 3995var verifier = CompileAndVerify(source, new[] { CSharpRef }, options: TestOptions.DebugDll).VerifyDiagnostics(); 4044var compilation2 = CreateCompilation(source2, new[] { reference.WithEmbedInteropTypes(true), CSharpRef }, options: TestOptions.ReleaseExe); 4067var compilation = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugDll); 4094var compilation = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugDll); 4272references: new MetadataReference[] { reference, CSharpRef }); 4295references: new MetadataReference[] { reference, CSharpRef }); 4396references: new MetadataReference[] { reference, CSharpRef }); 4412references: 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)
1885var compilation = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.ReleaseExe); 1923var compilation = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.ReleaseExe);
Semantics\LocalFunctionTests.cs (2)
4986var comp = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef, CSharpRef }); 5011var comp = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef, CSharpRef });
Semantics\MethodTypeInferenceTests.cs (1)
513CreateCompilationWithMscorlib40AndSystemCore(source, new[] { CSharpRef }).VerifyEmitDiagnostics(
Semantics\NameOfTests.cs (1)
419MetadataReference[] references = new[] { SystemCoreRef, CSharpRef };
Semantics\NullableReferenceTypesTests.cs (2)
2087var compilation2 = CreateCompilation(source2, new[] { reference.WithEmbedInteropTypes(true), CSharpRef }, options: TestOptions.ReleaseExe); 116795var comp = CreateCompilation(source2, new[] { ref1.WithEmbedInteropTypes(true), CSharpRef }, options: WithNullableEnable(TestOptions.ReleaseExe));
Semantics\ObjectAndCollectionInitializerTests.cs (3)
256CreateCompilation(source, references: new MetadataReference[] { CSharpRef }).VerifyDiagnostics(); 444CompileAndVerify(source, references: new MetadataReference[] { CSharpRef }). 3986CompileAndVerify(source, new[] { CSharpRef }, expectedOutput: "Initialized");
Semantics\OperatorTests.cs (3)
4840var compilation = CreateCompilation(source, references: new[] { CSharpRef }); 7130var comp = CreateCompilation(source, new[] { CSharpRef }, TestOptions.ReleaseExe); 7177var comp = CreateCompilation(source, new[] { CSharpRef }, TestOptions.ReleaseExe);
Semantics\OverloadResolutionTests.cs (1)
6951TestOverloadResolutionWithDiff(source, new[] { CSharpRef, SystemCoreRef });
Semantics\RawInterpolationTests.cs (1)
396var verifier = CompileAndVerify(source, new[] { CSharpRef }, expectedOutput: expectedOutput).VerifyDiagnostics();
Semantics\RefFieldTests.cs (1)
541var comp = CreateCompilation(sourceB, references: new[] { refA, CSharpRef });
Semantics\RefLocalsAndReturnsTests.cs (1)
2843references: new[] { CSharpRef }).VerifyDiagnostics();
Semantics\SemanticErrorTests.cs (6)
7105var verifier = CompileAndVerify(source, new[] { CSharpRef }, parseOptions: TestOptions.Regular11); 7179var verifier = CompileAndVerify(source, new[] { CSharpRef }, parseOptions: TestOptions.Regular11); 18710var comp = CreateCompilationWithMscorlib40AndSystemCore(source, new[] { CSharpRef }); 18782var comp = CreateCompilationWithMscorlib40AndSystemCore(source, new[] { CSharpRef }, options: TestOptions.UnsafeReleaseDll); 24554new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, 24588new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef },
Semantics\SpanStackSafetyTests.cs (8)
1929references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef }, 1946references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef, reference.EmitToImageReference() }, 1963references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef }, 1980references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef, reference.EmitToImageReference() }, 2007references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef }, 2024references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef, reference.EmitToImageReference() }, 2048references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef }, 2065references: 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)
591CSharpRef,
Symbols\Source\CustomModifierCopyTests.cs (11)
883references: new[] { CSharpRef }); 1002var comp1 = CreateEmptyCompilation(source1, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef }); 1034var comp2 = CreateEmptyCompilation(source2, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef }); 1058var comp3 = CreateEmptyCompilation(source3, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef }); 1079var comp4 = CreateEmptyCompilation(source4, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef }); 1132var comp1 = CreateEmptyCompilation(source1, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef }); 1156var comp2 = CreateEmptyCompilation(source2, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef }); 1170var comp3 = CreateEmptyCompilation(source3, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef }); 1279var comp1 = CreateEmptyCompilation(source1, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef }); 1320var comp2 = CreateEmptyCompilation(source2, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef }); 1348var comp3 = CreateEmptyCompilation(source3, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef });
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
2297references: 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 });