Пример #1
0
        public void CoinChangeShouldWork3()
        {
            var coins = new int[] { 1, 5, 10, 25 };

            var result = MakeChange.FindChanges(coins, 15);

            Assert.Equal(result, 6);
        }
Пример #2
0
        public void CoinChangeShouldWork2()
        {
            var coins = new int[] { 2, 5, 3, 6 };

            var result = MakeChange.FindChanges(coins, 10);

            Assert.Equal(result, 5);
        }
Пример #3
0
        public void CoinChangeShouldWork()
        {
            var coins = new int[] { 1, 2, 3 };

            var result = MakeChange.FindChanges(coins, 4);

            Assert.Equal(result, 4);
        }
Пример #4
0
        public void TestMakechange1()

        {
            Assert.AreEqual(4, MakeChange.Makechange(135));
        }
Пример #5
0
 public void TestMakechange6()
 {
     Assert.AreEqual(1, MakeChange.Makechange(1));
 }
Пример #6
0
 public void TestMakechange5()
 {
     Assert.AreEqual(5, MakeChange.Makechange(14));
 }
Пример #7
0
 public void TestMakechange4()
 {
     Assert.AreEqual(0, MakeChange.Makechange(0));
 }
Пример #8
0
 public void TestMakechange3()
 {
     Assert.AreEqual(3, MakeChange.Makechange(121));
 }
Пример #9
0
 public void TestMakechange2()
 {
     Assert.AreEqual(2, MakeChange.Makechange(120));
 }