Exemple #1
0
        public void GetPropertyNameReturnsDisplayNameLinqExpressionVersionWithObject()
        {
            var    obj    = new GetDisplayNameMock();
            string result = PropertyHelper.GetPropertyName(obj, m => m.Property);

            Assert.AreEqual("Property", result);
        }
Exemple #2
0
        public void GetDisplayNameReturnsDisplayNameObjectVersion()
        {
            var    obj    = new GetDisplayNameMock();
            string result = ReflectionHelper.GetDisplayName(obj, "PropertyWithDisplayNameAttr");

            Assert.AreEqual("Property Display Name", result);
        }
        public void GetDisplayNameReturnsDisplayNameLinqExpressionVersionWithObject()
        {
            var obj    = new GetDisplayNameMock();
            var result = ReflectionHelper.GetDisplayName(obj, m => m.PropertyWithDisplayNameAttr);

            Assert.AreEqual("Property Display Name", result);
        }
 public void GetDisplayNameReturnsDisplayNameLinqExpressionVersionWithObject()
 {
     var obj = new GetDisplayNameMock();
     var result = ReflectionHelper.GetDisplayName(obj, m => m.PropertyWithDisplayNameAttr);
     Assert.AreEqual("Property Display Name", result);
 }
 public void GetDisplayNameReturnsDisplayNameObjectVersion()
 {
     var obj = new GetDisplayNameMock();
     var result = ReflectionHelper.GetDisplayName(obj, "PropertyWithDisplayNameAttr");
     Assert.AreEqual("Property Display Name", result);
 }
 public void GetPropertyNameReturnsDisplayNameLinqExpressionVersionWithObject()
 {
     var obj = new GetDisplayNameMock();
     var result = PropertyHelper.GetPropertyName(obj, m => m.Property);
     Assert.AreEqual("Property", result);
 }