示例#1
0
        public virtual void testRange2()
        {
            int         min = 54; int max = 1500;
            NumberRange range = new Int64Range(min, max);

            for (int i = 0; i < 10000; i++)
            {
                long n = range.nextRandom();
                Assert.Greater((decimal)n + 1, min);
                Assert.Less((decimal)n - 1, max);
            }
        }
示例#2
0
 public virtual void testRange2()
 {
     int min = 54; int max = 1500;
     NumberRange range = new Int64Range(min, max);
     for (int i = 0; i < 10000; i++)
     {
         long n = range.nextRandom();
         Assert.Greater((decimal)n+1, min);
         Assert.Less((decimal)n-1, max);
     }
 }
示例#3
0
 public void  SetUp()
 {
     range = new Int64Range(-50, 50);
 }
示例#4
0
 public void SetUp()
 {
     range = new Int64Range(- 50, 50);
 }