示例#1
0
        public void ExceptionTest()
        {
            double expected = 1000;

            AccountLib.Account account = new AccountLib.Account("John Doe", 900);

            account.Withdraw(800);

            Assert.AreEqual(account.Balance, expected);
        }
示例#2
0
        public void WithdrawTest()
        {
            double expected = 600;

            AccountLib.Account account = new AccountLib.Account("John Doe", 900);

            account.Withdraw(300);

            Assert.AreEqual(account.Balance, expected);
        }
示例#3
0
        public void DepositTest()
        {
            double expected = 1000;

            AccountLib.Account account = new AccountLib.Account("John Doe", 900);

            account.Deposit(100);

            Assert.AreEqual(account.Balance, expected);
        }