Esempio n. 1
0
        public void TestIsEmptyValid2()
        {
            Books365.BLL.Validator v = new Books365.BLL.Validator();
            PasswordBox            testPasswordBox = new PasswordBox();

            Assert.True(v.IsEmpty(testPasswordBox));
        }
Esempio n. 2
0
        public void TestIsEmptyValid1()
        {
            Books365.BLL.Validator v = new Books365.BLL.Validator();
            TextBox testTextBox      = new TextBox();

            Assert.True(v.IsEmpty(testTextBox));
        }
Esempio n. 3
0
        public void TestIsEmptyInvalid2()
        {
            Books365.BLL.Validator v = new Books365.BLL.Validator();
            PasswordBox            testPasswordBox = new PasswordBox();

            testPasswordBox.Password = "******";
            Assert.False(v.IsEmpty(testPasswordBox));
        }
Esempio n. 4
0
        public void TestIsEmptyIvalid1()
        {
            Books365.BLL.Validator v = new Books365.BLL.Validator();
            TextBox testTextBox      = new TextBox();

            testTextBox.Text = "11";
            Assert.False(v.IsEmpty(testTextBox));
        }