Add get-runspace -name test
This commit is contained in:
commit
4fb7a9234a
1 changed files with 4 additions and 1 deletions
|
@ -12,6 +12,10 @@ Describe "Get-Runspace cmdlet tests" -Tag "CI" {
|
||||||
$runspace = get-runspace -instanceid $CurrentRunspace.InstanceId
|
$runspace = get-runspace -instanceid $CurrentRunspace.InstanceId
|
||||||
$runspace.InstanceId | Should be $ExpectedInstanceId
|
$runspace.InstanceId | Should be $ExpectedInstanceId
|
||||||
}
|
}
|
||||||
|
It "Get-Runspace with runspace name should return the correct runspace" {
|
||||||
|
$runspace = get-runspace -name $currentRunspace.Name
|
||||||
|
$runspace.InstanceId | Should be $ExpectedInstanceId
|
||||||
|
}
|
||||||
It "Get-Runspace with runspace Id should return the correct runspace" {
|
It "Get-Runspace with runspace Id should return the correct runspace" {
|
||||||
$runspace = get-runspace -id $CurrentRunspace.Id
|
$runspace = get-runspace -id $CurrentRunspace.Id
|
||||||
$runspace.InstanceId | Should be $ExpectedInstanceId
|
$runspace.InstanceId | Should be $ExpectedInstanceId
|
||||||
|
@ -24,7 +28,6 @@ Describe "Get-Runspace cmdlet tests" -Tag "CI" {
|
||||||
$r2 = [runspacefactory]::CreateRunspace()
|
$r2 = [runspacefactory]::CreateRunspace()
|
||||||
}
|
}
|
||||||
AfterAll {
|
AfterAll {
|
||||||
$r1.Close()
|
|
||||||
$r1.Dispose()
|
$r1.Dispose()
|
||||||
$r2.Dispose()
|
$r2.Dispose()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue