Пример #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 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);
        }