public void CalculateFibonacci() { var helper = new CommonRecursionHelper(); var result = helper.CalculateFibonacci(10); Assert.AreEqual(55, result); }
public void CreateFibonacciSeries() { var helper = new CommonRecursionHelper(); var result = helper.CreateFibonacciSeries(10); Assert.AreEqual("0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55", result); }
public void FindGCD() { var helper = new CommonRecursionHelper(); var result = helper.FindGCD(3324585, 125); Assert.AreEqual(5, result); }
public void ToPower() { var helper = new CommonRecursionHelper(); var result = helper.ToPow(5, 2); Assert.AreEqual(25, result); }
public void ToHex() { var helper = new CommonRecursionHelper(); var result = helper.ToHex(100); Assert.AreEqual("64", result); }
public void ToBinary() { var helper = new CommonRecursionHelper(); var result = helper.ToBinary(100); Assert.AreEqual("1100100", result); }
public void SumDigits() { var helper = new CommonRecursionHelper(); var result = helper.SumDigits(123456); Assert.AreEqual(21, result); }