Example #1
0
        public void TestScenarioA()
        {
            cart.AddItem("A", 1);
            Assert.AreEqual(50, cart.CalculatePrice(store));

            cart.ClearItems();
            cart.AddItem("B", 1);
            Assert.AreEqual(30, cart.CalculatePrice(store));

            cart.ClearItems();
            cart.AddItem("C", 1);
            Assert.AreEqual(20, cart.CalculatePrice(store));
        }