Update Get-Variable Pester Test

This commit is contained in:
JumpingYang001 committed 2016-04-22 02:02:22 -07:00
1 parent ed331bde7f
commit cd938e0905
1 file changed
+2 -2
+2 -2
View File
@@ -40,10 +40,10 @@ Describe "Get-Variable DRT Unit Tests" -Tags DRT{
$var1[2].Value|Should Be "another test" $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 { try {
Set-Variable newVar testing -Option Private Set-Variable newVar testing -Option Private
&{Get-Variable -Name newVar} &{Get-Variable -Name newVar -EA Stop}
Throw "Execution OK" Throw "Execution OK"
} }
catch { catch {