Exemplo n.º 1
0
        public void WithdrawShouldSubstractAmount()
        {
            decimal withdrawAmount      = 10;
            decimal expectedFinalAmount = -withdrawAmount;

            _banker.Withdraw(_myAccount, withdrawAmount);

            decimal finalAmount = _banker.GetAmount(_myAccount);

            Assert.AreEqual(expectedFinalAmount, finalAmount);
        }