53bfc80b56
The `Get-Process` cmdlet cannot be used for these types of tests due to security constraints on OS X. These tests are about to be re-written soon anyway, so the simple fix was to use another cmdlet.
12 lines
452 B
PowerShell
12 lines
452 B
PowerShell
Describe "Get-Process" {
|
|
# These tests are no good, please replace!
|
|
It "Should return a type of Object[] for Get-Process cmdlet" -Pending:$IsOSX {
|
|
(Get-Process).GetType().BaseType | Should Be 'array'
|
|
(Get-Process).GetType().Name | Should Be Object[]
|
|
}
|
|
|
|
It "Should have not empty Name flags set for Get-Process object" -Pending:$IsOSX {
|
|
Get-Process | foreach-object { $_.Name | Should Not BeNullOrEmpty }
|
|
}
|
|
}
|