public void CurrencyInputSubUnitTooLong() { List <string> input = new List <string>() { "0", "999" }; CurrencyInputConsole testInput = new CurrencyInputConsole(); testInput.ConvertInput(input); Assert.IsFalse(testInput.ConvertSubUnitSuccess); }
public void CurrencyInputBaseUnitNegative() { List <string> input = new List <string>() { "-50", "999" }; CurrencyInputConsole testInput = new CurrencyInputConsole(); testInput.ConvertInput(input); Assert.IsFalse(testInput.ConvertSubUnitSuccess); }
public void CurrencyInputLettersBase() { List <string> input = new List <string>() { "fefe32" }; CurrencyInputConsole testInput = new CurrencyInputConsole(); testInput.ConvertInput(input); Assert.IsFalse(testInput.ConvertBaseSuccess); }
public void CurrencyInputBaseCorrect() { List <string> input = new List <string>() { "50" }; CurrencyInputConsole testInput = new CurrencyInputConsole(); testInput.ConvertInput(input); Assert.IsTrue(testInput.ConvertBaseSuccess); }
public void CurrencyInputOneDecimalSubUnit() { List <string> input = new List <string>() { "0", "1" }; CurrencyInputConsole testInput = new CurrencyInputConsole(); testInput.ConvertInput(input); Assert.IsTrue(testInput.ConvertBaseSuccess); Assert.IsFalse(testInput.ConvertSubUnitSuccess); }
public void CurrencyInputTooManyCoomas() { List <string> input = new List <string>() { "", "23", "35" }; CurrencyInputConsole testInput = new CurrencyInputConsole(); testInput.ConvertInput(input); Assert.IsFalse(testInput.ConvertBaseSuccess); Assert.IsFalse(testInput.ConvertSubUnitSuccess); }
public void CurrencyInputBaseEmptyandSubCorrect() { List <string> input = new List <string>() { "", "23" }; CurrencyInputConsole testInput = new CurrencyInputConsole(); testInput.ConvertInput(input); Assert.IsFalse(testInput.ConvertBaseSuccess); Assert.IsTrue(testInput.ConvertSubUnitSuccess); }