示例#1
0
        public void PasswdValidationTest()
        {
            PwdValidator target   = new PwdValidator(); // TODO: Initialize to an appropriate value
            string       password = "******";
            bool         expected = true;
            bool         actual;

            actual = target.PasswdValidation(password);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }
示例#2
0
        public void UserValidationTest()
        {
            PwdValidator target   = new PwdValidator(); // TODO: Initialize to an appropriate value
            string       UName    = "Subodh";
            bool         expected = true;
            bool         actual;

            actual = target.UserNameValidation(UName);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }
示例#3
0
        public void PasswdValidationTestNew()
        {
            bool actual;
            bool expcted = true;
//                Convert.ToBoolean(TestContext.DataRow["Valid"]);
            string pwd;

            pwd = "P2ssw0rd"; // TestContext.DataRow["Pwd"].ToString();
            PwdValidator validator = new PwdValidator();

            actual = validator.PasswdValidation(pwd);
            Assert.AreEqual(actual, expcted);
        }