Exemple #1
0
        public void TestDivisaoComUmValorIgualAZero()
        {
            double         op1      = 22;
            double         op2      = 0;
            double         expected = 0;
            CalculadoraApp calc     = new CalculadoraApp();

            double retornoTeste = calc.Divisao(op1, op2);
        }
Exemple #2
0
        public void TestDivisaoComUmValorReal()
        {
            double         op1      = 22;
            double         op2      = 0.5;
            double         expected = 44;
            CalculadoraApp calc     = new CalculadoraApp();

            double retornoTeste = calc.Divisao(op1, op2);

            Assert.AreEqual(expected, retornoTeste);
        }
Exemple #3
0
        public void TestDivisaoComDoisValores()
        {
            double         op1      = 22;
            double         op2      = 2;
            double         expected = 11;
            CalculadoraApp calc     = new CalculadoraApp();

            double retornoTeste = calc.Divisao(op1, op2);

            Assert.AreEqual(expected, retornoTeste);
        }