Пример #1
0
        public void SommaPositivi()
        {
            int a = 3, b = 7;
            int sommaAspettata = 10;
            int sommaEffettiva = Gestione.Somma(a, b);

            Assert.AreEqual(sommaAspettata, sommaEffettiva);
        }
Пример #2
0
        public void SommaNulli()
        {
            int a = 0, b = 0;
            int sommaAspettata = 0;
            int sommaEffettiva = Gestione.Somma(a, b);

            Assert.AreEqual(sommaAspettata, sommaEffettiva);
        }
Пример #3
0
        public void SommaTestPositivi()
        {
            int a = 3;
            int b = 4;
            int risultato_aspettato = 7;
            int risultato_effettivo = Gestione.Somma(a, b);

            Assert.AreEqual(risultato_aspettato, risultato_effettivo);
        }
Пример #4
0
        public void SommaTestNulloNeg()
        {
            int a = 0;
            int b = -4;
            int risultato_aspettato = -4;
            int risultato_effettivo = Gestione.Somma(a, b);

            Assert.AreEqual(risultato_aspettato, risultato_effettivo);
        }
Пример #5
0
        public void SommaTestNegativi()
        {
            int a = -3;
            int b = -2;
            int risultato_aspettato = -5;
            int risultato_effettivo = Gestione.Somma(a, b);

            Assert.AreEqual(risultato_aspettato, risultato_effettivo);
        }
Пример #6
0
        public void SommaTest()
        {
            double a = 10;
            double b = 5;
            double valore_aspettato = 15;
            double valore_effettivo = Gestione.Somma(a, b);

            Assert.AreEqual(valore_aspettato, valore_effettivo);
        }
        public void TestSommaPositivi()
        {
            int a = 3;
            int b = 7;
            int somma_aspettata = 10;
            int somma_effettiva;

            somma_effettiva = Gestione.Somma(a, b);
            Assert.AreEqual(somma_aspettata, somma_effettiva);
        }
        public void TestSommaMisto()
        {
            int a = -10;
            int b = 1;
            int somma_aspettata = -9;
            int somma_effettiva;

            somma_effettiva = Gestione.Somma(a, b);
            Assert.AreEqual(somma_aspettata, somma_effettiva);
        }
        public void TestSommaNegativi()
        {
            int a = -3;
            int b = -2;
            int somma_aspettata = -5;
            int somma_effettiva;

            somma_effettiva = Gestione.Somma(a, b);
            Assert.AreEqual(somma_aspettata, somma_effettiva);
        }
        public void TestSommaNulli()
        {
            int a = 0;
            int b = 0;
            int somma_aspettata = 0;
            int somma_effettiva;

            somma_effettiva = Gestione.Somma(a, b);
            Assert.AreEqual(somma_aspettata, somma_effettiva);
        }
Пример #11
0
        public static void TestSommareali()
        {
            double a = 4.5;
            double b = 2.5;
            double somma_aspettata = -7;
            double somma_effettiva;

            somma_effettiva = Gestione.Somma(a, b);
            Assert.AreEqual(somma_aspettata, somma_effettiva);
        }
Пример #12
0
        public void TestSommaPositivoNegativo()
        {
            int a = -10;
            int b = +2;
            int somma_aspettata = -8;
            int somma_effettiva;

            somma_effettiva = Gestione.Somma(a, b);
            Assert.AreEqual(somma_aspettata, somma_effettiva);
        }