Example #1
0
        public void SplitIntoElementsSimpleTest()
        {
            var actual   = PatternParser.SplitIntoElements("a|b|c|d");
            var expected = new List <string>
            {
                "a",
                "b",
                "c",
                "d"
            };

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

            Assert.Equal(expected, actual);
        }