public void Age_WhenQualityWouldFallBelowZero_ShouldSetQualityToZero() { // Arrange var item = new ConjuredItem("", -2, 2); // Act item.Age(); // Assert item.Quality.ShouldBe(0); }
public void Age_WhenSellInIsNegativeOrZero_ShouldDecreaseQualityByFour(int sellIn) { // Arrange var initialQuality = 10; var item = new ConjuredItem("", sellIn, initialQuality); // Act item.Age(); // Assert item.Quality.ShouldBe(initialQuality - 4); }
public void Age_WhenSellInIsPositive_ShouldDecreaseQualityByTwo(int sellIn) { // Arrange var initialQuality = 10; var item = new ConjuredItem("", sellIn, initialQuality); // Act item.Age(); // Assert item.Quality.ShouldBe(initialQuality - 2); }