小编Eri*_*unn的帖子

我如何 Powershell Pester 测试 ThrowTerminatingError

我如何 Powershell Pester 测试 ThrowTerminatingError ?

catch
{
    $PSCmdlet.ThrowTerminatingError( $PSItem )
}
Run Code Online (Sandbox Code Playgroud)

输出:

Missed command:

File                  Class Function          Line Command
----                  ----- --------          ---- -------
Test-ServerOnline.ps1       Test-ServerOnline   50 $PSCmdlet.ThrowTerminatingError( $PSItem )
Run Code Online (Sandbox Code Playgroud)

testing powershell pester

4
推荐指数
1
解决办法
853
查看次数

标签 统计

pester ×1

powershell ×1

testing ×1