コード例 #1
0
        public void TestIsEmptyValid2()
        {
            Books365.BLL.Validator v = new Books365.BLL.Validator();
            PasswordBox            testPasswordBox = new PasswordBox();

            Assert.True(v.IsEmpty(testPasswordBox));
        }
コード例 #2
0
        public void TestIsEmptyValid1()
        {
            Books365.BLL.Validator v = new Books365.BLL.Validator();
            TextBox testTextBox      = new TextBox();

            Assert.True(v.IsEmpty(testTextBox));
        }
コード例 #3
0
        public void TestIsEmptyInvalid2()
        {
            Books365.BLL.Validator v = new Books365.BLL.Validator();
            PasswordBox            testPasswordBox = new PasswordBox();

            testPasswordBox.Password = "******";
            Assert.False(v.IsEmpty(testPasswordBox));
        }
コード例 #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));
        }