mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-16 06:51:27 +00:00
Fixed NormalItemUpdateService tests
This commit is contained in:
parent
42944e54f0
commit
44a4456e00
@ -43,10 +43,10 @@ func TestNormalItemUpdateService_QualityAfterSellIn4Days(t *testing.T) {
|
|||||||
// Quality must not be lower than 0
|
// Quality must not be lower than 0
|
||||||
func TestNormalItemUpdateService_QualityNotLowerThan0(t *testing.T) {
|
func TestNormalItemUpdateService_QualityNotLowerThan0(t *testing.T) {
|
||||||
runTestCase(t, func(
|
runTestCase(t, func(
|
||||||
agedBrieItemUpdateService AgedBrieItemUpdateService,
|
normalItemUpdateService NormalItemUpdateService,
|
||||||
) {
|
) {
|
||||||
item := models.NewItem(&models.ItemModel{"Random normal item", -4, 0})
|
item := models.NewItem(&models.ItemModel{"Random normal item", -4, 0})
|
||||||
agedBrieItemUpdateService.UpdateQuality(item)
|
normalItemUpdateService.UpdateQuality(item)
|
||||||
assert.Equal(t, item.Model.Quality, 0)
|
assert.Equal(t, item.Model.Quality, 0)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user