Files
PowerShell/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Process.Tests.ps1
T

11 lines
452 B
PowerShell
Raw Normal View History

2016-03-17 22:17:42 -07:00
Describe "Get-Process" {
2016-04-25 14:41:17 -07:00
# 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[]
2016-03-17 22:17:42 -07:00
}
2016-04-14 10:05:51 -07:00
It "Should have not empty Name flags set for Get-Process object" -Pending:$IsOSX {
2016-04-25 14:41:17 -07:00
Get-Process | foreach-object { $_.Name | Should Not BeNullOrEmpty }
2016-03-17 22:17:42 -07:00
}
}