Example #1
0
        public void Increase_Decrease()
        {
            var cartItem = new CartItem(this._mockProduct.Object);

            cartItem.Count.ShouldBe(1);

            cartItem.IncreaseCount();
            cartItem.Count.ShouldBe(2);

            cartItem.DecreaseCount();
            cartItem.Count.ShouldBe(1);
        }