public void Validate_StandardWordListFemaleNames_PassValidation()
 {
   var settings = new PasswordValidationSettings();
   settings.StandardWordLists.Add(StandardWordList.FemaleNames);
   var validator = new StandardWordListValidationHandler(settings);
   Assert.IsTrue(validator.Validate("OlIvEr"));
 }
 public void Validate_FemaleName_FailsValidation()
 {
   var settings = new PasswordValidationSettings();
   settings.StandardWordLists.Add(StandardWordList.FemaleNames);
   var validator = new StandardWordListValidationHandler(settings);
   Assert.IsFalse(validator.Validate("CaThErInE"));
 }
 public void Validate_AllStandardWordLists_FailValidation()
 {
   var settings = new PasswordValidationSettings();
   settings.StandardWordLists.Add(StandardWordList.FemaleNames);
   settings.StandardWordLists.Add(StandardWordList.MaleNames);
   settings.StandardWordLists.Add(StandardWordList.Surnames);
   settings.StandardWordLists.Add(StandardWordList.MostCommon500Passwords);
   var validator = new StandardWordListValidationHandler(settings);
   Assert.IsFalse(validator.Validate("PaSsWoRd"));
 }