示例#1
0
 public static void VerifyIsEmptyContents(string target, string subject)
 {
     if (string.IsNullOrEmpty(target))
     {
         CommonFunctionHelper.ErrorHandling(subject + " cannot be blank.");
     }
 }
示例#2
0
        public static void VerifyFolderPath(string path, string subject)
        {
            VerifyIsEmptyContents(path, subject);

            if (Directory.Exists(path) == false)
            {
                CommonFunctionHelper.ErrorHandling(subject + " did not exsit.");
            }
        }