Example #1
0
        public void Read_Input_CoinDenomination()
        {
            GivenCoinDenomination(new int[] { 1, 2, 3 });
            CoinChanger coinChanger = new CoinChanger(inputReader.Object);

            coinChanger.requestCoinDenomination();

            inputReader.Verify(x => x.ReadCoinDenomination(), Times.Once);
        }
Example #2
0
        private int[] WhenDeterminingLeastNumberOfCoins()
        {
            coinChanger.requestChangeAmount();

            coinChanger.requestCoinDenomination();

            int[] leastNumberOfCoins = coinChanger.DetermineLeastNumberOfCoins();
            return(leastNumberOfCoins);
        }