2007-09-25 Zoltan Varga <vargaz@gmail.com>
authorZoltan Varga <vargaz@gmail.com>
Tue, 25 Sep 2007 15:25:09 +0000 (15:25 -0000)
committerZoltan Varga <vargaz@gmail.com>
Tue, 25 Sep 2007 15:25:09 +0000 (15:25 -0000)
* PropertyInfoTest.cs: Add test for calling ReflectedType on accessors.

svn path=/trunk/mcs/; revision=86336

mcs/class/corlib/Test/System.Reflection/ChangeLog
mcs/class/corlib/Test/System.Reflection/PropertyInfoTest.cs

index 82261eba7e0d44a2c4b9908a9d873d265c8908c8..08dc926080a863fbeb26729b605fe7e7161735bf 100644 (file)
@@ -1,3 +1,7 @@
+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.
index ea841561712c8bc876d3dc6ffc9f006d7cc0fdbe..d49b31d7ba1f613548e5beb5dc56c5a4fa10a142 100644 (file)
@@ -195,6 +195,14 @@ namespace MonoTests.System.Reflection
                        }
                }
 
+               [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
                {
                }