public void GetFibonacciSequence_RangeOfSequenceLengths_FibonacciSequence(int length, long[] expectedSequence) { BigInteger[] expected = new BigInteger[length]; for (var i = 0; i < length; i++) { expected[i] = new BigInteger(expectedSequence[i]); } var actualSequence = FibonacciGenerator.GetFibonacciSequence(length); Assert.AreEqual(expected, actualSequence); }
public void FibonacciGeneratorTest_InvalidData_ResultException(int value) { Assert.Throws <ArgumentException>(() => FibonacciGenerator.GetFibonacciSequence(value)); }