Using new PlatformServices API
This commit is contained in:
parent
253367de83
commit
f5a866ff3c
|
|
@ -39,15 +39,15 @@ namespace Microsoft.AspNet.Server.Testing
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (TestPlatformHelper.IsLinux)
|
if (PlatformServices.Default.Runtime.OperatingSystemPlatform == Platform.Linux)
|
||||||
{
|
{
|
||||||
return "linux";
|
return "linux";
|
||||||
}
|
}
|
||||||
else if (TestPlatformHelper.IsMac)
|
else if (PlatformServices.Default.Runtime.OperatingSystemPlatform == Platform.Darwin)
|
||||||
{
|
{
|
||||||
return "darwin";
|
return "darwin";
|
||||||
}
|
}
|
||||||
else if (TestPlatformHelper.IsWindows)
|
else if (PlatformServices.Default.Runtime.OperatingSystemPlatform == Platform.Windows)
|
||||||
{
|
{
|
||||||
return "win";
|
return "win";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue