Esempio n. 1
0
        public void QuitaCalidadTest(int quality, int qualityResult, int cantidad)
        {
            var item = new Item {
                Name = "Normal Product", SellIn = 1, Quality = quality
            };
            IList <Item> Items = new List <Item> {
                item
            };
            GildedRose app = new GildedRose(Items);

            // MetodoPrivate(app, "QuitaCalidad", new object[] { item, cantidad });
            // AssertExtender.InvokePrivateMethod(app, "QuitaCalidad", new object[] { item, cantidad });
            app.InvokePrivateMethod("QuitaCalidad", new object[] { item, cantidad });
            Assert.AreEqual(qualityResult, item.Quality);
        }