public void GetMemberInfoSuccess() { var i = ExpressionUtils.GetMemberInfo <Helper, int>(h => h.Value); var i2 = typeof(Helper).GetProperty("Value"); Assert.AreSame(i, i2); }
public void GetMemberInfoNullParam() { ExpressionUtils.GetMemberInfo <object, int>(null); }