다음을 통해 공유


AssertAction Constructor (UITechnologyElement, String, String, AssertCondition, Type)

Initializes a new instance of the AssertAction class.

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

Syntax

'Declaration
Public Sub New ( _
    uiElement As UITechnologyElement, _
    propertyName As String, _
    expectedValue As String, _
    propertyCondition As AssertCondition, _
    type As Type _
)
public AssertAction(
    UITechnologyElement uiElement,
    string propertyName,
    string expectedValue,
    AssertCondition propertyCondition,
    Type type
)
public:
AssertAction(
    UITechnologyElement^ uiElement, 
    String^ propertyName, 
    String^ expectedValue, 
    AssertCondition propertyCondition, 
    Type^ type
)
new : 
        uiElement:UITechnologyElement * 
        propertyName:string * 
        expectedValue:string * 
        propertyCondition:AssertCondition * 
        type:Type -> AssertAction
public function AssertAction(
    uiElement : UITechnologyElement, 
    propertyName : String, 
    expectedValue : String, 
    propertyCondition : AssertCondition, 
    type : Type
)

Parameters

  • propertyName
    Type: String

    The name of the property.

  • expectedValue
    Type: String

    The expected value of the property as a string.

  • type
    Type: Type

    A Type that indicates the type of the property value.

.NET Framework Security

See Also

Reference

AssertAction Class

AssertAction Overload

Microsoft.VisualStudio.TestTools.UITest.Common Namespace

UITechnologyElement

AssertCondition