public void RaisingCardDiscountTest(double sum, int expectedPercent) { // Act dCard.UpdateCard(dCard, sum); int resultPercent = new DiscountRanges().GetDiscount(dCard); // Assert Assert.AreEqual(expectedPercent, resultPercent); }