private string GenCommandLine(string value, bool hasRegEx = false, bool useEscapeChars = false)
        {
            value = CommandLineUtils.EncodeText(value, hasRegEx, useEscapeChars);

            return(String.Format(" {0}{1}--testVal \"{2}\" --someFlag",
                                 hasRegEx ? "--hasRegEx " : "",
                                 useEscapeChars ? "--useEscapeChars " : "",
                                 value
                                 ));
        }