Exemplo n.º 1
0
        public void When_entering_empty_parameters()
        {
            DataMan access = new DataMan();
            var     result = access.Login(string.Empty, string.Empty);

            Assert.IsTrue(result == false, "Values are empty");
        }
Exemplo n.º 2
0
        public void When_entering_correct_values()
        {
            DataMan access = new DataMan();

            Assert.IsTrue(access.Login("Bongani", "12345"), "Incorrect values entered.");
        }
Exemplo n.º 3
0
        public void When_entering_incorrect_password_for_correct_username()
        {
            DataMan access = new DataMan();

            Assert.IsTrue(access.Login("Bongani", "123455") == false, "Password is Incorrect");
        }
Exemplo n.º 4
0
        public void When_entering_incorrect_username()
        {
            DataMan access = new DataMan();

            Assert.IsTrue(access.Login("Madam", "12345") == false, "Username is Incorrect");
        }
Exemplo n.º 5
0
        public void When_entering_incorrect_values()
        {
            DataMan access = new DataMan();

            Assert.IsTrue(access.Login("Madam", "Speaker") == false, "Values are incorrect");
        }