public void AllItemsMaxToMinRun()
        {
            ItemManager.InitializeInventory();
            updateQuantityNTimes(100);

            dexterityVest = new DexterityVest("+5 Dexterity Vest", -90, 0);
            agedBri = new AgedBrie("Aged Brie", -98, 50);
            elixirOfMongoose = new MongooseElixir("Elixir of the Mongoose", -95, 0);
            handOfRagnaros = new Sulfuras("Sulfuras, Hand of Ragnaros", 0, 80);
            backstagePass = new BackstagePass("Backstage passes to a TAFKAL80ETC concert", -85, 0);
            manaCake = new ManaCake("Conjured Mana Cake", -97, 0);

            Assert.AreEqual(6, ItemManager.Items.Count());
            Assert.IsNotNull(ItemManager.Items.FirstOrDefault(i => i.Equals(dexterityVest)));
            Assert.IsNotNull(ItemManager.Items.FirstOrDefault(i => i.Equals(agedBri)));
            Assert.IsNotNull(ItemManager.Items.FirstOrDefault(i => i.Equals(elixirOfMongoose)));
            Assert.IsNotNull(ItemManager.Items.FirstOrDefault(i => i.Equals(handOfRagnaros)));
            Assert.IsNotNull(ItemManager.Items.FirstOrDefault(i => i.Equals(backstagePass)));
            Assert.IsNotNull(ItemManager.Items.FirstOrDefault(i => i.Equals(manaCake)));
        }
        public void RunUpdateQuantityUntilSellInIsZero()
        {
            ItemManager.InitializeInventory();
            updateQuantityNTimes(4);

            dexterityVest = new DexterityVest("+5 Dexterity Vest", 6, 16);
            agedBri = new AgedBrie("Aged Brie", -2, 6);
            elixirOfMongoose = new MongooseElixir("Elixir of the Mongoose", 1, 3);
            handOfRagnaros = new Sulfuras("Sulfuras, Hand of Ragnaros", 0, 80);
            backstagePass = new BackstagePass("Backstage passes to a TAFKAL80ETC concert", 11, 24);
            manaCake = new ManaCake("Conjured Mana Cake", -1, 1);

            Assert.AreEqual(6, ItemManager.Items.Count());
            Assert.IsNotNull(ItemManager.Items.FirstOrDefault(i => i.Equals(dexterityVest)));
            Assert.IsNotNull(ItemManager.Items.FirstOrDefault(i => i.Equals(agedBri)));
            Assert.IsNotNull(ItemManager.Items.FirstOrDefault(i => i.Equals(elixirOfMongoose)));
            Assert.IsNotNull(ItemManager.Items.FirstOrDefault(i => i.Equals(handOfRagnaros)));
            Assert.IsNotNull(ItemManager.Items.FirstOrDefault(i => i.Equals(backstagePass)));
            Assert.IsNotNull(ItemManager.Items.FirstOrDefault(i => i.Equals(manaCake)));
        }
        public void SingleRunOfUpdateQuantity()
        {
            ItemManager.UpdateQuality();

            dexterityVest = new DexterityVest("+5 Dexterity Vest", 9, 19);
            agedBri = new AgedBrie("Aged Brie", 1, 1);
            elixirOfMongoose = new MongooseElixir("Elixir of the Mongoose", 4, 6);
            handOfRagnaros = new Sulfuras("Sulfuras, Hand of Ragnaros", 0, 80);
            backstagePass = new BackstagePass("Backstage passes to a TAFKAL80ETC concert", 14, 21);
            manaCake = new ManaCake("Conjured Mana Cake", 2, 5);

            Assert.AreEqual(6, ItemManager.Items.Count());
            Assert.IsNotNull(ItemManager.Items.FirstOrDefault(i => i.Equals(dexterityVest)));
            Assert.IsNotNull(ItemManager.Items.FirstOrDefault(i => i.Equals(agedBri)));
            Assert.IsNotNull(ItemManager.Items.FirstOrDefault(i => i.Equals(elixirOfMongoose)));
            Assert.IsNotNull(ItemManager.Items.FirstOrDefault(i => i.Equals(handOfRagnaros)));
            Assert.IsNotNull(ItemManager.Items.FirstOrDefault(i => i.Equals(backstagePass)));
            Assert.IsNotNull(ItemManager.Items.FirstOrDefault(i => i.Equals(manaCake)));
        }
        public void Initialize()
        {
            ItemManager.InitializeInventory();

            dexterityVest = new DexterityVest("+5 Dexterity Vest", 10, 20);
            agedBri = new AgedBrie("Aged Brie", 2, 0);
            elixirOfMongoose = new MongooseElixir("Elixir of the Mongoose", 5, 7);
            handOfRagnaros = new Sulfuras("Sulfuras, Hand of Ragnaros", 0, 80);
            backstagePass = new BackstagePass("Backstage passes to a TAFKAL80ETC concert", 15, 20);
            manaCake = new ManaCake("Conjured Mana Cake", 3, 6);
        }