@Test public void sub_basket_set_collection_should_has_3_item() { BasketSuite suite = new BasketSuite(); suite.addBook("first", 2); suite.addBook("second", 2); suite.addBook("third", 2); suite.addBook("forth", 1); suite.addBook("fifth", 1); assertThat(suite.getDiscountPrice(), is(51.2)); }
@Test public void sub_basket_set_collection_should_has_only_one_item() { BasketSuite suite = new BasketSuite(); suite.addBook("first", 1); assertThat(suite.getSubBasketSets().size(), is(1)); }