2016-07-25 14:01:41 -07:00
|
|
|
Describe "Get-Process" -Tags "CI" {
|
2016-07-12 16:14:37 -07:00
|
|
|
It "Should support -IncludeUserName" {
|
|
|
|
|
(Get-Process powershell -IncludeUserName | Select-Object -First 1).UserName | Should Match $env:USERNAME
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
}
|