public void Total_WithVolumeDiscount_ReturnsVolumePrice() { var saleItem = new SaleItem(new Product("A", 1, new VolumeDiscount(2, 3))); saleItem.Increment(); saleItem.Increment(); Assert.Equal(2, saleItem.GetPrice().Total); }
public void Total_AfterIncrement_ReturnsUnitPrice() { var saleItem = new SaleItem(new Product("A", 1)); saleItem.Increment(); Assert.Equal(2, saleItem.GetPrice().Total); }