Beispiel #1
0
        public void DepositTest()
        {
            var _banking = new Banking();

            _banking.RecordDeposit(15);
            Assert.AreEqual(_banking.balance, 65);
        }
Beispiel #2
0
        public void HistoryTest()
        {
            var _banking = new Banking();

            _banking.RecordDeposit(15);

            Assert.AreEqual(_banking.history[0].NewBankBalance, 65);
            Assert.AreEqual(_banking.history[0].OldBankBalance, 50);
            Assert.AreEqual(_banking.history[0].Change, 15);
        }