示例#1
0
        public void DepositTest()
        {
            Teller   teller   = new Teller();
            MockBank mockBank = new MockBank();

            teller.BankInstance = mockBank;
            teller.Deposit(0);
            Assert.AreEqual(0, mockBank.AmountDeposited);
            teller.Deposit(50);
            Assert.AreEqual(50, mockBank.AmountDeposited);
        }