Created
May 31, 2019 09:05
-
-
Save jasongorman/1f384f6a3adaf5c18b6aa6c2173896df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void addingItemChangesBasketTotal() { | |
ShoppingBasket shoppingBasket = new ShoppingBasket(); | |
BasketItem basketItem = new BasketItem("P111", "Widget (Large)", 10.0, 10); | |
shoppingBasket.addItem(basketItem); | |
assertEquals(100.0, shoppingBasket.total() , 0.0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment