47 references to OperatingSystems
Microsoft.AspNetCore.Testing.Tests (2)
FakeCertificateFactoryTests.cs (2)
27
[OSSkipCondition(
OperatingSystems
.Linux)]
36
[OSSkipCondition(
OperatingSystems
.Windows)]
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (36)
Linux\AcceptanceTest.cs (14)
27
[OSSkipCondition(
OperatingSystems
.Windows |
OperatingSystems
.MacOSX, SkipReason = "Linux specific tests")]
41
[OSSkipCondition(
OperatingSystems
.Windows |
OperatingSystems
.MacOSX, SkipReason = "Linux specific tests")]
71
[OSSkipCondition(
OperatingSystems
.Windows |
OperatingSystems
.MacOSX, SkipReason = "Linux specific tests")]
93
[OSSkipCondition(
OperatingSystems
.Windows |
OperatingSystems
.MacOSX, SkipReason = "Linux specific tests")]
142
[OSSkipCondition(
OperatingSystems
.Windows |
OperatingSystems
.MacOSX, SkipReason = "Linux specific tests")]
191
[OSSkipCondition(
OperatingSystems
.Windows |
OperatingSystems
.MacOSX, SkipReason = "Linux specific tests")]
277
[OSSkipCondition(
OperatingSystems
.Windows |
OperatingSystems
.MacOSX, SkipReason = "Linux specific tests")]
Linux\LinuxNetworkMetricsTests.cs (2)
14
[OSSkipCondition(
OperatingSystems
.Windows |
OperatingSystems
.MacOSX, SkipReason = "Linux specific tests")]
Linux\LinuxUtilizationParserCgroupV1Tests.cs (2)
17
[OSSkipCondition(
OperatingSystems
.Windows |
OperatingSystems
.MacOSX, SkipReason = "Linux specific tests")]
Linux\LinuxUtilizationParserCgroupV2Tests.cs (2)
17
[OSSkipCondition(
OperatingSystems
.Windows |
OperatingSystems
.MacOSX, SkipReason = "Linux specific tests")]
Linux\LinuxUtilizationProviderTests.cs (2)
19
[OSSkipCondition(
OperatingSystems
.Windows |
OperatingSystems
.MacOSX, SkipReason = "Linux specific tests")]
Linux\OSFileSystemTests.cs (2)
14
[OSSkipCondition(
OperatingSystems
.Windows |
OperatingSystems
.MacOSX, SkipReason = "Linux specific tests")]
Windows\MemoryInfoTests.cs (2)
15
[OSSkipCondition(
OperatingSystems
.Linux |
OperatingSystems
.MacOSX, SkipReason = "Windows specific.")]
Windows\SystemInfoTests.cs (2)
15
[OSSkipCondition(
OperatingSystems
.Linux |
OperatingSystems
.MacOSX, SkipReason = "Windows specific.")]
Windows\Tcp6TableInfoTests.cs (2)
18
[OSSkipCondition(
OperatingSystems
.Linux |
OperatingSystems
.MacOSX, SkipReason = "Windows specific.")]
Windows\TcpTableInfoTests.cs (2)
15
[OSSkipCondition(
OperatingSystems
.Linux |
OperatingSystems
.MacOSX, SkipReason = "Windows specific.")]
Windows\WindowsNetworkMetricsTests.cs (2)
14
[OSSkipCondition(
OperatingSystems
.Linux |
OperatingSystems
.MacOSX, SkipReason = "Windows specific.")]
Windows\WindowsSnapshotProviderTests.cs (2)
21
[OSSkipCondition(
OperatingSystems
.Linux |
OperatingSystems
.MacOSX, SkipReason = "Windows specific.")]
Microsoft.TestUtilities (9)
XUnit\OSSkipConditionAttribute.cs (9)
17
private readonly
OperatingSystems
_excludedOperatingSystem;
18
private readonly
OperatingSystems
_osPlatform;
20
public OSSkipConditionAttribute(
OperatingSystems
operatingSystem)
26
internal OSSkipConditionAttribute(
OperatingSystems
operatingSystem,
OperatingSystems
osPlatform)
45
private static
OperatingSystems
GetCurrentOS()
50
return
OperatingSystems
.Windows;
54
return
OperatingSystems
.Linux;
58
return
OperatingSystems
.MacOSX;