Пример #1
0
        public void ShouldNotChangeQuality_WhenQualityIs50OrAbove(int quality)
        {
            Item item = new Item()
            {
                Quality = quality
            };

            ProcessBase.IncreaseQualityUntil50(item);

            Assert.AreEqual(quality, item.Quality);
        }
Пример #2
0
        public void ShouldIncreaseQuality_WhenQualityUnder50()
        {
            Item item = new Item()
            {
                Quality = 7
            };

            ProcessBase.IncreaseQualityUntil50(item);

            Assert.AreEqual(8, item.Quality);
        }