Beispiel #1
0
        public void UpdateQuality_QualityStartsAboveMax_UpdatesToMax50Limit()
        {
            // Arrange
            Item i = new Cheese("Aged Brie", 10, 55);

            // Act
            i.UpdateQuality();

            //Assert
            Assert.Equal(50, i.Quality);
        }
Beispiel #2
0
        public void UpdateQuality_PositiveDaysToSell_QualityIncreasesByOne()
        {
            // Arrange
            Item i = new Cheese("Aged Brie", 10, 10);

            // Act
            i.UpdateQuality();

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