PowerShell7/test/powershell/Get-Process.Tests.ps1
Andrew Schwartzmeyer 53bfc80b56 Fix Pester tests
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.
2016-04-25 15:27:24 -07:00

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 }
}
}