Random stride class
상속: IStride
예제 #1
0
 public void RandomStrideClassTest()
 {
     const int Min = 0;
     const int Max = 253;
     RandomStride randomStride = new RandomStride(Min, Max);
     const int Count = 1024;
     for (int i = 0; i < Count; i++)
     {
         int skip = randomStride.NextStride;
         Assert.IsTrue(skip <= Max);
         Assert.IsTrue(skip >= Min);
     }
 }
예제 #2
0
 public void RandomStrideClassBadMinMaxTest()
 {
     RandomStride randomStride = new RandomStride(253, 0);
 }