public void LargestInput()
 {
     TestInstance.GetMaxBinaryGap(int.MaxValue).ShouldBe(0);
 }
 public void CodilitySample32()
 {
     TestInstance.GetMaxBinaryGap(32).ShouldBe(0);
 }
 public void Number145()
 {
     TestInstance.GetMaxBinaryGap(145).ShouldBe(3);
 }
 public void LargestPossibleBinaryGap()
 {
     TestInstance.GetMaxBinaryGap(1073741825).ShouldBe(29);
 }
 public void Number37()
 {
     TestInstance.GetMaxBinaryGap(37).ShouldBe(2);
 }
 public void Number73()
 {
     TestInstance.GetMaxBinaryGap(73).ShouldBe(2);
 }
 public void Number10()
 {
     TestInstance.GetMaxBinaryGap(10).ShouldBe(1);
 }
 public void Number7()
 {
     TestInstance.GetMaxBinaryGap(7).ShouldBe(0);
 }
 [TestCase(1073741824)] // 1000000000000000000000000000000
 public void Leading1_WithTrailingZeros(int N)
 {
     TestInstance.GetMaxBinaryGap(N).ShouldBe(0);
 }
 public void Number0()
 {
     Should.Throw <ArgumentException>(() => TestInstance.GetMaxBinaryGap(0));
 }
 public void CodilitySample1041()
 {
     TestInstance.GetMaxBinaryGap(1041).ShouldBe(5);
 }