public void TesteDepositoContaExpecial() { var ccN = new ContaCorrenteEspecial(); ccN.Saldo = 750.00m; var deposito = new DepositoService(ccN, 500); deposito.Executar(); var expected = 1250.00m; var actual = ccN.Saldo; Assert.AreEqual(expected, actual); }
public void TesteDepositoContaNormal() { var ccN = new ContaCorrenteNormal(); ccN.Saldo = 850.00m; var deposito = new DepositoService(ccN, 150); deposito.Executar(); var expected = 1000.00m; var actual = ccN.Saldo; Assert.AreEqual(expected, actual); }