88 references to PlatformDetection
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)
554
[ConditionalFact(typeof(
PlatformDetection
), nameof(
PlatformDetection
.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")]
568
[ConditionalFact(typeof(
PlatformDetection
), nameof(
PlatformDetection
.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")]
594
[ConditionalFact(typeof(
PlatformDetection
), nameof(
PlatformDetection
.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")]
610
[ConditionalFact(typeof(
PlatformDetection
), nameof(
PlatformDetection
.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")]
623
[ConditionalFact(typeof(
PlatformDetection
), nameof(
PlatformDetection
.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")]
649
[ConditionalFact(typeof(
PlatformDetection
), nameof(
PlatformDetection
.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")]
664
[ConditionalFact(typeof(
PlatformDetection
), nameof(
PlatformDetection
.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/winforms/issues/8817")]
mono\System.Drawing\GraphicsTests.cs (3)
2193
if (
PlatformDetection
.IsArmOrArm64Process)
2227
if (
PlatformDetection
.IsArmOrArm64Process)
2272
if (
PlatformDetection
.IsArmOrArm64Process)
System\Drawing\BitmapTests.cs (6)
728
if (
PlatformDetection
.IsWindows7)
733
if (
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)
69
if (!
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)
18
if (
PlatformDetection
.IsWindows)
82
[ConditionalFact(typeof(
PlatformDetection
), nameof(
PlatformDetection
.IsNotBuiltWithAggressiveTrimming))]
System\Drawing\FontTests.cs (4)
438
if (
PlatformDetection
.IsWindows7)
569
if (
PlatformDetection
.IsWindows7 ||
PlatformDetection
.IsWindows8x)
596
if (
PlatformDetection
.IsNetFramework)
System\Drawing\GraphicsTests.cs (3)
16
public 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)
179
PlatformDetection
.IsNetFramework ? typeof(Win32Exception) : typeof(ArgumentException)
197
PlatformDetection
.IsNetFramework ? typeof(Win32Exception) : typeof(ArgumentException)
388
if (
PlatformDetection
.IsNetFramework)
484
if (
PlatformDetection
.IsNetFramework)
757
string fieldName =
PlatformDetection
.IsNetFramework ? "bitDepth" : "s_bitDepth";
System\Drawing\ImageTests.cs (2)
518
if (
PlatformDetection
.IsNetFramework)
643
if (
PlatformDetection
.IsNetFramework)
System\Drawing\SystemFontsTests.cs (1)
87
if (!
PlatformDetection
.IsWindows7)
System\Drawing\Text\PrivateFontCollectionTests.cs (5)
21
if (
PlatformDetection
.IsWindows7)
38
if (
PlatformDetection
.IsWindows7)
55
if (
PlatformDetection
.IsWindows7)
72
if (
PlatformDetection
.IsWindows7)
168
if (
PlatformDetection
.IsWindows)
System.Windows.Forms.Tests (5)
System\Windows\Forms\Application.ParkingWindowTests.cs (4)
61
if (!
PlatformDetection
.IsWindows10Version1803OrGreater)
96
if (!
PlatformDetection
.IsWindows10Version1803OrGreater)
131
if (!
PlatformDetection
.IsWindows10Version1803OrGreater)
164
if (!
PlatformDetection
.IsWindows10Version1803OrGreater)
System\Windows\Forms\MixedDpiHostingTests.cs (1)
12
if (!
PlatformDetection
.IsWindows10Version1803OrGreater)
System.Windows.Forms.UI.IntegrationTests (9)
Dpi\FormDpiTests.cs (7)
21
if (!
PlatformDetection
.IsWindows10Version1803OrGreater)
58
if (!
PlatformDetection
.IsWindows10Version1803OrGreater)
92
if (!
PlatformDetection
.IsWindows10Version1803OrGreater)
128
if (!
PlatformDetection
.IsWindows10Version1803OrGreater)
164
if (!
PlatformDetection
.IsWindows10Version1803OrGreater)
196
if (!
PlatformDetection
.IsWindows10Version1803OrGreater)
224
if (!
PlatformDetection
.IsWindows10Version1803OrGreater)
Dpi\SplitContainerTests.cs (1)
35
if (!
PlatformDetection
.IsWindows10Version1803OrGreater)
Dpi\ToolStripItemTests.Dpi.cs (1)
23
if (!
PlatformDetection
.IsWindows10Version1803OrGreater)