Пример #1
0
 public void TwoFirstBooksCosts16Euros()
 {
     var shoppingBasket = new ShoppingBasket();
     shoppingBasket.Add(new FirstBook());
     shoppingBasket.Add(new FirstBook());
     var total = shoppingBasket.Total();
     var expected = new Euros(16);
     Assert.That(total, Is.EqualTo(expected));
 }
Пример #2
0
        public void OneFirstBookAndOneSecondBookCosts15Euros20()
        {
            var shoppingBasket = new ShoppingBasket();
            shoppingBasket.Add(new FirstBook());
            shoppingBasket.Add(new SecondBook());
            var total = shoppingBasket.Total();
            var expected = new Euros(15.20);

            Assert.That(total, Is.EqualTo(expected));
        }