Example #1
0
        public void GenerateSumands()
        {
            var result        = CombinationWithRepetition.GenerateSummands(4, 4);
            var expectedCoefs = new ulong[] { 1, 4, 6, 12, 24 };

            foreach (var comb in result)
            {
                CollectionAssert.Contains(expectedCoefs, comb.Coefficient);
            }
        }