コード例 #1
0
 public void ShouldGenerateFibbonacciSequence()
 {
     CollectionAssert.AreEqual(new List <int>()
     {
         1, 1, 2, 3, 5
     }, PEUtils.fibSeq.Take(5).ToList());
     CollectionAssert.AreEqual(new List <int>()
     {
         1, 1, 2, 3, 5
     }, PEUtils.firstNFibs(5).ToList());
     CollectionAssert.AreEqual(First20ElementsOfFibonacciSequence(), PEUtils.fibSeq.Take(20).ToList());
     CollectionAssert.AreEqual(First20ElementsOfFibonacciSequence(), PEUtils.firstNFibs(20).ToList());
 }