87 references to PlatformDetection
System.Drawing.Common.Tests (73)
mono\System.Drawing.Imaging\BmpCodecTests.cs (2)
236[Fact(Skip = "Condition not met", SkipType = typeof(PlatformDetection), SkipUnless = nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")]
mono\System.Drawing.Imaging\GifCodecTests.cs (2)
104[Fact(Skip = "Condition not met", SkipType = typeof(PlatformDetection), SkipUnless = nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")]
mono\System.Drawing.Imaging\IconCodecTests.cs (10)
127[Fact(Skip = "Condition not met", SkipType = typeof(PlatformDetection), SkipUnless = nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")] 323[Fact(Skip = "Condition not met", SkipType = typeof(PlatformDetection), SkipUnless = nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")] 541[Fact(Skip = "Condition not met", SkipType = typeof(PlatformDetection), SkipUnless = nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")] 745[Fact(Skip = "Condition not met", SkipType = typeof(PlatformDetection), SkipUnless = nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")] 1520[Fact(Skip = "Condition not met", SkipType = typeof(PlatformDetection), SkipUnless = nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")]
mono\System.Drawing.Imaging\JpegCodecTests.cs (4)
39public static bool IsWindows7OrIsArm64Process => PlatformDetection.IsWindows7 || PlatformDetection.IsArm64Process; 224[Fact(Skip = "Condition not met", SkipType = typeof(PlatformDetection), SkipUnless = nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")]
mono\System.Drawing.Imaging\TiffCodecTests.cs (2)
114[Fact(Skip = "Condition not met", SkipType = typeof(PlatformDetection), SkipUnless = nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")]
mono\System.Drawing\BitmapTests.cs (14)
554[Fact(Skip = "Condition not met", SkipType = typeof(PlatformDetection), SkipUnless = nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")] 568[Fact(Skip = "Condition not met", SkipType = typeof(PlatformDetection), SkipUnless = nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")] 594[Fact(Skip = "Condition not met", SkipType = typeof(PlatformDetection), SkipUnless = nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")] 610[Fact(Skip = "Condition not met", SkipType = typeof(PlatformDetection), SkipUnless = nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")] 623[Fact(Skip = "Condition not met", SkipType = typeof(PlatformDetection), SkipUnless = nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")] 649[Fact(Skip = "Condition not met", SkipType = typeof(PlatformDetection), SkipUnless = nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")] 664[Fact(Skip = "Condition not met", SkipType = typeof(PlatformDetection), SkipUnless = nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")]
mono\System.Drawing\GraphicsTests.cs (3)
2192if (PlatformDetection.IsArmOrArm64Process) 2226if (PlatformDetection.IsArmOrArm64Process) 2271if (PlatformDetection.IsArmOrArm64Process)
System\Drawing\BitmapTests.cs (6)
727if (PlatformDetection.IsWindows7) 732if (PlatformDetection.IsArmOrArm64Process) 1059[Theory(Skip = "Condition not met", SkipType = typeof(PlatformDetection), SkipUnless = nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")] 1461[Fact(Skip = "Condition not met", SkipType = typeof(PlatformDetection), SkipUnless = 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[Fact(Skip = "Condition not met", SkipType = typeof(PlatformDetection), SkipUnless = nameof(PlatformDetection.IsNotIntMaxValueArrayIndexSupported))]
System\Drawing\Drawing2D\ColorBlendTests.cs (2)
32[Fact(Skip = "Condition not met", SkipType = typeof(PlatformDetection), SkipUnless = nameof(PlatformDetection.IsNotIntMaxValueArrayIndexSupported))]
System\Drawing\FontConverterTests.cs (3)
18if (PlatformDetection.IsWindows) 82[Fact(Skip = "Condition not met", SkipType = typeof(PlatformDetection), SkipUnless = nameof(PlatformDetection.IsNotBuiltWithAggressiveTrimming))]
System\Drawing\FontTests.cs (4)
438if (PlatformDetection.IsWindows7) 569if (PlatformDetection.IsWindows7 || PlatformDetection.IsWindows8x) 596if (PlatformDetection.IsNetFramework)
System\Drawing\GraphicsTests.cs (3)
17public 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)
520if (PlatformDetection.IsNetFramework) 645if (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)
63if (!PlatformDetection.IsWindows10Version1803OrGreater) 98if (!PlatformDetection.IsWindows10Version1803OrGreater) 133if (!PlatformDetection.IsWindows10Version1803OrGreater) 166if (!PlatformDetection.IsWindows10Version1803OrGreater)
System\Windows\Forms\MixedDpiHostingTests.cs (1)
14if (!PlatformDetection.IsWindows10Version1803OrGreater)
System.Windows.Forms.UI.IntegrationTests (9)
Dpi\FormDpiTests.cs (7)
20if (!PlatformDetection.IsWindows10Version1803OrGreater) 57if (!PlatformDetection.IsWindows10Version1803OrGreater) 91if (!PlatformDetection.IsWindows10Version1803OrGreater) 127if (!PlatformDetection.IsWindows10Version1803OrGreater) 163if (!PlatformDetection.IsWindows10Version1803OrGreater) 195if (!PlatformDetection.IsWindows10Version1803OrGreater) 223if (!PlatformDetection.IsWindows10Version1803OrGreater)
Dpi\SplitContainerTests.cs (1)
34if (!PlatformDetection.IsWindows10Version1803OrGreater)
Dpi\ToolStripItemTests.Dpi.cs (1)
22if (!PlatformDetection.IsWindows10Version1803OrGreater)