Skip complex prompting tests

Not supported with non-PSReadLine Open PowerShell host.
This commit is contained in:
Andrew Schwartzmeyer 2016-05-11 15:44:31 -07:00
parent 8c97fd16cd
commit 6d7b6a10f6

View file

@ -107,7 +107,7 @@ Describe "ConsoleHost unit tests" {
EnsureChildHasExited $process
}
It "Redirected input explicit prompting" {
It "Redirected input explicit prompting" -Skip:$IsCore {
$si = NewProcessStartInfo "-noprofile -File -" -RedirectStdIn
$process = RunPowerShell $si
$process.StandardInput.Write("`$function:prompt = { 'PS> ' }`n")
@ -120,7 +120,7 @@ Describe "ConsoleHost unit tests" {
EnsureChildHasExited $process
}
It "Redirected input no prompting" {
It "Redirected input no prompting" -Skip:$IsCore {
$si = NewProcessStartInfo "-noprofile -" -RedirectStdIn
$process = RunPowerShell $si
$process.StandardInput.Write("1+1`n")
@ -129,7 +129,7 @@ Describe "ConsoleHost unit tests" {
EnsureChildHasExited $process
}
It "Redirected input w/ nested prompt" {
It "Redirected input w/ nested prompt" -Skip:$IsCore {
$si = NewProcessStartInfo "-noprofile ""`$function:prompt = { 'PS' + ('>'*(`$nestedPromptLevel+1)) + ' ' }""" -RedirectStdIn
$process = RunPowerShell $si
$process.StandardInput.Write("`$host.EnterNestedPrompt()`n")