Ejemplo n.º 1
0
        public void Discount()
        {
            decimal beforeDiscount = 250;
            decimal afterDiscount  = 230;
            decimal discountRate   = 8;

            if (PriceHelper.ApplyDiscount(beforeDiscount, discountRate) != afterDiscount)
            {
                throw new Exception();
            }
        }