mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Merge pull request #902 from PowerShell/UpdateGetVariablePesterTest
Update Get-Variable Pester Test for issue 818 closed
This commit is contained in:
commit
bb5e7d2472
1 file changed
+2
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user