Unify pester test syntax for the arguments of -BeOfType (#11558)

This commit is contained in:
xtqqczze
2020-01-24 11:00:37 -08:00
committed by Dongbo Wang
parent a7a2b12336
commit 920b671fb4
68 changed files with 216 additions and 216 deletions
@@ -3,7 +3,7 @@
Describe "Acl cmdlets are available and operate properly" -Tag CI {
It "Get-Acl returns an ACL object" -pending:(!$IsWindows) {
$ACL = get-acl $TESTDRIVE
$ACL | Should -BeOfType "System.Security.AccessControl.DirectorySecurity"
$ACL | Should -BeOfType System.Security.AccessControl.DirectorySecurity
}
It "Set-Acl can set the ACL of a directory" -pending {
Setup -d testdir
@@ -565,7 +565,7 @@ ZoneId=$FileType
$exception = { & $scriptName } | Should -Throw -PassThru
$exception.Exception | Should -BeOfType "System.Management.Automation.PSSecurityException"
$exception.Exception | Should -BeOfType System.Management.Automation.PSSecurityException
}
}