Exemple #1
0
 public void WhenADayPasses()
 {
     Items.Add(new Item {
         Name = name, SellIn = currentSellin, Quality = currentQuality
     });
     global::GildedRoseApp.GildedRose app = new global::GildedRoseApp.GildedRose(Items);
     app.UpdateQuality();
 }
        static public void GivenQualityChangesAfterADayPassesForSpecificItems(Table table)
        {
            var parameters = table.CreateSet <Parameters>();

            foreach (Parameters p in parameters)
            {
                IList <Item> Items = new List <Item>();
                Items.Add(new Item {
                    Name = p.name, SellIn = p.cs, Quality = p.cq
                });
                global::GildedRoseApp.GildedRose app = new global::GildedRoseApp.GildedRose(Items);
                app.UpdateQuality();
                Assert.AreEqual(p.rs, Items[0].SellIn, "Sellin" + p.notes);
                Assert.AreEqual(p.rq, Items[0].Quality, "Quality" + p.notes);
            }
        }