UITestInterpreter.IsExpectedExceptionFromActionExecution Method

Returns true if the given exception is expected from the execution of an action.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.CodeGeneration
Assembly:  Microsoft.VisualStudio.TestTools.UITest.CodeGeneration (in Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.dll)

Syntax

'Declaration
Protected Friend Overrides Function IsExpectedExceptionFromActionExecution ( _
    ex As Exception _
) As Boolean
protected internal override bool IsExpectedExceptionFromActionExecution(
    Exception ex
)
protected public:
virtual bool IsExpectedExceptionFromActionExecution(
    Exception^ ex
) override
abstract IsExpectedExceptionFromActionExecution : 
        ex:Exception -> bool  
override IsExpectedExceptionFromActionExecution : 
        ex:Exception -> bool
override function IsExpectedExceptionFromActionExecution(
    ex : Exception
) : boolean

Parameters

  • ex
    Type: Exception

Return Value

Type: Boolean

.NET Framework Security

See Also

Reference

UITestInterpreter Class

Microsoft.VisualStudio.TestTools.UITest.CodeGeneration Namespace