public void CanAuthenticate() { Account account = new Account(); account.Password = "******"; Assert.IsTrue(account.Authenticate("APPLES")); Assert.IsFalse(account.Authenticate("BAD PASSWORD")); }
public void PasswordAuthenticationIgnoresLeadingAndTrailingSpaces() { Account account = new Account(); account.Password = "******"; Assert.IsTrue(account.Authenticate(" TestPassword ")); }
public void PasswordAuthenticationIsCaseSensitive() { Account account = new Account(); account.Password = "******"; Assert.IsFalse(account.Authenticate("testpassword")); }