diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/New-Item.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/New-Item.Tests.ps1 index c9c5b317323..49a22f792c6 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/New-Item.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/New-Item.Tests.ps1 @@ -80,7 +80,7 @@ Describe "New-Item" -Tags "CI" { Test-Path $FullyQualifiedFile | Should -BeTrue } - It "Should create a file with sample text inside the file using the Value switch" { + It "Should create a file with sample text inside the file using the Value parameter" { $expected = "This is test string" New-Item -Name $testfile -Path $tmpDirectory -ItemType file -Value $expected @@ -89,7 +89,7 @@ Describe "New-Item" -Tags "CI" { Get-Content $FullyQualifiedFile | Should -Be $expected } - It "Should not create a file when the Name switch is not used and only a directory specified" { + It "Should not create a file when the Name parameter is not used and only a directory specified" { #errorAction used because permissions issue in Windows New-Item -Path $tmpDirectory -ItemType file -ErrorAction SilentlyContinue @@ -97,7 +97,7 @@ Describe "New-Item" -Tags "CI" { } - It "Should create a file when the Name switch is not used but a fully qualified path is specified" { + It "Should create a file when the Name parameter is not used but a fully qualified path is specified" { New-Item -Path $FullyQualifiedFile -ItemType file Test-Path $FullyQualifiedFile | Should -BeTrue diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Set-Location.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Set-Location.Tests.ps1 index 06be4473706..88e5472c0f3 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Set-Location.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Set-Location.Tests.ps1 @@ -34,7 +34,7 @@ Describe "Set-Location" -Tags "CI" { $(Get-Location).Path | Should -BeExactly $startDirectory.Path } - It "Should be able to use the Path switch" { + It "Should be able to use the Path parameter" { { Set-Location -Path $target } | Should -Not -Throw }