Пример #1
0
        public void QualityDecreasesBy2WhenSellInNotNegative()
        {
            var startingQuality = 20;
            var item            = new ConjuredItem("Conjured Mana Cake", 3, startingQuality);

            var updater = new ConjuredItemUpdater();

            for (var i = 0; i < 2; i++)
            {
                updater.UpdateItem((item));
                startingQuality -= 2;

                Assert.Equal(item.Quality, startingQuality);
            }
        }
Пример #2
0
        // Run updater for conjured item
        public void RunUpdater(ConjuredItem item)
        {
            var updater = new ConjuredItemUpdater();

            updater.UpdateItem(item);
        }