Update ConsoleHost tests

This commit is contained in:
Andrew Schwartzmeyer
2016-05-17 13:28:44 -07:00
parent dca17ac0f7
commit 5c0d17e3a2
+2 -2
View File
@@ -1,11 +1,11 @@
Describe "CoreConsoleHost unit tests" {
Describe "ConsoleHost unit tests" {
$powershell = Join-Path -Path $PsHome -ChildPath "powershell"
Context "Command-line parsing" {
foreach ($x in "--help", "-help", "-h", "-?", "--he", "-hel", "--HELP", "-hEl") {
It "Accepts '$x' as a parameter for help" {
& $powershell -noprofile $x | ?{ $_ -match "usage: powershell" } | Should Not BeNullOrEmpty
& $powershell -noprofile $x | ?{ $_ -match "PowerShell[.exe] -Help | -? | /?" } | Should Not BeNullOrEmpty
}
}