Example #1
0
        [TestMethod]// Test Method for successfull Login
        public void Admin_View_test()
        {
            Admin_dashboard main     = new Admin_dashboard();             //declare obj main
            bool            actual   = main.view("btnclick");             // enter valid username and password
            bool            expected = true;                              ////returned bool value from method login_pagess method

            Assert.AreEqual(expected, actual, "You did something wrong"); // expected is true  whereas actual is should match
        }
Example #2
0
        [TestMethod]// ====Test Method for unsuccessfull Login
        public void Admin_View_unsuccesstest()
        {
            Admin_dashboard main     = new Admin_dashboard();             // create obj main
            bool            actual   = main.view("");                     //enter invalid password
            bool            expected = false;                             //returned bool value from method login_pagess method

            Assert.AreEqual(expected, actual, "You did something wrong"); // expected is true  whereas actual is should match
        }
Example #3
0
        public void Admin_delete_test()
        {
            Admin_dashboard ad       = new Admin_dashboard();             // create obj ad
            bool            actual   = ad.delete_value("66");             //enter valid values in database to delete
            bool            expected = true;                              //returned bool value from method delete_value method

            Assert.AreEqual(expected, actual, "You did something wrong"); // expected is true  whereas actual is should match
        }