From cd938e090533c8c1c0ea9bb6e3c2f881c2b90957 Mon Sep 17 00:00:00 2001 From: JumpingYang001 Date: Fri, 22 Apr 2016 02:02:22 -0700 Subject: [PATCH] Update Get-Variable Pester Test --- test/powershell/Get-Variable.Tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/powershell/Get-Variable.Tests.ps1 b/test/powershell/Get-Variable.Tests.ps1 index dd25aceaa..36a4933db 100644 --- a/test/powershell/Get-Variable.Tests.ps1 +++ b/test/powershell/Get-Variable.Tests.ps1 @@ -40,10 +40,10 @@ Describe "Get-Variable DRT Unit Tests" -Tags DRT{ $var1[2].Value|Should Be "another test" } - It "Get-Variable of existing private variable Name should throw ItemNotFoundException skip now as bug#818" -Skip:$true{ + It "Get-Variable of existing private variable Name should throw ItemNotFoundException"{ try { Set-Variable newVar testing -Option Private - &{Get-Variable -Name newVar} + &{Get-Variable -Name newVar -EA Stop} Throw "Execution OK" } catch {