Ejemplo n.º 1
0
        public void Cart_should_Contain_Different_Products_After_Products_Are_Added()
        {
            var fixture = new ShoppingCartFixture();

            fixture.Setup();

            fixture.AddProductToCart(Xbox, 1);
            fixture.AddProductToCart(Playstation, 2);

            fixture.AssertProductIsInCart(Xbox, 1);
            fixture.AssertProductIsInCart(Playstation, 2);
        }
Ejemplo n.º 2
0
        public void Cart_Should_Contain_Product_After_Product_Is_Added()
        {
            var fixture = new ShoppingCartFixture();

            fixture.Setup();

            fixture.AddProductToCart(Xbox, 2);

            fixture.AssertProductIsInCart(Xbox, 2);
        }
Ejemplo n.º 3
0
        public void Cart_Should_Update_Amount_When_Same_Product_Is_Added_Twice()
        {
            var fixture = new ShoppingCartFixture();

            fixture.Setup();

            fixture.AddProductToCart(Xbox, 2);
            fixture.AddProductToCart(Xbox, 3);

            fixture.AssertProductIsInCart(Xbox, 5);
        }