Konstruktor AssertAction — (UITechnologyElement, String, String, AssertCondition, Type)
Inicjuje nowe wystąpienie AssertAction klasy.
Przestrzeń nazw: Microsoft.VisualStudio.TestTools.UITest.Common
Zestaw: Microsoft.VisualStudio.TestTools.UITest.Common (w Microsoft.VisualStudio.TestTools.UITest.Common.dll)
Składnia
'Deklaracja
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
)
Parametry
- uiElement
Typ: Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElement
A UITechnologyElement.
- propertyName
Typ: System.String
Nazwa właściwości.
- expectedValue
Typ: System.String
Spodziewana wartość właściwości jako ciąg znaków.
- propertyCondition
Typ: Microsoft.VisualStudio.TestTools.UITest.Common.AssertCondition
Członek AssertCondition wyliczania.
- type
Typ: System.Type
A Type wskazuje, że typ wartości właściwości.
Zabezpieczenia programu .NET Framework
- Pełne zaufanie do bezpośredniego wywołującego. Tego elementu członkowskiego nie można używać w kodzie częściowo zaufanym. Aby uzyskać więcej informacji, zobacz Przy użyciu bibliotek z częściowo zaufanego kodu..
Zobacz też
Informacje
Przestrzeń nazw Microsoft.VisualStudio.TestTools.UITest.Common