PeanutButter
Loading...
Searching...
No Matches
PeanutButter.RandomGenerators.RequireNonZero Class Reference

Requires that the named property is randomized to a non-zero value. More...

Inheritance diagram for PeanutButter.RandomGenerators.RequireNonZero:
PeanutButter.RandomGenerators.RandomizerAttribute PeanutButter.RandomGenerators.RequireNonZeroId

Public Member Functions

 RequireNonZero (string propertyName, params string[] moreProps)
override void SetRandomValue (PropertyOrField propInfo, ref object target)
Public Member Functions inherited from PeanutButter.RandomGenerators.RandomizerAttribute
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

Additional Inherited Members

Protected Member Functions inherited from PeanutButter.RandomGenerators.RandomizerAttribute
 RandomizerAttribute (string propertyName, params string[] otherPropertyNames)
 Constructs this attribute to act against one or more properties by name.
Properties inherited from PeanutButter.RandomGenerators.RandomizerAttribute
string[] PropertyNames [get]
 The name of the property to which this randomizer attribute pertains.

Detailed Description

Requires that the named property is randomized to a non-zero value.


The documentation for this class was generated from the following file:
  • source/TestUtils/PeanutButter.RandomGenerators/RequireNonZero.cs