示例#1
0
        public void CountCombinationsTest2()
        {
            var expect = 4;
            var actual = ChangeCoins.CountCombinations(10, new[] { 5, 2, 3 });

            Assert.AreEqual(expect, actual);
        }
示例#2
0
        public void CountCombinationsTest1()
        {
            var expect = 5;
            var actual = ChangeCoins.CountCombinations(5, new int[] { 1, 2, 3 });

            Assert.AreEqual(expect, actual);
        }