Exemple #1
0
 public static string WrapWithQm(string commitMessage)
 {
     return(SH.WrapWith(commitMessage, AllChars.qm));
 }
Exemple #2
0
 public static string WrapWith(string value, string h, bool _trimWrapping = false)
 {
     return(h + SH.Trim(value, h) + h);
 }
Exemple #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, ","));
        }