public void ReturnsNullGivenNonPropertyMember()
        {
            PropertyInfo propertyInfo = PropertyInfoHelper.GetPropertyInfo <string>(s => s.Clone());

            Assert.IsNull(propertyInfo);
        }
        public void ReturnsPropertyInfo()
        {
            PropertyInfo propertyInfo = PropertyInfoHelper.GetPropertyInfo <string>(s => s.Length);

            Assert.AreEqual(propertyInfo.MemberType, MemberTypes.Property);
        }
 private static PropertyInfo GetPropertyInfo(Expression <Func <Dummy, object> > expression) =>
 PropertyInfoHelper.GetPropertyInfo(expression);