mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Update ConsoleHost tests
This commit is contained in:
1 parent
dca17ac0f7
commit
5c0d17e3a2
1 file changed
+2
-2
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user