Test
PropertyTestCase
profiles a property.
public function PropertyTestCaseByProperty(property:PropertyInfo, referenceScope, referenceName:String):Void
Constructs a new PropertyTestCase
by property.
If you want to profile a method, referenced from a different scope and with a different name you can specify thse with the last two arguments. Note that if specified the method declared on the class will not be profiled but its reference.
property | the property to profile |
referenceScope | (optional) the scope of the property reference to profile |
referenceName | (optional) the name of the property reference to profile |
IllegalArgumentException | if the passed-in property is
null or undefined
|
public function PropertyTestCaseByObjectAndName(object, propertyName:String):Void
Constructs a new PropertyTestCase
by object and property name.
object | the object that declares the property to profile |
propertyName | the name of the property to profile |
IllegalArgumentException | if there is no property with the given
propertyName on the given object
|
public function getProperty(Void):PropertyInfo
Returns the profiled property.
the profiled property