Пример #1
0
 public static ushort UnsignedWithinInclusiveRange(ushort min, ushort max)
 {
     return((ushort)IntegerGenerator.WithinInclusiveRange(min, max));
 }
Пример #2
0
 private static int AnyReasonableLength()
 {
     return(IntegerGenerator.WithinInclusiveRange(1, 10));
 }
Пример #3
0
 private static char Any()
 {
     return((char)IntegerGenerator.WithinInclusiveRange(char.MinValue, char.MaxValue));
 }
        public static IEnumerable <T> AnyNumberOf <T>(Func <T> createItem)
        {
            var numberOfItems = IntegerGenerator.WithinInclusiveRange(0, 10);

            return(numberOfItems.Select(createItem));
        }