public void GiveCorrectChangeAmount() { BleakwindBuffet.Data.CashDrawerView cashDrawer = new BleakwindBuffet.Data.CashDrawerView(); cashDrawer.Reset(); cashDrawer.CustomerOnes = 4; Assert.Equal(cashDrawer.UpdateChange(2), 2); }
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); }