public void BuyingOneItemTest() { var items = new List <string> { "Bread" }; Assert.AreEqual(5M, ShoppingBasketKata.GetPrice(items)); }
public void BuyingTwoItemsTest() { var items = new List <string> { "Bread", "Milk" }; Assert.AreEqual(10M, ShoppingBasketKata.GetPrice(items)); }
public void BuyingFourOfSameItemAndAnotherItemTest() { var items = new List <string> { "Bread", "Bread", "Bread", "Bread", "Milk" }; Assert.AreEqual(21M, ShoppingBasketKata.GetPrice(items)); }
public void BuyingFiveSameFiveDifferentItemsTest() { var items = new List <string> { "Bread", "Bread", "Bread", "Bread", "Bread", "Milk", "Milk", "Milk", "Milk", "Milk" }; Assert.AreEqual(39.5M, ShoppingBasketKata.GetPrice(items)); }