예제 #1
0
        public void userentry()
        {
            DataTable dt       = user.countuser();
            int       expected = dt.Rows.Count + 1;

            user._FirstName = "lizan";
            user._LastName  = "bajracharya";
            user._Address   = "patan";
            user._Email     = "aa";
            user._Gender    = "M";
            user._PhoneNo   = "987";
            user._Username  = "******";
            user._Password  = "******";
            user.Addnormal();
            dt = user.countuser();
            int actual = dt.Rows.Count;

            Assert.AreEqual(expected, actual);
        }