11 lines
355 B
PowerShell
11 lines
355 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" {
|
||
|
Get-Process | foreach-object { $_.Name | Should Not BeNullOrEmpty }
|
||
|
}
|
||
|
}
|