public void Fibonacci_When100_ShouldReturn354224848179261915075() { var expected = BigInteger.Parse("354224848179261915075"); FibonacciCalculator Calculator = new FibonacciCalculator(); var result = Calculator.CalculateValue(100); Assert.AreEqual(expected.ToString(), result); }
public void Fibonacci_WhenGreatherThan100_ShouldReturnAStringStatingTheRangeOfTheApplication() { FibonacciCalculator Calculator = new FibonacciCalculator(); Assert.AreEqual("Use a value between 0 and 100", Calculator.CalculateValue(102)); }
public void Fibonacci_When6_ShouldReturn8() { FibonacciCalculator Calculator = new FibonacciCalculator(); Assert.AreEqual(8.ToString(), Calculator.CalculateValue(6)); }
public void Fibonacci_When20_ShouldReturn6765() { FibonacciCalculator Calculator = new FibonacciCalculator(); Assert.AreEqual(6765.ToString(), Calculator.CalculateValue(20)); }
public string Get(int root) { FibonacciCalculator Calculator = new FibonacciCalculator(); return(Calculator.CalculateValue(root).ToString()); }