예제 #1
0
        public void CurrencyInputNull()
        {
            string input = ("");

            CurrencyInputConsole testInput = new CurrencyInputConsole();

            testInput.CurrencySplitInput(input);

            Assert.AreEqual(testInput.SplitCurrency[0], "");
        }
예제 #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");
        }
예제 #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);
        }
예제 #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");
        }