Merge pull request #881 from PowerShell/andschwa/fix-clear-variable-test
Fix clear variable test
This commit is contained in:
commit
efc24f1976
1 changed files with 55 additions and 57 deletions
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
Describe "Clear-Variable DRT Unit Tests" -Tags DRT{
|
Describe "Clear-Variable DRT Unit Tests" -Tags DRT{
|
||||||
It "Clear-Variable normal variable Name should works"{
|
It "Clear-Variable normal variable Name should works"{
|
||||||
Set-Variable foo bar
|
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"{
|
It "Clear-Variable Private variable Name should works and Get-Variable with local scope should throw exception"{
|
||||||
Set-Variable foo bar -Option Private
|
Set-Variable foo bar -Option Private
|
||||||
&{
|
&{
|
||||||
Clear-Variable -Name foo
|
|
||||||
try {
|
try {
|
||||||
Get-Variable -Name foo -Scope local -EA Stop
|
Get-Variable -Name foo -Scope local -EA Stop
|
||||||
Throw "Execution OK"
|
Throw "Execution OK"
|
||||||
|
|
Loading…
Reference in a new issue