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