Exemplo n.º 1
0
        public void Quality_degrades_twice_after_the_concert()
        {
            Item item = new Item()
            {
                Name    = "item",
                Quality = 30, SellIn = -5
            };

            Items.Add(item);
            gildedRoseKata.UpdateQuality();
            Assert.AreEqual(item.Quality, 28);
        }
Exemplo n.º 2
0
        public static void Main(string[] args)
        {
            Console.WriteLine("OMGHAI!");
            IList <Item> Items = ListOfItems();
            var          app   = new GildedRoseKata(Items);


            for (var i = 0; i < 31; i++)
            {
                Console.WriteLine("-------- day " + i + " --------");
                Console.WriteLine("name, sellIn, quality");
                for (var j = 0; j < Items.Count; j++)
                {
                    System.Console.WriteLine(Items[j].Name + ", " + Items[j].SellIn + ", " + Items[j].Quality);
                }
                Console.WriteLine("");
                app.UpdateQuality();
            }
        }