public void SubStringParserShould0(string subString)
        {
            var result = new SubstringParser().ParseSubString(subString);

            var expected = new List <StringPart>()
            {
                new StringPart("Abc")
            };

            result.ShouldBeEquivalentTo(expected);
        }
        public void SubStringParserShould6(string subString)
        {
            var result = new SubstringParser().ParseSubString(subString);

            var expected = new List <StringPart>()
            {
                new StringPart("_", ActionType.Open, TagType.Em),
                new StringPart("A")
            };

            result.ShouldBeEquivalentTo(expected);
        }
        public void SubStringParserShould8(string subString)
        {
            var result = new SubstringParser().ParseSubString(subString);

            var expected = new List <StringPart>()
            {
                new StringPart("a"),
                new StringPart("__", ActionType.OpenOrClose, TagType.Strong),
                new StringPart("b")
            };

            result.ShouldBeEquivalentTo(expected);
        }
 public bool StrContainsSymbolsAndDigitsShouldBe(string str)
 {
     return(SubstringParser.StrContainsSymbolsAndDigits(str));
 }
 public bool StartsWithDoubleUnderscoreShouldBe(string str, char escapeSymbol = '/')
 {
     return(SubstringParser.StartsWithDoubleUnderscore(str, escapeSymbol));
 }
 public bool EndsWithSingleUnderscoreShouldBe(string str, char escapeSymbol = '/')
 {
     return(SubstringParser.EndsWithSingleUnderscore(str, escapeSymbol));
 }