예제 #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);
        }
예제 #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;
 }