diff --git a/test/powershell/Get-Process.Tests.ps1 b/test/powershell/Get-Process.Tests.ps1 new file mode 100644 index 0000000000..b87c23e2cc --- /dev/null +++ b/test/powershell/Get-Process.Tests.ps1 @@ -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 } + } +}