public void PercentageDiscount_CalculateAppliedDiscount_With50PercentDiscount() { // Arrange var percentageDiscount = new PercentageDiscount(DiscountHelper.CreateDiscountedProducts(), 0.50m); // Act var result = percentageDiscount.DiscountsApplicable(ProductQuantityHelper.CreateProducts()).ToArray(); // Assert Assert.AreEqual(result.Any(), true); Assert.AreEqual(result[0].Type, DiscountType.Percentage); Assert.AreEqual(result[0].Amount, 0.16m); Assert.AreEqual(result[0].Text, "Apples 50% OFF: - 16p"); }