Author: rolf
Date: 2007-01-16 03:53:35 -0500 (Tue, 16 Jan 2007)
New Revision: 71109

Modified:
   trunk/mcs/class/corlib/Test/System.Reflection.Emit/ChangeLog
   trunk/mcs/class/corlib/Test/System.Reflection.Emit/EnumBuilderTest.cs
Log:
2007-01-16  Rolf Bjarne Kvinge  <[EMAIL PROTECTED]>

        * EnumBuilderTest.cs: Created test for #80396.



Modified: trunk/mcs/class/corlib/Test/System.Reflection.Emit/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System.Reflection.Emit/ChangeLog        
2007-01-16 08:50:43 UTC (rev 71108)
+++ trunk/mcs/class/corlib/Test/System.Reflection.Emit/ChangeLog        
2007-01-16 08:53:35 UTC (rev 71109)
@@ -1,3 +1,7 @@
+2007-01-16  Rolf Bjarne Kvinge  <[EMAIL PROTECTED]>
+
+       * EnumBuilderTest.cs: Created test for #80396.
+
 2006-12-15  Raja R Harinath  <[EMAIL PROTECTED]>
 
        * TypeBuilderTest.cs (MakeGenericType, Fail_MakeGenericType): New

Modified: trunk/mcs/class/corlib/Test/System.Reflection.Emit/EnumBuilderTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System.Reflection.Emit/EnumBuilderTest.cs       
2007-01-16 08:50:43 UTC (rev 71108)
+++ trunk/mcs/class/corlib/Test/System.Reflection.Emit/EnumBuilderTest.cs       
2007-01-16 08:53:35 UTC (rev 71109)
@@ -271,6 +271,15 @@
                                BindingFlags.Instance | BindingFlags.Public);
                        AssertEquals (0, ctors.Length);
                }
+               
+               [Test]
+               public void TestIsValue__SpecialName ()
+               {
+                       EnumBuilder enumBuilder = GenerateEnum ();
+                       Type enumType = enumBuilder.CreateType ();
+                       FieldInfo value = enumType.GetField ("value__", 
BindingFlags.Instance | BindingFlags.NonPublic);
+                       AssertEquals ("value__ must have 
FieldAttributes.RTSpecialName set", FieldAttributes.RTSpecialName, 
value.Attributes & FieldAttributes.RTSpecialName);
+               }
 
                private static void VerifyType (Type type)
                {

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

Reply via email to