Base class to use when wishing to guide randomization on a builder via attributes.
More...
|
| void | SetRandomValue (PropertyOrField propInfo, ref object target) |
| | Actually invoked when attempting to set a random value on the named property.
|
| |
| virtual void | Init (Type type) |
| | override in your implementation if you'd like to late-initialize relevant property names
|
| |
|
| | RandomizerAttribute (string propertyName, params string[] otherPropertyNames) |
| | Constructs this attribute to act against one or more properties by name.
|
| |
|
|
string[] | PropertyNames [get] |
| | The name of the property to which this randomizer attribute pertains.
|
| |
Base class to use when wishing to guide randomization on a builder via attributes.
◆ RandomizerAttribute()
| PeanutButter.RandomGenerators.RandomizerAttribute.RandomizerAttribute |
( |
string |
propertyName, |
|
|
params string[] |
otherPropertyNames |
|
) |
| |
|
protected |
Constructs this attribute to act against one or more properties by name.
- Parameters
-
| propertyName | initial property name |
| otherPropertyNames | any additional property names |
◆ Init()
| virtual void PeanutButter.RandomGenerators.RandomizerAttribute.Init |
( |
Type |
type | ) |
|
|
virtual |
◆ SetRandomValue()
| void PeanutButter.RandomGenerators.RandomizerAttribute.SetRandomValue |
( |
PropertyOrField |
propInfo, |
|
|
ref object |
target |
|
) |
| |
|
abstract |
Actually invoked when attempting to set a random value on the named property.
- Parameters
-
The documentation for this class was generated from the following file:
- source/TestUtils/PeanutButter.RandomGenerators/RandomizerAttribute.cs