StringAssertAction Constructor (UITechnologyElement, String, String, StringAssertCondition, StringComparison)
Initializes a new instance of the StringAssertAction class.
Namespace: Microsoft.VisualStudio.TestTools.UITest.Common
Assembly: Microsoft.VisualStudio.TestTools.UITest.Common (in Microsoft.VisualStudio.TestTools.UITest.Common.dll)
Syntax
public StringAssertAction(
UITechnologyElement uiElement,
string propertyName,
string expectedValue,
StringAssertCondition propertyCondition,
StringComparison comparison
)
public:
StringAssertAction(
UITechnologyElement^ uiElement,
String^ propertyName,
String^ expectedValue,
StringAssertCondition propertyCondition,
StringComparison comparison
)
new :
uiElement:UITechnologyElement *
propertyName:string *
expectedValue:string *
propertyCondition:StringAssertCondition *
comparison:StringComparison -> StringAssertAction
Public Sub New (
uiElement As UITechnologyElement,
propertyName As String,
expectedValue As String,
propertyCondition As StringAssertCondition,
comparison As StringComparison
)
Parameters
uiElement
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElementA UITechnologyElement object.
propertyName
Type: System.StringThe name of the string property.
- propertyValue
The value of the property.
propertyCondition
Type: Microsoft.VisualStudio.TestTools.UITest.Common.StringAssertConditionA member of the StringAssertCondition enumeration that specifies the results of the assertion comparison.
comparison
Type: System.StringComparisonA member of the StringComparison enumeration that specifies how strings are compared.
See Also
UITechnologyElement
StringAssertCondition
StringComparison
StringAssertAction Overload
StringAssertAction Class
Microsoft.VisualStudio.TestTools.UITest.Common Namespace
Return to top