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

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

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