public void TestMethod1() { var c = new EntityTextBox <Student, string>(t => t.StuId); c.Contains(); Console.WriteLine(c.ToHtmlString()); }
public void TestMaxLength() { var textBox = new EntityTextBox <User, string>(t => t.StringMaxLength); Assert.AreEqual(CreateReuslt("StringMaxLength", "validType:'maxLength[5]'"), textBox.ToHtmlString()); }
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()); }
public void TestName() { var textBox = new EntityTextBox <User, string>(t => t.Description); Assert.AreEqual(CreateReuslt("Description"), textBox.ToHtmlString()); }
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()); }
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() ); }
public void TestMaxLength() { var textBox = new EntityTextBox<User, string>( t => t.StringMaxLength ); Assert.AreEqual( CreateReuslt( "StringMaxLength", "validType:'maxLength[5]'" ), textBox.ToHtmlString() ); }
public void TestRequired() { var textBox = new EntityTextBox<User, string>( t => t.Name ); Assert.AreEqual( CreateReuslt( "Name", "required:true,missingMessage:'姓名不能为空'" ), textBox.ToHtmlString() ); }
public void TestName() { var textBox = new EntityTextBox<User, string>( t => t.Description ); Assert.AreEqual( CreateReuslt( "Description" ), textBox.ToHtmlString() ); }