예제 #1
0
 public void GiveCorrectChangeAmount()
 {
     BleakwindBuffet.Data.CashDrawerView cashDrawer = new BleakwindBuffet.Data.CashDrawerView();
     cashDrawer.Reset();
     cashDrawer.CustomerOnes = 4;
     Assert.Equal(cashDrawer.UpdateChange(2), 2);
 }
예제 #2
0
        public void GiveCorrectChange()
        {
            BleakwindBuffet.Data.CashDrawerView cashDrawer = new BleakwindBuffet.Data.CashDrawerView();
            cashDrawer.Reset();
            cashDrawer.CustomerOnes = 4;
            double change = cashDrawer.UpdateChange(2);

            cashDrawer.Change(change);
            Assert.Equal(cashDrawer.ChangeTwos, 1);
        }