Updating the "Should have the correct edition" test

Updating the "Should have the correct edition" test
This commit is contained in:
Manikyam Bavandla 2016-07-21 12:16:16 -07:00
parent 3dcd621786
commit 2a67fd8ec5

View file

@ -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"
}
}