public void Generator_OutputsPassword()
 {
     Generator gen = new Generator(8, CharsComplexity.Basic);
     string password = gen.GetPassword();
     Assert.AreEqual(8, password.Length);
     StringAssert.Matches(password, new Regex("^[A-Za-z\\d]+$"));
 }
 public PasswordViewModel()
 {
     gen = new Generator(8, CharsComplexity.Basic);
     passwords = GeneratePasswords(100);
 }