From 6f938bd8604f66f0f169b339c78aa98f2011edb6 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Tue, 12 Jul 2016 16:14:37 -0700 Subject: [PATCH] Add regression test for Get-Process -IncludeUserName --- .../Microsoft.PowerShell.Management/Get-Process.Tests.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Process.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Process.Tests.ps1 index d2ac52def..64a9f7fe4 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Process.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Process.Tests.ps1 @@ -1,4 +1,8 @@ Describe "Get-Process" { + It "Should support -IncludeUserName" { + (Get-Process powershell -IncludeUserName | Select-Object -First 1).UserName | Should Match $env:USERNAME + } + # These tests are no good, please replace! It "Should return a type of Object[] for Get-Process cmdlet" -Pending:$IsOSX { (Get-Process).GetType().BaseType | Should Be 'array'