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

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

            Assert.AreEqual(CreateReuslt("StringMaxLength", "validType:'maxLength[5]'"), textBox.ToHtmlString());
        }
Exemplo n.º 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());
        }
Exemplo n.º 4
0
        public void TestName()
        {
            var textBox = new EntityTextBox <User, string>(t => t.Description);

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

            Assert.AreEqual(CreateReuslt("Name", "required:true,missingMessage:'ÐÕÃû²»ÄÜΪ¿Õ'"), textBox.ToHtmlString());
        }
Exemplo n.º 6
0
 public void TestMethod1()
 {
     var c=new EntityTextBox<Student, string>(t=>t.StuId);
     c.Contains();
     Console.WriteLine(c.ToHtmlString());
 }
Exemplo n.º 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() );
 }
Exemplo n.º 8
0
 public void TestMaxLength() {
     var textBox = new EntityTextBox<User, string>( t => t.StringMaxLength );
     Assert.AreEqual( CreateReuslt( "StringMaxLength", "validType:'maxLength[5]'" ), textBox.ToHtmlString() );
 }
Exemplo n.º 9
0
 public void TestRequired() {
     var textBox = new EntityTextBox<User, string>( t => t.Name );
     Assert.AreEqual( CreateReuslt( "Name", "required:true,missingMessage:'姓名不能为空'" ), textBox.ToHtmlString() );
 }
Exemplo n.º 10
0
 public void TestName() {
     var textBox = new EntityTextBox<User, string>( t => t.Description );
     Assert.AreEqual( CreateReuslt( "Description" ), textBox.ToHtmlString() );
 }