Use Pending for tests that shouldn't be Skipped

This commit is contained in:
Andrew Schwartzmeyer 2016-05-12 14:12:56 -07:00
parent fe5328006d
commit 2712cead34
2 changed files with 6 additions and 6 deletions

View file

@ -108,7 +108,7 @@ Describe "ConsoleHost unit tests" {
EnsureChildHasExited $process
}
It "Redirected input explicit prompting" -Skip:$IsCore {
It "Redirected input explicit prompting" -Pending:$IsCore {
$si = NewProcessStartInfo "-noprofile -File -" -RedirectStdIn
$process = RunPowerShell $si
$process.StandardInput.Write("`$function:prompt = { 'PS> ' }`n")
@ -121,7 +121,7 @@ Describe "ConsoleHost unit tests" {
EnsureChildHasExited $process
}
It "Redirected input no prompting" -Skip:$IsCore {
It "Redirected input no prompting" -Pending:$IsCore {
$si = NewProcessStartInfo "-noprofile -" -RedirectStdIn
$process = RunPowerShell $si
$process.StandardInput.Write("1+1`n")
@ -130,7 +130,7 @@ Describe "ConsoleHost unit tests" {
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
$process = RunPowerShell $si
$process.StandardInput.Write("`$host.EnterNestedPrompt()`n")

View file

@ -30,8 +30,8 @@ Describe "Write-Error DRT Unit Tests" -Tags DRT{
$Error[0].InvocationInfo.MyCommand.Name | Should BeNullOrEmpty
}
#Skip with issue #846
It "Should be works with all parameters" -Skip:$true {
# Skip with issue #846
It "Should be works with all parameters" -Pending {
$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
$Error[0] | Should Not BeNullOrEmpty
@ -104,4 +104,4 @@ Describe "Write-Error" {
$error[0]| Should Be $theError
}
}
}