public void processPaymentWith1Item() { var orderCore = new OrderCore(); orderCore.processOrder(new OrderItem[] { new OrderItem("Chicken Wings 6pcs.", 1, 120) }); Assert.AreEqual(true, orderCore.processPayment(new CashPayment(120))); }
public void processPaymentWith0Item() { var orderCore = new OrderCore(); Assert.Throws <Exception>(() => orderCore.processPayment(new CashPayment(120))); }