Esempio n. 1
0
        public void GetDiscountPercent_Out_High()
        {
            decimal discountPercent = 0m;

            Ex3bCalculations.GetDiscountPercent(500m, out discountPercent);
            Assert.AreEqual(0.2m, discountPercent);
        }
Esempio n. 2
0
        public void GetDiscountPercent_Out_Low()
        {
            decimal discountPercent = 0m;

            Ex3bCalculations.GetDiscountPercent(499m, out discountPercent);
            Assert.AreEqual(0.1m, discountPercent);
        }
Esempio n. 3
0
 public void GetDiscountPercent_High()
 {
     Assert.AreEqual(0.2m, Ex3bCalculations.GetDiscountPercent(500m));
 }
Esempio n. 4
0
 public void GetDiscountPercent_Low()
 {
     Assert.AreEqual(0.1m, Ex3bCalculations.GetDiscountPercent(499m));
 }