Beispiel #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);
     }
 }
Beispiel #2
0
        public void CCeilingTest()
        {
            int c = 100;

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