Ejemplo n.º 1
0
        public void when_quality_for_sulfuras_is_diferent_to_80_return_gildedrose_exception()
        {
            var product = new SulfurasProduct {
                Name = "Sulfuras", Sellin = -1, Quality = 50
            };

            var ex = Assert.Throws <GildedRoseException>(() => product.UpdateProduct());

            ex.MessageError.Should().Be("The quality Sulfuras always 80");
        }
Ejemplo n.º 2
0
        public void quality_and_sellin_never_decrease_when_product_name_is_sulfuras()
        {
            var product = new SulfurasProduct {
                Name = "Sulfuras", Sellin = 10, Quality = 80
            };

            product.UpdateProduct();

            product.Sellin.Should().Be(10);
            product.Quality.Should().Be(80);
        }
Ejemplo n.º 3
0
        public void  quality_for_sulfuras_never_change_of_80()
        {
            var product = new SulfurasProduct {
                Name = "Sulfuras", Sellin = 12, Quality = 80
            };

            product.UpdateProduct();

            product.Sellin.Should().Be(12);
            product.Quality.Should().Be(80);
        }