| 1 |
testAddSingleValidRecipe |
Add a new valid recipe to the system |
The recipe is added to the system and addRecipe(Recipe r) return True |
Same as expected result |
pass |
| 2 |
testAddThreeValidRecipe |
Add 3 valid recipes to the system |
Those 3 recipes is added to the system and addRecipe(Recipe r) return True |
Same as expected result |
pass |
| 3 |
testAddTooMuchValidRecipe |
Add 4 valid recipes to the system |
First 3 recipes is added to the system but the fourth recipe is not add and addRecipe(Recipe r) return False |
Fourth recipe is added and addRecipe(Recipe r) return True |
fail |
| 4 |
testAddDuplicateNameRecipe |
Given 1 recipe with name "Coffee" in the system, then add another recipe that also name "Coffee" to the same system |
Second recipe should not be added to the system and addRecipe(Recipe r) return False |
Same as expected result |
pass |
| 37 |
testGetRecipeAfterAddOne |
Check whether added recipe is saved in recipe book or not by add a recipe and call method getRecipe |
index 0 of getRecipe should equal to added recipe |
Same as expected result |
pass |
| 38 |
testGetRecipeAfterAddTooMuch |
Add 4 recipes to the system and call getRecipe method to verify that the fourth recipe is not save in recipe book |
length of recipe book should equal to 3 (because fourth recipe should not be save) |
length of recipe book is 4 |
fail |
| 39 |
testGetRecipeAfterAddDuplicate |
add 2 duplicate name recipe then call getRecipe to ensure that only one unique recipe is in the system |
recipe book index 1 should equal to null |
Same as expected result |
pass |