Example #1
0
        public void RaisingCardDiscountTest(double sum, int expectedPercent)
        {
            //  Act
            dCard.UpdateCard(dCard, sum);
            int resultPercent = new DiscountRanges().GetDiscount(dCard);

            //  Assert
            Assert.AreEqual(expectedPercent, resultPercent);
        }