public void TestGetDefaultDelimiterWithoutFirstLine() { var expected = new char[] { ',', '\n' }; var numbers = "1,2,3,4"; var result = StringCalculator.GetDefaultDelimiter(numbers); Assert.Equal(expected, result); }
public void TestGetDefaultDelimiter() { var expected = new char[] { ';' }; var numbers = "//;\n1;2"; var result = StringCalculator.GetDefaultDelimiter(numbers); Assert.Equal(expected, result); }