コード例 #1
0
        public void WithdrawTest()
        {
            double expected = 600;

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

            account.Withdraw(300);

            Assert.AreEqual(account.Balance, expected);
        }
コード例 #2
0
        public void ExceptionTest()
        {
            double expected = 1000;

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

            account.Withdraw(800);

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