UITestInterpreterCore.IsExpectedExceptionFromActionExecution 方法 (Exception)

 

如果给定异常从操作执行中是预期的则返回 true。

命名空间:   Microsoft.VisualStudio.TestTools.UITest.CodeGeneration
程序集:  Microsoft.VisualStudio.TestTools.UITest.Common(Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)

语法

protected internal virtual bool IsExpectedExceptionFromActionExecution(
    Exception ex
)
public protected:
virtual bool IsExpectedExceptionFromActionExecution(
    Exception^ ex
)
abstract IsExpectedExceptionFromActionExecution : 
        ex:Exception -> bool
override IsExpectedExceptionFromActionExecution : 
        ex:Exception -> bool
Protected Friend Overridable Function IsExpectedExceptionFromActionExecution (
    ex As Exception
) As Boolean

参数

  • ex

返回值

Type: System.Boolean

请参阅

UITestInterpreterCore 类
Microsoft.VisualStudio.TestTools.UITest.CodeGeneration 命名空间

返回页首