예제 #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");
        }
예제 #2
0
        public void When_entering_correct_values()
        {
            DataMan access = new DataMan();

            Assert.IsTrue(access.Login("Bongani", "12345"), "Incorrect values entered.");
        }
예제 #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");
        }
예제 #4
0
        public void When_entering_incorrect_username()
        {
            DataMan access = new DataMan();

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

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