Using new PlatformServices API

This commit is contained in:
John Luo 2015-12-22 15:12:28 -08:00
parent 253367de83
commit f5a866ff3c
1 changed files with 3 additions and 3 deletions

View File

@ -39,15 +39,15 @@ namespace Microsoft.AspNet.Server.Testing
{
get
{
if (TestPlatformHelper.IsLinux)
if (PlatformServices.Default.Runtime.OperatingSystemPlatform == Platform.Linux)
{
return "linux";
}
else if (TestPlatformHelper.IsMac)
else if (PlatformServices.Default.Runtime.OperatingSystemPlatform == Platform.Darwin)
{
return "darwin";
}
else if (TestPlatformHelper.IsWindows)
else if (PlatformServices.Default.Runtime.OperatingSystemPlatform == Platform.Windows)
{
return "win";
}