From 0e90120b9a55bb14687e59fba27ab883345a09f0 Mon Sep 17 00:00:00 2001 From: romero126 Date: Thu, 3 Oct 2019 08:54:08 -0700 Subject: [PATCH] Replace Ambiguous language for tests from switch to parameter for accuracy (#10666) --- .../Microsoft.PowerShell.Management/Remove-Item.Tests.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Remove-Item.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Remove-Item.Tests.ps1 index 5dcb6b9201..bcbbaf17a9 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Remove-Item.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Remove-Item.Tests.ps1 @@ -12,13 +12,13 @@ Describe "Remove-Item" -Tags "CI" { } - It "Should be able to be called on a regular file without error using the Path switch" { + It "Should be able to be called on a regular file without error using the Path parameter" { { Remove-Item -Path $testfilepath } | Should -Not -Throw Test-Path $testfilepath | Should -BeFalse } - It "Should be able to be called on a file without the Path switch" { + It "Should be able to be called on a file without the Path parameter" { { Remove-Item $testfilepath } | Should -Not -Throw Test-Path $testfilepath | Should -BeFalse @@ -65,7 +65,7 @@ Describe "Remove-Item" -Tags "CI" { Test-Path $testfilepath | Should -BeFalse } - It "Should be able to remove all files matching a regular expression with the include switch" { + It "Should be able to remove all files matching a regular expression with the include parameter" { # Create multiple files with specific string New-Item -Name file1.txt -Path $testpath -ItemType "file" -Value "lorem ipsum" New-Item -Name file2.txt -Path $testpath -ItemType "file" -Value "lorem ipsum" @@ -86,7 +86,7 @@ Describe "Remove-Item" -Tags "CI" { Test-Path $testfilepath | Should -BeFalse } - It "Should be able to not remove any files matching a regular expression with the exclude switch" { + It "Should be able to not remove any files matching a regular expression with the exclude parameter" { # Create multiple files with specific string New-Item -Name file1.wav -Path $testpath -ItemType "file" -Value "lorem ipsum" New-Item -Name file2.wav -Path $testpath -ItemType "file" -Value "lorem ipsum"