Example #1
0
        public void ReturnsRegularQualityManager()
        {
            IList <Item> Items = new List <Item>
            {
                new Item {
                    Name = "+5 Dexterity Vest", SellIn = 0, Quality = 10
                }
            };
            QualityUpdater qualityUpdater = QualityFactory.GetQualityManager(Items[0]);

            Assert.AreEqual(qualityUpdater.GetType(), typeof(QualityUpdater));
        }
Example #2
0
        public void ReturnsBrieQualityManager()
        {
            IList <Item> Items = new List <Item>
            {
                new Item {
                    Name = "Aged Brie", SellIn = 0, Quality = 10
                }
            };
            QualityUpdater qualityUpdater = QualityFactory.GetQualityManager(Items[0]);

            Assert.AreEqual(qualityUpdater.GetType(), typeof(AgedBrieQualityUpdater));
        }
Example #3
0
        public void ReturnsStagePassQualityManager()
        {
            IList <Item> Items = new List <Item>
            {
                new Item {
                    Name = "Backstage passes to a TAFKAL80ETC concert", SellIn = 0, Quality = 10
                }
            };
            QualityUpdater qualityUpdater = QualityFactory.GetQualityManager(Items[0]);

            Assert.AreEqual(qualityUpdater.GetType(), typeof(BackstagePassQualityUpdater));
        }
Example #4
0
        public void ReturnsSulfurasQualityManager()
        {
            IList <Item> Items = new List <Item>
            {
                new Item {
                    Name = "Sulfuras, Hand of Ragnaros", SellIn = 0, Quality = 10
                }
            };
            QualityUpdater qualityUpdater = QualityFactory.GetQualityManager(Items[0]);

            Assert.AreEqual(qualityUpdater.GetType(), typeof(SulfurasQualityUpdater));
        }