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