Exemple #1
0
        public void TestMethod1()
        {
            var c = new EntityTextBox <Student, string>(t => t.StuId);

            c.Contains();
            Console.WriteLine(c.ToHtmlString());
        }
Exemple #2
0
        public void TestMaxLength()
        {
            var textBox = new EntityTextBox <User, string>(t => t.StringMaxLength);

            Assert.AreEqual(CreateReuslt("StringMaxLength", "validType:'maxLength[5]'"), textBox.ToHtmlString());
        }
Exemple #3
0
        public void TestDate()
        {
            var textBox = new EntityTextBox <User, DateTime>(t => t.DateTimeValue);

            Assert.AreEqual("<input class=\"easyui-datebox\" name=\"DateTimeValue\" data-options=\"editable:false\"/>", textBox.ToHtmlString());
        }
Exemple #4
0
        public void TestName()
        {
            var textBox = new EntityTextBox <User, string>(t => t.Description);

            Assert.AreEqual(CreateReuslt("Description"), textBox.ToHtmlString());
        }
Exemple #5
0
        public void TestRequired()
        {
            var textBox = new EntityTextBox <User, string>(t => t.Name);

            Assert.AreEqual(CreateReuslt("Name", "required:true,missingMessage:'ÐÕÃû²»ÄÜΪ¿Õ'"), textBox.ToHtmlString());
        }
 public void TestMethod1()
 {
     var c=new EntityTextBox<Student, string>(t=>t.StuId);
     c.Contains();
     Console.WriteLine(c.ToHtmlString());
 }
Exemple #7
0
 public void TestDate() {
     var textBox = new EntityTextBox<User, DateTime>( t => t.DateTimeValue );
     Assert.AreEqual( "<input class=\"easyui-datebox\" name=\"DateTimeValue\" data-options=\"editable:false\"/>", textBox.ToHtmlString() );
 }
Exemple #8
0
 public void TestMaxLength() {
     var textBox = new EntityTextBox<User, string>( t => t.StringMaxLength );
     Assert.AreEqual( CreateReuslt( "StringMaxLength", "validType:'maxLength[5]'" ), textBox.ToHtmlString() );
 }
Exemple #9
0
 public void TestRequired() {
     var textBox = new EntityTextBox<User, string>( t => t.Name );
     Assert.AreEqual( CreateReuslt( "Name", "required:true,missingMessage:'姓名不能为空'" ), textBox.ToHtmlString() );
 }
Exemple #10
0
 public void TestName() {
     var textBox = new EntityTextBox<User, string>( t => t.Description );
     Assert.AreEqual( CreateReuslt( "Description" ), textBox.ToHtmlString() );
 }