Beispiel #1
0
        public void GildedRoseFactoryTest(string name, int sellIn, int quality, int expectedSellIn, int expectedQuality)
        {
            var item = new Item {
                Name = name, SellIn = sellIn, Quality = quality
            };

            item = GildedRose.CreateGildedRoseFactory(item);
            Assert.IsTrue(item.Quality == expectedQuality && item.SellIn == expectedSellIn);
        }