PeanutButter
Loading...
Searching...
No Matches
PeanutButter.RandomGenerators.RandomValueGen.DefaultRanges Class Reference

Exposes the default range values used within RandomValueGen when the ranges are omitted by calling code. More...

Static Public Attributes

const int MIN_WORDS = 10
 Default minimum number of words to generate.
const int MAX_WORDS = 50
 Default maximum number of words to generate.
const int DEFAULT_WORD_RANGE = MAX_WORDS - MIN_WORDS
 Default range of the number of words to generate.
const int MINLENGTH_STRING = 8
 Default minimum length of random strings.
const int MINLENGTH_BYTES = 0
 Default minimum number of bytes to return.
const int MAXLENGTH_BYTES = 1024
 Default maximum number of bytes to return.
const int DEFAULT_BYTES_RANGE = MAXLENGTH_BYTES - MINLENGTH_BYTES
 Defines the range of default bytes.
const int MIN_INT_VALUE = 0
 Default minimum integer value returned.
const int MAX_INT_VALUE = 10
 Default maximum integer value returned.
const int DEFAULT_INT_RANGE = MAX_INT_VALUE - MIN_INT_VALUE
 Defines the range of default integer max / min.
const int MIN_MONEY_VALUE = 10
 Defines the default minimum money value returned.
const int MAX_MONEY_VALUE = 100
 Defines the default maximum money value returned.
const int DEFAULT_MONEY_RANGE = MAX_MONEY_VALUE - MIN_MONEY_VALUE
 Defines the range of the default money max / min.
const int MIN_TAX_VALUE = 3
 Defines the default minimum TAX value returned.
const int MAX_TAX_VALUE = 20
 Defines the default maximum TAX value returned.
const int DEFAULT_TAX_RANGE = MAX_TAX_VALUE - MIN_TAX_VALUE
 Defines the range of the default TAX max / min.
const int MIN_LONG_VALUE = 0
 Default minimum long value returned.
const int MAX_LONG_VALUE = 1000
 Default maximum long value returned.
const int DEFAULT_LONG_RANGE = MAX_LONG_VALUE - MIN_LONG_VALUE
 Defines the range of default long min / max.
const int MIN_ITEMS = 0
 Default minimum number of items in a random collection.
const int MAX_ITEMS = 10
 Default Maximum number of items in a random collection.
const int ONE_DAY_IN_SECONDS = 86400
 Number of seconds in a day.
const int DEFAULT_MIN_SUBSET_ITEMS = 1
 The default number of items to return via GetSubSetOf.
const int DEFAULT_MAX_SUBSET_ITEMS = -1
 The max number of items to return via GetSubSetOf.

Detailed Description

Exposes the default range values used within RandomValueGen when the ranges are omitted by calling code.

Member Data Documentation

◆ DEFAULT_MAX_SUBSET_ITEMS

const int PeanutButter.RandomGenerators.RandomValueGen.DefaultRanges.DEFAULT_MAX_SUBSET_ITEMS = -1
static

The max number of items to return via GetSubSetOf.

  • negative numbers are inferred to mean (collection size - N)

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