Exemple #1
0
        public void ShouldReturnFailedonCreateAccount()
        {
            CreateAccount user   = new CreateAccount();
            string        result = user.CreateUser("suvarna", "");

            Assert.AreEqual(customMsg.DisplayMessages("UserFailure"), result);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        public void ShouldReturnSuccessonCreateAccount()
        {
            string result = user.CreateUser("suvarna", "password123");

            Assert.AreEqual(customMsg.DisplayMessages("UserSuccess"), result);
        }