mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-16 06:51:27 +00:00
Updated AgedBrieItemUpdateService test (quality must not exceed 50)
This commit is contained in:
parent
38b2c933ce
commit
0d58e127b1
@ -39,3 +39,14 @@ func TestAgedBrieItemUpdateService_QualityAfterSellIn4Days(t *testing.T) {
|
|||||||
assert.Equal(t, item.Model.Quality, 7)
|
assert.Equal(t, item.Model.Quality, 7)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Quality must not be greater than 50
|
||||||
|
func TestAgedBrieItemUpdateService_QualityNotHigherThan50(t *testing.T) {
|
||||||
|
runTestCase(t, func(
|
||||||
|
agedBrieItemUpdateService AgedBrieItemUpdateService,
|
||||||
|
) {
|
||||||
|
item := models.NewItem(&models.ItemModel{"Aged Brie", -4, 50})
|
||||||
|
agedBrieItemUpdateService.UpdateQuality(item)
|
||||||
|
assert.Equal(t, item.Model.Quality, 50)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user