Esempio n. 1
0
        public void CoinSplitInput_True()
        {
            CoinCombo test = new CoinCombo(3);

            test.CalcuateCoins();

            Assert.AreEqual(3, test.GetPennies());
        }
Esempio n. 2
0
        public void CalcuateCoins_TestNegativeCents_True()
        {
            CoinCombo test = new CoinCombo(-5);

            test.CalcuateCoins();

            Assert.AreEqual(0, test.GetQuarters());
            Assert.AreEqual(0, test.GetDimes());
            Assert.AreEqual(0, test.GetNickles());
            Assert.AreEqual(0, test.GetPennies());
        }
Esempio n. 3
0
        public void CalculateCoins_Testing123Cents_True()
        {
            CoinCombo test = new CoinCombo(124);

            test.CalcuateCoins();

            Assert.AreEqual(4, test.GetQuarters());
            Assert.AreEqual(2, test.GetDimes());
            Assert.AreEqual(0, test.GetNickles());
            Assert.AreEqual(4, test.GetPennies());
        }