public void TestShouldStillPriceMultiBuyDeal() { var testObj = new MultiBuyRemovalDeal(2, 'A', 1, 'B'); var testData = "AAB".ToCharArray(); var result = testObj.Apply(testData); Assert.AreEqual(100, result.Item2); }
public void TestShouldRemoveAllObjects() { var testObj = new MultiBuyRemovalDeal(2, 'A', 1, 'B'); var testData = "AAB".ToCharArray(); var result = testObj.Apply(testData); Assert.AreEqual(0, result.Item1.Length); }