Use Pending for tests that shouldn't be Skipped
This commit is contained in:
parent
fe5328006d
commit
2712cead34
2 changed files with 6 additions and 6 deletions
|
@ -108,7 +108,7 @@ Describe "ConsoleHost unit tests" {
|
||||||
EnsureChildHasExited $process
|
EnsureChildHasExited $process
|
||||||
}
|
}
|
||||||
|
|
||||||
It "Redirected input explicit prompting" -Skip:$IsCore {
|
It "Redirected input explicit prompting" -Pending:$IsCore {
|
||||||
$si = NewProcessStartInfo "-noprofile -File -" -RedirectStdIn
|
$si = NewProcessStartInfo "-noprofile -File -" -RedirectStdIn
|
||||||
$process = RunPowerShell $si
|
$process = RunPowerShell $si
|
||||||
$process.StandardInput.Write("`$function:prompt = { 'PS> ' }`n")
|
$process.StandardInput.Write("`$function:prompt = { 'PS> ' }`n")
|
||||||
|
@ -121,7 +121,7 @@ Describe "ConsoleHost unit tests" {
|
||||||
EnsureChildHasExited $process
|
EnsureChildHasExited $process
|
||||||
}
|
}
|
||||||
|
|
||||||
It "Redirected input no prompting" -Skip:$IsCore {
|
It "Redirected input no prompting" -Pending:$IsCore {
|
||||||
$si = NewProcessStartInfo "-noprofile -" -RedirectStdIn
|
$si = NewProcessStartInfo "-noprofile -" -RedirectStdIn
|
||||||
$process = RunPowerShell $si
|
$process = RunPowerShell $si
|
||||||
$process.StandardInput.Write("1+1`n")
|
$process.StandardInput.Write("1+1`n")
|
||||||
|
@ -130,7 +130,7 @@ Describe "ConsoleHost unit tests" {
|
||||||
EnsureChildHasExited $process
|
EnsureChildHasExited $process
|
||||||
}
|
}
|
||||||
|
|
||||||
It "Redirected input w/ nested prompt" -Skip:$IsCore {
|
It "Redirected input w/ nested prompt" -Pending:$IsCore {
|
||||||
$si = NewProcessStartInfo "-noprofile ""`$function:prompt = { 'PS' + ('>'*(`$nestedPromptLevel+1)) + ' ' }""" -RedirectStdIn
|
$si = NewProcessStartInfo "-noprofile ""`$function:prompt = { 'PS' + ('>'*(`$nestedPromptLevel+1)) + ' ' }""" -RedirectStdIn
|
||||||
$process = RunPowerShell $si
|
$process = RunPowerShell $si
|
||||||
$process.StandardInput.Write("`$host.EnterNestedPrompt()`n")
|
$process.StandardInput.Write("`$host.EnterNestedPrompt()`n")
|
||||||
|
|
|
@ -30,8 +30,8 @@ Describe "Write-Error DRT Unit Tests" -Tags DRT{
|
||||||
$Error[0].InvocationInfo.MyCommand.Name | Should BeNullOrEmpty
|
$Error[0].InvocationInfo.MyCommand.Name | Should BeNullOrEmpty
|
||||||
}
|
}
|
||||||
|
|
||||||
#Skip with issue #846
|
# Skip with issue #846
|
||||||
It "Should be works with all parameters" -Skip:$true {
|
It "Should be works with all parameters" -Pending {
|
||||||
$exception = New-Object -TypeName System.ArgumentNullException -ArgumentList paramname
|
$exception = New-Object -TypeName System.ArgumentNullException -ArgumentList paramname
|
||||||
Write-Error -Message myerrortext -Exception $exception -ErrorId myerrorid -Category syntaxerror -TargetObject TargetObject -CategoryActivity myactivity -CategoryReason myreason -CategoryTargetName mytargetname -CategoryTargetType mytargettype -RecommendedAction myrecommendedaction -ErrorAction SilentlyContinue
|
Write-Error -Message myerrortext -Exception $exception -ErrorId myerrorid -Category syntaxerror -TargetObject TargetObject -CategoryActivity myactivity -CategoryReason myreason -CategoryTargetName mytargetname -CategoryTargetType mytargettype -RecommendedAction myrecommendedaction -ErrorAction SilentlyContinue
|
||||||
$Error[0] | Should Not BeNullOrEmpty
|
$Error[0] | Should Not BeNullOrEmpty
|
||||||
|
@ -104,4 +104,4 @@ Describe "Write-Error" {
|
||||||
|
|
||||||
$error[0]| Should Be $theError
|
$error[0]| Should Be $theError
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue