public void CheckingAbleToWithDraw() { CheckingAccount ca = new CheckingAccount(2000); ca.WithDrawMoney(1000); Assert.AreEqual(1000, ca.Balance); }
public void CheckingAbleToOverDraw() { CheckingAccount ca = new CheckingAccount(100); bool result = ca.WithDrawMoney(1000); Assert.IsTrue(result); Assert.AreEqual(-900, ca.Balance); }