如果给定异常从操作执行中是预期的则返回 true。
命名空间: Microsoft.VisualStudio.TestTools.UITest.CodeGeneration
程序集: Microsoft.VisualStudio.TestTools.UITest.CodeGeneration(Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.dll 中)
语法
protected internal override bool IsExpectedExceptionFromActionExecution(
Exception ex
)
public protected:
virtual bool IsExpectedExceptionFromActionExecution(
Exception^ ex
) override
override IsExpectedExceptionFromActionExecution :
ex:Exception -> bool
Protected Friend Overrides Function IsExpectedExceptionFromActionExecution (
ex As Exception
) As Boolean
参数
- ex
返回值
Type: System.Boolean
请参阅
UITestInterpreter 类
Microsoft.VisualStudio.TestTools.UITest.CodeGeneration 命名空间
返回页首