public void When_constructed()
 {
     var sut = new AdditionalItemDiscount("apple", 3, 2, 100);
     Assert.That(sut.Barcode, Is.EqualTo("apple"));
     Assert.That(sut.QuantityFullPrice, Is.EqualTo(3));
     Assert.That(sut.QuantityDiscounted, Is.EqualTo(2.00));
     Assert.That(sut.DiscountPercentage, Is.EqualTo(100));
 }
示例#2
0
        public void When_constructed()
        {
            var sut = new AdditionalItemDiscount("apple", 3, 2, 100);

            Assert.That(sut.Barcode, Is.EqualTo("apple"));
            Assert.That(sut.QuantityFullPrice, Is.EqualTo(3));
            Assert.That(sut.QuantityDiscounted, Is.EqualTo(2.00));
            Assert.That(sut.DiscountPercentage, Is.EqualTo(100));
        }