public void TestPasswordShouldMatchSetPasswordEvenIfDefaultHashLengthIsDifferent() { _service.SetPassword(_user, _password); var differentXervice = new PasswordService(_defaultIterations, _defaultHashLength + 32); Assert.True(differentXervice.CheckPassword(_user, _password)); }
public void CheckPassword_InputAsBreachedPassword_Fail() { var result = ps.CheckPassword("password123"); Assert.AreNotEqual(result, 0); }
public void TestPasswordShouldMatchSetPassword() { _service.SetPassword(_user, _password); Assert.True(_service.CheckPassword(_user, _password)); }