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:
@@ -43,7 +43,7 @@ Describe "Tests for hashtable to PSCustomObject conversion" -Tags "CI" {
|
||||
It 'Hashtable conversion to PSCustomObject retains insertion order of hashtable keys when passed a hashliteral' {
|
||||
|
||||
$x = [pscustomobject]@{one=1;two=2}
|
||||
$x | Should -BeOfType "System.Management.automation.psobject"
|
||||
$x | Should -BeOfType System.Management.automation.psobject
|
||||
|
||||
$p = 0
|
||||
# Checks if the first property is One
|
||||
@@ -60,7 +60,7 @@ Describe "Tests for hashtable to PSCustomObject conversion" -Tags "CI" {
|
||||
It 'Conversion of Ordered hashtable to PSCustomObject should succeed' {
|
||||
|
||||
$x = [pscustomobject][ordered]@{one=1;two=2}
|
||||
$x | Should -BeOfType "System.Management.automation.psobject"
|
||||
$x | Should -BeOfType System.Management.automation.psobject
|
||||
|
||||
$p = 0
|
||||
# Checks if the first property is One
|
||||
|
||||
Reference in New Issue
Block a user