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
Afficher le fichier Open project: Chillisoft/habanero.testability Class Usage Examples

Méthodes publiques

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

Construct

Private Methods

Méthode Description
GenerateValidValue ( int overridingMinValue, int overridingMaxValue ) : int
GetMaxValue ( IPropRuleComparable propRule, int overridingMaxValue ) : int
GetMinValue ( IPropRuleComparable propRule, int overridingMinValue ) : int

Method Details

GenerateValidValue() public méthode

public GenerateValidValue ( ) : object
Résultat object

GenerateValidValueGreaterThan() public méthode

public GenerateValidValueGreaterThan ( object minValue ) : object
minValue object
Résultat object

GenerateValidValueLessThan() public méthode

public GenerateValidValueLessThan ( object maxValue ) : object
maxValue object
Résultat object

ValidValueGeneratorInt() public méthode

Construct
public ValidValueGeneratorInt ( IPropDef propDef ) : Habanero.Base
propDef IPropDef
Résultat Habanero.Base