mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Unify pester test syntax for the arguments of -BeOfType (#11558)
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user