ClassPropertyVerificationDescriptor
Definition
Namespace:ArtOfTest.WebAii.Design.IntrinsicTranslators.Silverlight.Descriptors
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
[DataContract(Namespace = "http://artoftest.com/schemas/WebAiiDesignCanvas/2.0.0")]
public abstract class PropertyVerificationDescriptor : XamlVerificationDescriptor, INotifyPropertyChanged, ICustomTypeDescriptor, IExtensibleDataObject, IInspectWebSettings, IExtendedParamEditorInfo
Inheritance: objectDataBoundObjectAutomationDescriptorVerificationDescriptorXamlVerificationDescriptorPropertyVerificationDescriptor
Derived Classes:
Implements:
Inherited Members
Constructors
PropertyVerificationDescriptor()
Declaration
public PropertyVerificationDescriptor()
PropertyVerificationDescriptor(IFrameworkElement, AutomationProperty, VerificationComparer, string, object)
Declaration
public PropertyVerificationDescriptor(IFrameworkElement target, AutomationProperty property, VerificationComparer comparer, string comparison, object value)
Parameters
target
property
comparer
comparison
value
PropertyVerificationDescriptor(IFrameworkElement, AutomationProperty, VerificationComparer, string, object, string)
Declaration
public PropertyVerificationDescriptor(IFrameworkElement target, AutomationProperty property, VerificationComparer comparer, string comparison, object value, string targetKey)
Parameters
target
property
comparer
comparison
value
targetKey
Properties
CompareType
Declaration
[SentenceParam("compare?", AutomationDescriptorType.Extraction)]
public virtual XamlStringCompareType CompareType { get; set; }
Property Value
Comparer
Declaration
[Browsable(false)]
[DataMember(Name = "Comparer")]
protected virtual VerificationComparer Comparer { get; set; }
Property Value
Comparison
Declaration
[DataMember(Name = "Comparison")]
public virtual string Comparison { get; set; }
Property Value
Property
Declaration
[Browsable(false)]
[DataMember(Name = "Property")]
protected virtual AutomationProperty Property { get; set; }
Property Value
Methods
DemangleValue(object)
When overriden in a derived class, converts the value stored in the verification descriptor to the value expected from the browser.
ExtractData(IApplication, DescriptorValueStore)
Declaration
public override void ExtractData(IApplication hostApp, DescriptorValueStore dataStore)
Parameters
hostApp
dataStore
Overrides
GenerateValueCode(object)
Declaration
protected CodeExpression GenerateValueCode(object value)
Parameters
value
Returns
GetCompareType(string)
Declaration
protected virtual XamlStringCompareType GetCompareType(string strValue)
Parameters
strValue
Returns
GetExtendedEditorInfo(DescriptorValueStore)
Collect additional values for each parameter to be used by the editor
Declaration
public virtual void GetExtendedEditorInfo(DescriptorValueStore valueStore)
Parameters
valueStore
The value store to add values in
Implements
GetProperty(FrameworkElement, string, Type, string)
Declaration
protected virtual object GetProperty(FrameworkElement element, string propertyName, Type propertyType, string attachedPropertyOwner)
Parameters
element
propertyName
propertyType
attachedPropertyOwner
Returns
MangleLiveValueCode(CodeExpression)
Declaration
protected virtual CodeExpression MangleLiveValueCode(CodeExpression liveValue)
Parameters
liveValue
Returns
OnParameterChanged(SentenceParam, Sentence)
Called when a parameter value has changed
Declaration
public virtual void OnParameterChanged(SentenceParam param, Sentence context)
Parameters
param
The parameter that changed
context
The context/sentence that this parameter is part of.
Implements
OnSentenceLoad(Sentence)
Called when the sentence is first loaded. Allows for setting initial values for each sentence if needed
Declaration
public virtual void OnSentenceLoad(Sentence context)
Parameters
context
The sentence context.
Implements
PopulateComparisonList(SentenceParam)
Declaration
public virtual object PopulateComparisonList(SentenceParam sentenceParam)
Parameters
sentenceParam
Returns
ToCode()
This method is called when the user requests code generation. The framework initializes the TestMethod property of this object with a new instance that this method simply needs to add its custom codegen to it.
Declaration
public override void ToCode()
Overrides
ValueCompare(DescriptorValueStore, object)
Declaration
public virtual bool ValueCompare(DescriptorValueStore dataStore, object value)
Parameters
dataStore
value
Returns
Verify(DescriptorValueStore)
Given a value store, verify against the constraints defined by this descriptor
Declaration
public override VerificationResult Verify(DescriptorValueStore dataStore)
Parameters
dataStore
The data store were values are captured
Returns
The verification result.
Overrides