Exemplo n.º 1
0
        public void Backstage_Passes_SellIn_Decreases()
        {
            Item item = new Item
            {
                Name    = "Backstage passes to a TAFKAL80ETC concert",
                SellIn  = 3,
                Quality = 20
            };
            ConcertTicketsUpdater concertTicketsUpdater = new ConcertTicketsUpdater();

            concertTicketsUpdater.UpdateItem(item);
            Assert.AreEqual(2, item.SellIn);
        }
Exemplo n.º 2
0
        public void Backstage_Passes_Have_No_Quality_After_Date()
        {
            Item item = new Item
            {
                Name    = "Backstage passes to a TAFKAL80ETC concert",
                SellIn  = 0,
                Quality = 20
            };
            ConcertTicketsUpdater concertTicketsUpdater = new ConcertTicketsUpdater();

            concertTicketsUpdater.UpdateItem(item);
            Assert.AreEqual(0, item.Quality);
        }
Exemplo n.º 3
0
        public void Backstage_Passes_Increase_Quality_Fast_Close_To_Date()
        {
            Item item = new Item
            {
                Name    = "Backstage passes to a TAFKAL80ETC concert",
                SellIn  = 3,
                Quality = 20
            };
            ConcertTicketsUpdater concertTicketsUpdater = new ConcertTicketsUpdater();

            concertTicketsUpdater.UpdateItem(item);
            Assert.AreEqual(23, item.Quality);
        }