Exemplo n.º 1
0
 public void GenerateFibonacciSequenceTests_OverflowException(int count, IEnumerable <int> expected)
 {
     // Arrange
     // Act
     // Assert
     Assert.ThrowsException <OverflowException>(() => FibonacciGenerator.GenerateFibonacciSequence(count).ToArray());
 }
Exemplo n.º 2
0
        public void GenerateFibonacciSequenceTests(int count, IEnumerable <int> expected)
        {
            // Arrange
            // Act
            var result = FibonacciGenerator.GenerateFibonacciSequence(count);

            // Assert
            CollectionAssert.AreEqual(expected.ToArray(), result.ToArray());
        }