Esempio n. 1
0
        public void FamilyApply30PerToNegative()
        {
            IDiscount discount = new StandardDiscount(30m);

            Assert.Throws <ArgumentException>(delegate { discount.Apply(-10000m); });
        }
Esempio n. 2
0
        public void FamilyApply30PerTo100()
        {
            IDiscount discount = new StandardDiscount(30m);

            Assert.AreEqual(70m, discount.Apply(100m));
        }