From 2712cead346b2ceea9aac1cf4d523d7c26bb96c6 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Thu, 12 May 2016 14:12:56 -0700 Subject: [PATCH] Use Pending for tests that shouldn't be Skipped --- test/powershell/ConsoleHost.Tests.ps1 | 6 +++--- test/powershell/Write-Error.Tests.ps1 | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/powershell/ConsoleHost.Tests.ps1 b/test/powershell/ConsoleHost.Tests.ps1 index 9b451c673a..79272b1193 100644 --- a/test/powershell/ConsoleHost.Tests.ps1 +++ b/test/powershell/ConsoleHost.Tests.ps1 @@ -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") diff --git a/test/powershell/Write-Error.Tests.ps1 b/test/powershell/Write-Error.Tests.ps1 index 57f1b299d6..c951b77065 100644 --- a/test/powershell/Write-Error.Tests.ps1 +++ b/test/powershell/Write-Error.Tests.ps1 @@ -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 } -} \ No newline at end of file +}