Exemple #1
0
        public void BuyingOneItemTest()
        {
            var items = new List <string>
            {
                "Bread"
            };

            Assert.AreEqual(5M, ShoppingBasketKata.GetPrice(items));
        }
Exemple #2
0
        public void BuyingTwoItemsTest()
        {
            var items = new List <string>
            {
                "Bread",
                "Milk"
            };

            Assert.AreEqual(10M, ShoppingBasketKata.GetPrice(items));
        }
Exemple #3
0
        public void BuyingFourOfSameItemAndAnotherItemTest()
        {
            var items = new List <string>
            {
                "Bread",
                "Bread",
                "Bread",
                "Bread",
                "Milk"
            };

            Assert.AreEqual(21M, ShoppingBasketKata.GetPrice(items));
        }
Exemple #4
0
        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));
        }