public void TestPasswordValid1() { PasswordBox testPasswordBox = new PasswordBox(); testPasswordBox.Password = "******"; Books365.BLL.Validator v = new Books365.BLL.Validator(); Assert.True(v.PasswordIsCorrect(testPasswordBox)); }
public void TestPasswordInValid2() { PasswordBox testPasswordBox = new PasswordBox(); testPasswordBox.Password = "******"; Books365.BLL.Validator v = new Books365.BLL.Validator(); Assert.False(v.PasswordIsCorrect(testPasswordBox)); }
public void TestPasswordInValid4() { TextBox testTextBox = new TextBox(); testTextBox.Text = "password1234"; Books365.BLL.Validator v = new Books365.BLL.Validator(); Assert.False(v.PasswordIsCorrect(testTextBox)); }
public void TestPasswordValid2() { TextBox testTextBox = new TextBox(); testTextBox.Text = "Pa$$word123"; Books365.BLL.Validator v = new Books365.BLL.Validator(); Assert.True(v.PasswordIsCorrect(testTextBox)); }