public void ShouldSplitInputBasedOnDelimiters() { var input = "3,4,Ashish,1"; var expectedResult = new string[] { "3", "4", "Ashish", "1" }; var delimiters = new Delimiters(new List <Delimiter> { new Delimiter(',', false) }); var actualResult = delimiters.Split(input); Assert.AreEqual(expectedResult, actualResult); Assert.That(actualResult.Length == 4); }
public IValidNumber And(Delimiters delimiter) { _delimiter = delimiter; inputArray = _delimiter.Split(rawInput); return(this); }