共用方式為


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