mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Add Get-Process Pester test for issue 147
This commit is contained in:
1 parent
412681ad7c
commit
89a6b8c1b5
1 file changed
+10
@@ -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