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