예제 #1
0
        public void CheckingAbleToWithDraw()
        {
            CheckingAccount ca = new CheckingAccount(2000);
            ca.WithDrawMoney(1000);

            Assert.AreEqual(1000, ca.Balance);
        }
예제 #2
0
        public void CheckingAbleToOverDraw()
        {
            CheckingAccount ca = new CheckingAccount(100);
            bool result = ca.WithDrawMoney(1000);

            Assert.IsTrue(result);
            Assert.AreEqual(-900, ca.Balance);
        }