示例#1
0
        public void UpdateQuality_QualityStartsAtMax_NoChange()
        {
            // Arrange
            Item i = new Legendary("Sulfuras", 10, 50);

            // Act
            i.UpdateQuality();

            //Assert
            Assert.Equal(50, i.Quality);
        }
示例#2
0
        public void UpdateQuality_Expired_NoChange()
        {
            // Arrange
            Item i = new Legendary("Sulfuras", -1, 10);

            // Act
            i.UpdateQuality();

            //Assert
            Assert.Equal(10, i.Quality);
        }
示例#3
0
        public void UpdateQuality_PositiveDaysToSell_NoChange()
        {
            // Arrange
            Item i = new Legendary("Sulfuras", 10, 10);

            // Act
            i.UpdateQuality();

            //Assert
            Assert.Equal(10, i.Quality);
        }