68 references to IsCoreClr
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTestBase.cs (1)
38if (ExecutionConditionUtil.IsCoreClr)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (21)
CodeGen\CodeGenDynamicTests.cs (1)
16414if (ExecutionConditionUtil.IsCoreClr)
CodeGen\CodeGenFunctionPointersTests.cs (1)
2490", expectedOutput: ExecutionConditionUtil.IsCoreClr ? "System.Void()" : "System.IntPtr");
CodeGen\CodeGenOverridingAndHiding.cs (1)
1217else if (ExecutionConditionUtil.IsCoreClr || ExecutionConditionUtil.IsDesktop)
CodeGen\CodeGenStackAllocInitializerTests.cs (16)
913var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "" : null, 950var expectedOutput = ExecutionConditionUtil.IsCoreClr ? "123" : null; 1004var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "" : null, 1106var expectedOutput = ExecutionConditionUtil.IsCoreClr ? "123" : null; 1161var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "123" : null, 1205var expectedOutput = ExecutionConditionUtil.IsCoreClr ? "123" : null; 1262var expectedOutput = ExecutionConditionUtil.IsCoreClr ? "1 2.9 3.8" : null; 1317var expectedOutput = ExecutionConditionUtil.IsCoreClr ? "XYZ" : null; 1371var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "12" : null, 1418var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "" : null, 1456var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "" : null, 1497var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsCoreClr ? output : null, 1523CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsCoreClr ? output : null, 1528verifier = CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsCoreClr ? output : null, verify: Verification.Fails); 1579var verifier = CompileAndVerify(source, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "123" : null, 1635var expectedOutput = ExecutionConditionUtil.IsCoreClr ? "1234" : null;
CodeGen\CodeGenTests.cs (1)
10715if (ExecutionConditionUtil.IsCoreClr)
CodeGen\CodeGenTupleTest.cs (1)
27343if (ExecutionConditionUtil.IsCoreClr)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
CodeGen\CodeGenSpanBasedStringConcatTests.cs (1)
5486var verifier = CompileAndVerify(compilation: comp, expectedOutput: RuntimeUtilities.IsCoreClr8OrHigherRuntime ? "scsssssssc" : null, verify: ExecutionConditionUtil.IsCoreClr ? default : Verification.Skipped);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (20)
Attributes\AttributeTests_CallerInfoAttributes.cs (1)
4275var expectedStarPath = ExecutionConditionUtil.IsCoreClr
Attributes\AttributeTests_Synthesized.cs (1)
798verify: ExecutionConditionUtil.IsCoreClr ? Verification.Passes : Verification.Fails);
FirstClassSpanTests.cs (7)
364var expectedOutput = ExecutionConditionUtil.IsCoreClr ? "ArrayTypeMismatchException" : "2"; 513var expectedOutput = ExecutionConditionUtil.IsCoreClr ? "ArrayTypeMismatchException" : "2"; 1026var owner = ExecutionConditionUtil.IsCoreClr ? "string" : "System.ReadOnlySpan<char>"; 1926if (ExecutionConditionUtil.IsCoreClr) 5363if (ExecutionConditionUtil.IsCoreClr) 7304var owner = ExecutionConditionUtil.IsCoreClr ? "string" : "System.ReadOnlySpan<char>"; 7999CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsCoreClr ? "1123" : "1121").VerifyDiagnostics();
Semantics\InlineArrayTests.cs (1)
17043var expectedOutput = ExecutionConditionUtil.IsCoreClr ? "110" : null;
Semantics\RecordTests.cs (10)
12596var verifierA = CompileAndVerify(compA, verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics(); 12636var verifierB = CompileAndVerify(compB, expectedOutput: "(1, 2, 3, 4) (1, 2, 3, 4) (10, 2, 30, 4)", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics(); 12688var verifier = CompileAndVerify(comp, expectedOutput: "(1, 2, 3, 4) (10, 20, 30, 40)", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics(); 12745var verifier = CompileAndVerify(comp, verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics(); 12777var verifier = CompileAndVerify(comp, verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics( 13005var verifier = CompileAndVerify(comp, expectedOutput: "RAN", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics(); 13060var verifier = CompileAndVerify(comp, expectedOutput: "1 RAN 2", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics(); 13182var verifier = CompileAndVerify(comp, expectedOutput: "(1, 2, 42) RAN (10, 20, 42)", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics(); 13222var verifier = CompileAndVerify(comp, expectedOutput: "(1, 2, 42) (10, 20, 42)", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics(); 13502var verifier = CompileAndVerify(comp, expectedOutput: "(1, 2, 3, 4, 100, 200)", verify: ExecutionConditionUtil.IsCoreClr ? Verification.Skipped : Verification.Fails).VerifyDiagnostics();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\DelegateTypeTests.cs (3)
11842CompileAndVerify(comp, expectedOutput: ExecutionConditionUtil.IsCoreClr 16468verify: ExecutionConditionUtil.IsCoreClr ? Verification.Passes : Verification.Skipped, 16469expectedOutput: ExecutionConditionUtil.IsCoreClr ? "callerArgExpression" : null);
Semantics\StructConstructorTests.cs (1)
55bool secondCall = ExecutionConditionUtil.IsCoreClr; // .NET Framework ignores constructor in second call to Activator.CreateInstance<T>().
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Symbols\RequiredMembersTests.cs (5)
3216CompileAndVerify(originalComp, verify: ExecutionConditionUtil.IsCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics(); 3264CompileAndVerify(originalComp, verify: ExecutionConditionUtil.IsCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics(); 3299CompileAndVerify(originalComp, verify: ExecutionConditionUtil.IsCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics(); 3347CompileAndVerify(originalComp, verify: ExecutionConditionUtil.IsCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics(); 3394CompileAndVerify(originalComp, verify: ExecutionConditionUtil.IsCoreClr ? Verification.Passes : Verification.Skipped).VerifyDiagnostics();
Symbols\Source\FileModifierTests.cs (1)
1123ExecutionConditionUtil.IsCoreClr
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
CSharpTestBase.cs (2)
2341if (ExecutionConditionUtil.IsCoreClr) 2359if (ExecutionConditionUtil.IsCoreClr)
Microsoft.CodeAnalysis.Test.Utilities (3)
Assert\ConditionalFactAttribute.cs (3)
166public static bool IsCoreClrUnix => IsCoreClr && IsUnix; 167public static bool IsMonoOrCoreClr => IsMonoDesktop || IsCoreClr; 352public override bool ShouldSkip => !ExecutionConditionUtil.IsCoreClr;
Microsoft.CodeAnalysis.UnitTests (6)
AnalyzerAssemblyLoaderTests.cs (6)
384if (ExecutionConditionUtil.IsCoreClr || loader is ShadowCopyAnalyzerAssemblyLoader) 858if (ExecutionConditionUtil.IsCoreClr || loader is ShadowCopyAnalyzerAssemblyLoader) 1004if (ExecutionConditionUtil.IsCoreClr || loader is ShadowCopyAnalyzerAssemblyLoader) 1142if (ExecutionConditionUtil.IsCoreClr) 1414if (ExecutionConditionUtil.IsCoreClr) 1441Assert.Equal(ExecutionConditionUtil.IsCoreClr ? "1" : "42", sb.ToString());
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
CodeGen\CodeGenTests.vb (1)
669ElseIf ExecutionConditionUtil.IsCoreClr Then
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Semantics\OptionalArgumentTests.vb (1)
2117Dim expectedStarPath = If(ExecutionConditionUtil.IsCoreClr, "/X/A/B/*", "*")
VBCSCompiler.UnitTests (2)
NamedPipeTestUtil.cs (2)
53if (!ExecutionConditionUtil.IsUnix || !ExecutionConditionUtil.IsCoreClr) 77if (!ExecutionConditionUtil.IsUnix || !ExecutionConditionUtil.IsCoreClr)