public void ComputeSimpleCombination() { var testCase = new List <Tuple <IMultiDeal, int> >(); testCase.Add(new Tuple <IMultiDeal, int>(new MockMultiDeal(), 2)); var combinations = MultiDealEngine.ComputeCombinations(testCase); Assert.AreEqual(1, combinations.Count); }
public void ComputeCombinations() { var testCase = new List <Tuple <IMultiDeal, int> >(); testCase.Add(new Tuple <IMultiDeal, int>(new MockMultiDeal(), 2)); testCase.Add(new Tuple <IMultiDeal, int>(new MockMultiDeal(), 1)); var combinations = MultiDealEngine.ComputeCombinations(testCase); //AAB BAA AB //AAB BAA AB }