예제 #1
0
 public void CanAuthenticate()
 {
     Account account = new Account();
     account.Password = "******";
     Assert.IsTrue(account.Authenticate("APPLES"));
     Assert.IsFalse(account.Authenticate("BAD PASSWORD"));
 }
예제 #2
0
 public void PasswordAuthenticationIgnoresLeadingAndTrailingSpaces()
 {
     Account account = new Account();
     account.Password = "******";
     Assert.IsTrue(account.Authenticate("  TestPassword  "));
 }
예제 #3
0
 public void PasswordAuthenticationIsCaseSensitive()
 {
     Account account = new Account();
     account.Password = "******";
     Assert.IsFalse(account.Authenticate("testpassword"));
 }