public void ShouldReturnFailedonCreateAccount() { CreateAccount user = new CreateAccount(); string result = user.CreateUser("suvarna", ""); Assert.AreEqual(customMsg.DisplayMessages("UserFailure"), result); }
public void ShouldReturnFailIfUserIsNullonCreateAccount() { CreateAccount user = new CreateAccount(); string result = user.CreateUser(null, "password"); //Assert.AreEqual("User Creation Failed -Null Username",result); Assert.AreEqual(customMsg.DisplayMessages("UserFailure"), result); }
public void ShouldReturnSuccessonCreateAccount() { string result = user.CreateUser("suvarna", "password123"); Assert.AreEqual(customMsg.DisplayMessages("UserSuccess"), result); }