public void CurrencyInputNull() { string input = (""); CurrencyInputConsole testInput = new CurrencyInputConsole(); testInput.CurrencySplitInput(input); Assert.AreEqual(testInput.SplitCurrency[0], ""); }
public void CurrencyInputSplitSubUnit() { string input = ("0,60"); CurrencyInputConsole testInput = new CurrencyInputConsole(); testInput.CurrencySplitInput(input); Assert.AreEqual(testInput.SplitCurrency[0], "0"); Assert.AreEqual(testInput.SplitCurrency[1], "60"); }
public void CurrencyInputSplitBase() { string input = ("50"); CurrencyInputConsole testInput = new CurrencyInputConsole(); testInput.CurrencySplitInput(input); Assert.AreEqual(testInput.SplitCurrency[0], "50"); Assert.AreEqual(testInput.SplitCurrency.Count, 1); }
public void CurrencyInputSplit() { string input = ("123,45"); CurrencyInputConsole testInput = new CurrencyInputConsole(); testInput.CurrencySplitInput(input); Assert.AreEqual(testInput.SplitCurrency[0], "123"); Assert.AreEqual(testInput.SplitCurrency[1], "45"); }