예제 #1
0
        public void Multiplicacion_NNumerosFloat_True()
        {
            // arrange
            var         numeros  = new float[] { 2.5f, 2, 5, 11.33f };
            var         prueba   = new Suma();
            const float expected = 283.25f;
            float       actual   = 0;

            // act
            actual = prueba.MultiplicacionNNumeros(numeros);

            // assert
            Assert.AreEqual(expected, actual);
        }
예제 #2
0
        public void Multiplicacion_NNumerosEnteros_True()
        {
            // arrange
            var       numeros  = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
            var       prueba   = new Suma();
            const int expected = 362880;
            int       actual   = 0;

            // act
            actual = prueba.MultiplicacionNNumeros(numeros);

            // assert
            Assert.AreEqual(expected, actual);
        }