//[Test] public void ValidPasswordsTest() { IInputValidationService service = new InputValidationService(); List <string> validPasswords = FileUtils.FileToStringList(TestFiles.ValidPasswords); foreach (string password in validPasswords) { Assert.DoesNotThrow(() => { service.ValidatePassword(password); }); } }
public static string GetValidPlainPassword() { string pass = "******" + randAlpha(5, 10) + "99"; InputValidationService service = new InputValidationService(); try { service.ValidatePassword(pass); } catch (InputValidationException e) { Logger.Debug(e); pass = null; throw; } return(pass); }