/// <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)); }
public void FileContentValidator_ValidateShouldReturnFalseFullNullOrNonExistingFiles(string fileName) { Assert.False(validator.Validate(fileName)); }