mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Update fix based on comments for New-Object Pester Test
This commit is contained in:
1 parent
9ed1d89978
commit
ce2b3d0664
1 file changed
+6
@@ -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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user