예제 #1
0
        public void PriceCheck()
        {
            Checkout.Scan("A");
            Checkout.Scan("B");
            Checkout.Scan("C");
            Checkout.Scan("D");
            Checkout.Scan("D");
            Assert.Equal(0, Checkout.PriceCheck(""));
            Assert.Equal(50, Checkout.PriceCheck("A"));
            Assert.Equal(80, Checkout.PriceCheck("AB"));
            Assert.Equal(115, Checkout.PriceCheck("ABCD"));

            Checkout.ClearBasket();
        }