PowerShell7/test/powershell/Get-Process.Tests.ps1
Andrew Schwartzmeyer b930eeef9f Disable broken OS X Pester tests
- The Get-Process cmdlet on OS X has issues due to permissions
- The Get-Process test in NativeLinuxCommands should have been removed
- The ProcessName property has the same bug that has been fixed on Linux
2016-04-14 10:05:51 -07:00

11 lines
371 B
PowerShell

Describe "Get-Process" {
It "Should return a type of Object[] for Get-Process cmdlet" {
(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 }
}
}