public void Throw_AuthenticationException_If_Password_Invalid() { string password = "******"; string hash = "RyusGZUymx1tpIexmeuIK2rWO2JT+bt27WjzxSTtQ76Q77e/"; var security = new PasswordSecurity(); Assert.Throws <AuthenticationException>(() => security.Verify(hash, password)); }
public void Verify_Password_Silently() { string password = "******"; string hash = "RyusGZUymx1tpIexmeuIK2rWO2JT+bt27WjzxSTtQ76Q77e/"; var security = new PasswordSecurity(); security.Verify(hash, password); }