Author: zoltan
Date: 2007-09-25 11:25:09 -0400 (Tue, 25 Sep 2007)
New Revision: 86336

Modified:
   trunk/mcs/class/corlib/Test/System.Reflection/ChangeLog
   trunk/mcs/class/corlib/Test/System.Reflection/PropertyInfoTest.cs
Log:
2007-09-25  Zoltan Varga  <[EMAIL PROTECTED]>

        * PropertyInfoTest.cs: Add test for calling ReflectedType on accessors.


Modified: trunk/mcs/class/corlib/Test/System.Reflection/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System.Reflection/ChangeLog     2007-09-25 
15:24:21 UTC (rev 86335)
+++ trunk/mcs/class/corlib/Test/System.Reflection/ChangeLog     2007-09-25 
15:25:09 UTC (rev 86336)
@@ -1,3 +1,7 @@
+2007-09-25  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * PropertyInfoTest.cs: Add test for calling ReflectedType on accessors.
+
 2007-09-23  Gert Driesen  <[EMAIL PROTECTED]>
 
        * AssemblyTest.cs: Added test for ManifestModule.

Modified: trunk/mcs/class/corlib/Test/System.Reflection/PropertyInfoTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System.Reflection/PropertyInfoTest.cs   
2007-09-25 15:24:21 UTC (rev 86335)
+++ trunk/mcs/class/corlib/Test/System.Reflection/PropertyInfoTest.cs   
2007-09-25 15:25:09 UTC (rev 86336)
@@ -195,6 +195,14 @@
                        }
                }
 
+               [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
                {
                }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to