public int solution(int N) { var binary = Convert.ToString(N, 2); var binaryGapFinder = new BinaryGapFinder(); return(binaryGapFinder.FindBinaryGap(binary)); }
public void FindNoGaps(string binary, int largestGap) { var findBinaryGap = _binaryGapFinder.FindBinaryGap(binary); findBinaryGap.ShouldBe(largestGap); }