public void BinaryGap_OneGap_Success() { Assert.AreEqual(2, BinaryGap.Solution(9)); }
public void BinaryGap_LargeNumber_Success() { Assert.AreEqual(28, BinaryGap.Solution(1610612737)); }
public void BinaryGap_PowOfTwo_Success() { Assert.AreEqual(0, BinaryGap.Solution(16)); }
public void BinaryGap_NoGap_Success() { Assert.AreEqual(0, BinaryGap.Solution(15)); }
public void BinaryGap_OneGapStartWithZero_Success() { Assert.AreEqual(1, BinaryGap.Solution(20)); }
public void BinaryGap_TwoGaps_Success() { Assert.AreEqual(4, BinaryGap.Solution(529)); }