Modify Pester test for New-Object

This commit is contained in:
TingLiu6 committed 2016-03-24 20:20:06 -07:00
1 parent 0802c32562
commit 880225501a
1 file changed
+1 -6
+1 -6
View File
@@ -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'
}
}