public void AtIndexTest() { for (int i = 0; i < _fib.Length; i++) { Assert.Equal(_fib[i], Fibonacci.AtIndex(i)); } }
public void AtIndexExceptionTest() { Assert.Throws <ArgumentException>(() => Fibonacci.AtIndex(-1)); }