public void ReturnArrayFilledWithZerosIfChangeAmountIsZero()
        {
            List <int> coinDenomination = new List <int> {
                1, 5, 10, 25, 100
            };

            List <int> result = _coinChanger.GetChange(0, coinDenomination);

            List <int> expected = new List <int> {
                0, 0, 0, 0, 0
            };

            CollectionAssert.AreEqual(expected, result);
        }
Esempio n. 2
0
 public void throw_exception_when_there_are_less_than_two_arguments(string argument)
 {
     Assert.Throws <Exception>(() => _coinChanger.GetChange(new[] { argument }));
 }