mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Merge pull request #694 from PowerShell/GetProcessTest
Add Get-Process Pester test for #147
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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 }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user