예제 #1
0
        public void SkipThisTest()
        {
            Util.CacheCombinations(5);
            Combinator c = new Combinator(5, 3);

            c.combination = new int[] { 0, 2, 3 };
            Assert.AreEqual(2, c.SkipThis(2));
            CollectionAssert.AreEqual(new int[] { 0, 2, 4 }, c.combination);
            c.combination = new int[] { 0, 1, 3 };
            Assert.AreEqual(5, c.SkipThis(1));
            CollectionAssert.AreEqual(new int[] { 0, 3, 4 }, c.combination);
        }