Correct case of $IsMacOS special variable

This commit is contained in:
xtqqczze
2020-01-13 19:26:54 +00:00
parent 17d0e931fa
commit 72d52b7d08
2 changed files with 2 additions and 2 deletions
@@ -2,7 +2,7 @@
# Licensed under the MIT License.
Describe "New-Object" -Tags "CI" {
It "Support 'ComObject' parameter on platforms" {
if ($IsLinux -or $IsMacOs ) {
if ($IsLinux -or $IsMacOS ) {
{ New-Object -ComObject "Shell.Application" } | Should -Throw -ErrorId "NamedParameterNotFound,Microsoft.PowerShell.Commands.NewObjectCommand"
} else {
# It works on NanoServer and IoT too
@@ -23,7 +23,7 @@ Describe "Can load a native assembly" -Tags "CI" {
$arch = "linux-" + $processArch
$nativeDllName = "nativedll.so"
$sourceDllName = "libhostpolicy.so"
} elseif ($IsMacOs) {
} elseif ($IsMacOS) {
$arch = "osx-" + $processArch
$nativeDllName = "nativedll.dylib"
$sourceDllName = "libhostpolicy.dylib"