Update fix based on comments for New-Object Pester Test

This commit is contained in:
JumpingYang001 committed 2016-05-31 21:29:14 -07:00
1 parent 9ed1d89978
commit ce2b3d0664
1 file changed
+6
+6
View File
@@ -73,6 +73,7 @@ Describe "New-Object DRT basic functionality" -Tags DRT{
try
{
New-Object -TypeName LiarType -EA Stop
Throw "Execution OK"
}
catch
{
@@ -85,6 +86,7 @@ Describe "New-Object DRT basic functionality" -Tags DRT{
try
{
New-Object -TypeName System.Management.Automation.PSVariable -ArgumentList "A", 1, None, "asd" -EA Stop
Throw "Execution OK"
}
catch
{
@@ -98,6 +100,7 @@ Describe "New-Object DRT basic functionality" -Tags DRT{
try
{
New-Object -TypeName AbstractEmployee -EA Stop
Throw "Execution OK"
}
catch
{
@@ -111,6 +114,7 @@ Describe "New-Object DRT basic functionality" -Tags DRT{
try
{
New-Object -TypeName Employee -ArgumentList 11 -EA Stop
Throw "Execution OK"
}
catch
{
@@ -124,6 +128,7 @@ Describe "New-Object DRT basic functionality" -Tags DRT{
try
{
New-Object -TypeName Employee -EA Stop
Throw "Execution OK"
}
catch
{
@@ -137,6 +142,7 @@ Describe "New-Object DRT basic functionality" -Tags DRT{
try
{
New-Object -TypeName WeirdEmployee+PrivateNestedWeirdEmployee -EA Stop
Throw "Execution OK"
}
catch
{