89 references to PlatformDetection
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\Devices\ComputerInfoTests.cs (1)
21if (PlatformDetection.IsWindows)
System.Drawing.Common.Tests (74)
mono\System.Drawing.Imaging\BmpCodecTests.cs (2)
236[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")]
mono\System.Drawing.Imaging\GifCodecTests.cs (2)
104[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")]
mono\System.Drawing.Imaging\IconCodecTests.cs (10)
127[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")] 323[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")] 541[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")] 745[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")] 1520[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")]
mono\System.Drawing.Imaging\JpegCodecTests.cs (5)
107[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindows7), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")] 222[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")]
mono\System.Drawing.Imaging\TiffCodecTests.cs (2)
114[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")]
mono\System.Drawing\BitmapTests.cs (14)
560[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")] 574[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")] 600[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")] 616[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")] 629[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")] 655[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")] 670[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")]
mono\System.Drawing\GraphicsTests.cs (3)
2196if (PlatformDetection.IsArmOrArm64Process) 2230if (PlatformDetection.IsArmOrArm64Process) 2275if (PlatformDetection.IsArmOrArm64Process)
System\Drawing\BitmapTests.cs (6)
728if (PlatformDetection.IsWindows7) 733if (PlatformDetection.IsArmOrArm64Process) 1060[ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")] 1462[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")]
System\Drawing\CharacterRangeTests.cs (1)
69if (!PlatformDetection.IsNetFramework)
System\Drawing\Drawing2D\BlendTests.cs (2)
32[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotIntMaxValueArrayIndexSupported))]
System\Drawing\Drawing2D\ColorBlendTests.cs (2)
32[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotIntMaxValueArrayIndexSupported))]
System\Drawing\FontConverterTests.cs (3)
18if (PlatformDetection.IsWindows) 82[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotBuiltWithAggressiveTrimming))]
System\Drawing\FontTests.cs (4)
438if (PlatformDetection.IsWindows7) 569if (PlatformDetection.IsWindows7 || PlatformDetection.IsWindows8x) 596if (PlatformDetection.IsNetFramework)
System\Drawing\GraphicsTests.cs (3)
16public static bool IsWindows7OrWindowsArm64 => PlatformDetection.IsWindows7 || (PlatformDetection.IsWindows && PlatformDetection.IsArm64Process);
System\Drawing\IconConverterTests.cs (2)
10[ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsIoTCore))]
System\Drawing\IconTests.cs (5)
179PlatformDetection.IsNetFramework ? typeof(Win32Exception) : typeof(ArgumentException) 197PlatformDetection.IsNetFramework ? typeof(Win32Exception) : typeof(ArgumentException) 388if (PlatformDetection.IsNetFramework) 484if (PlatformDetection.IsNetFramework) 757string fieldName = PlatformDetection.IsNetFramework ? "bitDepth" : "s_bitDepth";
System\Drawing\ImageTests.cs (2)
518if (PlatformDetection.IsNetFramework) 643if (PlatformDetection.IsNetFramework)
System\Drawing\SystemFontsTests.cs (1)
87if (!PlatformDetection.IsWindows7)
System\Drawing\Text\PrivateFontCollectionTests.cs (5)
21if (PlatformDetection.IsWindows7) 38if (PlatformDetection.IsWindows7) 55if (PlatformDetection.IsWindows7) 72if (PlatformDetection.IsWindows7) 168if (PlatformDetection.IsWindows)
System.Windows.Forms.Tests (5)
System\Windows\Forms\Application.ParkingWindowTests.cs (4)
64if (!PlatformDetection.IsWindows10Version1803OrGreater) 99if (!PlatformDetection.IsWindows10Version1803OrGreater) 134if (!PlatformDetection.IsWindows10Version1803OrGreater) 167if (!PlatformDetection.IsWindows10Version1803OrGreater)
System\Windows\Forms\MixedDpiHostingTests.cs (1)
12if (!PlatformDetection.IsWindows10Version1803OrGreater)
System.Windows.Forms.UI.IntegrationTests (9)
Dpi\FormDpiTests.cs (7)
21if (!PlatformDetection.IsWindows10Version1803OrGreater) 58if (!PlatformDetection.IsWindows10Version1803OrGreater) 92if (!PlatformDetection.IsWindows10Version1803OrGreater) 128if (!PlatformDetection.IsWindows10Version1803OrGreater) 164if (!PlatformDetection.IsWindows10Version1803OrGreater) 196if (!PlatformDetection.IsWindows10Version1803OrGreater) 224if (!PlatformDetection.IsWindows10Version1803OrGreater)
Dpi\SplitContainerTests.cs (1)
35if (!PlatformDetection.IsWindows10Version1803OrGreater)
Dpi\ToolStripItemTests.Dpi.cs (1)
23if (!PlatformDetection.IsWindows10Version1803OrGreater)