コード例 #1
0
        public void MakeChange_DecreasePennies_1()
        {
            Combos newCombo = new Combos(51);

            newCombo.MakeChange();
            Assert.AreEqual(1, newCombo.Change[3]);
        }
コード例 #2
0
        public void MakeChange_IncreaseQuarters_2()
        {
            Combos newCombo = new Combos(41);

            newCombo.MakeChange();
            int[] correct = { 1, 1, 1, 1 };
            CollectionAssert.AreEqual(correct, newCombo.Change);
        }