Merge pull request #881 from PowerShell/andschwa/fix-clear-variable-test
Fix clear variable test
This commit is contained in:
commit
efc24f1976
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue