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); } }
public void CCeilingTest() { int c = 100; for (int i = 0; i < TestIterations; i++) { Assert.IsTrue(Backoff.GetBackoff(c, 1) <= 2047); } }
public void CZeroTest() { long backoff = Backoff.GetBackoff(0, 1000); }
public void CNegativeTest() { Backoff.GetBackoff(-1, 1000); }