Exemplo n.º 1
0
 public void GoodLogin()
 {
     SqlUserManager sqm = new SqlUserManager();
     bool expected = true;
     sqm.AddUser("LoginTest", "password");
     bool actual = sqm.Login("LoginTest", "password");
     sqm.DeleteUserByUsername("LoginTest");
     Assert.AreEqual(expected, actual);
 }
        public void LoginCorrect()
        {
            SqlUserManager sqm = new SqlUserManager();
            string UserName = "******";
            string Password = "******";

            bool check = sqm.Login(UserName, Password);

            Assert.AreEqual(true, check);
        }
        public void BadLogin()
        {
            SqlUserManager sqm = new SqlUserManager();
            string UserName = "******";
            string Password = "******";

            bool check = sqm.Login(UserName, Password);

            Assert.AreEqual(false, check);
        }