예제 #1
0
        public void TestDepositNegativeAmount()
        {
            Deposit deposit = null;

            try
            {
                decimal amount = -100;
                deposit = new Deposit(amount);
            }
            finally
            {
                Assert.IsNull(deposit);

            }
        }
예제 #2
0
        public void TestAmount()
        {
            Deposit deposit = new Deposit((Decimal)100.11);

            Assert.AreEqual((Decimal)100.11, deposit.GetValue());
        }