コード例 #1
0
        public static void Withdraw_ShouldReturnTrue_When_FundsAreSufficient(double deposit, double withdraw)
        {
            var account = new RetirementAccount("123");

            account.Deposit(deposit);

            Assert.True(account.WithDraw(withdraw));
        }
コード例 #2
0
        public static void Withdraw_ShouldReturnFalse_When_FundsAreNotSufficient()
        {
            var account = new RetirementAccount("123");

            Assert.False(account.WithDraw(1));
        }