public void TestDivisaoComUmValorIgualAZero() { double op1 = 22; double op2 = 0; double expected = 0; CalculadoraApp calc = new CalculadoraApp(); double retornoTeste = calc.Divisao(op1, op2); }
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); }
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); }