예제 #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));
        }