Ejemplo n.º 1
0
        public void Then_the_product_should_no_longer_be_in_the_basket()
        {
            _basket.Remove(_product);

            _basket.Items().FirstOrDefault(i => i.Product == _product).Should().BeNull();
            _basket.NumberOfItemsInBasket().Should().Be(0);
        }
        public void Then_the_product_should_no_longer_be_in_the_basket()
        {
            _basket.Remove(_product);

            Assert.IsNull(_basket.Items().FirstOrDefault(i => i.Product == _product));

            Assert.AreEqual(0, _basket.NumberOfItemsInBasket());
        }
 public void Then_the_basket_should_contain_a_total_of_one_item()
 {
     Assert.AreEqual(1, _basket.NumberOfItemsInBasket());
 }
 public void Then_the_total_number_of_items_in_a_basket_should_be_equal_to_2()
 {
     _basket.NumberOfItemsInBasket().Should().Be(2);
 }
Ejemplo n.º 5
0
 public void Then_the_total_number_of_items_in_a_basket_should_be_equal_to_2()
 {
     Assert.AreEqual(2, _basket.NumberOfItemsInBasket());
 }
 public void Then_the_basket_should_contain_a_total_of_one_item()
 {
     _basket.NumberOfItemsInBasket().Should().Be(1);
 }