public void WithdrawTest() { double expected = 600; AccountLib.Account account = new AccountLib.Account("John Doe", 900); account.Withdraw(300); Assert.AreEqual(account.Balance, expected); }
public void ExceptionTest() { double expected = 1000; AccountLib.Account account = new AccountLib.Account("John Doe", 900); account.Withdraw(800); Assert.AreEqual(account.Balance, expected); }