コード例 #1
0
        public void TestPasswordValid1()
        {
            PasswordBox testPasswordBox = new PasswordBox();

            testPasswordBox.Password = "******";
            Books365.BLL.Validator v = new Books365.BLL.Validator();
            Assert.True(v.PasswordIsCorrect(testPasswordBox));
        }
コード例 #2
0
        public void TestPasswordInValid2()
        {
            PasswordBox testPasswordBox = new PasswordBox();

            testPasswordBox.Password = "******";
            Books365.BLL.Validator v = new Books365.BLL.Validator();
            Assert.False(v.PasswordIsCorrect(testPasswordBox));
        }
コード例 #3
0
        public void TestPasswordInValid4()
        {
            TextBox testTextBox = new TextBox();

            testTextBox.Text = "password1234";
            Books365.BLL.Validator v = new Books365.BLL.Validator();
            Assert.False(v.PasswordIsCorrect(testTextBox));
        }
コード例 #4
0
        public void TestPasswordValid2()
        {
            TextBox testTextBox = new TextBox();

            testTextBox.Text = "Pa$$word123";
            Books365.BLL.Validator v = new Books365.BLL.Validator();
            Assert.True(v.PasswordIsCorrect(testTextBox));
        }