Esempio n. 1
0
        public void UpdateQuality_QualityStartsAtMax_NoChange()
        {
            // Arrange
            Item i = new Legendary("Sulfuras", 10, 50);

            // Act
            i.UpdateQuality();

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

            // Act
            i.UpdateQuality();

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

            // Act
            i.UpdateQuality();

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