public void CoinSplitInput_True() { CoinCombo test = new CoinCombo(3); test.CalcuateCoins(); Assert.AreEqual(3, test.GetPennies()); }
public void CoinCombo_CalcNumberOfCoinCombos_NumberOfEachCoin() { CoinCombo coin = new CoinCombo(23); Assert.AreEqual(0, coin.GetQuarters()); Assert.AreEqual(2, coin.GetDimes()); Assert.AreEqual(0, coin.GetNickles()); Assert.AreEqual(3, coin.GetPennies()); }
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()); }
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()); }