public void ReturnsSplitByUserDefinedMultipleDelimiterWithMulipleChars()
        {
            var stringCalculator = new Calculator();
            var actual           = stringCalculator.Split("//[*****][%%]\n1*****2%%3");
            var expected         = new[] { "1", "2", "3" };

            Assert.AreEqual(expected, actual);
        }
        public void ReturnsSplitByUserDefinedAnotherMultipleDelimiter()
        {
            var stringCalculator = new Calculator();
            var actual           = stringCalculator.Split("//[//\n][[]\n1//\n2[3");
            var expected         = new[] { "1", "2", "3" };

            Assert.AreEqual(expected, actual);
        }
        public void ReturnsSplitByUserDefinedDelimiter()
        {
            var stringCalculator = new Calculator();
            var actual           = stringCalculator.Split("//[***]\n1***2***3");
            var expected         = new[] { "1", "2", "3" };

            Assert.AreEqual(expected, actual);
        }
        public void ReturnSplitByNewLine()
        {
            var stringCalculator = new Calculator();
            var actual           = stringCalculator.Split("1\n2,1,1,1,1,1,1,1");
            var expected         = new[] { "1", "2", "1", "1", "1", "1", "1", "1", "1" };

            Assert.AreEqual(expected, actual);
        }
        public void ReturnEmptyString()
        {
            var stringCalculator = new Calculator();
            var actual           = stringCalculator.Split("");
            var expected         = new string[0];

            Assert.AreEqual(expected, actual);
        }
        public void ReturnSumForSpecifiedDelimiter()
        {
            var stringCalculator = new Calculator();
            var actual           = stringCalculator.Split("//;\n2;1");
            var expected         = new[] { "2", "1" };

            Assert.AreEqual(expected, actual);
        }