AssertAction 构造函数 (UITechnologyElement, String, String, AssertCondition, Type)

初始化 AssertAction 类的新实例。

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

语法

声明
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
)

参数

  • expectedValue
    类型:System.String
    作为字符串的属性的预期值。

.NET Framework 安全性

请参见

参考

AssertAction 类

AssertAction 重载

Microsoft.VisualStudio.TestTools.UITest.Common 命名空间

UITechnologyElement

AssertCondition