196 references to RuntimeUtilities
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTestBase.cs (1)
62
var buildPaths =
RuntimeUtilities
.CreateBuildPaths(workingDirectory, sdkDirectory: SdkDirectory);
CommandLineTests.cs (1)
8434
RuntimeUtilities
.CreateBuildPaths(WorkingDirectory, sdkDirectory),
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenFunctionPointersTests.cs (2)
6275
expectedOutput:
RuntimeUtilities
.IsCoreClrRuntime ? expectedOutput : null,
6285
expectedOutput:
RuntimeUtilities
.IsCoreClrRuntime ? expectedOutput : null,
CodeGen\CodeGenOverridingAndHiding.cs (1)
1196
Assert.Equal(
RuntimeUtilities
.IsCoreClrRuntime, compilation.Assembly.RuntimeSupportsCovariantReturnsOfClasses);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (121)
CodeGen\CodeGenSpanBasedStringConcatTests.cs (114)
37
var comp = CompileAndVerify(source, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "sccs" : null, targetFramework: TargetFramework.Net80, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
93
var comp = CompileAndVerify(source, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "sccs" : null, targetFramework: TargetFramework.Net80, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
169
var comp = CompileAndVerify(source, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? expectedOutput : null, targetFramework: TargetFramework.Net80, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
230
var comp = CompileAndVerify(source, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "ab" : null, targetFramework: TargetFramework.Net80, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
282
var comp = CompileAndVerify(source, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "ab" : null, targetFramework: TargetFramework.Net80, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
336
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "cc" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
389
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "sccs" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
444
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "ab" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
488
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "ab" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
538
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "sccs" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
651
var verifier = CompileAndVerify(compilation: comp, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
726
var verifier = CompileAndVerify(compilation: comp, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
800
var verifier = CompileAndVerify(compilation: comp, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
850
var comp = CompileAndVerify(source, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "sc" : null, targetFramework: TargetFramework.Net80, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1004
var comp = CompileAndVerify(source, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "sccs" : null, targetFramework: TargetFramework.Net80, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1073
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "cssscsssccsc" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1183
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "cssscsssccsc" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1287
var comp = CompileAndVerify(source, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "scs" : null, targetFramework: TargetFramework.Net80, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1363
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? expectedOutput : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1474
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "aab" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1540
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "aab" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1605
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "scscsc" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1666
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "cssscsssccsc" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1746
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "abc" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1792
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "abc" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1851
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "cssscsssccsc" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1938
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "abccab" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
1991
var comp = CompileAndVerify(source, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "abccab" : null, targetFramework: TargetFramework.Net80, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
2059
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "abccab" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
2192
var verifier = CompileAndVerify(compilation: comp, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
2270
var verifier = CompileAndVerify(compilation: comp, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
2347
var verifier = CompileAndVerify(compilation: comp, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
2398
var comp = CompileAndVerify(source, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "scs" : null, targetFramework: TargetFramework.Net80, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
2597
var comp = CompileAndVerify(source, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "cssscsssccsc" : null, targetFramework: TargetFramework.Net80, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
2714
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "csssscsssscssssccscsscsccssc" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
2902
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "csssscsssscssssccscsscsccssc" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3090
var comp = CompileAndVerify(source, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "scss" : null, targetFramework: TargetFramework.Net80, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3178
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? expectedOutput : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3363
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "aaab" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3438
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "abab" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3514
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "scsscsscsscsscsscs" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3587
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "csssscsssscssssccscsscsccssc" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3708
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "abcd" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3756
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "abcd" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3826
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "csssscsssscssssccscsscsccssc" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
3960
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "abccccabcabc" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4031
var comp = CompileAndVerify(source, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "abccccabcabc" : null, targetFramework: TargetFramework.Net80, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4136
var comp = CompileAndVerify(source, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "abcdabdccdabdcabcabddabc" : null, targetFramework: TargetFramework.Net80, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4292
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "abcd" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4345
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "abcddabc" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4401
var comp = CompileAndVerify(source, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "abcddabc" : null, targetFramework: TargetFramework.Net80, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4474
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "abccccabcabc" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4564
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "abcdabdccdabdcabcabddabc" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4688
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "abcddabc" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4845
var verifier = CompileAndVerify(compilation: comp, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
4926
var verifier = CompileAndVerify(compilation: comp, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
5006
var verifier = CompileAndVerify(compilation: comp, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
5058
var comp = CompileAndVerify(source, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "sccs" : null, targetFramework: TargetFramework.Net80, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
5305
var comp = CompileAndVerify(source, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "csssscsssscssssccscsscsccssc" : null, targetFramework: TargetFramework.Net80, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
5486
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "scsssssssc" : null, verify: ExecutionConditionUtil.IsCoreClr ? default : Verification.Skipped);
5605
var comp = CompileAndVerify(source, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "sscss" : null, targetFramework: TargetFramework.Net80, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
5676
var verifier = CompileAndVerify(compilation: comp, expectedOutput:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? "abcde" : null, verify:
RuntimeUtilities
.IsCoreClr8OrHigherRuntime ? default : Verification.Skipped);
Emit\EditAndContinue\EditAndContinueTests.cs (7)
1087
if (
RuntimeUtilities
.IsCoreClr9OrHigherRuntime)
1488
if (
RuntimeUtilities
.IsCoreClr9OrHigherRuntime)
1555
if (
RuntimeUtilities
.IsCoreClr9OrHigherRuntime)
1748
if (
RuntimeUtilities
.IsCoreClr9OrHigherRuntime)
3255
if (
RuntimeUtilities
.IsCoreClr9OrHigherRuntime)
3344
if (
RuntimeUtilities
.IsCoreClr9OrHigherRuntime)
7463
if (
RuntimeUtilities
.IsCoreClr9OrHigherRuntime)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (38)
Attributes\InternalsVisibleToAndStrongNameTests.cs (1)
1539
var corlibName =
RuntimeUtilities
.IsCoreClrRuntime ? "netstandard" : "mscorlib";
Semantics\PrimaryConstructorTests.cs (20)
16584
".Replace("[netstandard]",
RuntimeUtilities
.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
16789
".Replace("[netstandard]",
RuntimeUtilities
.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
16834
(
RuntimeUtilities
.IsCoreClrRuntime ?
17073
").Replace("[netstandard]",
RuntimeUtilities
.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
17091
(
RuntimeUtilities
.IsCoreClrRuntime ?
17337
").Replace("[netstandard]",
RuntimeUtilities
.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
17419
".Replace("[netstandard]",
RuntimeUtilities
.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
17491
".Replace("[netstandard]",
RuntimeUtilities
.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
17604
".Replace("[netstandard]",
RuntimeUtilities
.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
17711
".Replace("[netstandard]",
RuntimeUtilities
.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
17944
".Replace("[netstandard]",
RuntimeUtilities
.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
18174
".Replace("[netstandard]",
RuntimeUtilities
.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
18231
(
RuntimeUtilities
.IsCoreClrRuntime ?
18500
").Replace("[netstandard]",
RuntimeUtilities
.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
18525
(
RuntimeUtilities
.IsCoreClrRuntime ?
18816
").Replace("[netstandard]",
RuntimeUtilities
.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
19012
".Replace("[netstandard]",
RuntimeUtilities
.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
19209
".Replace("[netstandard]",
RuntimeUtilities
.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
19309
".Replace("[netstandard]",
RuntimeUtilities
.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
19390
".Replace("[netstandard]",
RuntimeUtilities
.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
Semantics\RecordTests.cs (17)
10716
var comp = CreateCompilation(
RuntimeUtilities
.IsCoreClrRuntime ? source : new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.NetLatest);
10722
Assert.Equal(
RuntimeUtilities
.IsCoreClrRuntime, comp.Assembly.RuntimeSupportsCovariantReturnsOfClasses);
10723
Assert.Equal(
RuntimeUtilities
.IsCoreClrRuntime, comp.SupportsRuntimeCapability(RuntimeCapability.CovariantReturnsOfClasses));
12595
var compA = CreateCompilation(
RuntimeUtilities
.IsCoreClrRuntime ? sourceA : new[] { sourceA, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.NetLatest);
12634
var compB = CreateCompilation(
RuntimeUtilities
.IsCoreClrRuntime ? sourceB : new[] { sourceB, IsExternalInitTypeDefinition }, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.NetLatest);
15796
var comp = CreateCompilation(
RuntimeUtilities
.IsCoreClrRuntime ? source : new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.NetLatest);
15806
Assert.Equal(
RuntimeUtilities
.IsCoreClrRuntime, comp.Assembly.RuntimeSupportsCovariantReturnsOfClasses);
15807
Assert.Equal(
RuntimeUtilities
.IsCoreClrRuntime, comp.SupportsRuntimeCapability(RuntimeCapability.CovariantReturnsOfClasses));
20992
var comp = CreateCompilation(
RuntimeUtilities
.IsCoreClrRuntime ? src : new[] { src, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.NetLatest);
21022
var verifier = CompileAndVerify(
RuntimeUtilities
.IsCoreClrRuntime ? src2 : new[] { src2, IsExternalInitTypeDefinition },
21040
if (
RuntimeUtilities
.IsCoreClrRuntime)
23616
Assert.Equal(
RuntimeUtilities
.IsCoreClrRuntime, comp.Assembly.RuntimeSupportsCovariantReturnsOfClasses);
23617
Assert.Equal(
RuntimeUtilities
.IsCoreClrRuntime, comp.SupportsRuntimeCapability(RuntimeCapability.CovariantReturnsOfClasses));
25669
Assert.Equal(
RuntimeUtilities
.IsCoreClrRuntime, c.Assembly.RuntimeSupportsCovariantReturnsOfClasses);
25670
Assert.Equal(
RuntimeUtilities
.IsCoreClrRuntime, c.SupportsRuntimeCapability(RuntimeCapability.CovariantReturnsOfClasses));
25980
Assert.Equal(
RuntimeUtilities
.IsCoreClrRuntime, comp.Assembly.RuntimeSupportsCovariantReturnsOfClasses);
25981
Assert.Equal(
RuntimeUtilities
.IsCoreClrRuntime, comp.SupportsRuntimeCapability(RuntimeCapability.CovariantReturnsOfClasses));
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (3)
EndToEndTests.cs (3)
180
int numberFluentCalls = (IntPtr.Size, ExecutionConditionUtil.Configuration,
RuntimeUtilities
.IsDesktopRuntime, RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) switch
189
_ => throw new Exception($"Unexpected configuration {IntPtr.Size * 8}-bit {ExecutionConditionUtil.Configuration}, Desktop: {
RuntimeUtilities
.IsDesktopRuntime}")
219
throw new Exception($"Depth: {i}, Bytes: {IntPtr.Size}, Config: {ExecutionConditionUtil.Configuration}, Desktop: {
RuntimeUtilities
.IsDesktopRuntime}", e);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (2)
CommandLineRunnerTests.cs (1)
50
var iteratorType =
RuntimeUtilities
.IsCoreClr9OrHigherRuntime
ObjectFormatterTests.cs (1)
511
var iteratorType =
RuntimeUtilities
.IsCoreClr9OrHigherRuntime
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\AnonymousFunctionTests.cs (1)
660
if (
RuntimeUtilities
.IsCoreClrRuntime)
Semantics\InheritanceBindingTests.cs (4)
4989
Assert.Equal(
RuntimeUtilities
.IsCoreClrRuntime, comp.Assembly.RuntimeSupportsCovariantReturnsOfClasses);
4990
Assert.Equal(
RuntimeUtilities
.IsCoreClrRuntime, comp.SupportsRuntimeCapability(RuntimeCapability.CovariantReturnsOfClasses));
5050
Assert.Equal(
RuntimeUtilities
.IsCoreClrRuntime, compilation.Assembly.RuntimeSupportsCovariantReturnsOfClasses);
5051
Assert.Equal(
RuntimeUtilities
.IsCoreClrRuntime, compilation.SupportsRuntimeCapability(RuntimeCapability.CovariantReturnsOfClasses));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\SymbolErrorTests.cs (2)
7961
Assert.Equal(
RuntimeUtilities
.IsCoreClrRuntime, comp.Assembly.RuntimeSupportsCovariantReturnsOfClasses);
18814
Assert.Equal(
RuntimeUtilities
.IsCoreClrRuntime, comp.Assembly.RuntimeSupportsCovariantReturnsOfClasses);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
CSharpTestBase.cs (1)
1247
if (
RuntimeUtilities
.IsCoreClrRuntime)
MockCSharpCompiler.cs (1)
40
private static BuildPaths CreateBuildPaths(string workingDirectory, string sdkDirectory = null) =>
RuntimeUtilities
.CreateBuildPaths(workingDirectory, sdkDirectory);
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
CSharpScriptTestBase.cs (1)
39
var clientDir = Path.GetDirectoryName(
RuntimeUtilities
.GetAssemblyLocation(typeof(CSharpScriptTestBase)))!;
Microsoft.CodeAnalysis.Test.Utilities (10)
Assert\ConditionalFactAttribute.cs (1)
158
public static bool IsDesktop =>
RuntimeUtilities
.IsDesktopRuntime;
Compilation\IRuntimeEnvironment.cs (1)
27
private static readonly Lazy<IRuntimeEnvironmentFactory> s_lazyFactory = new Lazy<IRuntimeEnvironmentFactory>(
RuntimeUtilities
.GetRuntimeEnvironmentFactory);
Metadata\IlasmUtilities.cs (3)
44
Path.GetDirectoryName(
RuntimeUtilities
.GetAssemblyLocation(typeof(object))),
49
var directory = Path.GetDirectoryName(
RuntimeUtilities
.GetAssemblyLocation(typeof(
RuntimeUtilities
)));
TargetFrameworkUtil.cs (4)
170
public static ImmutableArray<MetadataReference> NetLatest =>
RuntimeUtilities
.IsCoreClrRuntime ? NetCoreApp.References : NetFramework.References;
171
public static ImmutableArray<MetadataReference> StandardReferences =>
RuntimeUtilities
.IsCoreClrRuntime ? NetStandard20References : NetFramework.Standard;
172
public static MetadataReference StandardCSharpReference =>
RuntimeUtilities
.IsCoreClrRuntime ? NetStandard20.ExtraReferences.MicrosoftCSharp : NetFramework.MicrosoftCSharp;
173
public static MetadataReference StandardVisualBasicReference =>
RuntimeUtilities
.IsCoreClrRuntime ? NetStandard20.ExtraReferences.MicrosoftVisualBasic : NetFramework.MicrosoftVisualBasic;
TestBase.cs (1)
91
public static readonly AssemblyName RuntimeCorLibName =
RuntimeUtilities
.IsCoreClrRuntime
Microsoft.CodeAnalysis.UnitTests (4)
Collections\List\SegmentedList.Generic.cs (2)
64
protected override bool Enumerator_Empty_Current_UndefinedOperation_Throws =>
RuntimeUtilities
.IsCoreClr8OrHigherRuntime;
89
protected override bool Enumerator_Empty_Current_UndefinedOperation_Throws =>
RuntimeUtilities
.IsCoreClr8OrHigherRuntime;
CorLibTypesTests.cs (2)
239
string value = (
RuntimeUtilities
.IsCoreClrRuntime && !
RuntimeUtilities
.IsCoreClr6Runtime)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Emit\EditAndContinue\EditAndContinueTests.vb (1)
4662
Using New EditAndContinueTest(references:=If(
RuntimeUtilities
.IsCoreClrRuntime, Nothing, {SystemXmlLinqRef})).
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
MockVbi.vb (1)
19
Return
RuntimeUtilities
.CreateBuildPaths(workingDirectory)
MockVisualBasicCompiler.vb (1)
48
Return
RuntimeUtilities
.CreateBuildPaths(workingDirectory, tempDirectory:=tempDirectory)