コード例 #1
0
        public void PasswordNotCorrected()
        {
            IEnterValidationRule enterValidationRule = new EnterValidationRule();
            ValidResult          v1 = enterValidationRule.ValidatePassword("ыфв_");
            ValidResult          v2 = enterValidationRule.ValidatePassword("");

            Assert.IsTrue(v1.GetError().Length > 0);
            Assert.IsTrue(v2.GetError().Length > 0);
        }
コード例 #2
0
        public void PasswordCorrected()
        {
            IEnterValidationRule enterValidationRule = new EnterValidationRule();
            ValidResult          v1 = enterValidationRule.ValidatePassword("somthing");
            ValidResult          v2 = enterValidationRule.ValidatePassword("somthing23");

            Assert.IsTrue(v1.GetError().Length == 0);
            Assert.IsTrue(v2.GetError().Length == 0);
        }