Add Get-Process Pester test for issue 147

This commit is contained in:
JumpingYang001 authored and Andrew Schwartzmeyer committed 2016-03-17 23:49:09 -07:00
1 parent 412681ad7c
commit 89a6b8c1b5
1 file changed
+10
+10
View File
@@ -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 }
}
}