From 2a67fd8ec5634c9cbe3f3882a77b480af923b4d8 Mon Sep 17 00:00:00 2001 From: Manikyam Bavandla Date: Thu, 21 Jul 2016 12:16:16 -0700 Subject: [PATCH] Updating the "Should have the correct edition" test Updating the "Should have the correct edition" test --- test/powershell/Host/PSVersionTable.Tests.ps1 | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/test/powershell/Host/PSVersionTable.Tests.ps1 b/test/powershell/Host/PSVersionTable.Tests.ps1 index ea414f1410..4725973a10 100644 --- a/test/powershell/Host/PSVersionTable.Tests.ps1 +++ b/test/powershell/Host/PSVersionTable.Tests.ps1 @@ -20,15 +20,6 @@ Describe "PSVersionTable" { } It "Should have the correct edition" -Skip:(!$IsCore) { - $expected = - if ($IsLinux -Or $IsOSX) { - "Linux" - } elseif ($IsWindows) { - "Core" - } else { - throw [PlatformNotSupportedException] - } - - $PSVersionTable["PSEdition"] | Should Be $expected + $PSVersionTable["PSEdition"] | Should Be "PowerShellCore" } }