public void naming_convention_is_empty_test() { AviSynthBatchSettings avsBatchSettings; IAviSynthValidationService validationService; //given an empty batch directory avsBatchSettings = new AviSynthBatchSettings() { AviSynthFilesOutputDirectoryPath = "C:\\temp", NamingConvention = string.Empty, NumberOfFiles = 1 }; //when I validate validationService = new AviSynthValidationService(avsBatchSettings); ErrorCollection errors = validationService.Validate(); //then error list contains error Assert.AreEqual(errors[0].Description, "Naming Convention is required"); }
public void batch_directory_is_invalid_directory_test() { AviSynthBatchSettings avsBatchSettings; IAviSynthValidationService validationService; //given an empty batch directory avsBatchSettings = new AviSynthBatchSettings() { AviSynthFilesOutputDirectoryPath = "BatchDirectory", NamingConvention = "NamingConvention", NumberOfFiles = 1 }; //when I validate validationService = new AviSynthValidationService(avsBatchSettings); ErrorCollection errors = validationService.Validate(); //then error list contains error Assert.AreEqual(errors[0].Description, "Batch Directory does not exist!"); }