From 20723c40675a1119d1b7653450c9624846b133e1 Mon Sep 17 00:00:00 2001 From: John Luo Date: Wed, 23 Dec 2015 12:11:44 -0800 Subject: [PATCH] Remove usage of TestPlatformHelper --- .../DeveloperExceptionPageMiddlewareTest.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"); }