Exemplo n.º 1
0
 public void TestGetDateName()
 {
     Assert.AreEqual("ok", Pro2Col.GetColName4Pro(this.GetType(), "HaveAttribute"));
     Assert.AreEqual(string.Empty, Pro2Col.GetColName4Pro(this.GetType(), "HavenotAttribute"));
     Assert.AreEqual("ok", Pro2Col.GetColName4Pro(new DataNameAttributeTest(), "HaveAttribute"));
     Assert.AreEqual(string.Empty, Pro2Col.GetColName4Pro(new DataNameAttributeTest(), "HavenotAttribute"));
 }
Exemplo n.º 2
0
 public string GetColName4Pro(object o, string propertyName)
 {
     return(Pro2Col.GetColName4Pro(o, propertyName));
 }
Exemplo n.º 3
0
 public string GetColName4Pro(string propertyName)
 {
     return(Pro2Col.GetColName4Pro(this.GetType(), propertyName));
 }