Exemple #1
0
 public void Testa_da_posicao_0_a_10()
 {
     for (int i = 0; i < posicao.Count(); i++)
     {
         Assert.AreEqual(numeros[i], Fibonacci.Elemento(posicao[i]));
     }
 }
        public void OSetimoElementoDeveSer13()
        {
            var result = Fibonacci.Elemento(7);

            Assert.AreEqual(13, result);
        }
        public void OSegundoElementoDeveSer1()
        {
            var result = Fibonacci.Elemento(1);

            Assert.AreEqual(1, result);
        }
        public void OPrimeiroElementoDeveSer0()
        {
            var result = Fibonacci.Elemento(0);

            Assert.AreEqual(0, result);
        }
Exemple #5
0
        public void OPrimeiroElementoDeveSer0()
        {
            var result = Fibonacci.Elemento(0);

            Assert.AreEqual(0, result, "Diferente de zero.");
        }