public void KnownPasswordsShouldBeValid() { var pwd = new PasswordFile("htpasswd.txt"); Assert.True(pwd.IsValid("admin", "test")); Assert.True(pwd.IsValid("user", "test")); }
public void OriginalWagoPasswordsShouldBeValid() { var pwd = new PasswordFile("lighttpd-htpasswd.user"); Assert.True(pwd.IsValid("admin", "wago")); Assert.True(pwd.IsValid("user", "user")); }