Exemplo n.º 1
0
 public static string WrapWithQm(string commitMessage)
 {
     return(SH.WrapWith(commitMessage, AllChars.qm));
 }
Exemplo n.º 2
0
 public static string WrapWith(string value, string h, bool _trimWrapping = false)
 {
     return(h + SH.Trim(value, h) + h);
 }
Exemplo n.º 3
0
        /// <summary>
        /// Verify whether A2 contains A3
        /// </summary>
        /// <param name="before"></param>
        /// <param name="originalText"></param>
        /// <param name="shouldContains"></param>
        public static string NotContains(string before, string originalText, params string[] shouldContains)
        {
            List <string> notContained = new List <string>();

            foreach (var item in shouldContains)
            {
                if (!originalText.Contains(item))
                {
                    notContained.Add(item);
                }
            }

            if (notContained.Count == 0)
            {
                return(null);
            }
            return(CheckBefore(before) + originalText + " " + "dont contains" + ": " + SH.Join(notContained, ","));
        }