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