初始化 AssertAction 类的新实例。
命名空间: Microsoft.VisualStudio.TestTools.UITest.Common
程序集: Microsoft.VisualStudio.TestTools.UITest.Common(Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)
语法
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 Sub New (
uiElement As UITechnologyElement,
propertyName As String,
expectedValue As String,
propertyCondition As AssertCondition,
type As Type
)
参数
- uiElement
UITechnologyElement。
- propertyName
属性的名称。
- expectedValue
作为字符串的属性的预期值。
- propertyCondition
AssertCondition 枚举的成员。
- type
Type,指示属性值的类型。
请参阅
UITechnologyElement
AssertCondition
AssertAction 重载
AssertAction 类
Microsoft.VisualStudio.TestTools.UITest.Common 命名空间
返回页首