Ejemplo n.º 1
0
        public void CurrencyInputNull()
        {
            string input = ("");

            CurrencyInputConsole testInput = new CurrencyInputConsole();

            testInput.CurrencySplitInput(input);

            Assert.AreEqual(testInput.SplitCurrency[0], "");
        }
Ejemplo n.º 2
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");
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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");
        }