public void CanGetPropertyValueFromFastInfo() { FastPropertyInfo propInfo = new FastPropertyInfo(typeof(Foo).GetProperty("B")); Foo a = new Foo(); Bar b = new Bar(); a.B = b; object b2 = propInfo.GetValue(a, null); Assert.AreSame(b, b2); }
public void CanGetPropertyValueFromFastInfo() { FastPropertyInfo propInfo = new FastPropertyInfo(typeof(Foo).GetProperty("B")); Foo a = new Foo(); Bar b = new Bar(); a.B = b; object b2 = propInfo.GetValue(a, null); Assert.AreSame(b, b2); }