mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Add NewObjectDRTTestsV2 Pester Unit Test
This commit is contained in:
1 parent
7551d33fc0
commit
9ed1d89978
1 file changed
+5
@@ -144,4 +144,9 @@ Describe "New-Object DRT basic functionality" -Tags DRT{
|
||||
$_.FullyQualifiedErrorId | Should be "TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand"
|
||||
}
|
||||
}
|
||||
|
||||
It "New-Object with TypeName and Property parameter should work"{
|
||||
$result = New-Object -TypeName PSObject -property @{foo=123}
|
||||
$result.foo | Should Be 123
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user