static void Main(string[] args) { //var result = new EggAndFloor().CountMinSetp(2, 100); var result = new BinaryCount().Calc(8); //8 Console.WriteLine(result); Console.ReadLine(); }
public void NumNoConsecutiveOnes_PassedNumberLessThan1_ThrowsException() { Exception exception = null; try { BinaryCount.NumNoConsecutiveOnes(0); } catch (Exception ex) { exception = ex; } Assert.IsNotNull(exception); }
public void NumNoConsecutiveOnes_Passed3_Returns5() { Assert.AreEqual(5, BinaryCount.NumNoConsecutiveOnes(3)); }
public void NumNoConsecutiveOnes_Passed1_Returns2() { Assert.AreEqual(2, BinaryCount.NumNoConsecutiveOnes(1)); }