public void FindAllNeededCoins_SingleOneCoinMatch() { CoinFinder myFinder = new CoinFinder(new int[] { 5, 2, 1 }); List<int> expected = new List<int>() { 1 }; CollectionAssert.AreEqual(expected, myFinder.FindAllNeededCoins(1)); }
public void FindAllNeededCoins_EightTest() { CoinFinder myFinder = new CoinFinder(new int[] { 5, 2, 1 }); List<int> expected = new List<int>() { 1, 2, 5 }; CollectionAssert.AreEqual(expected, myFinder.FindAllNeededCoins(8)); }
public void FindAllNeededCoins_HomeworkExample() { CoinFinder myFinder = new CoinFinder(new int[] { 5, 2, 1 }); List<int> expected = new List<int>() { 1, 2, 5, 5, 5, 5, 5, 5 }; CollectionAssert.AreEqual(expected, myFinder.FindAllNeededCoins(33)); }