Merge pull request #881 from PowerShell/andschwa/fix-clear-variable-test

Fix clear variable test
This commit is contained in:
Andy Schwartzmeyer 2016-04-20 14:27:02 -07:00
commit efc24f1976

View file

@ -1,4 +1,3 @@
Describe "Clear-Variable DRT Unit Tests" -Tags DRT{
It "Clear-Variable normal variable Name should works"{
Set-Variable foo bar
@ -54,7 +53,6 @@ Describe "Clear-Variable DRT Unit Tests" -Tags DRT{
It "Clear-Variable Private variable Name should works and Get-Variable with local scope should throw exception"{
Set-Variable foo bar -Option Private
&{
Clear-Variable -Name foo
try {
Get-Variable -Name foo -Scope local -EA Stop
Throw "Execution OK"