Exemplo n.º 1
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);
        }
Exemplo n.º 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;
 }