Пример #1
0
        public void TestGetDefaultDelimiterWithoutFirstLine()
        {
            var expected = new char[] { ',', '\n' };
            var numbers  = "1,2,3,4";

            var result = StringCalculator.GetDefaultDelimiter(numbers);

            Assert.Equal(expected, result);
        }
Пример #2
0
        public void TestGetDefaultDelimiter()
        {
            var expected = new char[] { ';' };
            var numbers  = "//;\n1;2";

            var result = StringCalculator.GetDefaultDelimiter(numbers);

            Assert.Equal(expected, result);
        }