40 references to IsDesktop
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (10)
CodeGen\CodeGenDisplayClassOptimisationTests.cs (1)
20if (ExecutionConditionUtil.IsDesktop)
CodeGen\CodeGenForEachTests.cs (4)
5368expectedOutput: ExecutionConditionUtil.IsDesktop ? null : "111").VerifyDiagnostics(); 5408expectedOutput: ExecutionConditionUtil.IsDesktop ? null : "222").VerifyDiagnostics(); 5454expectedOutput: ExecutionConditionUtil.IsDesktop ? null : "111").VerifyDiagnostics(); 5535expectedOutput: ExecutionConditionUtil.IsDesktop ? null : "111").VerifyDiagnostics();
CodeGen\CodeGenOverridingAndHiding.cs (1)
1217else if (ExecutionConditionUtil.IsCoreClr || ExecutionConditionUtil.IsDesktop)
CodeGen\CodeGenTests.cs (1)
10730else if (ExecutionConditionUtil.IsDesktop)
CodeGen\CodeGenUsingStatementTests.cs (3)
3170expectedOutput: ExecutionConditionUtil.IsDesktop ? null : "1").VerifyDiagnostics(); 3202expectedOutput: ExecutionConditionUtil.IsDesktop ? null : "2").VerifyDiagnostics(); 3240expectedOutput: ExecutionConditionUtil.IsDesktop ? null : "1").VerifyDiagnostics();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
RefUnsafeInIteratorAndAsyncTests.cs (1)
15=> ExecutionConditionUtil.IsDesktop ? null : expectedOutput;
Semantics\InlineArrayTests.cs (1)
23342var verifier = CompileAndVerify(src, expectedOutput: ExecutionConditionUtil.IsDesktop ? null : "042",
Semantics\PrimaryConstructorTests.cs (3)
9119".Replace("[mscorlib]", ExecutionConditionUtil.IsDesktop ? "[mscorlib]" : "[netstandard]")); 9310".Replace("[netstandard]", ExecutionConditionUtil.IsDesktop ? "[mscorlib]" : "[netstandard]")); 16042".Replace("[mscorlib]", ExecutionConditionUtil.IsDesktop ? "[mscorlib]" : "[netstandard]"));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (14)
Semantics\DelegateTypeTests.cs (4)
60private static readonly string s_expressionOfTDelegate0ArgTypeName = ExecutionConditionUtil.IsDesktop ? 63private static readonly string s_expressionOfTDelegate1ArgTypeName = ExecutionConditionUtil.IsDesktop ? 66private static readonly string s_libPrefix = ExecutionConditionUtil.IsDesktop ? "mscorlib" : "netstandard"; 67private static readonly string s_corePrefix = ExecutionConditionUtil.IsDesktop ? "System.Core" : "netstandard";
Semantics\NullableReferenceTypesTests.cs (5)
138543verify: ExecutionConditionUtil.IsDesktop ? Verification.Skipped : Verification.Passes, 138581verify: ExecutionConditionUtil.IsDesktop ? Verification.Skipped : Verification.Passes, 138612verify: ExecutionConditionUtil.IsDesktop ? Verification.Skipped : Verification.Passes, 138646verify: ExecutionConditionUtil.IsDesktop ? Verification.Skipped : Verification.Passes, 138691verify: ExecutionConditionUtil.IsDesktop ? Verification.Skipped : Verification.Passes,
Semantics\QueryTests.cs (3)
4601expectedOutput: ExecutionConditionUtil.IsDesktop ? null : "111").VerifyDiagnostics(); 4645expectedOutput: ExecutionConditionUtil.IsDesktop ? null : "222").VerifyDiagnostics(); 4695expectedOutput: ExecutionConditionUtil.IsDesktop ? null : "111").VerifyDiagnostics();
Semantics\RefLocalsAndReturnsTests.cs (2)
3296var expectedOutput = ExecutionConditionUtil.IsDesktop ? null : "56"; 3459var expectedOutput = ExecutionConditionUtil.IsDesktop ? null : "55";
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Symbols\CheckedUserDefinedOperatorsTests.cs (3)
5771ExecutionConditionUtil.IsDesktop ? 6039ExecutionConditionUtil.IsDesktop ? 6155ExecutionConditionUtil.IsDesktop ?
Microsoft.CodeAnalysis.Test.Utilities (4)
Assert\ConditionalFactAttribute.cs (4)
159public static bool IsWindowsDesktop => IsWindows && IsDesktop; 165public static bool IsCoreClr => !IsDesktop; 358public override bool ShouldSkip => !ExecutionConditionUtil.IsDesktop; 364public override bool ShouldSkip => MonoHelpers.IsRunningOnMono() || !ExecutionConditionUtil.IsDesktop;
Microsoft.CodeAnalysis.UnitTests (3)
AnalyzerAssemblyLoaderTests.cs (3)
697if (ExecutionConditionUtil.IsDesktop && loader is ShadowCopyAnalyzerAssemblyLoader) 916if (ExecutionConditionUtil.IsDesktop && loader is ShadowCopyAnalyzerAssemblyLoader) 1063if (ExecutionConditionUtil.IsDesktop && loader is ShadowCopyAnalyzerAssemblyLoader)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
CodeGen\CodeGenTests.vb (1)
656If (ExecutionConditionUtil.IsDesktop) Then