public static IExpectPattern BoundedBy(string boundStart=null, string boundEnd=null, bool honorInnerQuotes=false)
 {
     var pattern = new Patterns.Bounded();
     if (!String.IsNullOrEmpty(boundStart))
     {
         pattern.BoundStart = boundStart;
     }
     if (!String.IsNullOrEmpty(boundEnd))
     {
         pattern.BoundEnd= boundEnd;
     }
     pattern.HonorInnerQuotes = honorInnerQuotes;
     return pattern;
 }
Example #2
0
        public static IExpectPattern BoundedBy(string boundStart = null, string boundEnd = null, bool honorInnerQuotes = false)
        {
            var pattern = new Patterns.Bounded();

            if (!String.IsNullOrEmpty(boundStart))
            {
                pattern.BoundStart = boundStart;
            }
            if (!String.IsNullOrEmpty(boundEnd))
            {
                pattern.BoundEnd = boundEnd;
            }
            pattern.HonorInnerQuotes = honorInnerQuotes;
            return(pattern);
        }