54 references to TestPlatforms
Microsoft.Build.Engine.UnitTests (4)
BackEnd\TargetUpToDateChecker_Tests.cs (4)
963
[SkipOnPlatform(
TestPlatforms
.AnyUnix, "Windows-specific test")]
974
[SkipOnPlatform(
TestPlatforms
.AnyUnix, "Windows-specific test")]
985
[SkipOnPlatform(
TestPlatforms
.AnyUnix, "Windows-specific test")]
996
[SkipOnPlatform(
TestPlatforms
.AnyUnix, "Windows-specific test")]
Microsoft.Build.Tasks.UnitTests (1)
RoslynCodeTaskFactory_Tests.cs (1)
86
[SkipOnPlatform(
TestPlatforms
.AnyUnix, ".NETFramework 4.0 isn't on unix machines.")]
Microsoft.DotNet.XUnitExtensions (46)
Attributes\ActiveIssueAttribute.cs (3)
19
public ActiveIssueAttribute(string issue,
TestPlatforms
platforms) { }
22
public ActiveIssueAttribute(string issue,
TestPlatforms
platforms =
TestPlatforms
.Any, TargetFrameworkMonikers framework = TargetFrameworkMonikers.Any, TestRuntimes runtimes = TestRuntimes.Any) { }
Attributes\OuterLoopAttribute.cs (3)
21
public OuterLoopAttribute(string reason,
TestPlatforms
platforms) { }
24
public OuterLoopAttribute(string reason,
TestPlatforms
platforms =
TestPlatforms
.Any, TargetFrameworkMonikers framework = TargetFrameworkMonikers.Any, TestRuntimes runtimes = TestRuntimes.Any) { }
Attributes\PlatformSpecificAttribute.cs (1)
16
public PlatformSpecificAttribute(
TestPlatforms
platforms) { }
Attributes\SkipOnCoreClrAttribute.cs (4)
15
public SkipOnCoreClrAttribute(string reason,
TestPlatforms
testPlatforms) { }
19
public SkipOnCoreClrAttribute(string reason,
TestPlatforms
testPlatforms, RuntimeConfiguration runtimeConfigurations) { }
20
public SkipOnCoreClrAttribute(string reason,
TestPlatforms
testPlatforms, RuntimeTestModes testMode) { }
21
public SkipOnCoreClrAttribute(string reason,
TestPlatforms
testPlatforms, RuntimeConfiguration runtimeConfigurations, RuntimeTestModes testModes) { }
Attributes\SkipOnMonoAttribute.cs (2)
14
public SkipOnMonoAttribute(string reason,
TestPlatforms
testPlatforms =
TestPlatforms
.Any) { }
Attributes\SkipOnPlatformAttribute.cs (1)
14
public SkipOnPlatformAttribute(
TestPlatforms
testPlatforms, string reason) { }
DiscovererHelpers.cs (21)
20
public 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));
69
TestPlatforms
platforms =
TestPlatforms
.Any;
77
if (arg is
TestPlatforms
)
79
platforms = (
TestPlatforms
)arg;
Discoverers\PlatformSpecificDiscoverer.cs (2)
26
TestPlatforms
platforms = (
TestPlatforms
)traitAttribute.GetConstructorArguments().First();
Discoverers\SkipOnCoreClrDiscoverer.cs (3)
32
TestPlatforms
testPlatforms =
TestPlatforms
.Any;
37
if (arg is
TestPlatforms
tp)
Discoverers\SkipOnMonoDiscoverer.cs (3)
19
TestPlatforms
testPlatforms =
TestPlatforms
.Any;
22
if (traitAttribute.GetConstructorArguments().LastOrDefault() is
TestPlatforms
tp)
Discoverers\SkipOnPlatformDiscoverer.cs (3)
17
TestPlatforms
testPlatforms = (
TestPlatforms
)0;
20
if (traitAttribute.GetConstructorArguments().FirstOrDefault() is
TestPlatforms
tp)
Microsoft.DotNet.XUnitExtensions.Tests (3)
ConditionalAttributeTests.cs (3)
29
[OuterLoop("never outer loop",
TestPlatforms
.Any & ~
TestPlatforms
.Any)]
39
[OuterLoop("always outer loop",
TestPlatforms
.Any)]