Example #1
0
 public void IsPowerB_NegativeIntPassed_ReturnsFalse()
 {
     Assert.IsFalse(IsPowerOf2.IsPowerB(-8));
 }
Example #2
0
 public void IsPowerB_NonPowerOf2Passed_ReturnsFalse()
 {
     Assert.IsFalse(IsPowerOf2.IsPowerB(7));
 }
Example #3
0
 public void IsPowerB_ZeroPassed_ReturnsFalse()
 {
     Assert.IsFalse(IsPowerOf2.IsPowerB(0));
 }
Example #4
0
 public void IsPowerB_PowerOf2Passed_ReturnsTrue()
 {
     Assert.IsTrue(IsPowerOf2.IsPowerB(8));
 }