예제 #1
0
        public void AddTransaction_Deposit()
        {
            var    atv    = new AuditTrail();
            double amount = 4.50;

            atv.AddTransaction(TransType.Deposit, amount);
            Assert.AreEqual(1, atv.NumberOfTransactions, "wrong number of transactions");
            Assert.AreEqual(amount, atv.TransactionLog[0].Amount, "wrong amount!");
        }