diff --git a/test/Microsoft.AspNet.Diagnostics.Tests/DeveloperExceptionPageMiddlewareTest.cs b/test/Microsoft.AspNet.Diagnostics.Tests/DeveloperExceptionPageMiddlewareTest.cs index bb1bb28e25..e742817815 100644 --- a/test/Microsoft.AspNet.Diagnostics.Tests/DeveloperExceptionPageMiddlewareTest.cs +++ b/test/Microsoft.AspNet.Diagnostics.Tests/DeveloperExceptionPageMiddlewareTest.cs @@ -36,7 +36,9 @@ namespace Microsoft.AspNet.Diagnostics "TestFiles/SourceFile.txt" }; - if (!(TestPlatformHelper.IsLinux || TestPlatformHelper.IsMac)) + var OSPlatform = PlatformServices.Default.Runtime.OperatingSystemPlatform; + + if (!(OSPlatform == Platform.Linux || OSPlatform == Platform.Darwin)) { data.Add(@"TestFiles\SourceFile.txt"); }