Пример #1
0
        public void TimedMaturuityAccountGetMoneyBalance()
        {
            TimedMaturuityAccount acc = new TimedMaturuityAccount(DateTime.Now.AddMilliseconds(100), 2, 100, 100);

            acc.addMoney(1000);
            Thread.Sleep(1000);
            acc.getMoney(100);
            Assert.AreEqual(700, acc.checkBalance());
        }
Пример #2
0
        public void TimedMaturuityAccountBalance()
        {
            TimedMaturuityAccount acc = new TimedMaturuityAccount(DateTime.Now.AddMilliseconds(100), 2, 100, 100);

            Assert.AreEqual(0, acc.checkBalance());
        }