public void ChangePasswordQuestionAndAnswer_GoodUser_ReturnsTrue() { //Arrange var user = "******"; var pass = "******"; var question = "Good"; var answer = "Answer"; //Act var actual = _mProv.ChangePasswordQuestionAndAnswer(user, pass, question, answer); //Assert Assert.IsTrue(actual); }
public void ChangePasswordQuestionAndAnswer_ValidUser_ReturnsTrue() { UserParameters u = _testUsers[0]; string newquestion = "question"; string newanswer = "answer"; bool result = false; result = _mp.ChangePasswordQuestionAndAnswer(u.username, u.password, newquestion, newanswer); //Cleanup if (result) { _mp.ChangePasswordQuestionAndAnswer(u.username, u.password, u.passwordQuestion, u.passwordAnswer); } Assert.IsTrue(result); }