示例#1
0
        public void ItemPriceIsQuantityTimesUnitPrice()
        {
            var actual = _item.GetItemPrice();

            Assert.That(actual, Is.EqualTo(_itemPrice));
        }
示例#2
0
 public void ItemPriceWithDiscountCannotBeLessThenZero()
 {
     _item.ApplyDiscount(_largeDiscount);
     Assert.That(_item.GetItemPrice(), Is.EqualTo(_zero));
 }