コード例 #1
0
 /// <summary>
 /// Checks if the file is valid.
 /// </summary>
 /// <param name="filePath">Path to the file.</param>
 /// <returns>True if the file is valid, else false.</returns>
 private bool isValid(string filePath)
 {
     if (!nameValidator.Validate(filePath))
     {
         return(false);
     }
     return(contentValidator.Validate(filePath));
 }
コード例 #2
0
 public void FileContentValidator_ValidateShouldReturnFalseFullNullOrNonExistingFiles(string fileName)
 {
     Assert.False(validator.Validate(fileName));
 }