C# Class Habanero.Testability.ValidValueGeneratorInt

Generates a Valid Value for an Integer (int or Int32) based on the min or max value in the PropDef
Inheritance: ValidValueGenerator, IValidValueGeneratorNumeric
Show file Open project: Chillisoft/habanero.testability Class Usage Examples

Public Methods

Method Description
GenerateValidValue ( ) : object
GenerateValidValueGreaterThan ( object minValue ) : object
GenerateValidValueLessThan ( object maxValue ) : object
ValidValueGeneratorInt ( IPropDef propDef ) : Habanero.Base

Construct

Private Methods

Method Description
GenerateValidValue ( int overridingMinValue, int overridingMaxValue ) : int
GetMaxValue ( IPropRuleComparable propRule, int overridingMaxValue ) : int
GetMinValue ( IPropRuleComparable propRule, int overridingMinValue ) : int

Method Details

GenerateValidValue() public method

public GenerateValidValue ( ) : object
return object

GenerateValidValueGreaterThan() public method

public GenerateValidValueGreaterThan ( object minValue ) : object
minValue object
return object

GenerateValidValueLessThan() public method

public GenerateValidValueLessThan ( object maxValue ) : object
maxValue object
return object

ValidValueGeneratorInt() public method

Construct
public ValidValueGeneratorInt ( IPropDef propDef ) : Habanero.Base
propDef IPropDef
return Habanero.Base