Enable bug777 skip for Get-Variable

This commit is contained in:
JumpingYang001 authored and Andrew Schwartzmeyer committed 2016-04-13 09:41:04 -07:00
1 parent 95eade1305
commit 0531914377
1 file changed
+4 -2
+4 -2
View File
@@ -1,6 +1,7 @@
Describe "Get-Variable DRT Unit Tests" -Tags DRT{
It "Get-Variable not exist variable Name should throw ItemNotFoundException skip now as bug#777" -Skip:$true{
It "Get-Variable not exist variable Name should throw ItemNotFoundException"{
$ErrorActionPreference = "Stop"
try {
Get-Variable -Name nonexistingVariableName
Throw "Execution OK"
@@ -8,6 +9,7 @@ Describe "Get-Variable DRT Unit Tests" -Tags DRT{
catch {
$_.FullyQualifiedErrorId | Should be "VariableNotFound,Microsoft.PowerShell.Commands.GetVariableCommand"
}
$ErrorActionPreference = "SilentlyContinue"
}
It "Get-Variable exist variable Name with include and bogus exclude should work"{
@@ -39,7 +41,7 @@ Describe "Get-Variable DRT Unit Tests" -Tags DRT{
$var1[2].Value|Should Be "another test"
}
It "Get-Variable an exist private variable Name should throw ItemNotFoundException skip now as bug#777" -Skip:$true{
It "Get-Variable an exist private variable Name should throw ItemNotFoundException skip now as bug#818" -Skip:$true{
try {
Set-Variable newVar testing -Option Private
Get-Variable -Name newVar