public void SplitIntoElementsSimpleTest() { var actual = PatternParser.SplitIntoElements("a|b|c|d"); var expected = new List <string> { "a", "b", "c", "d" }; Assert.Equal(expected, actual); }
public void SplitIntoElementsComplexTest() { var actual = PatternParser.SplitIntoElements("|a|b||c|d|\\||"); var expected = new List <string> { "", "a", "b", "", "c", "d", "|", "" }; Assert.Equal(expected, actual); }