예제 #1
0
 public void C3Test()
 {
     for (int i = 0; i < TestIterations; i++)
     {
         long backOff = Backoff.GetBackoff(2, 1);
         Assert.IsTrue(backOff == 0 || backOff == 1 || backOff == 7, "Backoff = " + backOff);
     }
 }
예제 #2
0
        public void CCeilingTest()
        {
            int c = 100;

            for (int i = 0; i < TestIterations; i++)
            {
                Assert.IsTrue(Backoff.GetBackoff(c, 1) <= 2047);
            }
        }
예제 #3
0
 public void CZeroTest()
 {
     long backoff = Backoff.GetBackoff(0, 1000);
 }
예제 #4
0
 public void CNegativeTest()
 {
     Backoff.GetBackoff(-1, 1000);
 }