Пример #1
0
        public void TestLogin()
        {
            EmployeeTest pobj = new EmployeeTest();
            string       x    = pobj.Login("Ajit", "1234");
            string       y    = pobj.Login("", "");
            string       z    = pobj.Login("Admin", "Admin");

            Assert.AreEqual("Userid or password could not be Empty.", y);
            Assert.AreEqual("Incorrect UserId or Password.", x);
            Assert.AreEqual("Welcome Admin.", z);
        }
Пример #2
0
        public void Checkdetails()
        {
            EmployeeTest pobj = new EmployeeTest();

            li = pobj.AllUsers();
            foreach (var x in li)
            {
                Assert.IsNotNull(x.id);
                Assert.IsNotNull(x.Name);
                Assert.IsNotNull(x.salary);
                Assert.IsNotNull(x.Geneder);
            }
        }