42 references to TestPlatforms
Microsoft.DotNet.XUnitV3Extensions (42)
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\ActiveIssueAttribute.cs (3)
28public ActiveIssueAttribute(string issue, TestPlatforms platforms) 49public ActiveIssueAttribute(string issue, TestPlatforms platforms = TestPlatforms.Any, TargetFrameworkMonikers framework = TargetFrameworkMonikers.Any, TestRuntimes runtimes = TestRuntimes.Any)
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\OuterLoopAttribute.cs (3)
42public OuterLoopAttribute(string reason, TestPlatforms platforms) 63public OuterLoopAttribute(string reason, TestPlatforms platforms = TestPlatforms.Any, TargetFrameworkMonikers framework = TargetFrameworkMonikers.Any, TestRuntimes runtimes = TestRuntimes.Any)
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\PlatformSpecificAttribute.cs (2)
22private readonly TestPlatforms _platforms; 25public PlatformSpecificAttribute(TestPlatforms platforms)
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\SkipOnCoreClrAttribute.cs (6)
30private readonly TestPlatforms _testPlatforms = TestPlatforms.Any; 65public SkipOnCoreClrAttribute(string reason, TestPlatforms testPlatforms) 94public SkipOnCoreClrAttribute(string reason, TestPlatforms testPlatforms, RuntimeConfiguration runtimeConfigurations) 102public SkipOnCoreClrAttribute(string reason, TestPlatforms testPlatforms, RuntimeTestModes testMode) 110public SkipOnCoreClrAttribute(string reason, TestPlatforms testPlatforms, RuntimeConfiguration runtimeConfigurations, RuntimeTestModes testModes)
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\SkipOnMonoAttribute.cs (4)
18private readonly TestPlatforms _testPlatforms = TestPlatforms.Any; 22public SkipOnMonoAttribute(string reason, TestPlatforms testPlatforms = TestPlatforms.Any)
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\SkipOnPlatformAttribute.cs (3)
18private readonly TestPlatforms _testPlatforms = (TestPlatforms)0; 22public SkipOnPlatformAttribute(TestPlatforms testPlatforms, string reason)
src\Microsoft.DotNet.XUnitExtensions.Shared\DiscovererHelpers.cs (21)
20public static bool TestPlatformApplies(TestPlatforms platforms) => 21(platforms.HasFlag(TestPlatforms.Any)) || 22(platforms.HasFlag(TestPlatforms.FreeBSD) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("FREEBSD"))) || 23(platforms.HasFlag(TestPlatforms.Linux) && RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) || 24(platforms.HasFlag(TestPlatforms.NetBSD) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("NETBSD"))) || 25(platforms.HasFlag(TestPlatforms.OSX) && RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) || 26(platforms.HasFlag(TestPlatforms.illumos) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("ILLUMOS"))) || 27(platforms.HasFlag(TestPlatforms.Solaris) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("SOLARIS"))) || 28(platforms.HasFlag(TestPlatforms.iOS) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("IOS")) && !RuntimeInformation.IsOSPlatform(OSPlatform.Create("MACCATALYST"))) || 29(platforms.HasFlag(TestPlatforms.tvOS) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("TVOS"))) || 30(platforms.HasFlag(TestPlatforms.MacCatalyst) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("MACCATALYST"))) || 31(platforms.HasFlag(TestPlatforms.LinuxBionic) && RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("ANDROID_STORAGE"))) || 32(platforms.HasFlag(TestPlatforms.Android) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("ANDROID"))) || 33(platforms.HasFlag(TestPlatforms.Browser) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("BROWSER"))) || 34(platforms.HasFlag(TestPlatforms.Wasi) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("WASI"))) || 35(platforms.HasFlag(TestPlatforms.Haiku) && RuntimeInformation.IsOSPlatform(OSPlatform.Create("HAIKU"))) || 36(platforms.HasFlag(TestPlatforms.Windows) && RuntimeInformation.IsOSPlatform(OSPlatform.Windows)); 69TestPlatforms platforms = TestPlatforms.Any; 77if (arg is TestPlatforms) 79platforms = (TestPlatforms)arg;