Exemple #1
0
        public void TesteCalcularValorComJurosCompostos(double ValorEmprestimo, int NumMeses, double Taxa, double ValorEsperado)
        {
            double valorAPagar = ExemploFinancas.CalcularValorComJurosCompostos(ValorEmprestimo, NumMeses, Taxa);

            Assert.AreEqual(ValorEsperado, valorAPagar);
        }
        public void Teste02JurosCompostos()
        {
            double valorAPagar = ExemploFinancas.CalcularValorComJurosCompostos(11937.28, 24, 4);

            Assert.AreEqual(30598.88, valorAPagar);
        }
        public void Teste03JurosCompostos()
        {
            double valorAPagar = ExemploFinancas.CalcularValorComJurosCompostos(15000, 36, 6);

            Assert.AreEqual(122208.78, valorAPagar);
        }
        public void Teste01JurosCompostos()
        {
            double valorAPagar = ExemploFinancas.CalcularValorComJurosCompostos(1000, 12, 2);

            Assert.AreEqual(1268.24, valorAPagar);
        }