예제 #1
0
        public void TestHikedTicketItem_Age_QualityIs0WhenSellInIsLessThan0()
        {
            //Arrange
            Item item = new HikedTicketItem("test-hiked-ticket-item", -1, 10);

            //Act
            item.Age();

            //Assert
            Assert.AreEqual(0, item.Quality);
        }
예제 #2
0
        public void TestHikedTicketItem_Age_QualityIncreaseIs3WhenSellInIs0()
        {
            //Arrange
            Item item = new HikedTicketItem("test-hiked-ticket-item", 0, 10);

            //Act
            item.Age();

            //Assert
            Assert.AreEqual(10 + 3, item.Quality);
        }