public void QualityIncreasesOverTime()
        {
            var startingQuality = 0;
            var item            = new TheOlderTheBetterItem("Aged Brie", 2, startingQuality);

            var updater = new TheOlderTheBetterItemUpdater();

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

                Assert.Equal(item.Quality, startingQuality);
            }
        }
Exemplo n.º 2
0
        // Run updater for TheOlderTheBetterItem.
        public void RunUpdater(TheOlderTheBetterItem item)
        {
            var updater = new TheOlderTheBetterItemUpdater();

            updater.UpdateItem(item);
        }