Example #1
0
        public void SavingsAbleToWithDraw()
        {
            SavingsAccount ca = new SavingsAccount(2000);
            ca.WithDrawMoney(1000);

            Assert.AreEqual(950, ca.Balance);
        }
Example #2
0
        public void SavingsNotAllowedToOverDraw()
        {
            SavingsAccount ca = new SavingsAccount(100);
            bool result = ca.WithDrawMoney(1000);

            Assert.IsFalse(result);
            Assert.AreEqual(100, ca.Balance);
        }