public void Check_If_Rule2_works_when_not_applicable() { List <char> mycart = new List <char>(); mycart.Add('A'); mycart.Add('A'); PromotionMain.Rules.IRule rule2 = new PromotionMain.Rules.Rule2('B', 'C', 0); Assert.False(rule2.IsApplicable(mycart)); }
public void Check_If_Rule2_works_when_applicable_with_multiple_skus() { List <char> mycart = new List <char>(); mycart.Add('B'); mycart.Add('C'); mycart.Add('D'); mycart.Add('A'); mycart.Add('A'); mycart.Add('A'); PromotionMain.Rules.IRule rule2 = new PromotionMain.Rules.Rule2('B', 'C', 0); Assert.True(rule2.IsApplicable(mycart)); }