public void FamilyApply30PerToNegative() { IDiscount discount = new StandardDiscount(30m); Assert.Throws <ArgumentException>(delegate { discount.Apply(-10000m); }); }
public void FamilyApply30PerTo100() { IDiscount discount = new StandardDiscount(30m); Assert.AreEqual(70m, discount.Apply(100m)); }