Exemple #1
0
        public void ShouldDoNothingWhenBookTextContainsNoMatchingText()
        {
            var startStriper = new StartStriper();
            var stripped     = startStriper.Parse(new ParserResult <string>(parsed: InputNotToParse));

            Assert.Equal(new ParserResult <string>(parsed: InputNotToParse).Parsed, stripped.Parsed);
        }
Exemple #2
0
        public void ShouldStripStartDataWhenBookText()
        {
            var startStriper = new StartStriper();
            var stripped     = startStriper.Parse(new ParserResult <string>(parsed: Input));

            Assert.Equal(new ParserResult <string>(parsed: Expected).Parsed, stripped.Parsed);
        }