コード例 #1
0
ファイル: BankerTest.cs プロジェクト: georgesp/BankAccount
        public void WithdrawShouldSubstractAmount()
        {
            decimal withdrawAmount      = 10;
            decimal expectedFinalAmount = -withdrawAmount;

            _banker.Withdraw(_myAccount, withdrawAmount);

            decimal finalAmount = _banker.GetAmount(_myAccount);

            Assert.AreEqual(expectedFinalAmount, finalAmount);
        }