Ejemplo n.º 1
0
 public static ulong ULong(ulong maxValue)
 {
     return(Any.Value <ulong>(
                new MaxValueConstraint <ulong>(maxValue)
                ));
 }
Ejemplo n.º 2
0
 public static uint UInt(uint maxValue)
 {
     return(Any.Value <uint>(
                new MaxValueConstraint <uint>(maxValue)
                ));
 }
Ejemplo n.º 3
0
 public static ulong ULong()
 {
     return(Any.Value <ulong>());
 }
Ejemplo n.º 4
0
 public static string String()
 {
     return(Any.Value <string>());
 }
Ejemplo n.º 5
0
 public static sbyte SByte(sbyte maxValue)
 {
     return(Any.Value <sbyte>(
                new MaxValueConstraint <sbyte>(maxValue)
                ));
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Returns a random double between 0.0 and 1.0.
 /// </summary>
 /// <returns>A random double between 0.0 and 1.0.</returns>
 public static double Double()
 {
     return(Any.Value <double>());
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Returns a random decimal between 0.0 and 1.0.
 /// </summary>
 /// <returns>A random decimal between 0.0 and 1.0.</returns>
 public static decimal Decimal()
 {
     return(Any.Value <decimal>());
 }
Ejemplo n.º 8
0
 public static long Long(long maxValue)
 {
     return(Any.Value <long>(
                new MaxValueConstraint <long>(maxValue)
                ));
 }
Ejemplo n.º 9
0
 public static byte Byte()
 {
     return(Any.Value <byte>());
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Returns a random non-negative integer value.
 /// </summary>
 /// <param name="maxValue">A maximal possible value.</param>
 /// <returns>A non-negative integer value.</returns>
 public static int Integer(int maxValue)
 {
     return(Any.Value <int>(
                new MaxValueConstraint <int>(maxValue)
                ));
 }
Ejemplo n.º 11
0
 public static long Long()
 {
     return(Any.Value <long>());
 }
Ejemplo n.º 12
0
 public static int Integer()
 {
     return(Any.Value <int>());
 }
Ejemplo n.º 13
0
 public static short Short(short maxValue)
 {
     return(Any.Value <short>(
                new MaxValueConstraint <short>(maxValue)
                ));
 }
Ejemplo n.º 14
0
 public static short Short()
 {
     return(Any.Value <sbyte>());
 }
Ejemplo n.º 15
0
 /// <summary>
 /// Returns a random float between 0.0 and 1.0.
 /// </summary>
 /// <returns>A random float between 0.0 and 1.0.</returns>
 public static float Float()
 {
     return(Any.Value <float>());
 }
Ejemplo n.º 16
0
 public static byte Byte(byte maxValue)
 {
     return(Any.Value <byte>(
                new MaxValueConstraint <byte>(maxValue)
                ));
 }
Ejemplo n.º 17
0
 public static float Float(float maxValue)
 {
     return(Any.Value <float>(
                new MaxValueConstraint <float>(maxValue)
                ));
 }
Ejemplo n.º 18
0
 public static ushort UShort()
 {
     return(Any.Value <ushort>());
 }
Ejemplo n.º 19
0
 public static double Double(double maxValue)
 {
     return(Any.Value <double>(
                new MaxValueConstraint <double>(maxValue)
                ));
 }
Ejemplo n.º 20
0
 public static ushort UShort(ushort maxValue)
 {
     return(Any.Value <ushort>(
                new MaxValueConstraint <ushort>(maxValue)
                ));
 }
Ejemplo n.º 21
0
 public static decimal Decimal(decimal maxValue)
 {
     return(Any.Value <decimal>(
                new MaxValueConstraint <decimal>(maxValue)
                ));
 }
Ejemplo n.º 22
0
 public static uint UInt()
 {
     return(Any.Value <uint>());
 }
Ejemplo n.º 23
0
 /// <summary>
 /// Returns a random value of a specified type using registered generators.
 /// </summary>
 /// <typeparam name="T">A type of value to generate.</typeparam>
 /// <param name="constraints">Optional constraints to be applied to a generated value.</param>
 /// <returns>A value of a specified type.</returns>
 public static T Value <T>(params IConstraint[] constraints)
 {
     return((T)Any.Value(typeof(T), constraints));
 }
Ejemplo n.º 24
0
 public static sbyte SByte()
 {
     return(Any.Value <sbyte>());
 }