mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Modify Pester test for New-Object
This commit is contained in:
1 parent
0802c32562
commit
880225501a
1 file changed
+1
-6
@@ -27,13 +27,8 @@ Describe "New-Object" {
|
||||
|
||||
It "should create a .Net object with using ArgumentList switch" {
|
||||
$o = New-Object -TypeName System.Version -ArgumentList "1.2.3.4"
|
||||
$val = $o.GetType()
|
||||
$o.GetType() | Should Be ([System.Version])
|
||||
|
||||
$o | Should Be "1.2.3.4"
|
||||
|
||||
$val.IsPublic | Should Be $true
|
||||
$val.IsSerializable | Should Be $false
|
||||
$val.Name | Should Be 'Version'
|
||||
$val.BaseType | Should Be 'System.Object'
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user