Files
PowerShell/test/powershell/CoreConsoleHost.Tests.ps1
T

12 lines
431 B
PowerShell
Raw Normal View History

2016-04-21 15:59:40 -07:00
Describe "CoreConsoleHost 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
}
}
}
}