* PropertyInfoTest.cs: Add test for calling ReflectedType on accessors.
svn path=/trunk/mcs/; revision=86336
+2007-09-25 Zoltan Varga <vargaz@gmail.com>
+
+ * PropertyInfoTest.cs: Add test for calling ReflectedType on accessors.
+
2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
* AssemblyTest.cs: Added test for ManifestModule.
}
}
+ [Test]
+ public void AccessorsReflectedType ()
+ {
+ PropertyInfo pi = typeof (Derived).GetProperty ("T");
+ Assert.AreEqual (typeof (Derived), pi.GetGetMethod ().ReflectedType);
+ Assert.AreEqual (typeof (Derived), pi.GetSetMethod ().ReflectedType);
+ }
+
public class ThisAttribute : Attribute
{
}