Beispiel #1
0
 public void Basket_with_single_book()
 {
     Assert.That(BookStore.CalculateTotalCost(MakeList(1)), Is.EqualTo(8));
 }
Beispiel #2
0
 public void Basket_with_twelve_books()
 {
     Assert.That(BookStore.CalculateTotalCost(MakeList(1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 1, 2)), Is.EqualTo(75.20));
 }
Beispiel #3
0
 public void Basket_with_nine_books()
 {
     Assert.That(BookStore.CalculateTotalCost(MakeList(1, 1, 2, 2, 3, 3, 4, 4, 5)), Is.EqualTo(55.60));
 }
Beispiel #4
0
 public void Basket_with_eleven_books()
 {
     Assert.That(BookStore.CalculateTotalCost(MakeList(1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 1)), Is.EqualTo(68));
 }
Beispiel #5
0
 public void Basket_with_three_different_books()
 {
     Assert.That(BookStore.CalculateTotalCost(MakeList(1, 2, 3)), Is.EqualTo(21.6));
 }
Beispiel #6
0
 public void Basket_with_five_different_books()
 {
     Assert.That(BookStore.CalculateTotalCost(MakeList(1, 2, 3, 4, 5)), Is.EqualTo(30));
 }
Beispiel #7
0
 public void Empty_basket()
 {
     Assert.That(BookStore.CalculateTotalCost(MakeList()), Is.EqualTo(0));
 }
Beispiel #8
0
 public void Basket_with_two_different_books()
 {
     Assert.That(BookStore.CalculateTotalCost(MakeList(1, 2)), Is.EqualTo(15.2));
 }
Beispiel #9
0
 public void Basket_with_single_book()
 {
     Assert.Equal(8, BookStore.CalculateTotalCost(MakeList(1)));
 }
Beispiel #10
0
 public void Basket_with_two_of_same_book()
 {
     Assert.That(BookStore.CalculateTotalCost(MakeList(2, 2)), Is.EqualTo(16));
 }
Beispiel #11
0
 public void Basket_with_ten_books()
 {
     Assert.Equal(60, BookStore.CalculateTotalCost(MakeList(1, 1, 2, 2, 3, 3, 4, 4, 5, 5)));
 }
Beispiel #12
0
 public void Basket_with_eight_books()
 {
     Assert.Equal(51.20, BookStore.CalculateTotalCost(MakeList(1, 1, 2, 2, 3, 3, 4, 5)));
 }
Beispiel #13
0
 public void Basket_with_four_different_books()
 {
     Assert.Equal(25.6, BookStore.CalculateTotalCost(MakeList(1, 2, 3, 4)));
 }
Beispiel #14
0
 public void Empty_basket()
 {
     Assert.Equal(0, BookStore.CalculateTotalCost(MakeList()));
 }
Beispiel #15
0
 public void Basket_with_two_of_same_book()
 {
     Assert.Equal(16, BookStore.CalculateTotalCost(MakeList(2, 2)));
 }